From d34522144f15a02622b73ddae79fb453a7661746 Mon Sep 17 00:00:00 2001 From: gturri <{actor}@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:11:10 +0000 Subject: [PATCH] [231113] Automatic update of SDK. --- .../.openapi-generator/FILES | 248 - sdks/marketingsolutions_2022-07/README.md | 171 - .../__init__.py | 31 - .../api/audience_api.py | 874 -- .../api_client.py | 898 -- .../apis/__init__.py | 21 - .../configuration.py | 461 - .../criteo_api_client.py | 11 - .../criteo_auth.py | 121 - .../criteo_rest.py | 75 - .../exceptions.py | 158 - .../model/__init__.py | 5 - .../ad_set_category_bid_list_response.py | 287 - .../model/ad_set_category_bid_resource.py | 277 - .../model/audience.py | 287 - .../model/basic_audience_definition.py | 285 - .../model/campaign_list_response.py | 288 - .../model/campaign_response.py | 285 - .../model/common_problem.py | 306 - .../model/criteo_api_error.py | 308 - .../delete_audience_contact_list_response.py | 291 - .../model/delete_audience_response.py | 291 - .../model/get_audiences_response.py | 291 - .../model/modify_audience_response.py | 291 - .../model/new_audience.py | 281 - .../model/new_audience_response.py | 291 - .../nillable_ad_set_targeting_rule_value.py | 331 - .../model/nillable_decimal.py | 269 - .../model/patch_ad_set_category_bid.py | 263 - ...atch_ad_set_display_multiplier_resource.py | 277 - .../placements_report_query_entity_message.py | 281 - .../model/replace_audience_response.py | 291 - .../model/responses_read_ad_set.py | 288 - .../model/statistics_report_query_message.py | 355 - .../transactions_report_query_message.py | 299 - .../model/write_model_ad_set_id.py | 267 - .../models/__init__.py | 115 - .../rest.py | 352 - .../docs/AdvertiserApi.md | 90 - .../docs/AnalyticsApi.md | 440 - .../docs/AudienceApi.md | 568 -- .../docs/AudienceAttributes.md | 19 - .../docs/CampaignApi.md | 1223 --- .../docs/GatewayApi.md | 90 - .../docs/NewAudienceResponse.md | 15 - .../docs/ReplaceAudienceResponse.md | 15 - sdks/marketingsolutions_2022-07/setup.py | 68 - .../example_application_with_auth_code.py | 27 - ...ple_application_with_client_credentials.py | 22 - .../example_application_with_refresh_token.py | 27 - .../marketingsolutions_2022-10/.gitlab-ci.yml | 24 - .../.openapi-generator/FILES | 248 - sdks/marketingsolutions_2022-10/README.md | 171 - .../__init__.py | 31 - .../api/__init__.py | 3 - .../api/advertiser_api.py | 163 - .../api/analytics_api.py | 601 -- .../api/audience_api.py | 874 -- .../api/gateway_api.py | 161 - .../api_client_builder.py | 37 - ...ad_set_display_multiplier_list_response.py | 287 - .../model/audience.py | 287 - .../model/audience_attributes.py | 303 - .../model/audience_error.py | 310 - .../model/audience_warning.py | 312 - .../model/contactlist_amendment_attributes.py | 295 - .../model/contactlist_operation.py | 281 - .../model/contactlist_operation_attributes.py | 293 - .../model/criteo_api_warning.py | 304 - .../model/delete_audience_response.py | 291 - .../model/entity_of_portfolio_message.py | 294 - .../model/get_audiences_response.py | 291 - .../model/get_portfolio_response.py | 287 - .../model/new_audience.py | 281 - .../model/new_audience_response.py | 291 - .../model/nillable_ad_set_targeting_rule.py | 275 - .../model/nillable_date_time.py | 269 - .../model/patch_ad_set_display_multiplier.py | 263 - ...display_multiplier_result_list_response.py | 287 - .../model/patch_campaign.py | 269 - .../model/patch_campaign_list_request.py | 271 - .../model/patch_campaign_write_resource.py | 277 - .../patch_result_campaign_read_resource.py | 269 - .../model/placements_report_query_message.py | 343 - .../model/read_ad_set_bidding.py | 302 - .../model/read_ad_set_schedule.py | 299 - .../model/read_model_ad_set_id.py | 269 - .../model/replace_audience.py | 281 - .../model/replace_audience_request.py | 275 - .../model/replace_audience_response.py | 291 - .../model/response_ad_set_id.py | 285 - .../model/responses_ad_set_id.py | 288 - ...ransactions_report_query_entity_message.py | 281 - .../transparency_report_entity_message.py | 279 - .../model_utils.py | 2058 ----- .../models/__init__.py | 115 - .../docs/AdSetCategoryBid.md | 14 - .../docs/AdSetDeliveryLimitations.md | 15 - .../docs/AdSetDisplayMultiplier.md | 14 - .../AdSetDisplayMultiplierListResponse.md | 15 - .../docs/AdSetFrequencyCapping.md | 14 - .../docs/AdSetGeoLocation.md | 15 - .../docs/Audience.md | 15 - .../docs/AudienceApi.md | 568 -- .../docs/AudienceAttributes.md | 19 - .../docs/AudienceError.md | 20 - .../docs/AudienceNameDescription.md | 14 - .../docs/AudienceWarning.md | 20 - .../docs/BasicAudienceDefinition.md | 15 - .../docs/CampaignSearchFilters.md | 14 - .../docs/ContactlistAmendment.md | 14 - .../docs/ContactlistAmendmentAttributes.md | 16 - .../docs/ContactlistOperation.md | 14 - .../docs/ContactlistOperationAttributes.md | 19 - .../docs/CriteoApiError.md | 19 - .../docs/CriteoApiWarning.md | 18 - .../docs/DeleteAudienceContactListResponse.md | 15 - .../docs/DeleteAudienceResponse.md | 15 - .../docs/EntityOfPortfolioMessage.md | 16 - .../docs/ErrorCodeResponse.md | 14 - .../docs/GetAudiencesResponse.md | 15 - .../docs/GetPortfolioResponse.md | 15 - .../docs/ModifyAudienceResponse.md | 15 - .../docs/NewAudience.md | 14 - .../docs/NewAudienceAttributes.md | 14 - .../docs/NewAudienceResponse.md | 15 - .../docs/NillableAdSetTargetingRule.md | 13 - .../docs/NillableDateTime.md | 13 - .../docs/NillableDecimal.md | 13 - .../docs/PatchAdSet.md | 17 - .../docs/PatchAdSetBudget.md | 17 - .../docs/PatchAdSetCategoryBid.md | 13 - .../docs/PatchAdSetCategoryBidListRequest.md | 13 - ...PatchAdSetCategoryBidResultListResponse.md | 15 - .../docs/PatchAdSetDisplayMultiplier.md | 13 - .../PatchAdSetDisplayMultiplierListRequest.md | 13 - .../PatchAdSetDisplayMultiplierResource.md | 15 - ...dSetDisplayMultiplierResultListResponse.md | 15 - .../docs/PatchCampaign.md | 13 - .../docs/PatchCampaignListRequest.md | 13 - .../docs/PatchResultCampaignListResponse.md | 15 - .../docs/PatchResultCampaignReadResource.md | 14 - .../docs/PlacementsReportQueryDataMessage.md | 13 - .../docs/PlacementsReportQueryMessage.md | 25 - .../docs/PortfolioMessage.md | 13 - .../docs/ReadAdSet.md | 22 - .../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/RequestsAdSetId.md | 13 - .../docs/ResponsesReadAdSet.md | 15 - .../docs/StatisticsReportQueryMessage.md | 23 - .../TransactionsReportQueryDataMessage.md | 13 - .../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/WriteModelPatchAdSet.md | 15 - .../test/test_gateway_api.py | 62 - sdks/marketingsolutions_2022-10/tox.ini | 9 - sdks/marketingsolutions_2023-01/README.md | 6 +- .../__init__.py | 2 +- .../api/audience_api.py | 4 +- .../api_client.py | 2 +- .../configuration.py | 2 +- .../docs/AudienceApi.md | 4 +- sdks/marketingsolutions_2023-01/setup.py | 6 +- sdks/marketingsolutions_2023-04/README.md | 6 +- .../__init__.py | 2 +- .../api/audience_api.py | 4 +- .../api_client.py | 2 +- .../configuration.py | 2 +- .../docs/AudienceApi.md | 4 +- sdks/marketingsolutions_2023-04/setup.py | 6 +- sdks/marketingsolutions_2023-07/README.md | 6 +- .../__init__.py | 2 +- .../api/audience_api.py | 4 +- .../api_client.py | 2 +- .../configuration.py | 2 +- .../docs/AudienceApi.md | 4 +- sdks/marketingsolutions_2023-07/setup.py | 6 +- .../.gitignore | 0 .../.gitlab-ci.yml | 2 +- .../.openapi-generator/FILES | 538 ++ .../.openapi-generator/VERSION | 0 sdks/marketingsolutions_2023-10/README.md | 315 + .../__init__.py | 31 + .../api/__init__.py | 2 +- .../api/advertiser_api.py | 10 +- .../api/analytics_api.py | 26 +- .../api/audience_api.py | 2506 ++++++ .../api/campaign_api.py | 504 +- .../api/creative_api.py} | 1662 +++- .../api/gateway_api.py | 10 +- .../api_client.py | 12 +- .../api_client_builder.py | 6 +- .../apis/__init__.py | 13 +- .../configuration.py | 10 +- .../criteo_api_client.py | 4 +- .../criteo_auth.py | 6 +- .../criteo_rest.py | 6 +- .../exceptions.py | 2 +- .../flow_constants.py | 0 .../model/__init__.py | 2 +- .../model/ad.py | 293 + .../model/ad_list_response.py} | 26 +- .../model/ad_resource.py} | 24 +- .../model/ad_response.py | 285 + .../model/ad_set_audience_link_entity_v1.py} | 22 +- ...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 | 6 +- .../ad_set_category_bid_list_response.py | 10 +- .../model/ad_set_category_bid_resource.py | 8 +- .../model/ad_set_delivery_limitations.py | 6 +- .../model/ad_set_display_multiplier.py | 6 +- ...ad_set_display_multiplier_list_response.py | 10 +- .../ad_set_display_multiplier_resource.py | 8 +- .../model/ad_set_frequency_capping.py | 6 +- .../model/ad_set_geo_location.py | 8 +- .../model/ad_set_search_filter.py | 6 +- .../model/ad_set_targeting.py | 12 +- .../model/ad_set_targeting_rule.py | 6 +- .../model/ad_write.py} | 59 +- .../model/ad_write_request.py} | 22 +- .../model/ad_write_resource.py | 277 + .../model/adaptive_attributes.py | 361 + .../model/adaptive_colors.py} | 70 +- .../model/adaptive_write_attributes.py | 357 + .../model/algebra_node_v1.py} | 41 +- .../model/application_summary_model.py | 6 +- .../application_summary_model_resource.py | 8 +- .../application_summary_model_response.py | 10 +- .../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} | 24 +- .../model/audience_create_entity_v1.py} | 44 +- .../audience_create_entity_v1_resource.py} | 22 +- .../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} | 26 +- .../model/audience_error.py | 6 +- .../audience_estimate_size_entity_v1.py} | 44 +- ...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} | 26 +- .../model/audience_name_description.py | 6 +- .../model/audience_search_entity_v1.py} | 42 +- .../audience_search_entity_v1_resource.py | 273 + .../model/audience_search_input_v1.py} | 24 +- .../model/audience_search_metadata_v1.py} | 32 +- .../audience_segment_bulk_create_input_v1.py} | 24 +- .../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 | 340 + ...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 | 282 + ...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} | 20 +- ...ce_segment_size_entity_v1_list_response.py | 281 + ...udience_segment_size_entity_v1_resource.py | 277 + ...ence_segment_size_estimation_entity_v1.py} | 48 +- ...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} | 80 +- ...ience_segment_update_entity_v1_resource.py | 277 + .../model/audience_size_entity_v1.py | 263 + .../audience_size_entity_v1_list_response.py | 281 + .../audience_size_entity_v1_resource.py} | 26 +- .../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 | 6 +- .../model/basic_audience_definition.py | 8 +- .../model/behavioral_v1.py} | 53 +- .../model/campaign.py | 8 +- .../model/campaign_list_response.py | 10 +- .../model/campaign_read_resource.py | 8 +- .../model/campaign_response.py | 10 +- .../model/campaign_search_filters.py | 6 +- .../model/campaign_search_request.py | 8 +- .../model/campaign_spend_limit.py | 8 +- .../model/campaign_spend_limit_v23_q1.py} | 14 +- .../model/campaign_v23_q1.py} | 32 +- .../model/campaign_v23_q1_resource.py} | 24 +- .../model/campaign_v23_q1_response.py} | 24 +- .../model/common_problem.py | 6 +- .../contact_list_statistics_entity_v1.py} | 44 +- ...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 | 8 +- .../model/contactlist_amendment_attributes.py | 6 +- .../model/contactlist_amendment_request.py | 8 +- .../model/contactlist_operation.py | 8 +- .../model/contactlist_operation_attributes.py | 6 +- .../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} | 38 +- .../model/coupon_supported_sizes_resource.py | 277 + .../model/coupon_supported_sizes_response.py | 285 + .../model/create_ad_set.py} | 138 +- .../model/create_ad_set_bidding.py} | 44 +- .../model/create_ad_set_budget.py} | 53 +- .../model/create_ad_set_geo_location.py} | 34 +- .../model/create_ad_set_request.py} | 22 +- .../model/create_ad_set_resource.py} | 26 +- .../model/create_ad_set_schedule.py} | 38 +- .../model/create_ad_set_targeting.py} | 44 +- .../model/create_campaign.py | 298 + .../model/create_campaign_request.py} | 24 +- .../model/create_campaign_resource.py} | 26 +- .../model/create_campaign_spend_limit.py} | 41 +- .../model/create_coupon.py} | 158 +- .../model/create_coupon_request.py} | 24 +- .../model/create_coupon_resource.py | 277 + .../model/create_image_slide.py | 273 + .../model/creative.py} | 110 +- .../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 | 6 +- .../model/criteo_api_warning.py | 6 +- .../delete_audience_contact_list_response.py | 12 +- .../model/dynamic_attributes.py | 302 + .../model/dynamic_write_attributes.py | 308 + .../model/entity_of_portfolio_message.py | 8 +- .../model/error_code_response.py | 10 +- .../model/get_portfolio_response.py | 12 +- .../model/html_tag_attributes.py | 271 + .../model/html_tag_write_attributes.py} | 34 +- .../model/image_attributes.py} | 32 +- .../model/image_set.py} | 38 +- .../model/image_set_base64.py} | 41 +- .../model/image_shape.py} | 37 +- .../model/image_slide.py} | 41 +- .../model/image_write_attributes.py} | 43 +- ...arket_audience_segment_brand_entity_v1.py} | 24 +- ...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 | 315 + .../model/in_market_size_estimation_v1.py} | 90 +- .../model/in_market_update_v1.py | 310 + .../model/in_market_v1.py} | 107 +- .../model/location_create_v1.py | 281 + .../model/location_size_estimation_v1.py} | 44 +- .../model/location_update_v1.py} | 55 +- .../model/location_v1.py | 282 + .../model/lookalike_create_v1.py | 273 + .../model/lookalike_update_v1.py | 263 + .../model/lookalike_v1.py} | 30 +- .../model/modify_audience_response.py | 12 +- .../model/nillable_ad_set_targeting_rule.py | 8 +- .../nillable_ad_set_targeting_rule_value.py | 8 +- .../model/nillable_date_time.py | 6 +- .../model/nillable_decimal.py | 6 +- .../model/nillable_gender_v1.py | 268 + .../model/nillable_int32.py | 263 + .../model/nillable_string.py | 263 + .../model/patch_ad_set.py | 14 +- .../model/patch_ad_set_bidding.py | 8 +- .../model/patch_ad_set_budget.py | 8 +- .../model/patch_ad_set_category_bid.py | 6 +- .../patch_ad_set_category_bid_list_request.py | 8 +- .../patch_ad_set_category_bid_resource.py | 8 +- ...d_set_category_bid_result_list_response.py | 10 +- ...tch_ad_set_category_bid_result_resource.py | 6 +- .../model/patch_ad_set_display_multiplier.py | 6 +- ..._ad_set_display_multiplier_list_request.py | 8 +- ...atch_ad_set_display_multiplier_resource.py | 8 +- ...display_multiplier_result_list_response.py | 10 +- ..._set_display_multiplier_result_resource.py | 6 +- .../model/patch_ad_set_scheduling.py | 8 +- .../model/patch_campaign.py | 8 +- .../model/patch_campaign_list_request.py | 8 +- .../model/patch_campaign_spend_limit.py | 8 +- .../model/patch_campaign_write_resource.py | 8 +- .../patch_result_campaign_list_response.py | 10 +- .../patch_result_campaign_read_resource.py | 6 +- .../placements_report_query_data_message.py | 8 +- .../placements_report_query_entity_message.py | 8 +- .../model/placements_report_query_message.py | 6 +- .../model/point_of_interest_v1.py | 271 + .../model/portfolio_message.py | 6 +- .../model/problem_details.py | 6 +- .../model/problems_details.py | 8 +- .../model/prospecting_create_v1.py | 281 + .../model/prospecting_update_v1.py} | 45 +- .../model/prospecting_v1.py | 277 + .../model/read_ad_set.py | 14 +- .../model/read_ad_set_bidding.py | 8 +- .../model/read_ad_set_budget.py | 8 +- .../model/read_ad_set_schedule.py | 8 +- .../model/read_model_ad_set_id.py | 6 +- .../model/read_model_read_ad_set.py | 8 +- .../model/request_ad_set_search.py | 8 +- .../model/requests_ad_set_id.py | 8 +- .../model/requests_patch_ad_set.py | 8 +- .../model/response_ad_set_id.py | 10 +- .../model/response_read_ad_set.py | 10 +- .../model/responses_ad_set_id.py | 10 +- .../model/responses_read_ad_set.py | 10 +- .../model/retargeting_create_v1.py | 286 + .../model/retargeting_update_v1.py} | 48 +- .../model/retargeting_v1.py | 278 + .../model/size.py | 267 + .../model/statistics_report_query_message.py | 6 +- .../model/tag.py} | 28 +- .../transactions_report_query_data_message.py | 8 +- ...ransactions_report_query_entity_message.py | 8 +- .../transactions_report_query_message.py | 6 +- .../model/transparency_query_message.py | 6 +- .../model/transparency_report_attributes.py | 8 +- .../model/transparency_report_data_message.py | 8 +- .../transparency_report_entity_message.py | 8 +- .../model/transparency_report_file.py | 6 +- .../model/update_coupon.py} | 40 +- .../model/update_coupon_request.py | 269 + .../model/update_coupon_resource.py | 277 + .../model/video_detail.py} | 39 +- .../model/write_model_ad_set_id.py | 6 +- .../model/write_model_patch_ad_set.py | 8 +- .../model_utils.py | 4 +- .../models/__init__.py | 259 + .../rest.py | 4 +- sdks/marketingsolutions_2023-10/docs/Ad.md | 19 + .../docs/AdListResponse.md} | 6 +- .../docs/AdResource.md} | 6 +- .../docs/AdResponse.md} | 6 +- .../docs/AdSetAudienceLinkEntityV1.md} | 6 +- .../docs/AdSetAudienceLinkEntityV1Resource.md | 15 + .../docs/AdSetAudienceLinkEntityV1Response.md | 15 + .../docs/AdSetAudienceLinkInputEntityV1.md | 13 + .../docs/AdSetCategoryBid.md | 0 .../docs/AdSetCategoryBidListResponse.md | 0 .../docs/AdSetCategoryBidResource.md | 0 .../docs/AdSetDeliveryLimitations.md | 0 .../docs/AdSetDisplayMultiplier.md | 0 .../AdSetDisplayMultiplierListResponse.md | 0 .../docs/AdSetDisplayMultiplierResource.md | 0 .../docs/AdSetFrequencyCapping.md | 0 .../docs/AdSetGeoLocation.md | 0 .../docs/AdSetSearchFilter.md | 0 .../docs/AdSetTargeting.md | 0 .../docs/AdSetTargetingRule.md | 0 .../docs/AdWrite.md | 19 + .../docs/AdWriteRequest.md} | 6 +- .../docs/AdWriteResource.md} | 7 +- .../docs/AdaptiveAttributes.md | 24 + .../docs/AdaptiveColors.md | 18 + .../docs/AdaptiveWriteAttributes.md | 24 + .../docs/AdvertiserApi.md | 20 +- .../docs/AlgebraNodeV1.md} | 11 +- .../docs/AnalyticsApi.md | 86 +- .../docs/ApplicationSummaryModel.md | 0 .../docs/ApplicationSummaryModelResource.md | 0 .../docs/ApplicationSummaryModelResponse.md | 0 .../docs/AudienceApi.md | 1826 ++++ .../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} | 10 +- .../docs/AudienceEntityV1Resource.md} | 7 +- .../docs/AudienceError.md | 0 .../docs/AudienceEstimateSizeEntityV1.md | 14 + .../AudienceEstimateSizeEntityV1Resource.md | 14 + .../docs/AudienceEstimateSizeInputV1.md | 13 + .../docs/AudienceIdEntityV1ListResponse.md | 15 + .../docs/AudienceIdEntityV1Resource.md} | 8 +- .../docs/AudienceNameDescription.md | 0 .../docs/AudienceSearchEntityV1.md | 16 + .../docs/AudienceSearchEntityV1Resource.md | 14 + .../docs/AudienceSearchInputV1.md} | 6 +- .../docs/AudienceSearchMetadataV1.md} | 8 +- .../docs/AudienceSegmentBulkCreateInputV1.md} | 7 +- .../docs/AudienceSegmentBulkDeleteInputV1.md | 13 + .../docs/AudienceSegmentBulkUpdateInputV1.md | 13 + ...ienceSegmentComputeSizeEntityV1Resource.md | 15 + .../AudienceSegmentComputeSizesInputV1.md} | 8 +- .../docs/AudienceSegmentCreateEntityV1.md | 21 + .../AudienceSegmentCreateEntityV1Resource.md | 14 + .../AudienceSegmentDeleteEntityV1Resource.md | 15 + .../docs/AudienceSegmentEntityV1.md | 25 + ...enceSegmentSearchMetadataV1ListResponse.md | 16 + .../AudienceSegmentEntityV1ListResponse.md} | 10 +- .../docs/AudienceSegmentEntityV1Resource.md} | 8 +- .../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} | 6 +- ...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} | 8 +- .../docs/AudienceSizeEstimationV1.md} | 6 +- .../docs/AudienceSizeEstimationV1Resource.md | 14 + .../docs/AudienceSizeEstimationV1Response.md | 15 + .../docs/AudienceUpdateEntityV1.md} | 8 +- .../docs/AudienceUpdateEntityV1Resource.md} | 8 +- .../docs/AudienceWarning.md | 0 .../docs/BasicAudienceDefinition.md | 0 .../docs/BehavioralV1.md | 16 + .../docs/Campaign.md | 0 .../docs/CampaignApi.md | 591 +- .../docs/CampaignListResponse.md | 0 .../docs/CampaignReadResource.md | 0 .../docs/CampaignResponse.md | 0 .../docs/CampaignSearchFilters.md | 0 .../docs/CampaignSearchRequest.md | 0 .../docs/CampaignSpendLimit.md | 0 .../docs/CampaignSpendLimitV23Q1.md} | 2 +- .../docs/CampaignV23Q1.md} | 5 +- .../docs/CampaignV23Q1Resource.md} | 4 +- .../docs/CampaignV23Q1Response.md} | 6 +- .../docs/CommonProblem.md | 0 .../docs/ContactListStatisticsEntityV1.md | 15 + .../ContactListStatisticsEntityV1Resource.md | 15 + .../ContactListStatisticsEntityV1Response.md | 15 + .../docs/ContactListV1.md | 13 + .../docs/ContactlistAmendment.md | 0 .../docs/ContactlistAmendmentAttributes.md | 0 .../docs/ContactlistAmendmentRequest.md | 0 .../docs/ContactlistOperation.md | 0 .../docs/ContactlistOperationAttributes.md | 0 .../marketingsolutions_2023-10/docs/Coupon.md | 26 + .../docs/CouponListResponse.md} | 6 +- .../docs/CouponResource.md} | 7 +- .../docs/CouponResponse.md} | 8 +- .../docs/CouponSupportedSizes.md | 14 + .../docs/CouponSupportedSizesResource.md} | 7 +- .../docs/CouponSupportedSizesResponse.md | 15 + .../docs/CreateAdSet.md | 22 + .../docs/CreateAdSetBidding.md | 14 + .../docs/CreateAdSetBudget.md | 17 + .../docs/CreateAdSetGeoLocation.md | 15 + .../docs/CreateAdSetRequest.md} | 6 +- .../docs/CreateAdSetResource.md} | 4 +- .../docs/CreateAdSetSchedule.md | 14 + .../docs/CreateAdSetTargeting.md} | 8 +- .../docs/CreateCampaign.md | 16 + .../docs/CreateCampaignRequest.md | 13 + .../docs/CreateCampaignResource.md} | 4 +- .../docs/CreateCampaignSpendLimit.md} | 8 +- .../docs/CreateCoupon.md | 23 + .../docs/CreateCouponRequest.md} | 6 +- .../docs/CreateCouponResource.md} | 7 +- .../docs/CreateImageSlide.md} | 8 +- .../docs/Creative.md | 23 + .../docs/CreativeApi.md | 1775 ++++ .../docs/CreativeListResponse.md} | 8 +- .../docs/CreativeResource.md | 15 + .../docs/CreativeResponse.md} | 10 +- .../docs/CreativeWrite.md | 20 + .../docs/CreativeWriteRequest.md} | 6 +- .../docs/CreativeWriteResource.md | 15 + .../docs/CriteoApiError.md | 0 .../docs/CriteoApiWarning.md | 0 .../docs/DeleteAudienceContactListResponse.md | 0 .../docs/DynamicAttributes.md | 19 + .../docs/DynamicWriteAttributes.md | 19 + .../docs/EntityOfPortfolioMessage.md | 0 .../docs/ErrorCodeResponse.md | 0 .../docs/GatewayApi.md | 20 +- .../docs/GetPortfolioResponse.md | 0 .../docs/HtmlTagAttributes.md | 13 + .../docs/HtmlTagWriteAttributes.md | 13 + .../docs/ImageAttributes.md} | 9 +- .../docs/ImageSet.md | 14 + .../docs/ImageSetBase64.md | 14 + .../docs/ImageShape.md | 14 + .../docs/ImageSlide.md} | 8 +- .../docs/ImageWriteAttributes.md | 14 + .../InMarketAudienceSegmentBrandEntityV1.md | 14 + ...udienceSegmentBrandEntityV1ListResponse.md | 15 + ...ketAudienceSegmentBrandEntityV1Resource.md | 15 + ...InMarketAudienceSegmentInterestEntityV1.md | 13 + ...nceSegmentInterestEntityV1ListResponse.md} | 10 +- ...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} | 8 +- .../docs/LocationUpdateV1.md | 15 + .../docs/LocationV1.md} | 9 +- .../docs/LookalikeCreateV1.md | 14 + .../docs/LookalikeUpdateV1.md | 13 + .../docs/LookalikeV1.md | 14 + .../docs/ModifyAudienceResponse.md | 0 .../docs/NillableAdSetTargetingRule.md | 0 .../docs/NillableAdSetTargetingRuleValue.md | 0 .../docs/NillableDateTime.md | 0 .../docs/NillableDecimal.md | 0 .../docs/NillableGenderV1.md | 13 + .../docs/NillableInt32.md | 13 + .../docs/NillableString.md} | 7 +- .../docs/PatchAdSet.md | 0 .../docs/PatchAdSetBidding.md | 0 .../docs/PatchAdSetBudget.md | 0 .../docs/PatchAdSetCategoryBid.md | 0 .../docs/PatchAdSetCategoryBidListRequest.md | 0 .../docs/PatchAdSetCategoryBidResource.md | 0 ...PatchAdSetCategoryBidResultListResponse.md | 0 .../PatchAdSetCategoryBidResultResource.md | 0 .../docs/PatchAdSetDisplayMultiplier.md | 0 .../PatchAdSetDisplayMultiplierListRequest.md | 0 .../PatchAdSetDisplayMultiplierResource.md | 0 ...dSetDisplayMultiplierResultListResponse.md | 0 ...tchAdSetDisplayMultiplierResultResource.md | 0 .../docs/PatchAdSetScheduling.md | 0 .../docs/PatchCampaign.md | 0 .../docs/PatchCampaignListRequest.md | 0 .../docs/PatchCampaignSpendLimit.md | 0 .../docs/PatchCampaignWriteResource.md | 0 .../docs/PatchResultCampaignListResponse.md | 0 .../docs/PatchResultCampaignReadResource.md | 0 .../docs/PlacementsReportQueryDataMessage.md | 0 .../PlacementsReportQueryEntityMessage.md | 0 .../docs/PlacementsReportQueryMessage.md | 0 .../docs/PointOfInterestV1.md} | 8 +- .../docs/PortfolioMessage.md | 0 .../docs/ProblemDetails.md | 0 .../docs/ProblemsDetails.md | 0 .../docs/ProspectingCreateV1.md | 15 + .../docs/ProspectingUpdateV1.md | 15 + .../docs/ProspectingV1.md | 15 + .../docs/ReadAdSet.md | 0 .../docs/ReadAdSetBidding.md | 0 .../docs/ReadAdSetBudget.md | 0 .../docs/ReadAdSetSchedule.md | 0 .../docs/ReadModelAdSetId.md | 0 .../docs/ReadModelReadAdSet.md | 0 .../docs/RequestAdSetSearch.md | 0 .../docs/RequestsAdSetId.md | 0 .../docs/RequestsPatchAdSet.md | 0 .../docs/ResponseAdSetId.md | 0 .../docs/ResponseReadAdSet.md | 0 .../docs/ResponsesAdSetId.md | 0 .../docs/ResponsesReadAdSet.md | 0 .../docs/RetargetingCreateV1.md | 15 + .../docs/RetargetingUpdateV1.md} | 8 +- .../docs/RetargetingV1.md} | 9 +- sdks/marketingsolutions_2023-10/docs/Size.md | 14 + .../docs/StatisticsReportQueryMessage.md | 0 sdks/marketingsolutions_2023-10/docs/Tag.md | 14 + .../TransactionsReportQueryDataMessage.md | 0 .../TransactionsReportQueryEntityMessage.md | 0 .../docs/TransactionsReportQueryMessage.md | 0 .../docs/TransparencyQueryMessage.md | 0 .../docs/TransparencyReportAttributes.md | 0 .../docs/TransparencyReportDataMessage.md | 0 .../docs/TransparencyReportEntityMessage.md | 0 .../docs/TransparencyReportFile.md | 0 .../docs/UpdateCoupon.md | 14 + .../docs/UpdateCouponRequest.md} | 6 +- .../docs/UpdateCouponResource.md | 15 + .../docs/VideoDetail.md | 15 + .../docs/WriteModelAdSetId.md | 0 .../docs/WriteModelPatchAdSet.md | 0 .../requirements.txt | 0 .../setup.cfg | 0 .../setup.py | 8 +- .../test-requirements.txt | 0 .../example_application_with_auth_code.py | 4 +- ...ple_application_with_client_credentials.py | 4 +- .../example_application_with_refresh_token.py | 4 +- .../test/test_gateway_api.py | 6 +- .../tox.ini | 2 +- .../.openapi-generator/FILES | 18 - sdks/marketingsolutions_preview/README.md | 15 +- .../__init__.py | 2 +- .../api/audience_api.py | 12 +- .../api/reco_api.py | 139 - .../api_client.py | 2 +- .../configuration.py | 2 +- .../model/ok_response.py | 283 - .../model/on_site_reco_request.py | 18 +- .../model/preview_error.py | 299 - .../model/preview_fail_response.py | 283 - .../model/preview_warning.py | 299 - .../model/product.py | 20 +- .../model/product_set_preview.py | 281 - .../model/product_set_statistics.py | 281 - .../model/product_set_statistics_query.py | 281 - .../model/recommended_product.py | 4 + .../model/rules.py | 303 - .../model/user_event.py | 288 - .../models/__init__.py | 9 - .../docs/AudienceApi.md | 18 +- .../docs/CatalogApi.md | 4 + .../docs/OkResponse.md | 14 - .../docs/OnSiteRecoRequest.md | 5 +- .../docs/OnSiteRecommendationApi.md | 7 - .../docs/PreviewError.md | 18 - .../docs/PreviewFailResponse.md | 14 - .../docs/PreviewWarning.md | 18 - .../docs/Product.md | 6 +- .../docs/ProductSetPreview.md | 14 - .../docs/ProductSetStatistics.md | 15 - .../docs/ProductSetStatisticsQuery.md | 14 - .../docs/RecoApi.md | 103 - .../docs/RecommendedProduct.md | 1 + sdks/marketingsolutions_preview/docs/Rules.md | 15 - .../docs/UserEvent.md | 15 - sdks/marketingsolutions_preview/setup.py | 6 +- sdks/retailmedia_2022-07/.gitignore | 66 - .../.openapi-generator/FILES | 328 - .../.openapi-generator/VERSION | 1 - .../__init__.py | 31 - .../api/audience_api.py | 340 - .../api/campaign_api.py | 7807 ----------------- .../api_client.py | 898 -- .../api_client_builder.py | 37 - .../criteo_rest.py | 75 - .../exceptions.py | 158 - .../flow_constants.py | 5 - .../model/audience_target202110_request.py | 269 - .../model/bad_request.py | 269 - .../model/category202204.py | 281 - .../model/choice_option.py | 281 - .../model/choice_variable_value.py | 269 - .../model/color_variable_value.py | 274 - .../create_retail_media_audience_response.py | 283 - .../model/creative202110_list_response.py | 281 - .../model/customer_list_details.py | 269 - .../model/envelope_report_request.py | 275 - .../model/envelope_report_status.py | 275 - .../model/error.py | 318 - ...external_auction_line_item_create_model.py | 338 - ...external_auction_line_item_update_model.py | 338 - .../model/external_audience_target202110.py | 280 - .../model/external_balance202110.py | 335 - .../model/external_brand.py | 273 - .../model/external_catalog_status.py | 312 - .../model/external_post_campaign.py | 269 - ..._preferred_line_item_update_model202110.py | 335 - .../model/external_store_target202110.py | 280 - ..._preferred_line_item_create_model202110.py | 273 - ...itable_campaign_attributes_and_campaign.py | 285 - .../json_api_page_response_of_account.py | 293 - ...n_api_single_response_of_catalog_status.py | 287 - .../model/keyword_target202110_request.py | 269 - .../model/map_string.py | 259 - .../model/page_metadata.py | 291 - .../preferred_line_item202110_response.py | 281 - ...ed_line_item_update_model202110_request.py | 269 - .../model/problem_details.py | 305 - .../model/report_request.py | 281 - .../model/report_request_attributes.py | 338 - .../model/report_status.py | 287 - .../model/report_status_attributes.py | 299 - .../model/resource_of_auction_line_item.py | 277 - ...ource_of_auction_line_item_update_model.py | 277 - .../model/resource_of_creative202207.py | 277 - .../model/resource_of_template.py | 277 - .../store_ids_update_model202110_request.py | 269 - .../model/text_variable_specification.py | 263 - .../model/user_behavior_details.py | 306 - ...of_add_to_basket_ids_update_model202110.py | 273 - ...urce_of_audience_ids_update_model202110.py | 273 - ...e_type_resource_of_keyword_target202110.py | 273 - .../models/__init__.py | 156 - .../criteo_api_retailmedia_v2022_07/rest.py | 352 - sdks/retailmedia_2022-07/docs/AnalyticsApi.md | 399 - .../docs/ApplicationSummaryModel.md | 17 - sdks/retailmedia_2022-07/docs/AudienceApi.md | 222 - .../retailmedia_2022-07/docs/CommonProblem.md | 21 - sdks/retailmedia_2022-07/docs/Error.md | 20 - .../docs/ExternalCampaign.md | 27 - ...OfEditableCampaignAttributesAndCampaign.md | 15 - .../docs/JsonApiPageResponseOfCampaign.md | 16 - sdks/retailmedia_2022-07/docs/MapString.md | 12 - .../retailmedia_2022-07/docs/ReportRequest.md | 14 - .../docs/ReportRequestAttributes.md | 22 - sdks/retailmedia_2022-07/docs/ReportStatus.md | 15 - .../docs/ReportStatusAttributes.md | 19 - .../docs/ResourceOfCreative202207.md | 15 - sdks/retailmedia_2022-07/requirements.txt | 3 - sdks/retailmedia_2022-07/setup.cfg | 2 - .../retailmedia_2022-07/test-requirements.txt | 1 - ...ple_application_with_client_credentials.py | 22 - .../example_application_with_refresh_token.py | 27 - .../test/test_gateway_api.py | 62 - sdks/retailmedia_2022-07/tox.ini | 9 - sdks/retailmedia_2022-10/.gitignore | 66 - sdks/retailmedia_2022-10/.gitlab-ci.yml | 24 - .../.openapi-generator/FILES | 328 - .../.openapi-generator/VERSION | 1 - sdks/retailmedia_2022-10/README.md | 212 - .../__init__.py | 31 - .../api/__init__.py | 3 - .../api/audience_api.py | 340 - .../api/gateway_api.py | 161 - .../apis/__init__.py | 20 - .../configuration.py | 461 - .../criteo_api_client.py | 11 - .../criteo_auth.py | 121 - .../flow_constants.py | 5 - .../model/__init__.py | 5 - .../model/application_summary_model.py | 279 - .../model/asset.py | 277 - .../auction_line_item_paged_list_response.py | 287 - ...audience_ids_update_model202110_request.py | 269 - .../model/audience_target202110_response.py | 281 - .../model/bad_request.py | 269 - .../balance202110_paged_list_response.py | 287 - .../balance_campaign202110_list_request.py | 269 - ...ance_campaign202110_paged_list_response.py | 287 - .../model/choice_variable_specification.py | 283 - .../model/common_error.py | 301 - .../common_line_item_paged_list_response.py | 287 - .../model/common_line_item_response.py | 281 - .../model/common_problem.py | 306 - .../model/common_warning.py | 301 - .../create_retail_media_audience_body.py | 281 - .../create_retail_media_audience_request.py | 275 - .../model/creative202207.py | 340 - .../model/creative202207_response.py | 281 - .../model/creative_create_model202207.py | 297 - .../model/creative_update_model202207.py | 297 - .../model/envelope_report_request.py | 275 - .../model/envelope_report_status.py | 275 - .../model/error.py | 318 - .../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 - ...xternal_audience_ids_update_model202110.py | 269 - .../model/external_campaign.py | 379 - .../model/external_campaign_attributes.py | 334 - .../model/external_catalog_request.py | 270 - .../model/external_common_line_item.py | 347 - .../external_editable_campaign_attributes.py | 325 - .../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 - .../model/external_post_campaign.py | 269 - .../external_preferred_line_item202110.py | 373 - .../model/external_put_campaign.py | 269 - .../model/external_retailer.py | 281 - .../model/external_retailer_pages202110.py | 263 - .../external_store_ids_update_model202110.py | 269 - .../model/files_variable_value.py | 271 - .../model/files_variables_specification.py | 290 - ...h_id_of_int64_and_campaign_and_campaign.py | 285 - ...4_and_catalog_status_and_catalog_status.py | 285 - ...h_id_of_int64_and_retailer_and_retailer.py | 285 - .../model/json_api_page_response_of_brand.py | 293 - .../json_api_page_response_of_campaign.py | 293 - .../json_api_page_response_of_retailer.py | 293 - .../json_api_request_of_catalog_request.py | 269 - .../model/keyword_target202110_response.py | 281 - .../model/map_string.py | 259 - ...red_line_item202110_paged_list_response.py | 287 - ...ed_line_item_create_model202110_request.py | 269 - ...moted_product202110_paged_list_response.py | 287 - .../model/report_request.py | 281 - .../model/report_request_attributes.py | 338 - .../model/report_status.py | 287 - .../model/report_status_attributes.py | 299 - .../model/resource_of_creative202207.py | 277 - .../resource_of_preferred_line_item202110.py | 277 - ..._preferred_line_item_update_model202110.py | 277 - .../resource_of_promoted_product202110.py | 277 - .../model/retail_media_audience.py | 297 - .../model/section.py | 281 - .../model/store_target202110_request.py | 269 - .../model/store_target202110_response.py | 281 - .../model/template.py | 345 - .../model/template_response.py | 281 - .../model/template_variable.py | 310 - .../model/template_variable_value.py | 303 - .../model/text_variable_value.py | 269 - ...esource_of_store_ids_update_model202110.py | 273 - ...lue_type_resource_of_store_target202110.py | 273 - .../model_utils.py | 2058 ----- .../models/__init__.py | 156 - .../AddToBasketIdsUpdateModel202110Request.md | 13 - .../docs/AddToBasketTarget202110Request.md | 13 - .../docs/AddToBasketTarget202110Response.md | 15 - sdks/retailmedia_2022-10/docs/AnalyticsApi.md | 399 - .../docs/ApplicationSummaryModel.md | 17 - .../docs/AuctionLineItemCreateModelRequest.md | 13 - .../docs/AuctionLineItemPagedListResponse.md | 16 - .../docs/AuctionLineItemResponse.md | 15 - sdks/retailmedia_2022-10/docs/AudienceApi.md | 222 - .../AudienceIdsUpdateModel202110Request.md | 13 - .../docs/AudienceTarget202110Request.md | 13 - .../docs/AudienceTarget202110Response.md | 15 - .../docs/Balance202110PagedListResponse.md | 16 - .../docs/BalanceCampaign202110ListRequest.md | 13 - .../BalanceCampaign202110PagedListResponse.md | 16 - sdks/retailmedia_2022-10/docs/CampaignApi.md | 5434 ------------ .../docs/Category202204.md | 15 - .../docs/Category202204ListResponse.md | 15 - sdks/retailmedia_2022-10/docs/ChoiceOption.md | 14 - .../docs/ChoiceVariableSpecification.md | 15 - .../docs/ChoiceVariableValue.md | 13 - .../docs/ColorVariableValue.md | 13 - sdks/retailmedia_2022-10/docs/CommonError.md | 20 - .../docs/CommonLineItemPagedListResponse.md | 16 - .../docs/CommonLineItemResponse.md | 15 - .../retailmedia_2022-10/docs/CommonProblem.md | 21 - .../retailmedia_2022-10/docs/CommonWarning.md | 20 - .../docs/CreateRetailMediaAudience.md | 15 - .../docs/CreateRetailMediaAudienceBody.md | 14 - .../docs/CreateRetailMediaAudienceRequest.md | 13 - .../docs/CreateRetailMediaAudienceResponse.md | 15 - .../docs/Creative202110.md | 18 - .../docs/Creative202207.md | 21 - .../docs/CreativeCreateModel202207.md | 17 - .../docs/CreativeUpdateModel202207.md | 17 - .../docs/CustomerListDetails.md | 13 - .../docs/EnvelopeReportRequest.md | 13 - .../docs/EnvelopeReportStatus.md | 13 - sdks/retailmedia_2022-10/docs/Error.md | 20 - .../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_2022-10/docs/ExternalBrand.md | 13 - .../docs/ExternalCampaignAttributes.md | 20 - .../docs/ExternalCatalogRequest.md | 14 - .../docs/ExternalCatalogStatus.md | 19 - .../docs/ExternalCommonLineItem.md | 24 - .../ExternalEditableCampaignAttributes.md | 18 - .../docs/ExternalKeywordTarget202110.md | 13 - .../docs/ExternalLineItemPage202110.md | 15 - .../ExternalLineItemPageCategory202110.md | 14 - .../docs/ExternalPreferredLineItem202110.md | 27 - ...ernalPreferredLineItemCreateModel202110.md | 22 - ...ernalPreferredLineItemUpdateModel202110.md | 21 - .../docs/ExternalPromotedProduct202110.md | 13 - .../docs/ExternalPutCampaign.md | 13 - .../docs/ExternalRetailer.md | 14 - .../docs/ExternalStoreIdsUpdateModel202110.md | 13 - .../docs/ExternalStoreTarget202110.md | 14 - .../docs/FilesVariableValue.md | 13 - .../docs/FilesVariablesSpecification.md | 16 - sdks/retailmedia_2022-10/docs/GatewayApi.md | 90 - .../docs/HyperlinkVariableValue.md | 13 - ...putResourceOfAuctionLineItemCreateModel.md | 14 - ...rceOfPreferredLineItemCreateModel202110.md | 14 - ...BodyWithIdOfInt64AndCampaignAndCampaign.md | 15 - ...OfInt64AndCatalogStatusAndCatalogStatus.md | 15 - ...BodyWithIdOfInt64AndRetailerAndRetailer.md | 15 - ...ithoutIdOfCampaignAttributesAndCampaign.md | 14 - ...houtIdOfCatalogRequestAndCatalogRequest.md | 14 - .../docs/JsonApiPageResponseOfAccount.md | 16 - .../docs/JsonApiPageResponseOfCampaign.md | 16 - .../docs/JsonApiPageResponseOfRetailer.md | 16 - .../docs/JsonApiRequestOfCatalogRequest.md | 13 - .../docs/JsonApiSingleResponseOfCampaign.md | 15 - .../docs/KeywordTarget202110Request.md | 13 - .../docs/KeywordTarget202110Response.md | 15 - sdks/retailmedia_2022-10/docs/MapString.md | 12 - sdks/retailmedia_2022-10/docs/PageMetadata.md | 18 - ...referredLineItem202110PagedListResponse.md | 16 - .../docs/PreferredLineItem202110Response.md | 15 - ...eferredLineItemCreateModel202110Request.md | 13 - ...eferredLineItemUpdateModel202110Request.md | 13 - .../docs/ProblemDetails.md | 21 - .../docs/PromotedProduct202110ListRequest.md | 13 - .../PromotedProduct202110PagedListResponse.md | 16 - .../retailmedia_2022-10/docs/ReportRequest.md | 14 - .../docs/ReportRequestAttributes.md | 22 - sdks/retailmedia_2022-10/docs/ReportStatus.md | 15 - .../docs/ReportStatusAttributes.md | 19 - .../docs/ResourceOfAuctionLineItem.md | 15 - .../ResourceOfAuctionLineItemUpdateModel.md | 15 - .../docs/ResourceOfBalance202110.md | 15 - .../docs/ResourceOfCommonLineItem.md | 15 - .../docs/ResourceOfCreative202110.md | 15 - .../docs/ResourceOfCreative202207.md | 15 - .../docs/ResourceOfPreferredLineItem202110.md | 15 - ...rceOfPreferredLineItemUpdateModel202110.md | 15 - .../docs/ResourceOfPromotedProduct202110.md | 15 - sdks/retailmedia_2022-10/docs/Section.md | 14 - .../docs/StoreIdsUpdateModel202110Request.md | 13 - .../docs/StoreTarget202110Request.md | 13 - .../docs/StoreTarget202110Response.md | 15 - sdks/retailmedia_2022-10/docs/Template.md | 24 - .../docs/TemplateListResponse.md | 15 - .../docs/TemplateVariable.md | 18 - .../docs/TemplateVariableValue.md | 18 - .../docs/TextVariableSpecification.md | 13 - ...sourceOfAddToBasketIdsUpdateModel202110.md | 14 - ...ueTypeResourceOfAddToBasketTarget202110.md | 14 - ...eResourceOfAudienceIdsUpdateModel202110.md | 14 - ...ValueTypeResourceOfAudienceTarget202110.md | 14 - .../ValueTypeResourceOfKeywordTarget202110.md | 14 - ...TypeResourceOfStoreIdsUpdateModel202110.md | 14 - .../ValueTypeResourceOfStoreTarget202110.md | 14 - sdks/retailmedia_2022-10/requirements.txt | 3 - sdks/retailmedia_2022-10/setup.cfg | 2 - sdks/retailmedia_2022-10/setup.py | 68 - .../retailmedia_2022-10/test-requirements.txt | 1 - .../example_application_with_auth_code.py | 27 - .../.openapi-generator/FILES | 38 +- sdks/retailmedia_2023-01/README.md | 25 +- .../__init__.py | 2 +- .../api/analytics_api.py | 209 +- .../api_client.py | 8 +- .../configuration.py | 2 +- .../model/async_campaigns_report.py | 399 + ...t.py => async_campaigns_report_request.py} | 18 +- .../model/async_campaigns_report_resource.py | 273 + .../model/async_line_items_report.py | 400 + ....py => async_line_items_report_request.py} | 26 +- .../model/async_line_items_report_resource.py | 273 + .../model/async_report_response.py} | 28 +- .../model/envelope_report_status.py | 275 - .../model/error.py | 318 - .../model/external_balance202110.py | 14 +- .../model/map_string.py | 259 - .../model/report_outcome.py | 275 + .../model/report_request.py | 281 - .../model/report_request_attributes.py | 338 - .../model/report_status.py | 287 - ...tatus_attributes.py => status_response.py} | 65 +- .../model/status_response_resource.py} | 28 +- .../models/__init__.py | 19 +- sdks/retailmedia_2023-01/docs/AnalyticsApi.md | 218 +- .../docs/AsyncCampaignsReport.md | 25 + .../docs/AsyncCampaignsReportRequest.md} | 4 +- .../docs/AsyncCampaignsReportResource.md} | 4 +- .../docs/AsyncLineItemsReport.md | 25 + .../docs/AsyncLineItemsReportRequest.md} | 4 +- .../docs/AsyncLineItemsReportResource.md} | 4 +- .../docs/AsyncReportResponse.md | 15 + .../docs/EnvelopeReportRequest.md | 13 - sdks/retailmedia_2023-01/docs/Error.md | 20 - .../docs/ExternalBalance202110.md | 2 +- sdks/retailmedia_2023-01/docs/MapString.md | 12 - .../docs/ReportOutcome.md} | 7 +- .../retailmedia_2023-01/docs/ReportRequest.md | 14 - .../docs/ReportRequestAttributes.md | 22 - sdks/retailmedia_2023-01/docs/ReportStatus.md | 15 - .../docs/ReportStatusAttributes.md | 19 - .../docs/StatusResponse.md} | 13 +- .../docs/StatusResponseResource.md | 15 + sdks/retailmedia_2023-01/setup.py | 6 +- .../.openapi-generator/FILES | 38 +- sdks/retailmedia_2023-04/README.md | 25 +- .../__init__.py | 2 +- .../api/analytics_api.py | 209 +- .../api_client.py | 8 +- .../configuration.py | 2 +- .../model/async_campaigns_report.py | 399 + ...t.py => async_campaigns_report_request.py} | 18 +- .../model/async_campaigns_report_resource.py | 273 + .../model/async_line_items_report.py | 400 + ....py => async_line_items_report_request.py} | 26 +- .../model/async_line_items_report_resource.py | 273 + .../model/async_report_response.py} | 28 +- .../model/envelope_report_status.py | 275 - .../model/error.py | 318 - .../model/external_balance202110.py | 14 +- .../model/map_string.py | 259 - .../model/report_outcome.py | 275 + .../model/report_request.py | 281 - .../model/report_request_attributes.py | 338 - .../model/report_status.py | 287 - ...tatus_attributes.py => status_response.py} | 65 +- .../model/status_response_resource.py | 277 + .../models/__init__.py | 19 +- sdks/retailmedia_2023-04/docs/AnalyticsApi.md | 218 +- .../docs/AsyncCampaignsReport.md | 25 + .../docs/AsyncCampaignsReportRequest.md | 13 + .../docs/AsyncCampaignsReportResource.md | 14 + .../docs/AsyncLineItemsReport.md | 25 + .../docs/AsyncLineItemsReportRequest.md | 13 + .../docs/AsyncLineItemsReportResource.md | 14 + .../docs/AsyncReportResponse.md | 15 + .../docs/EnvelopeReportRequest.md | 13 - .../docs/EnvelopeReportStatus.md | 13 - sdks/retailmedia_2023-04/docs/Error.md | 20 - .../docs/ExternalBalance202110.md | 2 +- sdks/retailmedia_2023-04/docs/MapString.md | 12 - .../retailmedia_2023-04/docs/ReportOutcome.md | 14 + .../retailmedia_2023-04/docs/ReportRequest.md | 14 - .../docs/ReportRequestAttributes.md | 22 - sdks/retailmedia_2023-04/docs/ReportStatus.md | 15 - .../docs/ReportStatusAttributes.md | 19 - .../docs/StatusResponse.md | 20 + .../docs/StatusResponseResource.md | 15 + sdks/retailmedia_2023-04/setup.py | 6 +- .../.openapi-generator/FILES | 24 +- sdks/retailmedia_2023-07/README.md | 18 +- .../__init__.py | 2 +- .../api/analytics_api.py | 62 +- .../api_client.py | 8 +- .../configuration.py | 2 +- ...gn_report.py => async_campaigns_report.py} | 108 +- ...t.py => async_campaigns_report_request.py} | 16 +- ....py => async_campaigns_report_resource.py} | 16 +- ...m_report.py => async_line_items_report.py} | 104 +- ....py => async_line_items_report_request.py} | 16 +- ...py => async_line_items_report_resource.py} | 16 +- .../model/external_balance202110.py | 14 +- .../models/__init__.py | 12 +- sdks/retailmedia_2023-07/docs/AnalyticsApi.md | 70 +- .../docs/AsyncCampaignReport.md | 25 - .../docs/AsyncCampaignsReport.md | 25 + .../docs/AsyncCampaignsReportRequest.md | 13 + .../docs/AsyncCampaignsReportResource.md | 14 + .../docs/AsyncLineItemReport.md | 25 - .../docs/AsyncLineItemsReport.md | 25 + .../docs/AsyncLineItemsReportRequest.md | 13 + .../docs/AsyncLineItemsReportResource.md | 14 + .../docs/ExternalBalance202110.md | 2 +- sdks/retailmedia_2023-07/setup.py | 6 +- .../.gitignore | 0 .../.gitlab-ci.yml | 2 +- .../.openapi-generator/FILES | 442 + .../.openapi-generator/VERSION | 0 .../README.md | 111 +- .../__init__.py | 31 + .../api/__init__.py | 2 +- .../api/analytics_api.py | 349 +- .../api/audience_api.py} | 258 +- .../api/campaign_api.py | 3860 ++++++-- .../api/gateway_api.py | 10 +- .../api_client.py | 18 +- .../api_client_builder.py | 6 +- .../apis/__init__.py | 10 +- .../configuration.py | 10 +- .../criteo_api_client.py | 4 +- .../criteo_auth.py | 6 +- .../criteo_rest.py | 6 +- .../exceptions.py | 2 +- .../flow_constants.py | 0 .../model/__init__.py | 2 +- .../model/add_funds_to_balance_request.py | 8 +- ...o_basket_ids_update_model202110_request.py | 8 +- .../add_to_basket_target202110_request.py | 8 +- .../add_to_basket_target202110_response.py | 10 +- .../model/application_summary_model.py | 6 +- .../application_summary_model_resource.py | 8 +- .../application_summary_model_response.py | 10 +- .../model/asset.py | 6 +- .../model/asset_resource.py | 8 +- .../model/asset_response.py | 10 +- .../model/async_campaigns_report.py | 399 + .../model/async_campaigns_report_request.py | 269 + .../model/async_campaigns_report_resource.py | 273 + .../model/async_line_items_report.py | 400 + .../model/async_line_items_report_request.py | 269 + .../model/async_line_items_report_resource.py | 273 + .../model/async_report_response.py | 281 + .../model/async_revenue_report.py | 125 +- .../model/async_revenue_report_request.py | 8 +- .../model/async_revenue_report_resource.py | 8 +- .../auction_line_item_create_model_request.py | 8 +- .../auction_line_item_paged_list_response.py | 12 +- .../model/auction_line_item_response.py | 10 +- .../auction_line_item_update_model_request.py | 8 +- ...audience_ids_update_model202110_request.py | 8 +- .../model/audience_target202110_request.py | 8 +- .../model/audience_target202110_response.py | 10 +- .../balance202110_paged_list_response.py | 12 +- .../balance_campaign202110_list_request.py | 8 +- ...ance_campaign202110_paged_list_response.py | 12 +- .../model/balance_response.py | 10 +- .../balance_response_paged_list_response.py | 12 +- .../model/campaign_attributes_v202301.py} | 58 +- .../model/campaign_v202301.py} | 60 +- .../model/category202204.py | 6 +- .../model/category202204_list_response.py | 10 +- .../model/change_dates_of_balance_request.py | 8 +- .../model/choice_option.py | 8 +- .../model/choice_variable_specification.py | 8 +- .../model/choice_variable_value.py | 6 +- .../model/color_variable_value.py | 6 +- .../model/common_error.py | 6 +- .../common_line_item_paged_list_response.py | 12 +- .../model/common_line_item_response.py | 10 +- .../model/common_problem.py | 6 +- .../model/common_status_code_response.py} | 34 +- .../model/common_warning.py | 6 +- .../model/create_balance_request.py | 8 +- .../model/create_retail_media_audience.py | 8 +- ...create_retail_media_audience_attributes.py | 6 +- .../create_retail_media_audience_body.py | 8 +- .../create_retail_media_audience_request.py | 8 +- .../create_retail_media_audience_response.py | 12 +- .../model/create_retail_media_audience_v2.py | 8 +- ...ate_retail_media_audience_v2_attributes.py | 8 +- .../create_retail_media_audience_v2_data.py | 8 +- ...create_retail_media_audience_v2_request.py | 8 +- .../model/create_user_behavior_segment_v2.py} | 65 +- .../model/creative202110.py | 6 +- .../model/creative202110_list_response.py | 10 +- .../model/creative202210.py} | 49 +- .../model/creative202210_list_response.py} | 24 +- .../model/creative202210_response.py} | 24 +- .../model/creative_create_model202207.py | 8 +- .../model/creative_update_model202207.py | 8 +- .../model/customer_list_details.py | 6 +- .../editable_campaign_attributes_v202301.py} | 54 +- .../model/external_account.py | 6 +- .../model/external_add_funds_to_balance.py | 6 +- ...al_add_to_basket_ids_update_model202110.py | 6 +- .../external_add_to_basket_target202110.py | 6 +- .../model/external_auction_line_item.py | 6 +- ...external_auction_line_item_create_model.py | 6 +- ...external_auction_line_item_update_model.py | 6 +- ...xternal_audience_ids_update_model202110.py | 6 +- .../model/external_audience_target202110.py | 6 +- .../model/external_balance202110.py | 20 +- .../model/external_balance_response.py | 6 +- .../model/external_brand.py | 6 +- .../model/external_catalog_request.py | 6 +- .../model/external_catalog_status.py | 6 +- .../model/external_change_dates_of_balance.py | 6 +- .../model/external_common_line_item.py | 6 +- .../model/external_create_balance.py | 6 +- .../model/external_keyword_target202110.py | 6 +- .../model/external_line_item_capping202110.py | 6 +- .../model/external_line_item_page202110.py | 8 +- .../external_line_item_page_category202110.py | 6 +- .../external_preferred_line_item202110.py | 10 +- ..._preferred_line_item_create_model202110.py | 10 +- ..._preferred_line_item_update_model202110.py | 10 +- .../model/external_promoted_product202110.py | 6 +- .../model/external_retailer.py | 6 +- .../model/external_retailer_pages202110.py | 6 +- .../external_store_ids_update_model202110.py | 6 +- .../model/external_store_target202110.py | 6 +- .../model/external_update_balance_model.py | 6 +- .../model/files_variable_value.py | 6 +- .../model/files_variables_specification.py | 6 +- ...age_of_audiences_by_account_id_response.py | 14 +- .../model/hyperlink_variable_value.py | 6 +- ...ource_of_auction_line_item_create_model.py | 8 +- ..._preferred_line_item_create_model202110.py | 8 +- ...ttributes_v202301_and_campaign_v202301.py} | 22 +- ...ith_id_of_int64_and_account_and_account.py | 8 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 8 +- ..._campaign_v202301_and_campaign_v202301.py} | 22 +- ...4_and_catalog_status_and_catalog_status.py | 8 +- ...tipliers_and_line_item_bid_multipliers.py} | 22 +- ...h_id_of_int64_and_retailer_and_retailer.py | 8 +- ...ttributes_v202301_and_campaign_v202301.py} | 22 +- ..._of_catalog_request_and_catalog_request.py | 8 +- .../json_api_page_response_of_account.py | 14 +- .../model/json_api_page_response_of_brand.py | 14 +- ..._api_page_response_of_campaign_v202301.py} | 42 +- .../json_api_page_response_of_retailer.py | 14 +- .../json_api_request_of_catalog_request.py | 8 +- ...pi_single_response_of_campaign_v202301.py} | 26 +- ...n_api_single_response_of_catalog_status.py | 12 +- ..._response_of_line_item_bid_multipliers.py} | 26 +- .../model/keyword_target202110_request.py | 8 +- .../model/keyword_target202110_response.py | 10 +- .../model/line_item_bid_multipliers.py} | 66 +- .../line_item_bid_multipliers_request.py | 269 + .../line_item_bid_multipliers_response.py} | 24 +- .../model/page_metadata.py | 6 +- .../model/page_type_environment.py} | 58 +- .../model/post_campaign_v202301.py} | 22 +- ...red_line_item202110_paged_list_response.py | 12 +- .../preferred_line_item202110_response.py | 10 +- ...ed_line_item_create_model202110_request.py | 8 +- ...ed_line_item_update_model202110_request.py | 8 +- .../model/problem_details.py | 6 +- .../promoted_product202110_list_request.py | 8 +- ...moted_product202110_paged_list_response.py | 12 +- .../model/put_campaign_v202301.py} | 22 +- .../model/report_outcome.py | 275 + .../model/resource_of_add_funds_to_balance.py | 8 +- .../model/resource_of_auction_line_item.py | 8 +- ...ource_of_auction_line_item_update_model.py | 8 +- .../model/resource_of_balance202110.py | 8 +- .../resource_of_balance_campaign202110.py | 6 +- .../model/resource_of_balance_response.py | 8 +- .../model/resource_of_category202204.py | 8 +- .../resource_of_change_dates_of_balance.py | 8 +- .../model/resource_of_common_line_item.py | 8 +- .../model/resource_of_create_balance.py | 8 +- .../model/resource_of_creative202110.py | 8 +- .../model/resource_of_creative202210.py} | 22 +- .../resource_of_line_item_bid_multipliers.py} | 24 +- .../resource_of_preferred_line_item202110.py | 8 +- ..._preferred_line_item_update_model202110.py | 8 +- .../resource_of_promoted_product202110.py | 8 +- .../model/resource_of_template.py | 8 +- .../model/resource_of_update_balance_model.py | 8 +- .../model/retail_media_audience.py | 8 +- .../model/retail_media_audience_attributes.py | 10 +- .../model/retail_media_audience_v2.py} | 36 +- .../retail_media_audience_v2_attributes.py} | 30 +- ...retail_media_audience_v2_list_response.py} | 40 +- .../retail_media_audience_v2_response.py | 10 +- ...ia_externalv1_add_remove_keyword_model.py} | 48 +- ...ia_externalv1_add_remove_keywords_model.py | 271 + ...alv1_add_remove_keywords_model_request.py} | 22 +- ...alv1_add_remove_keywords_model_resource.py | 283 + ..._media_externalv1_input_keywords_model.py} | 44 +- ...il_media_externalv1_keyword_data_model.py} | 79 +- .../retail_media_externalv1_keywords_model.py | 275 + ...dia_externalv1_keywords_model_resource.py} | 26 +- ...edia_externalv1_keywords_model_response.py | 285 + ...etail_media_externalv1_problem_details.py} | 71 +- ...media_externalv1_proposal_status_model.py} | 97 +- ...ternalv1_proposal_status_model_resource.py | 283 + ...ternalv1_proposal_status_model_response.py | 285 + ...tail_media_externalv1_resource_outcome.py} | 42 +- .../retail_media_externalv1_set_bid_model.py} | 34 +- ...retail_media_externalv1_set_bids_model.py} | 26 +- ...edia_externalv1_set_bids_model_request.py} | 22 +- ...dia_externalv1_set_bids_model_resource.py} | 26 +- .../model/section.py | 8 +- .../model/status_response.py} | 65 +- .../model/status_response_resource.py | 277 + .../store_ids_update_model202110_request.py | 8 +- .../model/store_target202110_request.py | 8 +- .../model/store_target202110_response.py | 10 +- .../model/template.py | 8 +- .../model/template_list_response.py | 10 +- .../model/template_response.py | 10 +- .../model/template_variable.py | 12 +- .../model/template_variable_value.py | 16 +- .../model/text_variable_specification.py | 6 +- .../model/text_variable_value.py | 6 +- .../model/update_balance_model_request.py | 8 +- .../model/user_behavior_details.py | 6 +- .../model/user_behavior_details_v2.py} | 46 +- ...of_add_to_basket_ids_update_model202110.py | 8 +- ..._resource_of_add_to_basket_target202110.py | 8 +- ...urce_of_audience_ids_update_model202110.py | 8 +- ..._type_resource_of_audience_target202110.py | 8 +- ...e_type_resource_of_keyword_target202110.py | 8 +- ...esource_of_store_ids_update_model202110.py | 8 +- ...lue_type_resource_of_store_target202110.py | 8 +- .../model_utils.py | 4 +- .../models/__init__.py | 213 + .../criteo_api_retailmedia_v2023_10}/rest.py | 4 +- .../docs/AddFundsToBalanceRequest.md | 0 .../AddToBasketIdsUpdateModel202110Request.md | 0 .../docs/AddToBasketTarget202110Request.md | 0 .../docs/AddToBasketTarget202110Response.md | 0 sdks/retailmedia_2023-10/docs/AnalyticsApi.md | 528 ++ .../docs/ApplicationSummaryModel.md | 0 .../docs/ApplicationSummaryModelResource.md | 0 .../docs/ApplicationSummaryModelResponse.md | 0 .../docs/Asset.md | 0 .../docs/AssetResource.md | 0 .../docs/AssetResponse.md | 0 .../docs/AsyncCampaignsReport.md | 25 + .../docs/AsyncCampaignsReportRequest.md | 13 + .../docs/AsyncCampaignsReportResource.md | 14 + .../docs/AsyncLineItemsReport.md | 25 + .../docs/AsyncLineItemsReportRequest.md | 13 + .../docs/AsyncLineItemsReportResource.md | 14 + .../docs/AsyncReportResponse.md | 15 + .../docs/AsyncRevenueReport.md | 28 + .../docs/AsyncRevenueReportRequest.md | 0 .../docs/AsyncRevenueReportResource.md | 0 .../docs/AuctionLineItemCreateModelRequest.md | 0 .../docs/AuctionLineItemPagedListResponse.md | 0 .../docs/AuctionLineItemResponse.md | 0 .../docs/AuctionLineItemUpdateModelRequest.md | 0 sdks/retailmedia_2023-10/docs/AudienceApi.md | 451 + .../AudienceIdsUpdateModel202110Request.md | 0 .../docs/AudienceTarget202110Request.md | 0 .../docs/AudienceTarget202110Response.md | 0 .../docs/Balance202110PagedListResponse.md | 0 .../docs/BalanceCampaign202110ListRequest.md | 0 .../BalanceCampaign202110PagedListResponse.md | 0 .../docs/BalanceResponse.md | 0 .../docs/BalanceResponsePagedListResponse.md | 0 .../docs/CampaignApi.md | 3769 +++++--- .../docs/CampaignAttributesV202301.md} | 9 +- .../docs/CampaignV202301.md} | 9 +- .../docs/Category202204.md | 0 .../docs/Category202204ListResponse.md | 0 .../docs/ChangeDatesOfBalanceRequest.md | 0 .../docs/ChoiceOption.md | 0 .../docs/ChoiceVariableSpecification.md | 0 .../docs/ChoiceVariableValue.md | 0 .../docs/ColorVariableValue.md | 0 .../docs/CommonError.md | 0 .../docs/CommonLineItemPagedListResponse.md | 0 .../docs/CommonLineItemResponse.md | 0 .../docs/CommonProblem.md | 0 .../docs/CommonStatusCodeResponse.md | 14 + .../docs/CommonWarning.md | 0 .../docs/CreateBalanceRequest.md | 0 .../docs/CreateRetailMediaAudience.md | 0 .../CreateRetailMediaAudienceAttributes.md | 0 .../docs/CreateRetailMediaAudienceBody.md | 0 .../docs/CreateRetailMediaAudienceRequest.md | 0 .../docs/CreateRetailMediaAudienceResponse.md | 0 .../docs/CreateRetailMediaAudienceV2.md | 0 .../CreateRetailMediaAudienceV2Attributes.md | 0 .../docs/CreateRetailMediaAudienceV2Data.md | 0 .../CreateRetailMediaAudienceV2Request.md | 0 .../docs/CreateUserBehaviorSegmentV2.md} | 12 +- .../docs/Creative202110.md | 0 .../docs/Creative202110ListResponse.md | 0 .../docs/Creative202210.md} | 7 +- .../docs/Creative202210ListResponse.md} | 4 +- .../docs/Creative202210Response.md} | 4 +- .../docs/CreativeCreateModel202207.md | 0 .../docs/CreativeUpdateModel202207.md | 0 .../docs/CustomerListDetails.md | 0 .../EditableCampaignAttributesV202301.md} | 7 +- .../docs/ExternalAccount.md | 0 .../docs/ExternalAddFundsToBalance.md | 0 ...ExternalAddToBasketIdsUpdateModel202110.md | 0 .../docs/ExternalAddToBasketTarget202110.md | 0 .../docs/ExternalAuctionLineItem.md | 0 .../ExternalAuctionLineItemCreateModel.md | 0 .../ExternalAuctionLineItemUpdateModel.md | 0 .../ExternalAudienceIdsUpdateModel202110.md | 0 .../docs/ExternalAudienceTarget202110.md | 0 .../docs/ExternalBalance202110.md | 2 +- .../docs/ExternalBalanceResponse.md | 0 .../docs/ExternalBrand.md | 0 .../docs/ExternalCatalogRequest.md | 0 .../docs/ExternalCatalogStatus.md | 0 .../docs/ExternalChangeDatesOfBalance.md | 0 .../docs/ExternalCommonLineItem.md | 0 .../docs/ExternalCreateBalance.md | 0 .../docs/ExternalKeywordTarget202110.md | 0 .../docs/ExternalLineItemCapping202110.md | 0 .../docs/ExternalLineItemPage202110.md | 0 .../ExternalLineItemPageCategory202110.md | 0 .../docs/ExternalPreferredLineItem202110.md | 0 ...ernalPreferredLineItemCreateModel202110.md | 0 ...ernalPreferredLineItemUpdateModel202110.md | 0 .../docs/ExternalPromotedProduct202110.md | 0 .../docs/ExternalRetailer.md | 0 .../docs/ExternalRetailerPages202110.md | 0 .../docs/ExternalStoreIdsUpdateModel202110.md | 0 .../docs/ExternalStoreTarget202110.md | 0 .../docs/ExternalUpdateBalanceModel.md | 0 .../docs/FilesVariableValue.md | 0 .../docs/FilesVariablesSpecification.md | 0 .../docs/GatewayApi.md | 20 +- .../GetPageOfAudiencesByAccountIdResponse.md | 0 .../docs/HyperlinkVariableValue.md | 0 ...putResourceOfAuctionLineItemCreateModel.md | 0 ...rceOfPreferredLineItemCreateModel202110.md | 0 ...ignAttributesV202301AndCampaignV202301.md} | 4 +- ...piBodyWithIdOfInt64AndAccountAndAccount.md | 0 ...sonApiBodyWithIdOfInt64AndBrandAndBrand.md | 0 ...64AndCampaignV202301AndCampaignV202301.md} | 4 +- ...OfInt64AndCatalogStatusAndCatalogStatus.md | 0 ...idMultipliersAndLineItemBidMultipliers.md} | 6 +- ...BodyWithIdOfInt64AndRetailerAndRetailer.md | 0 ...ignAttributesV202301AndCampaignV202301.md} | 4 +- ...houtIdOfCatalogRequestAndCatalogRequest.md | 0 .../docs/JsonApiPageResponseOfAccount.md | 0 .../docs/JsonApiPageResponseOfBrand.md | 0 .../JsonApiPageResponseOfCampaignV202301.md} | 6 +- .../docs/JsonApiPageResponseOfRetailer.md | 0 .../docs/JsonApiRequestOfCatalogRequest.md | 0 ...JsonApiSingleResponseOfCampaignV202301.md} | 4 +- .../JsonApiSingleResponseOfCatalogStatus.md | 0 ...SingleResponseOfLineItemBidMultipliers.md} | 6 +- .../docs/KeywordTarget202110Request.md | 0 .../docs/KeywordTarget202110Response.md | 0 .../docs/LineItemBidMultipliers.md | 20 + .../docs/LineItemBidMultipliersRequest.md} | 4 +- .../docs/LineItemBidMultipliersResponse.md} | 4 +- .../docs/PageMetadata.md | 0 .../docs/PageTypeEnvironment.md | 14 + .../docs/PostCampaignV202301.md} | 4 +- ...referredLineItem202110PagedListResponse.md | 0 .../docs/PreferredLineItem202110Response.md | 0 ...eferredLineItemCreateModel202110Request.md | 0 ...eferredLineItemUpdateModel202110Request.md | 0 .../docs/ProblemDetails.md | 0 .../docs/PromotedProduct202110ListRequest.md | 0 .../PromotedProduct202110PagedListResponse.md | 0 .../docs/PutCampaignV202301.md} | 4 +- .../retailmedia_2023-10/docs/ReportOutcome.md | 14 + .../docs/ResourceOfAddFundsToBalance.md | 0 .../docs/ResourceOfAuctionLineItem.md | 0 .../ResourceOfAuctionLineItemUpdateModel.md | 0 .../docs/ResourceOfBalance202110.md | 0 .../docs/ResourceOfBalanceCampaign202110.md | 0 .../docs/ResourceOfBalanceResponse.md | 0 .../docs/ResourceOfCategory202204.md | 0 .../docs/ResourceOfChangeDatesOfBalance.md | 0 .../docs/ResourceOfCommonLineItem.md | 0 .../docs/ResourceOfCreateBalance.md | 0 .../docs/ResourceOfCreative202110.md | 0 .../docs/ResourceOfCreative202210.md} | 4 +- .../docs/ResourceOfLineItemBidMultipliers.md} | 4 +- .../docs/ResourceOfPreferredLineItem202110.md | 0 ...rceOfPreferredLineItemUpdateModel202110.md | 0 .../docs/ResourceOfPromotedProduct202110.md | 0 .../docs/ResourceOfTemplate.md | 0 .../docs/ResourceOfUpdateBalanceModel.md | 0 .../docs/RetailMediaAudience.md | 0 .../docs/RetailMediaAudienceAttributes.md | 0 .../docs/RetailMediaAudienceV2.md} | 9 +- .../docs/RetailMediaAudienceV2Attributes.md} | 8 +- .../RetailMediaAudienceV2ListResponse.md} | 10 +- .../docs/RetailMediaAudienceV2Response.md | 0 ...ailMediaExternalv1AddRemoveKeywordModel.md | 15 + ...lMediaExternalv1AddRemoveKeywordsModel.md} | 6 +- ...xternalv1AddRemoveKeywordsModelRequest.md} | 6 +- ...ternalv1AddRemoveKeywordsModelResource.md} | 8 +- ...etailMediaExternalv1InputKeywordsModel.md} | 10 +- .../RetailMediaExternalv1KeywordDataModel.md | 18 + .../RetailMediaExternalv1KeywordsModel.md | 14 + ...ilMediaExternalv1KeywordsModelResource.md} | 7 +- ...ailMediaExternalv1KeywordsModelResponse.md | 15 + .../RetailMediaExternalv1ProblemDetails.md} | 18 +- ...etailMediaExternalv1ProposalStatusModel.md | 18 + ...aExternalv1ProposalStatusModelResource.md} | 7 +- ...iaExternalv1ProposalStatusModelResponse.md | 15 + .../RetailMediaExternalv1ResourceOutcome.md} | 9 +- .../docs/RetailMediaExternalv1SetBidModel.md | 14 + .../docs/RetailMediaExternalv1SetBidsModel.md | 13 + ...tailMediaExternalv1SetBidsModelRequest.md} | 8 +- ...ailMediaExternalv1SetBidsModelResource.md} | 7 +- .../docs/Section.md | 0 .../docs/StatusResponse.md | 20 + .../docs/StatusResponseResource.md | 15 + .../docs/StoreIdsUpdateModel202110Request.md | 0 .../docs/StoreTarget202110Request.md | 0 .../docs/StoreTarget202110Response.md | 0 .../docs/Template.md | 0 .../docs/TemplateListResponse.md | 0 .../docs/TemplateResponse.md | 0 .../docs/TemplateVariable.md | 0 .../docs/TemplateVariableValue.md | 0 .../docs/TextVariableSpecification.md | 0 .../docs/TextVariableValue.md | 0 .../docs/UpdateBalanceModelRequest.md | 0 .../docs/UserBehaviorDetails.md | 0 .../docs/UserBehaviorDetailsV2.md} | 8 +- ...sourceOfAddToBasketIdsUpdateModel202110.md | 0 ...ueTypeResourceOfAddToBasketTarget202110.md | 0 ...eResourceOfAudienceIdsUpdateModel202110.md | 0 ...ValueTypeResourceOfAudienceTarget202110.md | 0 .../ValueTypeResourceOfKeywordTarget202110.md | 0 ...TypeResourceOfStoreIdsUpdateModel202110.md | 0 .../ValueTypeResourceOfStoreTarget202110.md | 0 .../requirements.txt | 0 .../setup.cfg | 0 .../setup.py | 8 +- .../test-requirements.txt | 0 .../example_application_with_auth_code.py | 4 +- ...ple_application_with_client_credentials.py | 4 +- .../example_application_with_refresh_token.py | 4 +- .../test/test_gateway_api.py | 6 +- .../tox.ini | 2 +- .../.openapi-generator/FILES | 146 +- sdks/retailmedia_preview/README.md | 79 +- .../__init__.py | 4 +- .../api/analytics_api.py | 480 +- .../api/audience_api.py | 298 +- .../api/campaign_api.py | 1760 ++-- .../api/gateway_api.py | 2 +- .../api_client.py | 10 +- .../configuration.py | 6 +- .../exceptions.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- ...gn_report.py => async_campaigns_report.py} | 110 +- ...t.py => async_campaigns_report_request.py} | 18 +- ....py => async_campaigns_report_resource.py} | 18 +- ...m_report.py => async_line_items_report.py} | 106 +- ....py => async_line_items_report_request.py} | 18 +- ...py => async_line_items_report_resource.py} | 18 +- .../model/async_report_response.py | 2 +- .../model/brand.py | 2 +- .../model/brand_preview.py | 2 +- .../model/brand_preview_list_response.py | 2 +- .../model/campaign_budget_overrides.py | 2 +- .../model/campaign_daily_budget_override.py | 6 +- .../model/campaign_monthly_budget_override.py | 6 +- .../model/category.py | 2 +- .../model/category202204.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 +- .../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 +- .../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_response.py | 283 - .../model/create_user_behavior_segment_v2.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 +- .../model/daily_line_item_budget_override.py | 281 + .../model/export_report_column.py | 2 +- .../model/export_report_meta_data.py | 2 +- .../model/external_account.py | 2 +- .../model/external_brand.py | 2 +- .../model/external_catalog_request_preview.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_product_button_request.py | 2 +- .../model/external_product_button_response.py | 2 +- .../model/external_retailer.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 +- .../model/input_keywords.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/keywords.py | 2 +- .../model/line_item_bid_multipliers.py | 2 +- .../line_item_bid_multipliers_request.py | 2 +- .../line_item_bid_multipliers_response.py | 2 +- ...quest.py => line_item_budget_overrides.py} | 45 +- .../monthly_line_item_budeget_override.py | 283 + .../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 | 281 - ...sult.py => recommended_keywords_result.py} | 8 +- .../model/report_data_response_resource.py | 6 +- .../model/report_outcome.py | 2 +- .../model/report_response.py | 2 +- ...collection_outcome_of_sku_search_result.py | 2 +- .../model/resource_of_brand_preview.py | 2 +- .../resource_of_cpc_rate_card_preview.py | 2 +- .../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 +- .../model/resource_of_sku_search_result.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/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 | 2 +- .../retail_media_audience_v2_list_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.py | 2 +- .../model/sku_search_request_body.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_search_result.py | 2 +- .../model/sku_slim_data_preview.py | 2 +- .../sku_slim_data_preview_list_response.py | 2 +- .../model/sku_slim_data_v2.py | 2 +- .../model/sku_slim_data_v2_list_response.py | 2 +- .../model/status_response.py | 2 +- .../model/status_response_resource.py | 2 +- ...=> sync_attributed_transactions_report.py} | 43 +- ...attributed_transactions_report_request.py} | 18 +- ...ttributed_transactions_report_resource.py} | 18 +- ...ign_report.py => sync_campaigns_report.py} | 45 +- ...st.py => sync_campaigns_report_request.py} | 18 +- ...e.py => sync_campaigns_report_resource.py} | 18 +- ...em_report.py => sync_line_items_report.py} | 64 +- ...t.py => sync_line_items_report_request.py} | 18 +- ....py => sync_line_items_report_resource.py} | 18 +- .../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 +- ...urce_input_of_campaign_budget_overrides.py | 262 + ...rce_input_of_line_item_budget_overrides.py | 262 + ...e_resource_of_campaign_budget_overrides.py | 2 +- ...resource_of_line_item_budget_overrides.py} | 18 +- ...resource_of_recommended_keywords_result.py | 266 + ...ce_outcome_of_campaign_budget_overrides.py | 2 +- ..._outcome_of_line_item_budget_overrides.py} | 18 +- ..._outcome_of_recommended_keywords_result.py | 274 + .../model_utils.py | 2 +- .../models/__init__.py | 73 +- .../criteo_api_retailmedia_preview/rest.py | 2 +- sdks/retailmedia_preview/docs/AnalyticsApi.md | 394 +- .../docs/AsyncCampaignReport.md | 25 - .../docs/AsyncCampaignsReport.md | 25 + .../docs/AsyncCampaignsReportRequest.md | 13 + .../docs/AsyncCampaignsReportResource.md | 14 + .../docs/AsyncLineItemReport.md | 25 - .../docs/AsyncLineItemsReport.md | 25 + .../docs/AsyncLineItemsReportRequest.md | 13 + .../docs/AsyncLineItemsReportResource.md | 14 + .../docs/AsyncRevenueReport.md | 26 - .../AttributedTransactionReportRequest.md | 13 - .../AttributedTransactionReportResource.md | 14 - sdks/retailmedia_preview/docs/AudienceApi.md | 233 - sdks/retailmedia_preview/docs/CampaignApi.md | 940 +- .../docs/CampaignDailyBudgetOverride.md | 2 +- .../docs/CampaignMonthlyBudgetOverride.md | 2 +- .../docs/CreateRetailMediaAudience.md | 15 - .../CreateRetailMediaAudienceAttributes.md | 18 - .../docs/CreateRetailMediaAudienceBody.md | 14 - .../docs/CreateRetailMediaAudienceRequest.md | 13 - .../docs/CreateRetailMediaAudienceResponse.md | 15 - .../docs/DailyLineItemBudgetOverride.md | 15 + .../docs/LineItemBudgetOverrides.md | 13 + .../docs/LineItemReport.md | 25 - .../docs/MonthlyLineItemBudegetOverride.md | 15 + .../docs/ProductButtonResponse.md | 15 - ...Result.md => RecommendedKeywordsResult.md} | 4 +- .../docs/ReportDataResponseResource.md | 2 +- ...md => SyncAttributedTransactionsReport.md} | 10 +- ...SyncAttributedTransactionsReportRequest.md | 13 + ...yncAttributedTransactionsReportResource.md | 14 + ...mpaignReport.md => SyncCampaignsReport.md} | 14 +- .../docs/SyncCampaignsReportRequest.md} | 4 +- .../docs/SyncCampaignsReportResource.md} | 4 +- .../docs/SyncLineItemsReport.md | 25 + .../docs/SyncLineItemsReportRequest.md} | 4 +- ...urce.md => SyncLineItemsReportResource.md} | 4 +- ...ResourceInputOfCampaignBudgetOverrides.md} | 7 +- ...ResourceInputOfLineItemBudgetOverrides.md} | 7 +- ...ValueResourceOfLineItemBudgetOverrides.md} | 4 +- ...alueResourceOfRecommendedKeywordsResult.md | 13 + ...sourceOutcomeOfLineItemBudgetOverrides.md} | 4 +- ...ourceOutcomeOfRecommendedKeywordsResult.md | 14 + sdks/retailmedia_preview/setup.py | 6 +- 1843 files changed, 63012 insertions(+), 106874 deletions(-) delete mode 100644 sdks/marketingsolutions_2022-07/.openapi-generator/FILES delete mode 100644 sdks/marketingsolutions_2022-07/README.md delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/apis/__init__.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_api_client.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_auth.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_rest.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/__init__.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/models/__init__.py delete mode 100644 sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py delete mode 100644 sdks/marketingsolutions_2022-07/docs/AdvertiserApi.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/AnalyticsApi.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/AudienceApi.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/AudienceAttributes.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/CampaignApi.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/GatewayApi.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/NewAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-07/docs/ReplaceAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-07/setup.py delete mode 100644 sdks/marketingsolutions_2022-07/test/example_application_with_auth_code.py delete mode 100644 sdks/marketingsolutions_2022-07/test/example_application_with_client_credentials.py delete mode 100644 sdks/marketingsolutions_2022-07/test/example_application_with_refresh_token.py delete mode 100644 sdks/marketingsolutions_2022-10/.gitlab-ci.yml delete mode 100644 sdks/marketingsolutions_2022-10/.openapi-generator/FILES delete mode 100644 sdks/marketingsolutions_2022-10/README.md delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/__init__.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client_builder.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py delete mode 100644 sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/models/__init__.py delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetCategoryBid.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetDeliveryLimitations.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplier.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplierListResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetFrequencyCapping.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AdSetGeoLocation.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/Audience.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AudienceApi.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AudienceAttributes.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AudienceError.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AudienceNameDescription.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/AudienceWarning.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/BasicAudienceDefinition.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/CampaignSearchFilters.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ContactlistAmendment.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ContactlistOperation.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/CriteoApiError.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/CriteoApiWarning.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/DeleteAudienceContactListResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/DeleteAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/EntityOfPortfolioMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ErrorCodeResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/GetAudiencesResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/GetPortfolioResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ModifyAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NewAudience.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NewAudienceAttributes.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NewAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NillableDateTime.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/NillableDecimal.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSet.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetBudget.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBid.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidListRequest.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultListResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplier.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierListRequest.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResource.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchCampaign.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchCampaignListRequest.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchResultCampaignListResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PatchResultCampaignReadResource.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryDataMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/PortfolioMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReadAdSet.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReadAdSetBudget.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReadAdSetSchedule.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReadModelAdSetId.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReadModelReadAdSet.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReplaceAudience.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReplaceAudienceRequest.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ReplaceAudienceResponse.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/RequestsAdSetId.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/ResponsesReadAdSet.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/StatisticsReportQueryMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryDataMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransparencyQueryMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransparencyReportAttributes.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransparencyReportDataMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransparencyReportEntityMessage.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/TransparencyReportFile.md delete mode 100644 sdks/marketingsolutions_2022-10/docs/WriteModelPatchAdSet.md delete mode 100644 sdks/marketingsolutions_2022-10/test/test_gateway_api.py delete mode 100644 sdks/marketingsolutions_2022-10/tox.ini rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/.gitignore (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/.gitlab-ci.yml (87%) create mode 100644 sdks/marketingsolutions_2023-10/.openapi-generator/FILES rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/.openapi-generator/VERSION (100%) create mode 100644 sdks/marketingsolutions_2023-10/README.md create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api/__init__.py (73%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api/advertiser_api.py (94%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api/analytics_api.py (96%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/audience_api.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api/campaign_api.py (76%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/creative_api.py} (54%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api/gateway_api.py (94%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api_client.py (99%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/api_client_builder.py (87%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/apis/__init__.py (50%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/configuration.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/criteo_api_client.py (80%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/criteo_auth.py (95%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/criteo_rest.py (94%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/exceptions.py (99%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/flow_constants.py (100%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/__init__.py (82%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_list_response.py} (93%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_resource.py} (94%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_response.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1.py} (94%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_input_entity_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_category_bid.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_category_bid_list_response.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_category_bid_resource.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_delivery_limitations.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_display_multiplier.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_display_multiplier_list_response.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_display_multiplier_resource.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_frequency_capping.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_geo_location.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_search_filter.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_targeting.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/ad_set_targeting_rule.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write.py} (78%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_request.py} (94%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_attributes.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_colors.py} (75%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_write_attributes.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/algebra_node_v1.py} (89%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/application_summary_model.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/application_summary_model_resource.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/application_summary_model_response.py (97%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_create_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_delete_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_update_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_size_entity_v1_resource.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_sizes_input_v1.py} (92%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1.py} (87%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1_resource.py} (93%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_delete_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_audience_search_metadata_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_list_response.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_resource.py} (94%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/audience_error.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1.py} (89%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_list_response.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_resource.py} (93%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/audience_name_description.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1.py} (88%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1_resource.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_input_v1.py} (93%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_metadata_v1.py} (90%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_create_input_v1.py} (92%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_delete_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_update_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_sizes_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_delete_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_estimate_size_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_input_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_metadata_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1.py} (94%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_resource.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1.py} (87%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_response.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1.py} (79%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_list_response.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_resource.py} (93%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1_resource.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/audience_warning.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/basic_audience_definition.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/behavioral_v1.py} (85%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_list_response.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_read_resource.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_response.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_search_filters.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_search_request.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/campaign_spend_limit.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py} (96%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py} (91%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_resource.py} (94%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py} (93%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/common_problem.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1.py} (87%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_v1.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/contactlist_amendment.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/contactlist_amendment_attributes.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/contactlist_amendment_request.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/contactlist_operation.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/contactlist_operation_attributes.py (98%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_response.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes.py} (90%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_response.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py} (73%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_bidding.py} (86%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_budget.py} (87%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_geo_location.py} (90%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_request.py} (94%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_resource.py} (93%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_schedule.py} (91%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_targeting.py} (90%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_request.py} (93%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_resource.py} (93%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_spend_limit.py} (90%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon.py} (68%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_request.py} (93%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_image_slide.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative.py} (73%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_request.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_resource.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/criteo_api_error.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/criteo_api_warning.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/delete_audience_contact_list_response.py (97%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_attributes.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_write_attributes.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/entity_of_portfolio_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/error_code_response.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/get_portfolio_response.py (97%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_attributes.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_write_attributes.py} (92%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_attributes.py} (90%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set.py} (90%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set_base64.py} (88%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_shape.py} (91%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_slide.py} (88%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_write_attributes.py} (89%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1.py} (92%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_create_v1.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_size_estimation_v1.py} (81%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_update_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_v1.py} (77%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_create_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_size_estimation_v1.py} (89%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_update_v1.py} (86%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_create_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_update_v1.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_v1.py} (91%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/modify_audience_response.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/nillable_ad_set_targeting_rule.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/nillable_ad_set_targeting_rule_value.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/nillable_date_time.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/nillable_decimal.py (98%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_string.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set.py (96%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_bidding.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_budget.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_category_bid.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_category_bid_list_request.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_category_bid_resource.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_category_bid_result_list_response.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_category_bid_result_resource.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_display_multiplier.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_display_multiplier_list_request.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_display_multiplier_resource.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_display_multiplier_result_list_response.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_display_multiplier_result_resource.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_ad_set_scheduling.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_campaign.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_campaign_list_request.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_campaign_spend_limit.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_campaign_write_resource.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_result_campaign_list_response.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/patch_result_campaign_read_resource.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/placements_report_query_data_message.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/placements_report_query_entity_message.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/placements_report_query_message.py (98%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/portfolio_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/problem_details.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/problems_details.py (97%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py} (87%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_ad_set.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_ad_set_bidding.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_ad_set_budget.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_ad_set_schedule.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_model_ad_set_id.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/read_model_read_ad_set.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/request_ad_set_search.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/requests_ad_set_id.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/requests_patch_ad_set.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/response_ad_set_id.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/response_read_ad_set.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/responses_ad_set_id.py (97%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/responses_read_ad_set.py (97%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_create_v1.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_update_v1.py} (87%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/size.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/statistics_report_query_message.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/tag.py} (93%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transactions_report_query_data_message.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transactions_report_query_entity_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transactions_report_query_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transparency_query_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transparency_report_attributes.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transparency_report_data_message.py (97%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transparency_report_entity_message.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/transparency_report_file.py (98%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon.py} (89%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/video_detail.py} (87%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/write_model_ad_set_id.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model/write_model_patch_ad_set.py (98%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/model_utils.py (99%) create mode 100644 sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10}/rest.py (99%) create mode 100644 sdks/marketingsolutions_2023-10/docs/Ad.md rename sdks/{retailmedia_2022-07/docs/ApplicationSummaryModelResponse.md => marketingsolutions_2023-10/docs/AdListResponse.md} (78%) rename sdks/{retailmedia_2022-10/docs/AssetResource.md => marketingsolutions_2023-10/docs/AdResource.md} (80%) rename sdks/{retailmedia_2022-10/docs/ApplicationSummaryModelResponse.md => marketingsolutions_2023-10/docs/AdResponse.md} (78%) rename sdks/{retailmedia_2022-07/docs/BadRequest.md => marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1.md} (80%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Response.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkInputEntityV1.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetCategoryBid.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetCategoryBidListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetCategoryBidResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetDeliveryLimitations.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetDisplayMultiplier.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetDisplayMultiplierListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetDisplayMultiplierResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetFrequencyCapping.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetGeoLocation.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetSearchFilter.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetTargeting.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AdSetTargetingRule.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AdWrite.md rename sdks/{retailmedia_2022-07/docs/EnvelopeReportRequest.md => marketingsolutions_2023-10/docs/AdWriteRequest.md} (79%) rename sdks/{retailmedia_preview/docs/CampaignReportResource.md => marketingsolutions_2023-10/docs/AdWriteResource.md} (73%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AdaptiveAttributes.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AdaptiveColors.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AdaptiveWriteAttributes.md rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/docs/AdvertiserApi.md (80%) rename sdks/{marketingsolutions_2022-10/docs/AdSetSearchFilter.md => marketingsolutions_2023-10/docs/AlgebraNodeV1.md} (58%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/docs/AnalyticsApi.md (84%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ApplicationSummaryModel.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ApplicationSummaryModelResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ApplicationSummaryModelResponse.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceApi.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceBulkCreateInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceBulkDeleteInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceBulkUpdateInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceComputeSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceComputeSizesInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceCreateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceCreateEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceDeleteEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md rename sdks/{marketingsolutions_2022-10/docs/CampaignResponse.md => marketingsolutions_2023-10/docs/AudienceEntityV1ListResponse.md} (56%) rename sdks/{marketingsolutions_2022-10/docs/WriteModelAdSetId.md => marketingsolutions_2023-10/docs/AudienceEntityV1Resource.md} (70%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AudienceError.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceIdEntityV1ListResponse.md rename sdks/{retailmedia_2022-10/docs/ResourceOfBalanceCampaign202110.md => marketingsolutions_2023-10/docs/AudienceIdEntityV1Resource.md} (71%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AudienceNameDescription.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSearchEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSearchEntityV1Resource.md rename sdks/{marketingsolutions_2022-10/docs/CampaignSearchRequest.md => marketingsolutions_2023-10/docs/AudienceSearchInputV1.md} (74%) rename sdks/{marketingsolutions_2022-10/docs/PatchAdSetBidding.md => marketingsolutions_2023-10/docs/AudienceSearchMetadataV1.md} (62%) rename sdks/{marketingsolutions_2022-07/docs/NewAudience.md => marketingsolutions_2023-10/docs/AudienceSegmentBulkCreateInputV1.md} (68%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkDeleteInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkUpdateInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentComputeSizeEntityV1Resource.md rename sdks/{marketingsolutions_2022-07/docs/Audience.md => marketingsolutions_2023-10/docs/AudienceSegmentComputeSizesInputV1.md} (66%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentCreateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentCreateEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentDeleteEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md rename sdks/{marketingsolutions_2022-10/docs/ResponsesAdSetId.md => marketingsolutions_2023-10/docs/AudienceSegmentEntityV1ListResponse.md} (62%) rename sdks/{marketingsolutions_2022-10/docs/AdSetDisplayMultiplierResource.md => marketingsolutions_2023-10/docs/AudienceSegmentEntityV1Resource.md} (68%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentEstimateSizeInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentIdEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentIdEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchInputV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchMetadataV1.md rename sdks/{marketingsolutions_2022-10/docs/NewAudienceRequest.md => marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1.md} (77%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationEntityV1Resource.md rename sdks/{retailmedia_2022-07/docs/EnvelopeReportStatus.md => marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1.md} (80%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1Response.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentUpdateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSegmentUpdateEntityV1Resource.md rename sdks/{retailmedia_2023-01/docs/EnvelopeReportStatus.md => marketingsolutions_2023-10/docs/AudienceSizeEntityV1.md} (80%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1ListResponse.md rename sdks/{marketingsolutions_2022-10/docs/PatchCampaignWriteResource.md => marketingsolutions_2023-10/docs/AudienceSizeEntityV1Resource.md} (69%) rename sdks/{retailmedia_2022-10/docs/TextVariableValue.md => marketingsolutions_2023-10/docs/AudienceSizeEstimationV1.md} (81%) create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1Response.md rename sdks/{retailmedia_2022-10/docs/BadRequest.md => marketingsolutions_2023-10/docs/AudienceUpdateEntityV1.md} (62%) rename sdks/{marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResource.md => marketingsolutions_2023-10/docs/AudienceUpdateEntityV1Resource.md} (68%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/AudienceWarning.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/BasicAudienceDefinition.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/BehavioralV1.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/Campaign.md (100%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/docs/CampaignApi.md (64%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignReadResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignSearchFilters.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignSearchRequest.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CampaignSpendLimit.md (100%) rename sdks/{marketingsolutions_2022-10/docs/CampaignSpendLimit.md => marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md} (96%) rename sdks/{marketingsolutions_2022-10/docs/Campaign.md => marketingsolutions_2023-10/docs/CampaignV23Q1.md} (79%) rename sdks/{retailmedia_2022-10/docs/ResourceOfTemplate.md => marketingsolutions_2023-10/docs/CampaignV23Q1Resource.md} (86%) rename sdks/{marketingsolutions_2022-10/docs/ResponseReadAdSet.md => marketingsolutions_2023-10/docs/CampaignV23Q1Response.md} (82%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CommonProblem.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1Response.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ContactListV1.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ContactlistAmendment.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ContactlistAmendmentAttributes.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ContactlistAmendmentRequest.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ContactlistOperation.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ContactlistOperationAttributes.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/Coupon.md rename sdks/{retailmedia_2022-10/docs/AssetResponse.md => marketingsolutions_2023-10/docs/CouponListResponse.md} (75%) rename sdks/{retailmedia_preview/docs/LineItemReportResource.md => marketingsolutions_2023-10/docs/CouponResource.md} (73%) rename sdks/{retailmedia_2022-10/docs/TemplateResponse.md => marketingsolutions_2023-10/docs/CouponResponse.md} (63%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CouponSupportedSizes.md rename sdks/{retailmedia_2022-07/docs/ApplicationSummaryModelResource.md => marketingsolutions_2023-10/docs/CouponSupportedSizesResource.md} (72%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CouponSupportedSizesResponse.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateAdSet.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateAdSetBidding.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateAdSetBudget.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateAdSetGeoLocation.md rename sdks/{retailmedia_2022-10/docs/ExternalRetailerPages202110.md => marketingsolutions_2023-10/docs/CreateAdSetRequest.md} (77%) rename sdks/{marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultResource.md => marketingsolutions_2023-10/docs/CreateAdSetResource.md} (84%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateAdSetSchedule.md rename sdks/{marketingsolutions_2022-10/docs/AdSetTargeting.md => marketingsolutions_2023-10/docs/CreateAdSetTargeting.md} (77%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateCampaign.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateCampaignRequest.md rename sdks/{marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultResource.md => marketingsolutions_2023-10/docs/CreateCampaignResource.md} (83%) rename sdks/{marketingsolutions_2022-10/docs/PatchCampaignSpendLimit.md => marketingsolutions_2023-10/docs/CreateCampaignSpendLimit.md} (66%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreateCoupon.md rename sdks/{marketingsolutions_2022-07/docs/NewAudienceRequest.md => marketingsolutions_2023-10/docs/CreateCouponRequest.md} (77%) rename sdks/{retailmedia_2022-10/docs/ApplicationSummaryModelResource.md => marketingsolutions_2023-10/docs/CreateCouponResource.md} (72%) rename sdks/{retailmedia_2023-04/docs/BadRequest.md => marketingsolutions_2023-10/docs/CreateImageSlide.md} (56%) create mode 100644 sdks/marketingsolutions_2023-10/docs/Creative.md create mode 100644 sdks/marketingsolutions_2023-10/docs/CreativeApi.md rename sdks/{marketingsolutions_2022-10/docs/AdSetCategoryBidListResponse.md => marketingsolutions_2023-10/docs/CreativeListResponse.md} (63%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreativeResource.md rename sdks/{marketingsolutions_2022-10/docs/ResponseAdSetId.md => marketingsolutions_2023-10/docs/CreativeResponse.md} (63%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreativeWrite.md rename sdks/{marketingsolutions_2022-10/docs/ContactlistAmendmentRequest.md => marketingsolutions_2023-10/docs/CreativeWriteRequest.md} (76%) create mode 100644 sdks/marketingsolutions_2023-10/docs/CreativeWriteResource.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CriteoApiError.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/CriteoApiWarning.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/DeleteAudienceContactListResponse.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/DynamicAttributes.md create mode 100644 sdks/marketingsolutions_2023-10/docs/DynamicWriteAttributes.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/EntityOfPortfolioMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ErrorCodeResponse.md (100%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/docs/GatewayApi.md (80%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/GetPortfolioResponse.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/HtmlTagAttributes.md create mode 100644 sdks/marketingsolutions_2023-10/docs/HtmlTagWriteAttributes.md rename sdks/{marketingsolutions_2022-10/docs/ReadAdSetBidding.md => marketingsolutions_2023-10/docs/ImageAttributes.md} (61%) create mode 100644 sdks/marketingsolutions_2023-10/docs/ImageSet.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ImageSetBase64.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ImageShape.md rename sdks/{retailmedia_2023-01/docs/BadRequest.md => marketingsolutions_2023-10/docs/ImageSlide.md} (56%) create mode 100644 sdks/marketingsolutions_2023-10/docs/ImageWriteAttributes.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1.md rename sdks/{marketingsolutions_2022-10/docs/CampaignListResponse.md => marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md} (52%) create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketCreateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketSizeEstimationV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/InMarketV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/LocationCreateV1.md rename sdks/{marketingsolutions_2022-07/docs/ReplaceAudience.md => marketingsolutions_2023-10/docs/LocationSizeEstimationV1.md} (69%) create mode 100644 sdks/marketingsolutions_2023-10/docs/LocationUpdateV1.md rename sdks/{marketingsolutions_2022-07/docs/NewAudienceAttributes.md => marketingsolutions_2023-10/docs/LocationV1.md} (51%) create mode 100644 sdks/marketingsolutions_2023-10/docs/LookalikeCreateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/LookalikeUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/LookalikeV1.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ModifyAudienceResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/NillableAdSetTargetingRule.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/NillableAdSetTargetingRuleValue.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/NillableDateTime.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/NillableDecimal.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/NillableGenderV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/NillableInt32.md rename sdks/{marketingsolutions_2022-10/docs/PatchAdSetScheduling.md => marketingsolutions_2023-10/docs/NillableString.md} (66%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetBidding.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetBudget.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetCategoryBid.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetCategoryBidListRequest.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetCategoryBidResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetCategoryBidResultListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetCategoryBidResultResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetDisplayMultiplier.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetDisplayMultiplierListRequest.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetDisplayMultiplierResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetDisplayMultiplierResultListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetDisplayMultiplierResultResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchAdSetScheduling.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchCampaign.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchCampaignListRequest.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchCampaignSpendLimit.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchCampaignWriteResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchResultCampaignListResponse.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PatchResultCampaignReadResource.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PlacementsReportQueryDataMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PlacementsReportQueryEntityMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PlacementsReportQueryMessage.md (100%) rename sdks/{marketingsolutions_2022-10/docs/RequestsPatchAdSet.md => marketingsolutions_2023-10/docs/PointOfInterestV1.md} (56%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/PortfolioMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ProblemDetails.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ProblemsDetails.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/ProspectingCreateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ProspectingUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-10/docs/ProspectingV1.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadAdSetBidding.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadAdSetBudget.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadAdSetSchedule.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadModelAdSetId.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ReadModelReadAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/RequestAdSetSearch.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/RequestsAdSetId.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/RequestsPatchAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ResponseAdSetId.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ResponseReadAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ResponsesAdSetId.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/ResponsesReadAdSet.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/RetargetingCreateV1.md rename sdks/{marketingsolutions_2022-10/docs/NillableAdSetTargetingRuleValue.md => marketingsolutions_2023-10/docs/RetargetingUpdateV1.md} (53%) rename sdks/{marketingsolutions_2022-10/docs/AdSetTargetingRule.md => marketingsolutions_2023-10/docs/RetargetingV1.md} (53%) create mode 100644 sdks/marketingsolutions_2023-10/docs/Size.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/StatisticsReportQueryMessage.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/Tag.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransactionsReportQueryDataMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransactionsReportQueryEntityMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransactionsReportQueryMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransparencyQueryMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransparencyReportAttributes.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransparencyReportDataMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransparencyReportEntityMessage.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/TransparencyReportFile.md (100%) create mode 100644 sdks/marketingsolutions_2023-10/docs/UpdateCoupon.md rename sdks/{marketingsolutions_2022-07/docs/ReplaceAudienceRequest.md => marketingsolutions_2023-10/docs/UpdateCouponRequest.md} (77%) create mode 100644 sdks/marketingsolutions_2023-10/docs/UpdateCouponResource.md create mode 100644 sdks/marketingsolutions_2023-10/docs/VideoDetail.md rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/WriteModelAdSetId.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/docs/WriteModelPatchAdSet.md (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/requirements.txt (100%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/setup.cfg (100%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/setup.py (91%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/test-requirements.txt (100%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/test/example_application_with_auth_code.py (92%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/test/example_application_with_client_credentials.py (90%) rename sdks/{marketingsolutions_2022-10 => marketingsolutions_2023-10}/test/example_application_with_refresh_token.py (91%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/test/test_gateway_api.py (91%) rename sdks/{marketingsolutions_2022-07 => marketingsolutions_2023-10}/tox.ini (68%) delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py delete mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py delete mode 100644 sdks/marketingsolutions_preview/docs/OkResponse.md delete mode 100644 sdks/marketingsolutions_preview/docs/PreviewError.md delete mode 100644 sdks/marketingsolutions_preview/docs/PreviewFailResponse.md delete mode 100644 sdks/marketingsolutions_preview/docs/PreviewWarning.md delete mode 100644 sdks/marketingsolutions_preview/docs/ProductSetPreview.md delete mode 100644 sdks/marketingsolutions_preview/docs/ProductSetStatistics.md delete mode 100644 sdks/marketingsolutions_preview/docs/ProductSetStatisticsQuery.md delete mode 100644 sdks/marketingsolutions_preview/docs/Rules.md delete mode 100644 sdks/marketingsolutions_preview/docs/UserEvent.md delete mode 100644 sdks/retailmedia_2022-07/.gitignore delete mode 100644 sdks/retailmedia_2022-07/.openapi-generator/FILES delete mode 100644 sdks/retailmedia_2022-07/.openapi-generator/VERSION delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client_builder.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_rest.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/flow_constants.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/models/__init__.py delete mode 100644 sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py delete mode 100644 sdks/retailmedia_2022-07/docs/AnalyticsApi.md delete mode 100644 sdks/retailmedia_2022-07/docs/ApplicationSummaryModel.md delete mode 100644 sdks/retailmedia_2022-07/docs/AudienceApi.md delete mode 100644 sdks/retailmedia_2022-07/docs/CommonProblem.md delete mode 100644 sdks/retailmedia_2022-07/docs/Error.md delete mode 100644 sdks/retailmedia_2022-07/docs/ExternalCampaign.md delete mode 100644 sdks/retailmedia_2022-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md delete mode 100644 sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfCampaign.md delete mode 100644 sdks/retailmedia_2022-07/docs/MapString.md delete mode 100644 sdks/retailmedia_2022-07/docs/ReportRequest.md delete mode 100644 sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md delete mode 100644 sdks/retailmedia_2022-07/docs/ReportStatus.md delete mode 100644 sdks/retailmedia_2022-07/docs/ReportStatusAttributes.md delete mode 100644 sdks/retailmedia_2022-07/docs/ResourceOfCreative202207.md delete mode 100644 sdks/retailmedia_2022-07/requirements.txt delete mode 100644 sdks/retailmedia_2022-07/setup.cfg delete mode 100644 sdks/retailmedia_2022-07/test-requirements.txt delete mode 100644 sdks/retailmedia_2022-07/test/example_application_with_client_credentials.py delete mode 100644 sdks/retailmedia_2022-07/test/example_application_with_refresh_token.py delete mode 100644 sdks/retailmedia_2022-07/test/test_gateway_api.py delete mode 100644 sdks/retailmedia_2022-07/tox.ini delete mode 100644 sdks/retailmedia_2022-10/.gitignore delete mode 100644 sdks/retailmedia_2022-10/.gitlab-ci.yml delete mode 100644 sdks/retailmedia_2022-10/.openapi-generator/FILES delete mode 100644 sdks/retailmedia_2022-10/.openapi-generator/VERSION delete mode 100644 sdks/retailmedia_2022-10/README.md delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/__init__.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/apis/__init__.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_api_client.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_auth.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/flow_constants.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/__init__.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py delete mode 100644 sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/models/__init__.py delete mode 100644 sdks/retailmedia_2022-10/docs/AddToBasketIdsUpdateModel202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Response.md delete mode 100644 sdks/retailmedia_2022-10/docs/AnalyticsApi.md delete mode 100644 sdks/retailmedia_2022-10/docs/ApplicationSummaryModel.md delete mode 100644 sdks/retailmedia_2022-10/docs/AuctionLineItemCreateModelRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/AuctionLineItemPagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/AuctionLineItemResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/AudienceApi.md delete mode 100644 sdks/retailmedia_2022-10/docs/AudienceIdsUpdateModel202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/AudienceTarget202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/AudienceTarget202110Response.md delete mode 100644 sdks/retailmedia_2022-10/docs/Balance202110PagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/BalanceCampaign202110ListRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/BalanceCampaign202110PagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/CampaignApi.md delete mode 100644 sdks/retailmedia_2022-10/docs/Category202204.md delete mode 100644 sdks/retailmedia_2022-10/docs/Category202204ListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/ChoiceOption.md delete mode 100644 sdks/retailmedia_2022-10/docs/ChoiceVariableSpecification.md delete mode 100644 sdks/retailmedia_2022-10/docs/ChoiceVariableValue.md delete mode 100644 sdks/retailmedia_2022-10/docs/ColorVariableValue.md delete mode 100644 sdks/retailmedia_2022-10/docs/CommonError.md delete mode 100644 sdks/retailmedia_2022-10/docs/CommonLineItemPagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/CommonLineItemResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/CommonProblem.md delete mode 100644 sdks/retailmedia_2022-10/docs/CommonWarning.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreateRetailMediaAudience.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceBody.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/Creative202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/Creative202207.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreativeCreateModel202207.md delete mode 100644 sdks/retailmedia_2022-10/docs/CreativeUpdateModel202207.md delete mode 100644 sdks/retailmedia_2022-10/docs/CustomerListDetails.md delete mode 100644 sdks/retailmedia_2022-10/docs/EnvelopeReportRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/EnvelopeReportStatus.md delete mode 100644 sdks/retailmedia_2022-10/docs/Error.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAccount.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAddToBasketIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAddToBasketTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAuctionLineItem.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemCreateModel.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemUpdateModel.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAudienceIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalAudienceTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalBalance202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalBrand.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalCampaignAttributes.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalCatalogRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalCatalogStatus.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalCommonLineItem.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalEditableCampaignAttributes.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalKeywordTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalLineItemPage202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalLineItemPageCategory202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalPreferredLineItem202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemCreateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalPromotedProduct202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalPutCampaign.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalRetailer.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalStoreIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ExternalStoreTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/FilesVariableValue.md delete mode 100644 sdks/retailmedia_2022-10/docs/FilesVariablesSpecification.md delete mode 100644 sdks/retailmedia_2022-10/docs/GatewayApi.md delete mode 100644 sdks/retailmedia_2022-10/docs/HyperlinkVariableValue.md delete mode 100644 sdks/retailmedia_2022-10/docs/InputResourceOfAuctionLineItemCreateModel.md delete mode 100644 sdks/retailmedia_2022-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfAccount.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfCampaign.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfRetailer.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiRequestOfCatalogRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCampaign.md delete mode 100644 sdks/retailmedia_2022-10/docs/KeywordTarget202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/KeywordTarget202110Response.md delete mode 100644 sdks/retailmedia_2022-10/docs/MapString.md delete mode 100644 sdks/retailmedia_2022-10/docs/PageMetadata.md delete mode 100644 sdks/retailmedia_2022-10/docs/PreferredLineItem202110PagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/PreferredLineItem202110Response.md delete mode 100644 sdks/retailmedia_2022-10/docs/PreferredLineItemCreateModel202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/PreferredLineItemUpdateModel202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/ProblemDetails.md delete mode 100644 sdks/retailmedia_2022-10/docs/PromotedProduct202110ListRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/PromotedProduct202110PagedListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/ReportRequest.md delete mode 100644 sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md delete mode 100644 sdks/retailmedia_2022-10/docs/ReportStatus.md delete mode 100644 sdks/retailmedia_2022-10/docs/ReportStatusAttributes.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItem.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItemUpdateModel.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfBalance202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfCommonLineItem.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfCreative202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfCreative202207.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItem202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ResourceOfPromotedProduct202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/Section.md delete mode 100644 sdks/retailmedia_2022-10/docs/StoreIdsUpdateModel202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/StoreTarget202110Request.md delete mode 100644 sdks/retailmedia_2022-10/docs/StoreTarget202110Response.md delete mode 100644 sdks/retailmedia_2022-10/docs/Template.md delete mode 100644 sdks/retailmedia_2022-10/docs/TemplateListResponse.md delete mode 100644 sdks/retailmedia_2022-10/docs/TemplateVariable.md delete mode 100644 sdks/retailmedia_2022-10/docs/TemplateVariableValue.md delete mode 100644 sdks/retailmedia_2022-10/docs/TextVariableSpecification.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfKeywordTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md delete mode 100644 sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreTarget202110.md delete mode 100644 sdks/retailmedia_2022-10/requirements.txt delete mode 100644 sdks/retailmedia_2022-10/setup.cfg delete mode 100644 sdks/retailmedia_2022-10/setup.py delete mode 100644 sdks/retailmedia_2022-10/test-requirements.txt delete mode 100644 sdks/retailmedia_2022-10/test/example_application_with_auth_code.py create mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report.py rename sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/{bad_request.py => async_campaigns_report_request.py} (94%) create mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_resource.py create mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report.py rename sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/{envelope_report_request.py => async_line_items_report_request.py} (93%) create mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_resource.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py => retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_report_response.py} (93%) delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py create mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_outcome.py delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py delete mode 100644 sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py rename sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/{report_status_attributes.py => status_response.py} (83%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py => retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response_resource.py} (92%) create mode 100644 sdks/retailmedia_2023-01/docs/AsyncCampaignsReport.md rename sdks/{retailmedia_preview/docs/AsyncCampaignReportRequest.md => retailmedia_2023-01/docs/AsyncCampaignsReportRequest.md} (80%) rename sdks/{retailmedia_preview/docs/AsyncLineItemReportResource.md => retailmedia_2023-01/docs/AsyncCampaignsReportResource.md} (82%) create mode 100644 sdks/retailmedia_2023-01/docs/AsyncLineItemsReport.md rename sdks/{retailmedia_preview/docs/AsyncLineItemReportRequest.md => retailmedia_2023-01/docs/AsyncLineItemsReportRequest.md} (80%) rename sdks/{retailmedia_2023-07/docs/AsyncCampaignReportResource.md => retailmedia_2023-01/docs/AsyncLineItemsReportResource.md} (82%) create mode 100644 sdks/retailmedia_2023-01/docs/AsyncReportResponse.md delete mode 100644 sdks/retailmedia_2023-01/docs/EnvelopeReportRequest.md delete mode 100644 sdks/retailmedia_2023-01/docs/Error.md delete mode 100644 sdks/retailmedia_2023-01/docs/MapString.md rename sdks/{marketingsolutions_2022-10/docs/ProblemsDetails.md => retailmedia_2023-01/docs/ReportOutcome.md} (70%) delete mode 100644 sdks/retailmedia_2023-01/docs/ReportRequest.md delete mode 100644 sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md delete mode 100644 sdks/retailmedia_2023-01/docs/ReportStatus.md delete mode 100644 sdks/retailmedia_2023-01/docs/ReportStatusAttributes.md rename sdks/{retailmedia_2022-10/docs/Asset.md => retailmedia_2023-01/docs/StatusResponse.md} (53%) create mode 100644 sdks/retailmedia_2023-01/docs/StatusResponseResource.md create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py rename sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/{bad_request.py => async_campaigns_report_request.py} (94%) create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_resource.py create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report.py rename sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/{envelope_report_request.py => async_line_items_report_request.py} (93%) create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_resource.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py => retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_report_response.py} (92%) delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_outcome.py delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py delete mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py rename sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/{report_status_attributes.py => status_response.py} (83%) create mode 100644 sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response_resource.py create mode 100644 sdks/retailmedia_2023-04/docs/AsyncCampaignsReport.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncCampaignsReportRequest.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncCampaignsReportResource.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncLineItemsReport.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncLineItemsReportRequest.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncLineItemsReportResource.md create mode 100644 sdks/retailmedia_2023-04/docs/AsyncReportResponse.md delete mode 100644 sdks/retailmedia_2023-04/docs/EnvelopeReportRequest.md delete mode 100644 sdks/retailmedia_2023-04/docs/EnvelopeReportStatus.md delete mode 100644 sdks/retailmedia_2023-04/docs/Error.md delete mode 100644 sdks/retailmedia_2023-04/docs/MapString.md create mode 100644 sdks/retailmedia_2023-04/docs/ReportOutcome.md delete mode 100644 sdks/retailmedia_2023-04/docs/ReportRequest.md delete mode 100644 sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md delete mode 100644 sdks/retailmedia_2023-04/docs/ReportStatus.md delete mode 100644 sdks/retailmedia_2023-04/docs/ReportStatusAttributes.md create mode 100644 sdks/retailmedia_2023-04/docs/StatusResponse.md create mode 100644 sdks/retailmedia_2023-04/docs/StatusResponseResource.md rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_campaign_report.py => async_campaigns_report.py} (80%) rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_campaign_report_request.py => async_campaigns_report_request.py} (94%) rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_campaign_report_resource.py => async_campaigns_report_resource.py} (95%) rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_line_item_report.py => async_line_items_report.py} (81%) rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_line_item_report_request.py => async_line_items_report_request.py} (94%) rename sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/{async_line_item_report_resource.py => async_line_items_report_resource.py} (95%) delete mode 100644 sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncCampaignsReport.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncCampaignsReportResource.md delete mode 100644 sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncLineItemsReport.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncLineItemsReportResource.md rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/.gitignore (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/.gitlab-ci.yml (88%) create mode 100644 sdks/retailmedia_2023-10/.openapi-generator/FILES rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/.openapi-generator/VERSION (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/README.md (64%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api/__init__.py (72%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api/analytics_api.py (63%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/audience_api.py} (67%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api/campaign_api.py (76%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api/gateway_api.py (94%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api_client.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/api_client_builder.py (87%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/apis/__init__.py (56%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/configuration.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/criteo_api_client.py (80%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/criteo_auth.py (96%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/criteo_rest.py (94%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/exceptions.py (99%) rename sdks/{marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/flow_constants.py (100%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/__init__.py (82%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/add_funds_to_balance_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/add_to_basket_ids_update_model202110_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/add_to_basket_target202110_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/add_to_basket_target202110_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/application_summary_model.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/application_summary_model_resource.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/application_summary_model_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/asset.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/asset_resource.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/asset_response.py (97%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_request.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_resource.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_request.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_resource.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_report_response.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/async_revenue_report.py (76%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/async_revenue_report_request.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/async_revenue_report_resource.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/auction_line_item_create_model_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/auction_line_item_paged_list_response.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/auction_line_item_response.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/auction_line_item_update_model_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/audience_ids_update_model202110_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/audience_target202110_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/audience_target202110_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/balance202110_paged_list_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/balance_campaign202110_list_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/balance_campaign202110_paged_list_response.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/balance_response.py (96%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/balance_response_paged_list_response.py (96%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py} (85%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_v202301.py} (87%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/category202204.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/category202204_list_response.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/change_dates_of_balance_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/choice_option.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/choice_variable_specification.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/choice_variable_value.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/color_variable_value.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/common_error.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/common_line_item_paged_list_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/common_line_item_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/common_problem.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_status_code_response.py} (91%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/common_warning.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_balance_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_attributes.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_body.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_response.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_v2.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_v2_attributes.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_v2_data.py (97%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/create_retail_media_audience_v2_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_user_behavior_segment_v2.py} (87%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/creative202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/creative202110_list_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210.py} (87%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_list_response.py} (93%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_response.py} (93%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/creative_create_model202207.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/creative_update_model202207.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/customer_list_details.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py} (85%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_account.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_add_funds_to_balance.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_add_to_basket_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_add_to_basket_target202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_auction_line_item.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_auction_line_item_create_model.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_auction_line_item_update_model.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_audience_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_audience_target202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_balance202110.py (95%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_balance_response.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_brand.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_catalog_request.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_catalog_status.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_change_dates_of_balance.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_common_line_item.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_create_balance.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_keyword_target202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_line_item_capping202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_line_item_page202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_line_item_page_category202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_preferred_line_item202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_preferred_line_item_create_model202110.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_preferred_line_item_update_model202110.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_promoted_product202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_retailer.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_retailer_pages202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_store_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_store_target202110.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/external_update_balance_model.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/files_variable_value.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/files_variables_specification.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/get_page_of_audiences_by_account_id_response.py (96%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/hyperlink_variable_value.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/input_resource_of_auction_line_item_create_model.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/input_resource_of_preferred_line_item_create_model202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py} (93%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_body_with_id_of_int64_and_account_and_account.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_body_with_id_of_int64_and_brand_and_brand.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py} (93%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py} (92%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py} (92%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_page_response_of_account.py (96%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_page_response_of_brand.py (96%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_campaign_v202301.py} (88%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_page_response_of_retailer.py (96%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_request_of_catalog_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_campaign_v202301.py} (91%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/json_api_single_response_of_catalog_status.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_line_item_bid_multipliers.py} (90%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/keyword_target202110_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/keyword_target202110_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers.py} (84%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_request.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_response.py} (93%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/page_metadata.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_type_environment.py} (88%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/post_campaign_v202301.py} (91%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/preferred_line_item202110_paged_list_response.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/preferred_line_item202110_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/preferred_line_item_create_model202110_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/preferred_line_item_update_model202110_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/problem_details.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/promoted_product202110_list_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/promoted_product202110_paged_list_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/put_campaign_v202301.py} (93%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/report_outcome.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_add_funds_to_balance.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_auction_line_item.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_auction_line_item_update_model.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_balance202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_balance_campaign202110.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_balance_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_category202204.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_change_dates_of_balance.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_common_line_item.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_create_balance.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_creative202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202210.py} (94%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_line_item_bid_multipliers.py} (94%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_preferred_line_item202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_preferred_line_item_update_model202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_promoted_product202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_template.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/resource_of_update_balance_model.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/retail_media_audience.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/retail_media_audience_attributes.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2.py} (91%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_attributes.py} (92%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_list_response.py} (89%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/retail_media_audience_v2_response.py (96%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keyword_model.py} (88%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_request.py} (91%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_resource.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_input_keywords_model.py} (89%) rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keyword_data_model.py} (80%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_resource.py} (91%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_response.py rename sdks/{marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_problem_details.py} (88%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model.py} (79%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_resource.py create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_response.py rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_resource_outcome.py} (89%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bid_model.py} (92%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model.py} (92%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_request.py} (92%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_resource.py} (91%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/section.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response.py} (82%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response_resource.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/store_ids_update_model202110_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/store_target202110_request.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/store_target202110_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/template.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/template_list_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/template_response.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/template_variable.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/template_variable_value.py (96%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/text_variable_specification.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/text_variable_value.py (98%) rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/update_balance_model_request.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/user_behavior_details.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py => retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details_v2.py} (88%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_add_to_basket_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_add_to_basket_target202110.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_audience_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_audience_target202110.py (97%) rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_keyword_target202110.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_store_ids_update_model202110.py (98%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model/value_type_resource_of_store_target202110.py (97%) rename sdks/{retailmedia_2022-07/criteo_api_retailmedia_v2022_07 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/model_utils.py (99%) create mode 100644 sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py rename sdks/{retailmedia_2022-10/criteo_api_retailmedia_v2022_10 => retailmedia_2023-10/criteo_api_retailmedia_v2023_10}/rest.py (99%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/AddFundsToBalanceRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AddToBasketIdsUpdateModel202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AddToBasketTarget202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AddToBasketTarget202110Response.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/AnalyticsApi.md rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/docs/ApplicationSummaryModel.md (100%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/docs/ApplicationSummaryModelResource.md (100%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/docs/ApplicationSummaryModelResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Asset.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AssetResource.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AssetResponse.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/AsyncCampaignsReport.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncCampaignsReportRequest.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncCampaignsReportResource.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncLineItemsReport.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncLineItemsReportRequest.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncLineItemsReportResource.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncReportResponse.md create mode 100644 sdks/retailmedia_2023-10/docs/AsyncRevenueReport.md rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/AsyncRevenueReportRequest.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/AsyncRevenueReportResource.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AuctionLineItemCreateModelRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AuctionLineItemPagedListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AuctionLineItemResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AuctionLineItemUpdateModelRequest.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/AudienceApi.md rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AudienceIdsUpdateModel202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AudienceTarget202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/AudienceTarget202110Response.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Balance202110PagedListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/BalanceCampaign202110ListRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/BalanceCampaign202110PagedListResponse.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/BalanceResponse.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/BalanceResponsePagedListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CampaignApi.md (65%) rename sdks/{retailmedia_2022-07/docs/ExternalCampaignAttributes.md => retailmedia_2023-10/docs/CampaignAttributesV202301.md} (76%) rename sdks/{retailmedia_2022-10/docs/ExternalCampaign.md => retailmedia_2023-10/docs/CampaignV202301.md} (80%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Category202204.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Category202204ListResponse.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ChangeDatesOfBalanceRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ChoiceOption.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ChoiceVariableSpecification.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ChoiceVariableValue.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ColorVariableValue.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CommonError.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CommonLineItemPagedListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CommonLineItemResponse.md (100%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/docs/CommonProblem.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/CommonStatusCodeResponse.md rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CommonWarning.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/CreateBalanceRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreateRetailMediaAudience.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreateRetailMediaAudienceAttributes.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreateRetailMediaAudienceBody.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreateRetailMediaAudienceRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreateRetailMediaAudienceResponse.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/CreateRetailMediaAudienceV2.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/CreateRetailMediaAudienceV2Attributes.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/CreateRetailMediaAudienceV2Data.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/CreateRetailMediaAudienceV2Request.md (100%) rename sdks/{retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md => retailmedia_2023-10/docs/CreateUserBehaviorSegmentV2.md} (64%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Creative202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Creative202110ListResponse.md (100%) rename sdks/{retailmedia_2022-07/docs/Creative202207.md => retailmedia_2023-10/docs/Creative202210.md} (78%) rename sdks/{retailmedia_2022-10/docs/Creative202110ListResponse.md => retailmedia_2023-10/docs/Creative202210ListResponse.md} (84%) rename sdks/{retailmedia_2022-07/docs/Creative202207Response.md => retailmedia_2023-10/docs/Creative202210Response.md} (85%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreativeCreateModel202207.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CreativeUpdateModel202207.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/CustomerListDetails.md (100%) rename sdks/{retailmedia_2022-07/docs/ExternalEditableCampaignAttributes.md => retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md} (74%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAccount.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ExternalAddFundsToBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAddToBasketIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAddToBasketTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAuctionLineItem.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAuctionLineItemCreateModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAuctionLineItemUpdateModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAudienceIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalAudienceTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalBalance202110.md (88%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ExternalBalanceResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalBrand.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalCatalogRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalCatalogStatus.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ExternalChangeDatesOfBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalCommonLineItem.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ExternalCreateBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalKeywordTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalLineItemCapping202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalLineItemPage202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalLineItemPageCategory202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalPreferredLineItem202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalPreferredLineItemCreateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalPreferredLineItemUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalPromotedProduct202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalRetailer.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalRetailerPages202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalStoreIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ExternalStoreTarget202110.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ExternalUpdateBalanceModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/FilesVariableValue.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/FilesVariablesSpecification.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/GatewayApi.md (80%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/GetPageOfAudiencesByAccountIdResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/HyperlinkVariableValue.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/InputResourceOfAuctionLineItemCreateModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/InputResourceOfPreferredLineItemCreateModel202110.md (100%) rename sdks/{retailmedia_2022-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md => retailmedia_2023-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md} (76%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md (100%) rename sdks/{retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md => retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md} (83%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md (100%) rename sdks/{retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md => retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md} (67%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md (100%) rename sdks/{retailmedia_2022-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md => retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md} (78%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiPageResponseOfAccount.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiPageResponseOfBrand.md (100%) rename sdks/{retailmedia_2022-10/docs/JsonApiPageResponseOfBrand.md => retailmedia_2023-10/docs/JsonApiPageResponseOfCampaignV202301.md} (73%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiPageResponseOfRetailer.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiRequestOfCatalogRequest.md (100%) rename sdks/{retailmedia_2022-10/docs/JsonApiSingleResponseOfCatalogStatus.md => retailmedia_2023-10/docs/JsonApiSingleResponseOfCampaignV202301.md} (78%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/JsonApiSingleResponseOfCatalogStatus.md (100%) rename sdks/{retailmedia_2022-07/docs/JsonApiSingleResponseOfCampaign.md => retailmedia_2023-10/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md} (67%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/KeywordTarget202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/KeywordTarget202110Response.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/LineItemBidMultipliers.md rename sdks/{retailmedia_2022-10/docs/AuctionLineItemUpdateModelRequest.md => retailmedia_2023-10/docs/LineItemBidMultipliersRequest.md} (76%) rename sdks/{retailmedia_2022-10/docs/Creative202207Response.md => retailmedia_2023-10/docs/LineItemBidMultipliersResponse.md} (82%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PageMetadata.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/PageTypeEnvironment.md rename sdks/{retailmedia_2022-07/docs/ExternalPostCampaign.md => retailmedia_2023-10/docs/PostCampaignV202301.md} (73%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PreferredLineItem202110PagedListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PreferredLineItem202110Response.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PreferredLineItemCreateModel202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PreferredLineItemUpdateModel202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ProblemDetails.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PromotedProduct202110ListRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/PromotedProduct202110PagedListResponse.md (100%) rename sdks/{retailmedia_2022-07/docs/ExternalPutCampaign.md => retailmedia_2023-10/docs/PutCampaignV202301.md} (79%) create mode 100644 sdks/retailmedia_2023-10/docs/ReportOutcome.md rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ResourceOfAddFundsToBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfAuctionLineItem.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfAuctionLineItemUpdateModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfBalance202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfBalanceCampaign202110.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ResourceOfBalanceResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfCategory202204.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ResourceOfChangeDatesOfBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfCommonLineItem.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ResourceOfCreateBalance.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfCreative202110.md (100%) rename sdks/{retailmedia_2022-10/docs/ResourceOfCategory202204.md => retailmedia_2023-10/docs/ResourceOfCreative202210.md} (87%) rename sdks/{marketingsolutions_2022-10/docs/AdSetCategoryBidResource.md => retailmedia_2023-10/docs/ResourceOfLineItemBidMultipliers.md} (83%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfPreferredLineItem202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfPreferredLineItemUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfPromotedProduct202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ResourceOfTemplate.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/ResourceOfUpdateBalanceModel.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/RetailMediaAudience.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/RetailMediaAudienceAttributes.md (100%) rename sdks/{retailmedia_2022-10/docs/RetailMediaAudience.md => retailmedia_2023-10/docs/RetailMediaAudienceV2.md} (62%) rename sdks/{retailmedia_2022-10/docs/RetailMediaAudienceAttributes.md => retailmedia_2023-10/docs/RetailMediaAudienceV2Attributes.md} (72%) rename sdks/{retailmedia_2022-10/docs/GetPageOfAudiencesByAccountIdResponse.md => retailmedia_2023-10/docs/RetailMediaAudienceV2ListResponse.md} (60%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/RetailMediaAudienceV2Response.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordModel.md rename sdks/{marketingsolutions_2022-10/docs/RequestAdSetSearch.md => retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md} (65%) rename sdks/{retailmedia_2022-10/docs/ExternalPostCampaign.md => retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md} (65%) rename sdks/{retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md => retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md} (62%) rename sdks/{marketingsolutions_2022-07/docs/DeleteAudienceResponse.md => retailmedia_2023-10/docs/RetailMediaExternalv1InputKeywordsModel.md} (63%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordDataModel.md create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModel.md rename sdks/{retailmedia_2022-10/docs/ExternalLineItemCapping202110.md => retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResource.md} (64%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResponse.md rename sdks/{marketingsolutions_2022-10/docs/ProblemDetails.md => retailmedia_2023-10/docs/RetailMediaExternalv1ProblemDetails.md} (57%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModel.md rename sdks/{marketingsolutions_2022-10/docs/TransactionsReportQueryEntityMessage.md => retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResource.md} (64%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResponse.md rename sdks/{marketingsolutions_2022-10/docs/CampaignReadResource.md => retailmedia_2023-10/docs/RetailMediaExternalv1ResourceOutcome.md} (55%) create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidModel.md create mode 100644 sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModel.md rename sdks/{marketingsolutions_2022-07/docs/GetAudiencesResponse.md => retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelRequest.md} (65%) rename sdks/{marketingsolutions_2022-10/docs/PlacementsReportQueryEntityMessage.md => retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelResource.md} (66%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Section.md (100%) create mode 100644 sdks/retailmedia_2023-10/docs/StatusResponse.md create mode 100644 sdks/retailmedia_2023-10/docs/StatusResponseResource.md rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/StoreIdsUpdateModel202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/StoreTarget202110Request.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/StoreTarget202110Response.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/Template.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TemplateListResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TemplateResponse.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TemplateVariable.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TemplateVariableValue.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TextVariableSpecification.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/TextVariableValue.md (100%) rename sdks/{retailmedia_preview => retailmedia_2023-10}/docs/UpdateBalanceModelRequest.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/UserBehaviorDetails.md (100%) rename sdks/{retailmedia_2022-10/docs/UserBehaviorDetails.md => retailmedia_2023-10/docs/UserBehaviorDetailsV2.md} (67%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfAddToBasketTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfAudienceTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfKeywordTarget202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/docs/ValueTypeResourceOfStoreTarget202110.md (100%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/requirements.txt (100%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/setup.cfg (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/setup.py (92%) rename sdks/{marketingsolutions_2022-10 => retailmedia_2023-10}/test-requirements.txt (100%) rename sdks/{retailmedia_2022-07 => retailmedia_2023-10}/test/example_application_with_auth_code.py (92%) rename sdks/{retailmedia_2022-10 => retailmedia_2023-10}/test/example_application_with_client_credentials.py (90%) rename sdks/{retailmedia_2022-10 => retailmedia_2023-10}/test/example_application_with_refresh_token.py (92%) rename sdks/{retailmedia_2022-10 => retailmedia_2023-10}/test/test_gateway_api.py (91%) rename sdks/{retailmedia_2022-10 => retailmedia_2023-10}/tox.ini (71%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_campaign_report.py => async_campaigns_report.py} (80%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{line_item_report_request.py => async_campaigns_report_request.py} (94%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{line_item_report_resource.py => async_campaigns_report_resource.py} (94%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_line_item_report.py => async_line_items_report.py} (81%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{campaign_report_request.py => async_line_items_report_request.py} (94%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{campaign_report_resource.py => async_line_items_report_resource.py} (94%) delete mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py delete mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py delete mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py delete mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{create_retail_media_audience_request.py => line_item_budget_overrides.py} (82%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py delete mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{suggested_keywords_result.py => recommended_keywords_result.py} (98%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{attributed_transactions_report.py => sync_attributed_transactions_report.py} (89%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{attributed_transaction_report_request.py => sync_attributed_transactions_report_request.py} (93%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{attributed_transaction_report_resource.py => sync_attributed_transactions_report_resource.py} (93%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{campaign_report.py => sync_campaigns_report.py} (89%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_campaign_report_request.py => sync_campaigns_report_request.py} (94%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_campaign_report_resource.py => sync_campaigns_report_resource.py} (95%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{line_item_report.py => sync_line_items_report.py} (82%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_line_item_report_request.py => sync_line_items_report_request.py} (94%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{async_line_item_report_resource.py => sync_line_items_report_resource.py} (95%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_campaign_budget_overrides.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_line_item_budget_overrides.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{value_resource_of_suggested_keywords_result.py => value_resource_of_line_item_budget_overrides.py} (94%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{value_resource_outcome_of_suggested_keywords_result.py => value_resource_outcome_of_line_item_budget_overrides.py} (95%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py delete mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignsReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignsReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignsReportResource.md delete mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemsReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemsReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemsReportResource.md delete mode 100644 sdks/retailmedia_preview/docs/AsyncRevenueReport.md delete mode 100644 sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md delete mode 100644 sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md delete mode 100644 sdks/retailmedia_preview/docs/CreateRetailMediaAudience.md delete mode 100644 sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md delete mode 100644 sdks/retailmedia_preview/docs/CreateRetailMediaAudienceBody.md delete mode 100644 sdks/retailmedia_preview/docs/CreateRetailMediaAudienceRequest.md delete mode 100644 sdks/retailmedia_preview/docs/CreateRetailMediaAudienceResponse.md create mode 100644 sdks/retailmedia_preview/docs/DailyLineItemBudgetOverride.md create mode 100644 sdks/retailmedia_preview/docs/LineItemBudgetOverrides.md delete mode 100644 sdks/retailmedia_preview/docs/LineItemReport.md create mode 100644 sdks/retailmedia_preview/docs/MonthlyLineItemBudegetOverride.md delete mode 100644 sdks/retailmedia_preview/docs/ProductButtonResponse.md rename sdks/retailmedia_preview/docs/{SuggestedKeywordsResult.md => RecommendedKeywordsResult.md} (88%) rename sdks/retailmedia_preview/docs/{AttributedTransactionsReport.md => SyncAttributedTransactionsReport.md} (68%) create mode 100644 sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportResource.md rename sdks/retailmedia_preview/docs/{CampaignReport.md => SyncCampaignsReport.md} (63%) rename sdks/{retailmedia_2023-07/docs/AsyncCampaignReportRequest.md => retailmedia_preview/docs/SyncCampaignsReportRequest.md} (85%) rename sdks/{retailmedia_2023-07/docs/AsyncLineItemReportResource.md => retailmedia_preview/docs/SyncCampaignsReportResource.md} (86%) create mode 100644 sdks/retailmedia_preview/docs/SyncLineItemsReport.md rename sdks/{retailmedia_2023-07/docs/AsyncLineItemReportRequest.md => retailmedia_preview/docs/SyncLineItemsReportRequest.md} (85%) rename sdks/retailmedia_preview/docs/{AsyncCampaignReportResource.md => SyncLineItemsReportResource.md} (86%) rename sdks/retailmedia_preview/docs/{CampaignReportRequest.md => ValueResourceInputOfCampaignBudgetOverrides.md} (53%) rename sdks/retailmedia_preview/docs/{LineItemReportRequest.md => ValueResourceInputOfLineItemBudgetOverrides.md} (53%) rename sdks/retailmedia_preview/docs/{ValueResourceOfSuggestedKeywordsResult.md => ValueResourceOfLineItemBudgetOverrides.md} (75%) create mode 100644 sdks/retailmedia_preview/docs/ValueResourceOfRecommendedKeywordsResult.md rename sdks/retailmedia_preview/docs/{ValueResourceOutcomeOfSuggestedKeywordsResult.md => ValueResourceOutcomeOfLineItemBudgetOverrides.md} (76%) create mode 100644 sdks/retailmedia_preview/docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md diff --git a/sdks/marketingsolutions_2022-07/.openapi-generator/FILES b/sdks/marketingsolutions_2022-07/.openapi-generator/FILES deleted file mode 100644 index b5a89fce..00000000 --- a/sdks/marketingsolutions_2022-07/.openapi-generator/FILES +++ /dev/null @@ -1,248 +0,0 @@ -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -criteo_api_marketingsolutions_v2022_07/__init__.py -criteo_api_marketingsolutions_v2022_07/api/__init__.py -criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py -criteo_api_marketingsolutions_v2022_07/api/analytics_api.py -criteo_api_marketingsolutions_v2022_07/api/audience_api.py -criteo_api_marketingsolutions_v2022_07/api/campaign_api.py -criteo_api_marketingsolutions_v2022_07/api/gateway_api.py -criteo_api_marketingsolutions_v2022_07/api_client.py -criteo_api_marketingsolutions_v2022_07/api_client_builder.py -criteo_api_marketingsolutions_v2022_07/apis/__init__.py -criteo_api_marketingsolutions_v2022_07/configuration.py -criteo_api_marketingsolutions_v2022_07/criteo_api_client.py -criteo_api_marketingsolutions_v2022_07/criteo_auth.py -criteo_api_marketingsolutions_v2022_07/criteo_rest.py -criteo_api_marketingsolutions_v2022_07/exceptions.py -criteo_api_marketingsolutions_v2022_07/flow_constants.py -criteo_api_marketingsolutions_v2022_07/model/__init__.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py -criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py -criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py -criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py -criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py -criteo_api_marketingsolutions_v2022_07/model/audience.py -criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py -criteo_api_marketingsolutions_v2022_07/model/audience_error.py -criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py -criteo_api_marketingsolutions_v2022_07/model/audience_warning.py -criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py -criteo_api_marketingsolutions_v2022_07/model/campaign.py -criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py -criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py -criteo_api_marketingsolutions_v2022_07/model/campaign_response.py -criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py -criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py -criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py -criteo_api_marketingsolutions_v2022_07/model/common_problem.py -criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py -criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py -criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py -criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py -criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py -criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py -criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py -criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py -criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py -criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py -criteo_api_marketingsolutions_v2022_07/model/error_code_response.py -criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py -criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py -criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py -criteo_api_marketingsolutions_v2022_07/model/new_audience.py -criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py -criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py -criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py -criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py -criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py -criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py -criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py -criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py -criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py -criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py -criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py -criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py -criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py -criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py -criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py -criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py -criteo_api_marketingsolutions_v2022_07/model/problem_details.py -criteo_api_marketingsolutions_v2022_07/model/problems_details.py -criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py -criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py -criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py -criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py -criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/replace_audience.py -criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py -criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py -criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py -criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py -criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py -criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py -criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py -criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py -criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py -criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py -criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py -criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py -criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py -criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py -criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py -criteo_api_marketingsolutions_v2022_07/model_utils.py -criteo_api_marketingsolutions_v2022_07/models/__init__.py -criteo_api_marketingsolutions_v2022_07/rest.py -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/AdvertiserApi.md -docs/AnalyticsApi.md -docs/ApplicationSummaryModel.md -docs/ApplicationSummaryModelResource.md -docs/ApplicationSummaryModelResponse.md -docs/Audience.md -docs/AudienceApi.md -docs/AudienceAttributes.md -docs/AudienceError.md -docs/AudienceNameDescription.md -docs/AudienceWarning.md -docs/BasicAudienceDefinition.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/CommonProblem.md -docs/ContactlistAmendment.md -docs/ContactlistAmendmentAttributes.md -docs/ContactlistAmendmentRequest.md -docs/ContactlistOperation.md -docs/ContactlistOperationAttributes.md -docs/CriteoApiError.md -docs/CriteoApiWarning.md -docs/DeleteAudienceContactListResponse.md -docs/DeleteAudienceResponse.md -docs/EntityOfPortfolioMessage.md -docs/ErrorCodeResponse.md -docs/GatewayApi.md -docs/GetAudiencesResponse.md -docs/GetPortfolioResponse.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/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/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.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/StatisticsReportQueryMessage.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/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_2022-07/README.md b/sdks/marketingsolutions_2022-07/README.md deleted file mode 100644 index caa247b3..00000000 --- a/sdks/marketingsolutions_2022-07/README.md +++ /dev/null @@ -1,171 +0,0 @@ -# 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: 2022.07.0.230831 - -## Requirements - -Python 2.7 and 3.5+ - -## Installation & Usage -### pip install - -```sh -pip install criteo-api-marketingsolutions-sdk==2022.07.0.230831 -``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230831`) - -Then import the package: -```python -import criteo_api_marketingsolutions_v2022_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_v2022_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 - - - [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) - - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) - - [Audience](docs/Audience.md) - - [AudienceAttributes](docs/AudienceAttributes.md) - - [AudienceError](docs/AudienceError.md) - - [AudienceNameDescription](docs/AudienceNameDescription.md) - - [AudienceWarning](docs/AudienceWarning.md) - - [BasicAudienceDefinition](docs/BasicAudienceDefinition.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) - - [CommonProblem](docs/CommonProblem.md) - - [ContactlistAmendment](docs/ContactlistAmendment.md) - - [ContactlistAmendmentAttributes](docs/ContactlistAmendmentAttributes.md) - - [ContactlistAmendmentRequest](docs/ContactlistAmendmentRequest.md) - - [ContactlistOperation](docs/ContactlistOperation.md) - - [ContactlistOperationAttributes](docs/ContactlistOperationAttributes.md) - - [CriteoApiError](docs/CriteoApiError.md) - - [CriteoApiWarning](docs/CriteoApiWarning.md) - - [DeleteAudienceContactListResponse](docs/DeleteAudienceContactListResponse.md) - - [DeleteAudienceResponse](docs/DeleteAudienceResponse.md) - - [EntityOfPortfolioMessage](docs/EntityOfPortfolioMessage.md) - - [ErrorCodeResponse](docs/ErrorCodeResponse.md) - - [GetAudiencesResponse](docs/GetAudiencesResponse.md) - - [GetPortfolioResponse](docs/GetPortfolioResponse.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) - - [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) - - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.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) - - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.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) - - [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_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py deleted file mode 100644 index cead20fc..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -__version__ = "2022.07.0.230831" - -# import ApiClient -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_07.criteo_api_client import CriteoApiClient -from criteo_api_marketingsolutions_v2022_07.api_client_builder import ApiClientBuilder -from criteo_api_marketingsolutions_v2022_07 import flow_constants - -# import Configuration -from criteo_api_marketingsolutions_v2022_07.configuration import Configuration - -# import exceptions -from criteo_api_marketingsolutions_v2022_07.exceptions import OpenApiException -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiTypeError -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiValueError -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiKeyError -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiException - - - 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 deleted file mode 100644 index 6f47efd5..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py +++ /dev/null @@ -1,874 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_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_v2022_07.model.contactlist_amendment_request import ContactlistAmendmentRequest -from criteo_api_marketingsolutions_v2022_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_07.model.delete_audience_response import DeleteAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_07.model.get_audiences_response import GetAudiencesResponse -from criteo_api_marketingsolutions_v2022_07.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_07.model.new_audience_response import NewAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.replace_audience_request import ReplaceAudienceRequest -from criteo_api_marketingsolutions_v2022_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.create_audience_endpoint = _Endpoint( - settings={ - 'response_type': (NewAudienceResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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.get_audiences_endpoint = _Endpoint( - settings={ - 'response_type': (GetAudiencesResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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': '/2022-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': '/2022-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 - ) - - 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 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) - 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 deleted file mode 100644 index f407f5d2..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py +++ /dev/null @@ -1,898 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-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_v2022_07 import rest -from criteo_api_marketingsolutions_v2022_07.configuration import Configuration -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiTypeError, ApiValueError, ApiException -from criteo_api_marketingsolutions_v2022_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/2022.07.0.230831/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_2022-07/criteo_api_marketingsolutions_v2022_07/apis/__init__.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/apis/__init__.py deleted file mode 100644 index 66c9bcbf..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/apis/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ - -# 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_v2022_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_v2022_07.api.advertiser_api import AdvertiserApi -from criteo_api_marketingsolutions_v2022_07.api.analytics_api import AnalyticsApi -from criteo_api_marketingsolutions_v2022_07.api.audience_api import AudienceApi -from criteo_api_marketingsolutions_v2022_07.api.campaign_api import CampaignApi -from criteo_api_marketingsolutions_v2022_07.api.gateway_api import GatewayApi 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 deleted file mode 100644 index 19741e67..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py +++ /dev/null @@ -1,461 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-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_v2022_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_v2022_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: 2022-07\n"\ - "SDK Package Version: 2022.07.0.230831".\ - 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_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_api_client.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_api_client.py deleted file mode 100644 index 7eca68ff..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_api_client.py +++ /dev/null @@ -1,11 +0,0 @@ -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_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_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_auth.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_auth.py deleted file mode 100644 index 2d480dba..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_auth.py +++ /dev/null @@ -1,121 +0,0 @@ -import json -from datetime import datetime, timedelta -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiException -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_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_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_rest.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_rest.py deleted file mode 100644 index e15380eb..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/criteo_rest.py +++ /dev/null @@ -1,75 +0,0 @@ -from criteo_api_marketingsolutions_v2022_07.rest import RESTClientObject -from criteo_api_marketingsolutions_v2022_07.criteo_auth import * -from criteo_api_marketingsolutions_v2022_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_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py deleted file mode 100644 index a2ad77f9..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py +++ /dev/null @@ -1,158 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-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_2022-07/criteo_api_marketingsolutions_v2022_07/model/__init__.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/__init__.py deleted file mode 100644 index 7acac1e2..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# 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_v2022_07.models import ModelA, ModelB 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 deleted file mode 100644 index 354b74c4..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2022_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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index b3ed22a3..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py deleted file mode 100644 index b6b81526..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_attributes import AudienceAttributes - globals()['AudienceAttributes'] = AudienceAttributes - - -class Audience(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (AudienceAttributes,), # 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 - """Audience - a model defined in OpenAPI - - Args: - 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 - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """Audience - a model defined in OpenAPI - - Args: - 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 - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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/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 deleted file mode 100644 index 35862598..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 0f2214c6..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py +++ /dev/null @@ -1,288 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2022_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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index edbbbf41..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2022_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], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index 518f896b..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # 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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): The problem's category.. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 - instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 - title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace (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 - """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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): The problem's category.. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 - instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 - title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace (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/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 deleted file mode 100644 index 2b40c380..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py +++ /dev/null @@ -1,308 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - - -class CriteoApiError(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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',): { - 'None': None, - 'ACCESS_CONTROL': "access_control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - ('code',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # 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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CriteoApiError - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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, none_type): The correlation ID provided by the gateway. [optional] # noqa: E501 - type (str, none_type): A machine-readable code specifying error category. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 - instance (str, none_type): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 - title (str, none_type): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """CriteoApiError - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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, none_type): The correlation ID provided by the gateway. [optional] # noqa: E501 - type (str, none_type): A machine-readable code specifying error category. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 - instance (str, none_type): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 - title (str, none_type): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 5b458e3e..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index cf560ef5..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 4921a31d..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience import Audience - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 8c4f44c6..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 33ebc251..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 79a26615..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 0c774acc..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py +++ /dev/null @@ -1,331 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'values': ([str], none_type,), # 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, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): 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, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): 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_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 deleted file mode 100644 index 82e548de..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index c05aaf93..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py +++ /dev/null @@ -1,263 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 09982d0d..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index a9aa7ca7..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 53ddf147..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_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_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 deleted file mode 100644 index 01957146..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py +++ /dev/null @@ -1,288 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index d3a05d13..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py +++ /dev/null @@ -1,355 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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, none_type,), # noqa: E501 - 'ad_set_ids': ([str], none_type,), # noqa: E501 - 'ad_set_names': ([str], none_type,), # noqa: E501 - 'ad_set_status': ([str], none_type,), # noqa: E501 - 'timezone': (str, none_type,), # 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, none_type): 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], none_type): list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 - ad_set_names ([str], none_type): list of adSets names. If empty, all the adSets will be fetched. [optional] # noqa: E501 - ad_set_status ([str], none_type): list of adSets status. If empty, all the adSets will be fetched. [optional] # noqa: E501 - timezone (str, none_type): 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, none_type): 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], none_type): list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 - ad_set_names ([str], none_type): list of adSets names. If empty, all the adSets will be fetched. [optional] # noqa: E501 - ad_set_status ([str], none_type): list of adSets status. If empty, all the adSets will be fetched. [optional] # noqa: E501 - timezone (str, none_type): 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_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 deleted file mode 100644 index 9bcaae37..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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, none_type,), # noqa: E501 - 'event_type': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # 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, none_type): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 - event_type (str, none_type): Apply a filter on Event type .. [optional] # noqa: E501 - timezone (str, none_type): 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, none_type): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 - event_type (str, none_type): Apply a filter on Event type .. [optional] # noqa: E501 - timezone (str, none_type): 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_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 deleted file mode 100644 index 89b50ef2..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py +++ /dev/null @@ -1,267 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/models/__init__.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/models/__init__.py deleted file mode 100644 index 68c322a4..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/models/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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_v2022_07.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from criteo_api_marketingsolutions_v2022_07.model.ad_set_category_bid import AdSetCategoryBid -from criteo_api_marketingsolutions_v2022_07.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse -from criteo_api_marketingsolutions_v2022_07.model.ad_set_category_bid_resource import AdSetCategoryBidResource -from criteo_api_marketingsolutions_v2022_07.model.ad_set_delivery_limitations import AdSetDeliveryLimitations -from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier import AdSetDisplayMultiplier -from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse -from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource -from criteo_api_marketingsolutions_v2022_07.model.ad_set_frequency_capping import AdSetFrequencyCapping -from criteo_api_marketingsolutions_v2022_07.model.ad_set_geo_location import AdSetGeoLocation -from criteo_api_marketingsolutions_v2022_07.model.ad_set_search_filter import AdSetSearchFilter -from criteo_api_marketingsolutions_v2022_07.model.ad_set_targeting import AdSetTargeting -from criteo_api_marketingsolutions_v2022_07.model.ad_set_targeting_rule import AdSetTargetingRule -from criteo_api_marketingsolutions_v2022_07.model.application_summary_model import ApplicationSummaryModel -from criteo_api_marketingsolutions_v2022_07.model.application_summary_model_resource import ApplicationSummaryModelResource -from criteo_api_marketingsolutions_v2022_07.model.application_summary_model_response import ApplicationSummaryModelResponse -from criteo_api_marketingsolutions_v2022_07.model.audience import Audience -from criteo_api_marketingsolutions_v2022_07.model.audience_attributes import AudienceAttributes -from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError -from criteo_api_marketingsolutions_v2022_07.model.audience_name_description import AudienceNameDescription -from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning -from criteo_api_marketingsolutions_v2022_07.model.basic_audience_definition import BasicAudienceDefinition -from criteo_api_marketingsolutions_v2022_07.model.campaign import Campaign -from criteo_api_marketingsolutions_v2022_07.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_07.model.campaign_read_resource import CampaignReadResource -from criteo_api_marketingsolutions_v2022_07.model.campaign_response import CampaignResponse -from criteo_api_marketingsolutions_v2022_07.model.campaign_search_filters import CampaignSearchFilters -from criteo_api_marketingsolutions_v2022_07.model.campaign_search_request import CampaignSearchRequest -from criteo_api_marketingsolutions_v2022_07.model.campaign_spend_limit import CampaignSpendLimit -from criteo_api_marketingsolutions_v2022_07.model.common_problem import CommonProblem -from criteo_api_marketingsolutions_v2022_07.model.contactlist_amendment import ContactlistAmendment -from criteo_api_marketingsolutions_v2022_07.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes -from criteo_api_marketingsolutions_v2022_07.model.contactlist_amendment_request import ContactlistAmendmentRequest -from criteo_api_marketingsolutions_v2022_07.model.contactlist_operation import ContactlistOperation -from criteo_api_marketingsolutions_v2022_07.model.contactlist_operation_attributes import ContactlistOperationAttributes -from criteo_api_marketingsolutions_v2022_07.model.criteo_api_error import CriteoApiError -from criteo_api_marketingsolutions_v2022_07.model.criteo_api_warning import CriteoApiWarning -from criteo_api_marketingsolutions_v2022_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_07.model.delete_audience_response import DeleteAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.entity_of_portfolio_message import EntityOfPortfolioMessage -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_07.model.get_audiences_response import GetAudiencesResponse -from criteo_api_marketingsolutions_v2022_07.model.get_portfolio_response import GetPortfolioResponse -from criteo_api_marketingsolutions_v2022_07.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.new_audience import NewAudience -from criteo_api_marketingsolutions_v2022_07.model.new_audience_attributes import NewAudienceAttributes -from criteo_api_marketingsolutions_v2022_07.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_07.model.new_audience_response import NewAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule -from criteo_api_marketingsolutions_v2022_07.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue -from criteo_api_marketingsolutions_v2022_07.model.nillable_date_time import NillableDateTime -from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set import PatchAdSet -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_bidding import PatchAdSetBidding -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_budget import PatchAdSetBudget -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_scheduling import PatchAdSetScheduling -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign import PatchCampaign -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_spend_limit import PatchCampaignSpendLimit -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_write_resource import PatchCampaignWriteResource -from criteo_api_marketingsolutions_v2022_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2022_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage -from criteo_api_marketingsolutions_v2022_07.model.placements_report_query_message import PlacementsReportQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_07.model.read_ad_set import ReadAdSet -from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_bidding import ReadAdSetBidding -from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_budget import ReadAdSetBudget -from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_schedule import ReadAdSetSchedule -from criteo_api_marketingsolutions_v2022_07.model.read_model_ad_set_id import ReadModelAdSetId -from criteo_api_marketingsolutions_v2022_07.model.read_model_read_ad_set import ReadModelReadAdSet -from criteo_api_marketingsolutions_v2022_07.model.replace_audience import ReplaceAudience -from criteo_api_marketingsolutions_v2022_07.model.replace_audience_request import ReplaceAudienceRequest -from criteo_api_marketingsolutions_v2022_07.model.replace_audience_response import ReplaceAudienceResponse -from criteo_api_marketingsolutions_v2022_07.model.request_ad_set_search import RequestAdSetSearch -from criteo_api_marketingsolutions_v2022_07.model.requests_ad_set_id import RequestsAdSetId -from criteo_api_marketingsolutions_v2022_07.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2022_07.model.response_ad_set_id import ResponseAdSetId -from criteo_api_marketingsolutions_v2022_07.model.response_read_ad_set import ResponseReadAdSet -from criteo_api_marketingsolutions_v2022_07.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_07.model.responses_read_ad_set import ResponsesReadAdSet -from criteo_api_marketingsolutions_v2022_07.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage -from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_message import TransactionsReportQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2022_07.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_report_entity_message import TransparencyReportEntityMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_report_file import TransparencyReportFile -from criteo_api_marketingsolutions_v2022_07.model.write_model_ad_set_id import WriteModelAdSetId -from criteo_api_marketingsolutions_v2022_07.model.write_model_patch_ad_set import WriteModelPatchAdSet 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 deleted file mode 100644 index 4401d570..00000000 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py +++ /dev/null @@ -1,352 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-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_v2022_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_2022-07/docs/AdvertiserApi.md b/sdks/marketingsolutions_2022-07/docs/AdvertiserApi.md deleted file mode 100644 index be5f2dde..00000000 --- a/sdks/marketingsolutions_2022-07/docs/AdvertiserApi.md +++ /dev/null @@ -1,90 +0,0 @@ -# criteo_api_marketingsolutions_v2022_07.AdvertiserApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**api_portfolio_get**](AdvertiserApi.md#api_portfolio_get) | **GET** /2022-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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import advertiser_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_2022-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2022-07/docs/AnalyticsApi.md deleted file mode 100644 index c3e11003..00000000 --- a/sdks/marketingsolutions_2022-07/docs/AnalyticsApi.md +++ /dev/null @@ -1,440 +0,0 @@ -# criteo_api_marketingsolutions_v2022_07.AnalyticsApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_adset_report**](AnalyticsApi.md#get_adset_report) | **POST** /2022-07/statistics/report | -[**get_placements_report**](AnalyticsApi.md#get_placements_report) | **POST** /2022-07/placements/report | -[**get_transactions_report**](AnalyticsApi.md#get_transactions_report) | **POST** /2022-07/transactions/report | -[**get_transparency_report**](AnalyticsApi.md#get_transparency_report) | **POST** /2022-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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import analytics_api -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import analytics_api -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import analytics_api -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import analytics_api -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_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_2022-07/docs/AudienceApi.md b/sdks/marketingsolutions_2022-07/docs/AudienceApi.md deleted file mode 100644 index 2b1ad0e2..00000000 --- a/sdks/marketingsolutions_2022-07/docs/AudienceApi.md +++ /dev/null @@ -1,568 +0,0 @@ -# criteo_api_marketingsolutions_v2022_07.AudienceApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_audience**](AudienceApi.md#create_audience) | **POST** /2022-07/audiences | -[**delete_identifiers**](AudienceApi.md#delete_identifiers) | **DELETE** /2022-07/audiences/{audience-id}/contactlist | -[**get_audiences**](AudienceApi.md#get_audiences) | **GET** /2022-07/audiences | -[**modify_audience**](AudienceApi.md#modify_audience) | **PATCH** /2022-07/audiences/{audience-id} | -[**modify_audience_users**](AudienceApi.md#modify_audience_users) | **PATCH** /2022-07/audiences/{audience-id}/contactlist | -[**remove_audience**](AudienceApi.md#remove_audience) | **DELETE** /2022-07/audiences/{audience-id} | - - -# **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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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) - -# **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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_07.model.get_audiences_response import GetAudiencesResponse -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_07.model.replace_audience_response import ReplaceAudienceResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_07.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import audience_api -from criteo_api_marketingsolutions_v2022_07.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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) - diff --git a/sdks/marketingsolutions_2022-07/docs/AudienceAttributes.md b/sdks/marketingsolutions_2022-07/docs/AudienceAttributes.md deleted file mode 100644 index 0c5ac128..00000000 --- a/sdks/marketingsolutions_2022-07/docs/AudienceAttributes.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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, none_type** | The advertiser id that owns this Audience | [optional] -**nb_lines** | **int, none_type** | The number of line in the audience available once processed | [optional] -**nb_lines_email** | **int, none_type** | The number of email line in the audience available once processed | [optional] -**nb_matches_email** | **int, none_type** | 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_2022-07/docs/CampaignApi.md b/sdks/marketingsolutions_2022-07/docs/CampaignApi.md deleted file mode 100644 index d907518f..00000000 --- a/sdks/marketingsolutions_2022-07/docs/CampaignApi.md +++ /dev/null @@ -1,1223 +0,0 @@ -# criteo_api_marketingsolutions_v2022_07.CampaignApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_ad_set**](CampaignApi.md#get_ad_set) | **GET** /2022-07/marketing-solutions/ad-sets/{adSetId} | -[**get_campaign**](CampaignApi.md#get_campaign) | **GET** /2022-07/marketing-solutions/campaigns/{campaign-id} | -[**get_category_bid_list**](CampaignApi.md#get_category_bid_list) | **GET** /2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -[**get_display_multipliers**](CampaignApi.md#get_display_multipliers) | **GET** /2022-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -[**patch_ad_sets**](CampaignApi.md#patch_ad_sets) | **PATCH** /2022-07/marketing-solutions/ad-sets | -[**patch_campaigns**](CampaignApi.md#patch_campaigns) | **PATCH** /2022-07/marketing-solutions/campaigns | -[**patch_category_bid_list**](CampaignApi.md#patch_category_bid_list) | **PATCH** /2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -[**patch_display_multipliers**](CampaignApi.md#patch_display_multipliers) | **PATCH** /2022-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -[**search_ad_sets**](CampaignApi.md#search_ad_sets) | **POST** /2022-07/marketing-solutions/ad-sets/search | -[**search_campaigns**](CampaignApi.md#search_campaigns) | **POST** /2022-07/marketing-solutions/campaigns/search | -[**start_ad_sets**](CampaignApi.md#start_ad_sets) | **POST** /2022-07/marketing-solutions/ad-sets/start | -[**stop_ad_sets**](CampaignApi.md#stop_ad_sets) | **POST** /2022-07/marketing-solutions/ad-sets/stop | - - -# **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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2022_07.model.response_ad_set_id import ResponseAdSetId -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.responses_read_ad_set import ResponsesReadAdSet -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_07.model.requests_ad_set_id import RequestsAdSetId -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import campaign_api -from criteo_api_marketingsolutions_v2022_07.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_07.model.requests_ad_set_id import RequestsAdSetId -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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) - diff --git a/sdks/marketingsolutions_2022-07/docs/GatewayApi.md b/sdks/marketingsolutions_2022-07/docs/GatewayApi.md deleted file mode 100644 index b0d8cc1d..00000000 --- a/sdks/marketingsolutions_2022-07/docs/GatewayApi.md +++ /dev/null @@ -1,90 +0,0 @@ -# criteo_api_marketingsolutions_v2022_07.GatewayApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2022-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_v2022_07 -from criteo_api_marketingsolutions_v2022_07.api import gateway_api -from criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_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_v2022_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_v2022_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_2022-07/docs/NewAudienceResponse.md b/sdks/marketingsolutions_2022-07/docs/NewAudienceResponse.md deleted file mode 100644 index 842c3125..00000000 --- a/sdks/marketingsolutions_2022-07/docs/NewAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-07/docs/ReplaceAudienceResponse.md b/sdks/marketingsolutions_2022-07/docs/ReplaceAudienceResponse.md deleted file mode 100644 index db420997..00000000 --- a/sdks/marketingsolutions_2022-07/docs/ReplaceAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-07/setup.py b/sdks/marketingsolutions_2022-07/setup.py deleted file mode 100644 index e0e2822f..00000000 --- a/sdks/marketingsolutions_2022-07/setup.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2022.07.0.230831" -# 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==2022.07.0.230831 -``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230831`) - -Then import the package: -```python -import criteo_api_marketingsolutions_v2022_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_2022-07/test/example_application_with_auth_code.py b/sdks/marketingsolutions_2022-07/test/example_application_with_auth_code.py deleted file mode 100644 index ff4306d6..00000000 --- a/sdks/marketingsolutions_2022-07/test/example_application_with_auth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -from criteo_api_marketingsolutions_v2022_07.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_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_2022-07/test/example_application_with_client_credentials.py b/sdks/marketingsolutions_2022-07/test/example_application_with_client_credentials.py deleted file mode 100644 index 6dd8874a..00000000 --- a/sdks/marketingsolutions_2022-07/test/example_application_with_client_credentials.py +++ /dev/null @@ -1,22 +0,0 @@ -from criteo_api_marketingsolutions_v2022_07.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_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_2022-07/test/example_application_with_refresh_token.py b/sdks/marketingsolutions_2022-07/test/example_application_with_refresh_token.py deleted file mode 100644 index 17aa785f..00000000 --- a/sdks/marketingsolutions_2022-07/test/example_application_with_refresh_token.py +++ /dev/null @@ -1,27 +0,0 @@ -from criteo_api_marketingsolutions_v2022_07.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_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_2022-10/.gitlab-ci.yml b/sdks/marketingsolutions_2022-10/.gitlab-ci.yml deleted file mode 100644 index dbd7a4bc..00000000 --- a/sdks/marketingsolutions_2022-10/.gitlab-ci.yml +++ /dev/null @@ -1,24 +0,0 @@ -# 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_v2022_10 - -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_2022-10/.openapi-generator/FILES b/sdks/marketingsolutions_2022-10/.openapi-generator/FILES deleted file mode 100644 index 31d8a0e3..00000000 --- a/sdks/marketingsolutions_2022-10/.openapi-generator/FILES +++ /dev/null @@ -1,248 +0,0 @@ -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -criteo_api_marketingsolutions_v2022_10/__init__.py -criteo_api_marketingsolutions_v2022_10/api/__init__.py -criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py -criteo_api_marketingsolutions_v2022_10/api/analytics_api.py -criteo_api_marketingsolutions_v2022_10/api/audience_api.py -criteo_api_marketingsolutions_v2022_10/api/campaign_api.py -criteo_api_marketingsolutions_v2022_10/api/gateway_api.py -criteo_api_marketingsolutions_v2022_10/api_client.py -criteo_api_marketingsolutions_v2022_10/api_client_builder.py -criteo_api_marketingsolutions_v2022_10/apis/__init__.py -criteo_api_marketingsolutions_v2022_10/configuration.py -criteo_api_marketingsolutions_v2022_10/criteo_api_client.py -criteo_api_marketingsolutions_v2022_10/criteo_auth.py -criteo_api_marketingsolutions_v2022_10/criteo_rest.py -criteo_api_marketingsolutions_v2022_10/exceptions.py -criteo_api_marketingsolutions_v2022_10/flow_constants.py -criteo_api_marketingsolutions_v2022_10/model/__init__.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py -criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py -criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py -criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py -criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py -criteo_api_marketingsolutions_v2022_10/model/audience.py -criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py -criteo_api_marketingsolutions_v2022_10/model/audience_error.py -criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py -criteo_api_marketingsolutions_v2022_10/model/audience_warning.py -criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py -criteo_api_marketingsolutions_v2022_10/model/campaign.py -criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py -criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py -criteo_api_marketingsolutions_v2022_10/model/campaign_response.py -criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py -criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py -criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py -criteo_api_marketingsolutions_v2022_10/model/common_problem.py -criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py -criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py -criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py -criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py -criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py -criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py -criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py -criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py -criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py -criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py -criteo_api_marketingsolutions_v2022_10/model/error_code_response.py -criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py -criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py -criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py -criteo_api_marketingsolutions_v2022_10/model/new_audience.py -criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py -criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py -criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py -criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py -criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py -criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py -criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py -criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py -criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py -criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py -criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py -criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py -criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py -criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py -criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py -criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py -criteo_api_marketingsolutions_v2022_10/model/problem_details.py -criteo_api_marketingsolutions_v2022_10/model/problems_details.py -criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py -criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py -criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py -criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py -criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/replace_audience.py -criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py -criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py -criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py -criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py -criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py -criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py -criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py -criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py -criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py -criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py -criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py -criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py -criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py -criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py -criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py -criteo_api_marketingsolutions_v2022_10/model_utils.py -criteo_api_marketingsolutions_v2022_10/models/__init__.py -criteo_api_marketingsolutions_v2022_10/rest.py -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/AdvertiserApi.md -docs/AnalyticsApi.md -docs/ApplicationSummaryModel.md -docs/ApplicationSummaryModelResource.md -docs/ApplicationSummaryModelResponse.md -docs/Audience.md -docs/AudienceApi.md -docs/AudienceAttributes.md -docs/AudienceError.md -docs/AudienceNameDescription.md -docs/AudienceWarning.md -docs/BasicAudienceDefinition.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/CommonProblem.md -docs/ContactlistAmendment.md -docs/ContactlistAmendmentAttributes.md -docs/ContactlistAmendmentRequest.md -docs/ContactlistOperation.md -docs/ContactlistOperationAttributes.md -docs/CriteoApiError.md -docs/CriteoApiWarning.md -docs/DeleteAudienceContactListResponse.md -docs/DeleteAudienceResponse.md -docs/EntityOfPortfolioMessage.md -docs/ErrorCodeResponse.md -docs/GatewayApi.md -docs/GetAudiencesResponse.md -docs/GetPortfolioResponse.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/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/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.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/StatisticsReportQueryMessage.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/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_2022-10/README.md b/sdks/marketingsolutions_2022-10/README.md deleted file mode 100644 index c0b57346..00000000 --- a/sdks/marketingsolutions_2022-10/README.md +++ /dev/null @@ -1,171 +0,0 @@ -# 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: 2022.10.0.230831 - -## Requirements - -Python 2.7 and 3.5+ - -## Installation & Usage -### pip install - -```sh -pip install criteo-api-marketingsolutions-sdk==2022.10.0.230831 -``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230831`) - -Then import the package: -```python -import criteo_api_marketingsolutions_v2022_10 -``` - -### 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_v2022_10 -``` - -## 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 - - - [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) - - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) - - [Audience](docs/Audience.md) - - [AudienceAttributes](docs/AudienceAttributes.md) - - [AudienceError](docs/AudienceError.md) - - [AudienceNameDescription](docs/AudienceNameDescription.md) - - [AudienceWarning](docs/AudienceWarning.md) - - [BasicAudienceDefinition](docs/BasicAudienceDefinition.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) - - [CommonProblem](docs/CommonProblem.md) - - [ContactlistAmendment](docs/ContactlistAmendment.md) - - [ContactlistAmendmentAttributes](docs/ContactlistAmendmentAttributes.md) - - [ContactlistAmendmentRequest](docs/ContactlistAmendmentRequest.md) - - [ContactlistOperation](docs/ContactlistOperation.md) - - [ContactlistOperationAttributes](docs/ContactlistOperationAttributes.md) - - [CriteoApiError](docs/CriteoApiError.md) - - [CriteoApiWarning](docs/CriteoApiWarning.md) - - [DeleteAudienceContactListResponse](docs/DeleteAudienceContactListResponse.md) - - [DeleteAudienceResponse](docs/DeleteAudienceResponse.md) - - [EntityOfPortfolioMessage](docs/EntityOfPortfolioMessage.md) - - [ErrorCodeResponse](docs/ErrorCodeResponse.md) - - [GetAudiencesResponse](docs/GetAudiencesResponse.md) - - [GetPortfolioResponse](docs/GetPortfolioResponse.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) - - [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) - - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.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) - - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.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) - - [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_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py deleted file mode 100644 index d6e3ad47..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -__version__ = "2022.10.0.230831" - -# import ApiClient -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_10.criteo_api_client import CriteoApiClient -from criteo_api_marketingsolutions_v2022_10.api_client_builder import ApiClientBuilder -from criteo_api_marketingsolutions_v2022_10 import flow_constants - -# import Configuration -from criteo_api_marketingsolutions_v2022_10.configuration import Configuration - -# import exceptions -from criteo_api_marketingsolutions_v2022_10.exceptions import OpenApiException -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiTypeError -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiValueError -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiKeyError -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiException - - - diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/__init__.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/__init__.py deleted file mode 100644 index 424316e9..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# 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_v2022_10.apis import AdvertiserApi 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 deleted file mode 100644 index e9a32f8d..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py +++ /dev/null @@ -1,163 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_marketingsolutions_v2022_10.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': '/2022-10/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_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 deleted file mode 100644 index 88d00553..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py +++ /dev/null @@ -1,601 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_10.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2022_10.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': '/2022-10/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': '/2022-10/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': '/2022-10/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': '/2022-10/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_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 deleted file mode 100644 index 2ec6db5c..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py +++ /dev/null @@ -1,874 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment_request import ContactlistAmendmentRequest -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_response import DeleteAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_10.model.get_audiences_response import GetAudiencesResponse -from criteo_api_marketingsolutions_v2022_10.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_10.model.new_audience_response import NewAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.replace_audience_request import ReplaceAudienceRequest -from criteo_api_marketingsolutions_v2022_10.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.create_audience_endpoint = _Endpoint( - settings={ - 'response_type': (NewAudienceResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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': '/2022-10/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.get_audiences_endpoint = _Endpoint( - settings={ - 'response_type': (GetAudiencesResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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': '/2022-10/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': '/2022-10/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': '/2022-10/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 - ) - - 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 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) - 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 deleted file mode 100644 index 3d297cb3..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py +++ /dev/null @@ -1,161 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_marketingsolutions_v2022_10.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': '/2022-10/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_2022-10/criteo_api_marketingsolutions_v2022_10/api_client_builder.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client_builder.py deleted file mode 100644 index 38f1ff4d..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client_builder.py +++ /dev/null @@ -1,37 +0,0 @@ -from criteo_api_marketingsolutions_v2022_10.configuration import Configuration -from criteo_api_marketingsolutions_v2022_10.criteo_api_client import CriteoApiClient -from criteo_api_marketingsolutions_v2022_10 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_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 deleted file mode 100644 index 5b71ba7c..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py deleted file mode 100644 index 12327599..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_attributes import AudienceAttributes - globals()['AudienceAttributes'] = AudienceAttributes - - -class Audience(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (AudienceAttributes,), # 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 - """Audience - a model defined in OpenAPI - - Args: - 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 - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """Audience - a model defined in OpenAPI - - Args: - 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 - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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/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 deleted file mode 100644 index 54e0179a..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'nb_lines': (int, none_type,), # noqa: E501 - 'nb_lines_email': (int, none_type,), # noqa: E501 - 'nb_matches_email': (int, none_type,), # 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, none_type): The advertiser id that owns this Audience. [optional] # noqa: E501 - nb_lines (int, none_type): The number of line in the audience available once processed. [optional] # noqa: E501 - nb_lines_email (int, none_type): The number of email line in the audience available once processed. [optional] # noqa: E501 - nb_matches_email (int, none_type): 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, none_type): The advertiser id that owns this Audience. [optional] # noqa: E501 - nb_lines (int, none_type): The number of line in the audience available once processed. [optional] # noqa: E501 - nb_lines_email (int, none_type): The number of email line in the audience available once processed. [optional] # noqa: E501 - nb_matches_email (int, none_type): 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_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 deleted file mode 100644 index 93b1f01c..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py +++ /dev/null @@ -1,310 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 - 'stack_trace': ([str], none_type,), # 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, none_type): (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, none_type): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 - detail (str, none_type): (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)}, none_type): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace ([str], none_type): (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, none_type): (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, none_type): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 - detail (str, none_type): (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)}, none_type): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace ([str], none_type): (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_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 deleted file mode 100644 index 516775b1..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py +++ /dev/null @@ -1,312 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'source': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 - 'stack_trace': ([str], none_type,), # 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, none_type): (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, none_type): (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)}, none_type): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace ([str], none_type): (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, none_type): (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, none_type): (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)}, none_type): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace ([str], none_type): (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_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 deleted file mode 100644 index f5047227..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py +++ /dev/null @@ -1,295 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'gum_caller_id': (int, none_type,), # 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, none_type): What type of identifiers are used. [optional] # noqa: E501 - gum_caller_id (int, none_type): 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, none_type): What type of identifiers are used. [optional] # noqa: E501 - gum_caller_id (int, none_type): 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/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 deleted file mode 100644 index a0324ba5..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index 467213a9..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'request_date': (datetime, none_type,), # noqa: E501 - 'identifier_type': (str, none_type,), # noqa: E501 - 'nb_valid_identifiers': (int, none_type,), # noqa: E501 - 'nb_invalid_identifiers': (int, none_type,), # noqa: E501 - 'sample_invalid_identifiers': ([str], none_type,), # 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, none_type): the affected user list id. [optional] # noqa: E501 - request_date (datetime, none_type): When the action was recorded. [optional] # noqa: E501 - identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501 - nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501 - nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501 - sample_invalid_identifiers ([str], none_type): 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, none_type): the affected user list id. [optional] # noqa: E501 - request_date (datetime, none_type): When the action was recorded. [optional] # noqa: E501 - identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501 - nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501 - nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501 - sample_invalid_identifiers ([str], none_type): 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_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 deleted file mode 100644 index 2a603ba6..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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',): { - 'None': None, - 'ACCESS_CONTROL': "access_control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - ('code',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # 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, none_type): The correlation ID provided by the gateway. [optional] # noqa: E501 - type (str, none_type): A machine-readable code specifying error category. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 - instance (str, none_type): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 - title (str, none_type): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 - detail (str, none_type): 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, none_type): The correlation ID provided by the gateway. [optional] # noqa: E501 - type (str, none_type): A machine-readable code specifying error category. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 - instance (str, none_type): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 - title (str, none_type): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 - detail (str, none_type): 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_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 deleted file mode 100644 index 2cb63a46..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index e16f9b19..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py +++ /dev/null @@ -1,294 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'attributes': (PortfolioMessage,), # noqa: E501 - 'meta': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, 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, none_type): A string containing the entity type. [optional] # noqa: E501 - id (str, none_type): 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)}, 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, none_type): A string containing the entity type. [optional] # noqa: E501 - id (str, none_type): 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)}, 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_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 deleted file mode 100644 index e4515421..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience import Audience - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index a3188f5d..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.criteo_api_error import CriteoApiError - from criteo_api_marketingsolutions_v2022_10.model.criteo_api_warning import CriteoApiWarning - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # noqa: E501 - 'errors': ([CriteoApiError], none_type,), # noqa: E501 - 'warnings': ([CriteoApiWarning], none_type,), # 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], none_type): The response�s primary data. [optional] # noqa: E501 - errors ([CriteoApiError], none_type): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 - warnings ([CriteoApiWarning], none_type): 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], none_type): The response�s primary data. [optional] # noqa: E501 - errors ([CriteoApiError], none_type): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 - warnings ([CriteoApiWarning], none_type): 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_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 deleted file mode 100644 index 44aa365b..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index d97b7948..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index 0ea864f2..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index c0dff416..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index 788c5bdc..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py +++ /dev/null @@ -1,263 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 83437bd7..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index 51293762..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index 22b45e07..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py +++ /dev/null @@ -1,271 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # 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], 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 - """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], 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/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 deleted file mode 100644 index 40528704..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index b3bfb511..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (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 - """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, none_type): Id of the entity. [optional] # noqa: E501 - type (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/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 deleted file mode 100644 index a8cdd24d..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py +++ /dev/null @@ -1,343 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'adset_ids': (str, none_type,), # noqa: E501 - 'environment': (str, none_type,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'disclosed': (bool, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # 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, none_type): The comma-separated list of campaign ids.. [optional] # noqa: E501 - adset_ids (str, none_type): The comma-separated list of adSet ids.. [optional] # noqa: E501 - environment (str, none_type): Type of environment: Web, Android or iOS.. [optional] # noqa: E501 - placement (str, none_type): Filter the value of the placement. [optional] # noqa: E501 - disclosed (bool, none_type): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501 - timezone (str, none_type): 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, none_type): The comma-separated list of campaign ids.. [optional] # noqa: E501 - adset_ids (str, none_type): The comma-separated list of adSet ids.. [optional] # noqa: E501 - environment (str, none_type): Type of environment: Web, Android or iOS.. [optional] # noqa: E501 - placement (str, none_type): Filter the value of the placement. [optional] # noqa: E501 - disclosed (bool, none_type): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501 - timezone (str, none_type): 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_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 deleted file mode 100644 index 7ccf670f..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py +++ /dev/null @@ -1,302 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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',): { - 'None': None, - 'ACTIONS': "actions", - 'CLICKS': "clicks", - 'CONVERSIONS': "conversions", - 'DISPLAYS': "displays", - 'INSTALLS': "installs", - 'REVENUE': "revenue", - 'STORECONVERSIONS': "storeConversions", - 'VALUE': "value", - 'VIEWEDIMPRESSIONS': "viewedImpressions", - 'VISITS': "Visits", - 'COMPLETEDVIDEOVIEWS': "completedVideoViews", - }, - ('cost_controller',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'cost_controller': (str, none_type,), # 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, none_type): The intended optimization for the Ad Set. [optional] # noqa: E501 - cost_controller (str, none_type): 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, none_type): The intended optimization for the Ad Set. [optional] # noqa: E501 - cost_controller (str, none_type): 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_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 deleted file mode 100644 index e06b5b62..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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',): { - 'None': None, - 'ON': "on", - 'OFF': "off", - }, - ('delivery_status',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'delivery_status': (str, none_type,), # 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, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): 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, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): 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_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 deleted file mode 100644 index f82ba5a1..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (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 - """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, none_type): Id of the entity. [optional] # noqa: E501 - type (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/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 deleted file mode 100644 index abf9d37c..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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/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 deleted file mode 100644 index 5c622b67..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.replace_audience import ReplaceAudience - globals()['ReplaceAudience'] = ReplaceAudience - - -class ReplaceAudienceRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReplaceAudience,), # 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 - """ReplaceAudienceRequest - a model defined in OpenAPI - - Args: - data (ReplaceAudience): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """ReplaceAudienceRequest - a model defined in OpenAPI - - Args: - data (ReplaceAudience): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_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 deleted file mode 100644 index 0d22ab58..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index 63938854..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index 92e35042..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py +++ /dev/null @@ -1,288 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_10.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], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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 - """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], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], 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/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 deleted file mode 100644 index 92523208..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_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 deleted file mode 100644 index be8520b5..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py +++ /dev/null @@ -1,279 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.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_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py deleted file mode 100644 index 8861edf3..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py +++ /dev/null @@ -1,2058 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2022-10 - 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_v2022_10.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_2022-10/criteo_api_marketingsolutions_v2022_10/models/__init__.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/models/__init__.py deleted file mode 100644 index 05eb3d8d..00000000 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/models/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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_v2022_10.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid import AdSetCategoryBid -from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse -from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource -from criteo_api_marketingsolutions_v2022_10.model.ad_set_delivery_limitations import AdSetDeliveryLimitations -from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier import AdSetDisplayMultiplier -from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse -from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource -from criteo_api_marketingsolutions_v2022_10.model.ad_set_frequency_capping import AdSetFrequencyCapping -from criteo_api_marketingsolutions_v2022_10.model.ad_set_geo_location import AdSetGeoLocation -from criteo_api_marketingsolutions_v2022_10.model.ad_set_search_filter import AdSetSearchFilter -from criteo_api_marketingsolutions_v2022_10.model.ad_set_targeting import AdSetTargeting -from criteo_api_marketingsolutions_v2022_10.model.ad_set_targeting_rule import AdSetTargetingRule -from criteo_api_marketingsolutions_v2022_10.model.application_summary_model import ApplicationSummaryModel -from criteo_api_marketingsolutions_v2022_10.model.application_summary_model_resource import ApplicationSummaryModelResource -from criteo_api_marketingsolutions_v2022_10.model.application_summary_model_response import ApplicationSummaryModelResponse -from criteo_api_marketingsolutions_v2022_10.model.audience import Audience -from criteo_api_marketingsolutions_v2022_10.model.audience_attributes import AudienceAttributes -from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError -from criteo_api_marketingsolutions_v2022_10.model.audience_name_description import AudienceNameDescription -from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning -from criteo_api_marketingsolutions_v2022_10.model.basic_audience_definition import BasicAudienceDefinition -from criteo_api_marketingsolutions_v2022_10.model.campaign import Campaign -from criteo_api_marketingsolutions_v2022_10.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_read_resource import CampaignReadResource -from criteo_api_marketingsolutions_v2022_10.model.campaign_response import CampaignResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_search_filters import CampaignSearchFilters -from criteo_api_marketingsolutions_v2022_10.model.campaign_search_request import CampaignSearchRequest -from criteo_api_marketingsolutions_v2022_10.model.campaign_spend_limit import CampaignSpendLimit -from criteo_api_marketingsolutions_v2022_10.model.common_problem import CommonProblem -from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment import ContactlistAmendment -from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes -from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment_request import ContactlistAmendmentRequest -from criteo_api_marketingsolutions_v2022_10.model.contactlist_operation import ContactlistOperation -from criteo_api_marketingsolutions_v2022_10.model.contactlist_operation_attributes import ContactlistOperationAttributes -from criteo_api_marketingsolutions_v2022_10.model.criteo_api_error import CriteoApiError -from criteo_api_marketingsolutions_v2022_10.model.criteo_api_warning import CriteoApiWarning -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_response import DeleteAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.entity_of_portfolio_message import EntityOfPortfolioMessage -from criteo_api_marketingsolutions_v2022_10.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_10.model.get_audiences_response import GetAudiencesResponse -from criteo_api_marketingsolutions_v2022_10.model.get_portfolio_response import GetPortfolioResponse -from criteo_api_marketingsolutions_v2022_10.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.new_audience import NewAudience -from criteo_api_marketingsolutions_v2022_10.model.new_audience_attributes import NewAudienceAttributes -from criteo_api_marketingsolutions_v2022_10.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_10.model.new_audience_response import NewAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule -from criteo_api_marketingsolutions_v2022_10.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue -from criteo_api_marketingsolutions_v2022_10.model.nillable_date_time import NillableDateTime -from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set import PatchAdSet -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_bidding import PatchAdSetBidding -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_budget import PatchAdSetBudget -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid import PatchAdSetCategoryBid -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_scheduling import PatchAdSetScheduling -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign import PatchCampaign -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign_spend_limit import PatchCampaignSpendLimit -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign_write_resource import PatchCampaignWriteResource -from criteo_api_marketingsolutions_v2022_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse -from criteo_api_marketingsolutions_v2022_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage -from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_message import PlacementsReportQueryMessage -from criteo_api_marketingsolutions_v2022_10.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.read_ad_set import ReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_bidding import ReadAdSetBidding -from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_budget import ReadAdSetBudget -from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_schedule import ReadAdSetSchedule -from criteo_api_marketingsolutions_v2022_10.model.read_model_ad_set_id import ReadModelAdSetId -from criteo_api_marketingsolutions_v2022_10.model.read_model_read_ad_set import ReadModelReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.replace_audience import ReplaceAudience -from criteo_api_marketingsolutions_v2022_10.model.replace_audience_request import ReplaceAudienceRequest -from criteo_api_marketingsolutions_v2022_10.model.replace_audience_response import ReplaceAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.request_ad_set_search import RequestAdSetSearch -from criteo_api_marketingsolutions_v2022_10.model.requests_ad_set_id import RequestsAdSetId -from criteo_api_marketingsolutions_v2022_10.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2022_10.model.response_ad_set_id import ResponseAdSetId -from criteo_api_marketingsolutions_v2022_10.model.response_read_ad_set import ResponseReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_10.model.responses_read_ad_set import ResponsesReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage -from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_message import TransactionsReportQueryMessage -from criteo_api_marketingsolutions_v2022_10.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2022_10.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2022_10.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2022_10.model.transparency_report_entity_message import TransparencyReportEntityMessage -from criteo_api_marketingsolutions_v2022_10.model.transparency_report_file import TransparencyReportFile -from criteo_api_marketingsolutions_v2022_10.model.write_model_ad_set_id import WriteModelAdSetId -from criteo_api_marketingsolutions_v2022_10.model.write_model_patch_ad_set import WriteModelPatchAdSet diff --git a/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBid.md b/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBid.md deleted file mode 100644 index 5fd0c13d..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBid.md +++ /dev/null @@ -1,14 +0,0 @@ -# AdSetCategoryBid - -Category Bid information about a Category for a given Ad Set. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category_name** | **str, none_type** | The name of the Category to which the Category Bid has been applied. | [optional] -**bid_amount** | **float, none_type** | 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_2022-10/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2022-10/docs/AdSetDeliveryLimitations.md deleted file mode 100644 index 633b919f..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetDeliveryLimitations.md +++ /dev/null @@ -1,15 +0,0 @@ -# AdSetDeliveryLimitations - -ad set delivery limitations model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | 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_2022-10/docs/AdSetDisplayMultiplier.md b/sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplier.md deleted file mode 100644 index 8f494782..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplier.md +++ /dev/null @@ -1,14 +0,0 @@ -# AdSetDisplayMultiplier - -Display Multiplier information about a Category for a given Ad Set. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category_name** | **str, none_type** | The name of the Category to which the given for which the Display Multiplier has been applied. | [optional] -**display_multiplier** | **float, none_type** | 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_2022-10/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplierListResponse.md deleted file mode 100644 index 16339caa..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplierListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# AdSetDisplayMultiplierListResponse - -Data model for a list of response resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](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_2022-10/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2022-10/docs/AdSetFrequencyCapping.md deleted file mode 100644 index 53206d1f..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetFrequencyCapping.md +++ /dev/null @@ -1,14 +0,0 @@ -# AdSetFrequencyCapping - -ad set frequency capping model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | 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_2022-10/docs/AdSetGeoLocation.md b/sdks/marketingsolutions_2022-10/docs/AdSetGeoLocation.md deleted file mode 100644 index bebec3c4..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AdSetGeoLocation.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/Audience.md b/sdks/marketingsolutions_2022-10/docs/Audience.md deleted file mode 100644 index 24156138..00000000 --- a/sdks/marketingsolutions_2022-10/docs/Audience.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/AudienceApi.md b/sdks/marketingsolutions_2022-10/docs/AudienceApi.md deleted file mode 100644 index 30b4b2a6..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AudienceApi.md +++ /dev/null @@ -1,568 +0,0 @@ -# criteo_api_marketingsolutions_v2022_10.AudienceApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_audience**](AudienceApi.md#create_audience) | **POST** /2022-10/audiences | -[**delete_identifiers**](AudienceApi.md#delete_identifiers) | **DELETE** /2022-10/audiences/{audience-id}/contactlist | -[**get_audiences**](AudienceApi.md#get_audiences) | **GET** /2022-10/audiences | -[**modify_audience**](AudienceApi.md#modify_audience) | **PATCH** /2022-10/audiences/{audience-id} | -[**modify_audience_users**](AudienceApi.md#modify_audience_users) | **PATCH** /2022-10/audiences/{audience-id}/contactlist | -[**remove_audience**](AudienceApi.md#remove_audience) | **DELETE** /2022-10/audiences/{audience-id} | - - -# **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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.new_audience_response import NewAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.new_audience_request import NewAudienceRequest -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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) - -# **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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.get_audiences_response import GetAudiencesResponse -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.replace_audience_response import ReplaceAudienceResponse -from criteo_api_marketingsolutions_v2022_10.model.error_code_response import ErrorCodeResponse -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment_request import ContactlistAmendmentRequest -from criteo_api_marketingsolutions_v2022_10.model.modify_audience_response import ModifyAudienceResponse -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import audience_api -from criteo_api_marketingsolutions_v2022_10.model.delete_audience_response import DeleteAudienceResponse -from criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.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_v2022_10.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_v2022_10.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) - diff --git a/sdks/marketingsolutions_2022-10/docs/AudienceAttributes.md b/sdks/marketingsolutions_2022-10/docs/AudienceAttributes.md deleted file mode 100644 index 0c5ac128..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AudienceAttributes.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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, none_type** | The advertiser id that owns this Audience | [optional] -**nb_lines** | **int, none_type** | The number of line in the audience available once processed | [optional] -**nb_lines_email** | **int, none_type** | The number of email line in the audience available once processed | [optional] -**nb_matches_email** | **int, none_type** | 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_2022-10/docs/AudienceError.md b/sdks/marketingsolutions_2022-10/docs/AudienceError.md deleted file mode 100644 index a395df9a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AudienceError.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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, none_type** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] -**detail** | **str, none_type** | (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)}, none_type** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] -**stack_trace** | **[str], none_type** | (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_2022-10/docs/AudienceNameDescription.md b/sdks/marketingsolutions_2022-10/docs/AudienceNameDescription.md deleted file mode 100644 index 2338357b..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AudienceNameDescription.md +++ /dev/null @@ -1,14 +0,0 @@ -# AudienceNameDescription - -Description of an audience with name and detailed description - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str, none_type** | The name to designate the audience by | [optional] -**description** | **str, none_type** | 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_2022-10/docs/AudienceWarning.md b/sdks/marketingsolutions_2022-10/docs/AudienceWarning.md deleted file mode 100644 index 3272f2e8..00000000 --- a/sdks/marketingsolutions_2022-10/docs/AudienceWarning.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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, none_type** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] -**source** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] -**stack_trace** | **[str], none_type** | (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_2022-10/docs/BasicAudienceDefinition.md b/sdks/marketingsolutions_2022-10/docs/BasicAudienceDefinition.md deleted file mode 100644 index 822d7c5c..00000000 --- a/sdks/marketingsolutions_2022-10/docs/BasicAudienceDefinition.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2022-10/docs/CampaignSearchFilters.md deleted file mode 100644 index 6378dd49..00000000 --- a/sdks/marketingsolutions_2022-10/docs/CampaignSearchFilters.md +++ /dev/null @@ -1,14 +0,0 @@ -# CampaignSearchFilters - -filters on campaign - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | 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_2022-10/docs/ContactlistAmendment.md b/sdks/marketingsolutions_2022-10/docs/ContactlistAmendment.md deleted file mode 100644 index efab1fc8..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistAmendment.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md deleted file mode 100644 index a805de72..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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, none_type** | What type of identifiers are used | [optional] -**gum_caller_id** | **int, none_type** | 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_2022-10/docs/ContactlistOperation.md b/sdks/marketingsolutions_2022-10/docs/ContactlistOperation.md deleted file mode 100644 index 17262c78..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistOperation.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md deleted file mode 100644 index e3237cad..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md +++ /dev/null @@ -1,19 +0,0 @@ -# ContactlistOperationAttributes - -the contactlist operation attributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operation** | **str** | The action recorded | -**contact_list_id** | **int, none_type** | the affected user list id | [optional] -**request_date** | **datetime, none_type** | When the action was recorded | [optional] -**identifier_type** | **str, none_type** | The schema specified for of the identifiers | [optional] -**nb_valid_identifiers** | **int, none_type** | How many identifiers were valid for the specified schema | [optional] -**nb_invalid_identifiers** | **int, none_type** | How many identifiers were invalid for the specified schema | [optional] -**sample_invalid_identifiers** | **[str], none_type** | 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_2022-10/docs/CriteoApiError.md b/sdks/marketingsolutions_2022-10/docs/CriteoApiError.md deleted file mode 100644 index a6a5e411..00000000 --- a/sdks/marketingsolutions_2022-10/docs/CriteoApiError.md +++ /dev/null @@ -1,19 +0,0 @@ -# CriteoApiError - -Criteo API response error - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The correlation ID provided by the gateway | [optional] -**type** | **str, none_type** | A machine-readable code specifying error category | [optional] -**code** | **str, none_type** | A machine-readable error code string in kabab-case. Unique across Criteo | [optional] -**instance** | **str, none_type** | A URI reference that identifies the specific occurrence of the problem | [optional] -**title** | **str, none_type** | A short, human-readable remarks of the problem type. | [optional] -**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s). | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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/CriteoApiWarning.md b/sdks/marketingsolutions_2022-10/docs/CriteoApiWarning.md deleted file mode 100644 index cb578c71..00000000 --- a/sdks/marketingsolutions_2022-10/docs/CriteoApiWarning.md +++ /dev/null @@ -1,18 +0,0 @@ -# CriteoApiWarning - -Criteo API response warning - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The correlation ID provided by the gateway | [optional] -**type** | **str, none_type** | A machine-readable code specifying error category | [optional] -**code** | **str, none_type** | A machine-readable error code string in kabab-case. Unique across Criteo | [optional] -**instance** | **str, none_type** | A URI reference that identifies the specific occurrence of the problem | [optional] -**title** | **str, none_type** | A short, human-readable remarks of the problem type. | [optional] -**detail** | **str, none_type** | 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_2022-10/docs/DeleteAudienceContactListResponse.md b/sdks/marketingsolutions_2022-10/docs/DeleteAudienceContactListResponse.md deleted file mode 100644 index c4ca8210..00000000 --- a/sdks/marketingsolutions_2022-10/docs/DeleteAudienceContactListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/DeleteAudienceResponse.md b/sdks/marketingsolutions_2022-10/docs/DeleteAudienceResponse.md deleted file mode 100644 index 2ac1615c..00000000 --- a/sdks/marketingsolutions_2022-10/docs/DeleteAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/EntityOfPortfolioMessage.md b/sdks/marketingsolutions_2022-10/docs/EntityOfPortfolioMessage.md deleted file mode 100644 index 194c1ab1..00000000 --- a/sdks/marketingsolutions_2022-10/docs/EntityOfPortfolioMessage.md +++ /dev/null @@ -1,16 +0,0 @@ -# EntityOfPortfolioMessage - -Generic Criteo API successful data model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str, none_type** | A string containing the entity type | [optional] -**id** | **str, none_type** | 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)}, 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_2022-10/docs/ErrorCodeResponse.md b/sdks/marketingsolutions_2022-10/docs/ErrorCodeResponse.md deleted file mode 100644 index 369d0712..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ErrorCodeResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# ErrorCodeResponse - -Definition of the error code - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**[AudienceError]**](AudienceError.md) | | -**warnings** | [**[AudienceWarning], none_type**](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_2022-10/docs/GetAudiencesResponse.md b/sdks/marketingsolutions_2022-10/docs/GetAudiencesResponse.md deleted file mode 100644 index 9de4b05b..00000000 --- a/sdks/marketingsolutions_2022-10/docs/GetAudiencesResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/GetPortfolioResponse.md b/sdks/marketingsolutions_2022-10/docs/GetPortfolioResponse.md deleted file mode 100644 index 46022495..00000000 --- a/sdks/marketingsolutions_2022-10/docs/GetPortfolioResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetPortfolioResponse - -Portfolio fetch Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[EntityOfPortfolioMessage], none_type**](EntityOfPortfolioMessage.md) | The response�s primary data | [optional] -**errors** | [**[CriteoApiError], none_type**](CriteoApiError.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] -**warnings** | [**[CriteoApiWarning], none_type**](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_2022-10/docs/ModifyAudienceResponse.md b/sdks/marketingsolutions_2022-10/docs/ModifyAudienceResponse.md deleted file mode 100644 index 2e2cbd2c..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ModifyAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/NewAudience.md b/sdks/marketingsolutions_2022-10/docs/NewAudience.md deleted file mode 100644 index a0e97880..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NewAudience.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/NewAudienceAttributes.md b/sdks/marketingsolutions_2022-10/docs/NewAudienceAttributes.md deleted file mode 100644 index 083b3d66..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NewAudienceAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ -# NewAudienceAttributes - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the new audience | -**advertiser_id** | **str, none_type** | The advertiser id to create the audience for | [optional] -**description** | **str, none_type** | 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_2022-10/docs/NewAudienceResponse.md b/sdks/marketingsolutions_2022-10/docs/NewAudienceResponse.md deleted file mode 100644 index 842c3125..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NewAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md deleted file mode 100644 index a0c8681e..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/NillableDateTime.md b/sdks/marketingsolutions_2022-10/docs/NillableDateTime.md deleted file mode 100644 index a1dbd46f..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NillableDateTime.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/NillableDecimal.md b/sdks/marketingsolutions_2022-10/docs/NillableDecimal.md deleted file mode 100644 index a0f8dba4..00000000 --- a/sdks/marketingsolutions_2022-10/docs/NillableDecimal.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/PatchAdSet.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSet.md deleted file mode 100644 index c32076ab..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSet.md +++ /dev/null @@ -1,17 +0,0 @@ -# PatchAdSet - -ad set patch model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str, none_type** | 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_2022-10/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetBudget.md deleted file mode 100644 index d94c6fde..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetBudget.md +++ /dev/null @@ -1,17 +0,0 @@ -# PatchAdSetBudget - -ad set budget patch model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | 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_2022-10/docs/PatchAdSetCategoryBid.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBid.md deleted file mode 100644 index 5f5aeda5..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBid.md +++ /dev/null @@ -1,13 +0,0 @@ -# PatchAdSetCategoryBid - -Category Bid to update for a given combination of Ad Set and Category. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bid_amount** | **float, none_type** | 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_2022-10/docs/PatchAdSetCategoryBidListRequest.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidListRequest.md deleted file mode 100644 index 549b4a9a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PatchAdSetCategoryBidListRequest - -Data model for a list of input resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchAdSetCategoryBidResource], none_type**](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_2022-10/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultListResponse.md deleted file mode 100644 index da297afe..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# PatchAdSetCategoryBidResultListResponse - -Data model for a list of response resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](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_2022-10/docs/PatchAdSetDisplayMultiplier.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplier.md deleted file mode 100644 index b5dd3bb7..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplier.md +++ /dev/null @@ -1,13 +0,0 @@ -# PatchAdSetDisplayMultiplier - -Display Multiplier to update for a given combination of Ad Set and Category. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**display_multiplier** | **float, none_type** | 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_2022-10/docs/PatchAdSetDisplayMultiplierListRequest.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierListRequest.md deleted file mode 100644 index fcf0b80a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PatchAdSetDisplayMultiplierListRequest - -Data model for a list of input resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchAdSetDisplayMultiplierResource], none_type**](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_2022-10/docs/PatchAdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResource.md deleted file mode 100644 index eb5e1d8a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResource.md +++ /dev/null @@ -1,15 +0,0 @@ -# PatchAdSetDisplayMultiplierResource - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**PatchAdSetDisplayMultiplier**](PatchAdSetDisplayMultiplier.md) | | [optional] -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md deleted file mode 100644 index 7d415b33..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# PatchAdSetDisplayMultiplierResultListResponse - -Data model for a list of response resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](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_2022-10/docs/PatchCampaign.md b/sdks/marketingsolutions_2022-10/docs/PatchCampaign.md deleted file mode 100644 index 1341579d..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchCampaign.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/PatchCampaignListRequest.md b/sdks/marketingsolutions_2022-10/docs/PatchCampaignListRequest.md deleted file mode 100644 index 7b4e7cdf..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchCampaignListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PatchCampaignListRequest - -List of input resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchCampaignWriteResource], none_type**](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_2022-10/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2022-10/docs/PatchResultCampaignListResponse.md deleted file mode 100644 index b2fed148..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchResultCampaignListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# PatchResultCampaignListResponse - -List of output resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](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_2022-10/docs/PatchResultCampaignReadResource.md b/sdks/marketingsolutions_2022-10/docs/PatchResultCampaignReadResource.md deleted file mode 100644 index 9657de94..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PatchResultCampaignReadResource.md +++ /dev/null @@ -1,14 +0,0 @@ -# PatchResultCampaignReadResource - -read model data for resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] [readonly] -**type** | **str, none_type** | | [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_2022-10/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryMessage.md deleted file mode 100644 index cda20cf4..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryMessage.md +++ /dev/null @@ -1,25 +0,0 @@ -# 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, none_type** | The comma-separated list of campaign ids. | [optional] -**adset_ids** | **str, none_type** | The comma-separated list of adSet ids. | [optional] -**environment** | **str, none_type** | Type of environment: Web, Android or iOS. | [optional] -**placement** | **str, none_type** | Filter the value of the placement | [optional] -**disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True -**timezone** | **str, none_type** | 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_2022-10/docs/PortfolioMessage.md b/sdks/marketingsolutions_2022-10/docs/PortfolioMessage.md deleted file mode 100644 index 137425f0..00000000 --- a/sdks/marketingsolutions_2022-10/docs/PortfolioMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PortfolioMessage - -Class with elementary info about advertiser - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**advertiser_name** | **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/marketingsolutions_2022-10/docs/ReadAdSet.md b/sdks/marketingsolutions_2022-10/docs/ReadAdSet.md deleted file mode 100644 index c9aa462b..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReadAdSet.md +++ /dev/null @@ -1,22 +0,0 @@ -# ReadAdSet - -ad set read model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | 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, none_type** | 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_2022-10/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2022-10/docs/ReadAdSetBudget.md deleted file mode 100644 index ffad22e9..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReadAdSetBudget.md +++ /dev/null @@ -1,17 +0,0 @@ -# ReadAdSetBudget - -ad set budget read model - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | 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_2022-10/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2022-10/docs/ReadAdSetSchedule.md deleted file mode 100644 index 73a64d34..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReadAdSetSchedule.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | 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_2022-10/docs/ReadModelAdSetId.md b/sdks/marketingsolutions_2022-10/docs/ReadModelAdSetId.md deleted file mode 100644 index f6d80b95..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReadModelAdSetId.md +++ /dev/null @@ -1,14 +0,0 @@ -# ReadModelAdSetId - -read model data for resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] [readonly] -**type** | **str, none_type** | | [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_2022-10/docs/ReadModelReadAdSet.md b/sdks/marketingsolutions_2022-10/docs/ReadModelReadAdSet.md deleted file mode 100644 index ea7e4385..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReadModelReadAdSet.md +++ /dev/null @@ -1,15 +0,0 @@ -# ReadModelReadAdSet - -read model data for resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] [readonly] -**type** | **str, none_type** | | [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_2022-10/docs/ReplaceAudience.md b/sdks/marketingsolutions_2022-10/docs/ReplaceAudience.md deleted file mode 100644 index 87863984..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReplaceAudience.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ReplaceAudienceRequest.md b/sdks/marketingsolutions_2022-10/docs/ReplaceAudienceRequest.md deleted file mode 100644 index 36739af4..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReplaceAudienceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ReplaceAudienceResponse.md b/sdks/marketingsolutions_2022-10/docs/ReplaceAudienceResponse.md deleted file mode 100644 index db420997..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ReplaceAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/RequestsAdSetId.md b/sdks/marketingsolutions_2022-10/docs/RequestsAdSetId.md deleted file mode 100644 index 61e41307..00000000 --- a/sdks/marketingsolutions_2022-10/docs/RequestsAdSetId.md +++ /dev/null @@ -1,13 +0,0 @@ -# RequestsAdSetId - -List of input resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[WriteModelAdSetId], none_type**](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_2022-10/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2022-10/docs/ResponsesReadAdSet.md deleted file mode 100644 index 61e126bf..00000000 --- a/sdks/marketingsolutions_2022-10/docs/ResponsesReadAdSet.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResponsesReadAdSet - -List of output resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ReadModelReadAdSet], none_type**](ReadModelReadAdSet.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](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_2022-10/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2022-10/docs/StatisticsReportQueryMessage.md deleted file mode 100644 index d9a8a11a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/StatisticsReportQueryMessage.md +++ /dev/null @@ -1,23 +0,0 @@ -# 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, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] -**ad_set_ids** | **[str], none_type** | list of adSets ids. If empty, all the adSets will be fetched | [optional] -**ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] -**ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] -**timezone** | **str, none_type** | 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_2022-10/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryMessage.md deleted file mode 100644 index 4e35d4a8..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryMessage.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] -**event_type** | **str, none_type** | Apply a filter on Event type . | [optional] -**timezone** | **str, none_type** | 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_2022-10/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2022-10/docs/TransparencyQueryMessage.md deleted file mode 100644 index 253cb86e..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransparencyQueryMessage.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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, none_type** | 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_2022-10/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2022-10/docs/TransparencyReportAttributes.md deleted file mode 100644 index fd2960af..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransparencyReportAttributes.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2022-10/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2022-10/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2022-10/docs/TransparencyReportFile.md deleted file mode 100644 index d95247b9..00000000 --- a/sdks/marketingsolutions_2022-10/docs/TransparencyReportFile.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/WriteModelPatchAdSet.md b/sdks/marketingsolutions_2022-10/docs/WriteModelPatchAdSet.md deleted file mode 100644 index d42e121e..00000000 --- a/sdks/marketingsolutions_2022-10/docs/WriteModelPatchAdSet.md +++ /dev/null @@ -1,15 +0,0 @@ -# WriteModelPatchAdSet - -write model data for resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/test/test_gateway_api.py b/sdks/marketingsolutions_2022-10/test/test_gateway_api.py deleted file mode 100644 index 3721f86b..00000000 --- a/sdks/marketingsolutions_2022-10/test/test_gateway_api.py +++ /dev/null @@ -1,62 +0,0 @@ -import pytest -import os - -from criteo_api_marketingsolutions_v2022_10.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_10.api_client_builder import ApiClientBuilder -from criteo_api_marketingsolutions_v2022_10.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_2022-10/tox.ini b/sdks/marketingsolutions_2022-10/tox.ini deleted file mode 100644 index 66ea7dda..00000000 --- a/sdks/marketingsolutions_2022-10/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=criteo_api_marketingsolutions_v2022_10 diff --git a/sdks/marketingsolutions_2023-01/README.md b/sdks/marketingsolutions_2023-01/README.md index faca8a1c..c3bb9ec2 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.230831 +- Package version: 2023.01.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.01.0.230831 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113`) 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 9585790f..8f44f0e4 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 @@ -8,7 +8,7 @@ """ -__version__ = "2023.01.0.230831" +__version__ = "2023.01.0.231113" # 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/audience_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/audience_api.py index 25e99db5..bd0082fd 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 @@ -460,7 +460,7 @@ def delete_identifiers( ): """delete_identifiers # noqa: E501 - delete all identifiers from an Audience # noqa: E501 + Delete all identifiers from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -710,7 +710,7 @@ def modify_audience_users( ): """modify_audience_users # noqa: E501 - Add/remove users to or from an audience # noqa: E501 + Add/remove users to or from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True 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 06273e2d..6af71f44 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 @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.231113/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 6c9ff042..d551ac3c 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 @@ -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.230831".\ + "SDK Package Version: 2023.01.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-01/docs/AudienceApi.md b/sdks/marketingsolutions_2023-01/docs/AudienceApi.md index 458747c7..4b7c21e6 100644 --- a/sdks/marketingsolutions_2023-01/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-01/docs/AudienceApi.md @@ -113,7 +113,7 @@ Name | Type | Description | Notes -delete all identifiers from an Audience +Delete all identifiers from a contact list audience-segment. ### Example @@ -383,7 +383,7 @@ Name | Type | Description | Notes -Add/remove users to or from an audience +Add/remove users to or from a contact list audience-segment. ### Example diff --git a/sdks/marketingsolutions_2023-01/setup.py b/sdks/marketingsolutions_2023-01/setup.py index 5aebbefd..f749fe96 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.230831" +VERSION = "2023.01.0.231113" # 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.230831 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-04/README.md b/sdks/marketingsolutions_2023-04/README.md index 0b99e1d5..b16afe73 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.230831 +- Package version: 2023.04.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.04.0.230831 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113`) 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 f72bb903..540880b0 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 @@ -8,7 +8,7 @@ """ -__version__ = "2023.04.0.230831" +__version__ = "2023.04.0.231113" # 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/audience_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/audience_api.py index 43229201..48e836da 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 @@ -460,7 +460,7 @@ def delete_identifiers( ): """delete_identifiers # noqa: E501 - delete all identifiers from an Audience # noqa: E501 + Delete all identifiers from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -710,7 +710,7 @@ def modify_audience_users( ): """modify_audience_users # noqa: E501 - Add/remove users to or from an audience # noqa: E501 + Add/remove users to or from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True 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 663fb736..4f3dc4e1 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 @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.231113/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 63c9ba9c..76d3f4e9 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 @@ -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.230831".\ + "SDK Package Version: 2023.04.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-04/docs/AudienceApi.md b/sdks/marketingsolutions_2023-04/docs/AudienceApi.md index c385e6b0..3f4982a6 100644 --- a/sdks/marketingsolutions_2023-04/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-04/docs/AudienceApi.md @@ -113,7 +113,7 @@ Name | Type | Description | Notes -delete all identifiers from an Audience +Delete all identifiers from a contact list audience-segment. ### Example @@ -383,7 +383,7 @@ Name | Type | Description | Notes -Add/remove users to or from an audience +Add/remove users to or from a contact list audience-segment. ### Example diff --git a/sdks/marketingsolutions_2023-04/setup.py b/sdks/marketingsolutions_2023-04/setup.py index ff06eefa..b620dba4 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.230831" +VERSION = "2023.04.0.231113" # 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.230831 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-07/README.md b/sdks/marketingsolutions_2023-07/README.md index 0fbb8b1b..55cbc0cc 100644 --- a/sdks/marketingsolutions_2023-07/README.md +++ b/sdks/marketingsolutions_2023-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: 2023.07.0.230831 +- Package version: 2023.07.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.07.0.230831 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113`) Then import the package: ```python 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 index d5007bb4..ca9ffbc7 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.07.0.230831" +__version__ = "2023.07.0.231113" # import ApiClient from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient 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 index bbc838fd..39b096a3 100644 --- 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 @@ -2051,7 +2051,7 @@ def delete_identifiers( ): """delete_identifiers # noqa: E501 - delete all identifiers from an Audience # noqa: E501 + Delete all identifiers from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -2724,7 +2724,7 @@ def modify_audience_users( ): """modify_audience_users # noqa: E501 - Add/remove users to or from an audience # noqa: E501 + Add/remove users to or from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True 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 index 36bf761f..f461c6e4 100644 --- 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 @@ -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.07.0.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.231113/python' def __enter__(self): return self 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 index 5de00478..3a6a99f8 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-07\n"\ - "SDK Package Version: 2023.07.0.230831".\ + "SDK Package Version: 2023.07.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-07/docs/AudienceApi.md b/sdks/marketingsolutions_2023-07/docs/AudienceApi.md index e64cf8d1..8eaa0bcf 100644 --- a/sdks/marketingsolutions_2023-07/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-07/docs/AudienceApi.md @@ -1020,7 +1020,7 @@ Name | Type | Description | Notes -delete all identifiers from an Audience +Delete all identifiers from a contact list audience-segment. ### Example @@ -1778,7 +1778,7 @@ Name | Type | Description | Notes -Add/remove users to or from an audience +Add/remove users to or from a contact list audience-segment. ### Example diff --git a/sdks/marketingsolutions_2023-07/setup.py b/sdks/marketingsolutions_2023-07/setup.py index 33dfe226..246fb471 100644 --- a/sdks/marketingsolutions_2023-07/setup.py +++ b/sdks/marketingsolutions_2023-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.07.0.230831" +VERSION = "2023.07.0.231113" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.07.0.230831 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2022-07/.gitignore b/sdks/marketingsolutions_2023-10/.gitignore similarity index 100% rename from sdks/marketingsolutions_2022-07/.gitignore rename to sdks/marketingsolutions_2023-10/.gitignore diff --git a/sdks/marketingsolutions_2022-07/.gitlab-ci.yml b/sdks/marketingsolutions_2023-10/.gitlab-ci.yml similarity index 87% rename from sdks/marketingsolutions_2022-07/.gitlab-ci.yml rename to sdks/marketingsolutions_2023-10/.gitlab-ci.yml index 733f857a..648f273c 100644 --- a/sdks/marketingsolutions_2022-07/.gitlab-ci.yml +++ b/sdks/marketingsolutions_2023-10/.gitlab-ci.yml @@ -8,7 +8,7 @@ stages: script: - pip install -r requirements.txt - pip install -r test-requirements.txt - - pytest --cov=criteo_api_marketingsolutions_v2022_07 + - pytest --cov=criteo_api_marketingsolutions_v2023_10 test-3.6: extends: .tests diff --git a/sdks/marketingsolutions_2023-10/.openapi-generator/FILES b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES new file mode 100644 index 00000000..76bff9c1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES @@ -0,0 +1,538 @@ +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +criteo_api_marketingsolutions_v2023_10/__init__.py +criteo_api_marketingsolutions_v2023_10/api/__init__.py +criteo_api_marketingsolutions_v2023_10/api/advertiser_api.py +criteo_api_marketingsolutions_v2023_10/api/analytics_api.py +criteo_api_marketingsolutions_v2023_10/api/audience_api.py +criteo_api_marketingsolutions_v2023_10/api/campaign_api.py +criteo_api_marketingsolutions_v2023_10/api/creative_api.py +criteo_api_marketingsolutions_v2023_10/api/gateway_api.py +criteo_api_marketingsolutions_v2023_10/api_client.py +criteo_api_marketingsolutions_v2023_10/api_client_builder.py +criteo_api_marketingsolutions_v2023_10/apis/__init__.py +criteo_api_marketingsolutions_v2023_10/configuration.py +criteo_api_marketingsolutions_v2023_10/criteo_api_client.py +criteo_api_marketingsolutions_v2023_10/criteo_auth.py +criteo_api_marketingsolutions_v2023_10/criteo_rest.py +criteo_api_marketingsolutions_v2023_10/exceptions.py +criteo_api_marketingsolutions_v2023_10/flow_constants.py +criteo_api_marketingsolutions_v2023_10/model/__init__.py +criteo_api_marketingsolutions_v2023_10/model/ad.py +criteo_api_marketingsolutions_v2023_10/model/ad_list_response.py +criteo_api_marketingsolutions_v2023_10/model/ad_resource.py +criteo_api_marketingsolutions_v2023_10/model/ad_response.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_response.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_input_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_resource.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_resource.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_geo_location.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting.py +criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py +criteo_api_marketingsolutions_v2023_10/model/ad_write.py +criteo_api_marketingsolutions_v2023_10/model/ad_write_request.py +criteo_api_marketingsolutions_v2023_10/model/ad_write_resource.py +criteo_api_marketingsolutions_v2023_10/model/adaptive_attributes.py +criteo_api_marketingsolutions_v2023_10/model/adaptive_colors.py +criteo_api_marketingsolutions_v2023_10/model/adaptive_write_attributes.py +criteo_api_marketingsolutions_v2023_10/model/algebra_node_v1.py +criteo_api_marketingsolutions_v2023_10/model/application_summary_model.py +criteo_api_marketingsolutions_v2023_10/model/application_summary_model_resource.py +criteo_api_marketingsolutions_v2023_10/model/application_summary_model_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_bulk_create_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_bulk_delete_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_bulk_update_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_compute_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_compute_sizes_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_delete_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_error.py +criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_name_description.py +criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_search_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_search_metadata_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_create_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_delete_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_update_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_sizes_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_delete_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_estimate_size_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_input_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_metadata_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_response.py +criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/audience_warning.py +criteo_api_marketingsolutions_v2023_10/model/basic_audience_definition.py +criteo_api_marketingsolutions_v2023_10/model/behavioral_v1.py +criteo_api_marketingsolutions_v2023_10/model/campaign.py +criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py +criteo_api_marketingsolutions_v2023_10/model/campaign_read_resource.py +criteo_api_marketingsolutions_v2023_10/model/campaign_response.py +criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py +criteo_api_marketingsolutions_v2023_10/model/campaign_search_request.py +criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py +criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py +criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_resource.py +criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py +criteo_api_marketingsolutions_v2023_10/model/common_problem.py +criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_response.py +criteo_api_marketingsolutions_v2023_10/model/contact_list_v1.py +criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment.py +criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_attributes.py +criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_request.py +criteo_api_marketingsolutions_v2023_10/model/contactlist_operation.py +criteo_api_marketingsolutions_v2023_10/model/contactlist_operation_attributes.py +criteo_api_marketingsolutions_v2023_10/model/coupon.py +criteo_api_marketingsolutions_v2023_10/model/coupon_list_response.py +criteo_api_marketingsolutions_v2023_10/model/coupon_resource.py +criteo_api_marketingsolutions_v2023_10/model/coupon_response.py +criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes.py +criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_resource.py +criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_response.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_budget.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_geo_location.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_request.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_resource.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_schedule.py +criteo_api_marketingsolutions_v2023_10/model/create_ad_set_targeting.py +criteo_api_marketingsolutions_v2023_10/model/create_campaign.py +criteo_api_marketingsolutions_v2023_10/model/create_campaign_request.py +criteo_api_marketingsolutions_v2023_10/model/create_campaign_resource.py +criteo_api_marketingsolutions_v2023_10/model/create_campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_10/model/create_coupon.py +criteo_api_marketingsolutions_v2023_10/model/create_coupon_request.py +criteo_api_marketingsolutions_v2023_10/model/create_coupon_resource.py +criteo_api_marketingsolutions_v2023_10/model/create_image_slide.py +criteo_api_marketingsolutions_v2023_10/model/creative.py +criteo_api_marketingsolutions_v2023_10/model/creative_list_response.py +criteo_api_marketingsolutions_v2023_10/model/creative_resource.py +criteo_api_marketingsolutions_v2023_10/model/creative_response.py +criteo_api_marketingsolutions_v2023_10/model/creative_write.py +criteo_api_marketingsolutions_v2023_10/model/creative_write_request.py +criteo_api_marketingsolutions_v2023_10/model/creative_write_resource.py +criteo_api_marketingsolutions_v2023_10/model/criteo_api_error.py +criteo_api_marketingsolutions_v2023_10/model/criteo_api_warning.py +criteo_api_marketingsolutions_v2023_10/model/delete_audience_contact_list_response.py +criteo_api_marketingsolutions_v2023_10/model/dynamic_attributes.py +criteo_api_marketingsolutions_v2023_10/model/dynamic_write_attributes.py +criteo_api_marketingsolutions_v2023_10/model/entity_of_portfolio_message.py +criteo_api_marketingsolutions_v2023_10/model/error_code_response.py +criteo_api_marketingsolutions_v2023_10/model/get_portfolio_response.py +criteo_api_marketingsolutions_v2023_10/model/html_tag_attributes.py +criteo_api_marketingsolutions_v2023_10/model/html_tag_write_attributes.py +criteo_api_marketingsolutions_v2023_10/model/image_attributes.py +criteo_api_marketingsolutions_v2023_10/model/image_set.py +criteo_api_marketingsolutions_v2023_10/model/image_set_base64.py +criteo_api_marketingsolutions_v2023_10/model/image_shape.py +criteo_api_marketingsolutions_v2023_10/model/image_slide.py +criteo_api_marketingsolutions_v2023_10/model/image_write_attributes.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_10/model/in_market_create_v1.py +criteo_api_marketingsolutions_v2023_10/model/in_market_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_10/model/in_market_update_v1.py +criteo_api_marketingsolutions_v2023_10/model/in_market_v1.py +criteo_api_marketingsolutions_v2023_10/model/location_create_v1.py +criteo_api_marketingsolutions_v2023_10/model/location_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_10/model/location_update_v1.py +criteo_api_marketingsolutions_v2023_10/model/location_v1.py +criteo_api_marketingsolutions_v2023_10/model/lookalike_create_v1.py +criteo_api_marketingsolutions_v2023_10/model/lookalike_update_v1.py +criteo_api_marketingsolutions_v2023_10/model/lookalike_v1.py +criteo_api_marketingsolutions_v2023_10/model/modify_audience_response.py +criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py +criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py +criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py +criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py +criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py +criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py +criteo_api_marketingsolutions_v2023_10/model/nillable_string.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_resource.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_resource.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_resource.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_resource.py +criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_scheduling.py +criteo_api_marketingsolutions_v2023_10/model/patch_campaign.py +criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py +criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_10/model/patch_campaign_write_resource.py +criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py +criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_read_resource.py +criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py +criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py +criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py +criteo_api_marketingsolutions_v2023_10/model/portfolio_message.py +criteo_api_marketingsolutions_v2023_10/model/problem_details.py +criteo_api_marketingsolutions_v2023_10/model/problems_details.py +criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py +criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py +criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py +criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/read_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py +criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py +criteo_api_marketingsolutions_v2023_10/model/read_model_ad_set_id.py +criteo_api_marketingsolutions_v2023_10/model/read_model_read_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/request_ad_set_search.py +criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py +criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py +criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py +criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py +criteo_api_marketingsolutions_v2023_10/model/retargeting_create_v1.py +criteo_api_marketingsolutions_v2023_10/model/retargeting_update_v1.py +criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py +criteo_api_marketingsolutions_v2023_10/model/size.py +criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py +criteo_api_marketingsolutions_v2023_10/model/tag.py +criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py +criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py +criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py +criteo_api_marketingsolutions_v2023_10/model/update_coupon.py +criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py +criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py +criteo_api_marketingsolutions_v2023_10/model/video_detail.py +criteo_api_marketingsolutions_v2023_10/model/write_model_ad_set_id.py +criteo_api_marketingsolutions_v2023_10/model/write_model_patch_ad_set.py +criteo_api_marketingsolutions_v2023_10/model_utils.py +criteo_api_marketingsolutions_v2023_10/models/__init__.py +criteo_api_marketingsolutions_v2023_10/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/AudienceApi.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/DynamicAttributes.md +docs/DynamicWriteAttributes.md +docs/EntityOfPortfolioMessage.md +docs/ErrorCodeResponse.md +docs/GatewayApi.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/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/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_2022-07/.openapi-generator/VERSION b/sdks/marketingsolutions_2023-10/.openapi-generator/VERSION similarity index 100% rename from sdks/marketingsolutions_2022-07/.openapi-generator/VERSION rename to sdks/marketingsolutions_2023-10/.openapi-generator/VERSION diff --git a/sdks/marketingsolutions_2023-10/README.md b/sdks/marketingsolutions_2023-10/README.md new file mode 100644 index 00000000..6f183aef --- /dev/null +++ b/sdks/marketingsolutions_2023-10/README.md @@ -0,0 +1,315 @@ +# 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.10.0.231113 + +## Requirements + +Python 2.7 and 3.5+ + +## Installation & Usage +### pip install + +```sh +pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113 +``` +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113`) + +Then import the package: +```python +import criteo_api_marketingsolutions_v2023_10 +``` + +### 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_10 +``` + +## 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) + - [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) + - [DynamicAttributes](docs/DynamicAttributes.md) + - [DynamicWriteAttributes](docs/DynamicWriteAttributes.md) + - [EntityOfPortfolioMessage](docs/EntityOfPortfolioMessage.md) + - [ErrorCodeResponse](docs/ErrorCodeResponse.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) + - [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) + - [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-10/criteo_api_marketingsolutions_v2023_10/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py new file mode 100644 index 00000000..efc9ccf0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py @@ -0,0 +1,31 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +__version__ = "2023.10.0.231113" + +# import ApiClient +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_10.criteo_api_client import CriteoApiClient +from criteo_api_marketingsolutions_v2023_10.api_client_builder import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_10 import flow_constants + +# import Configuration +from criteo_api_marketingsolutions_v2023_10.configuration import Configuration + +# import exceptions +from criteo_api_marketingsolutions_v2023_10.exceptions import OpenApiException +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiTypeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiValueError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiKeyError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiException + + + diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/__init__.py similarity index 73% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/__init__.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/__init__.py index 9e8fc865..3b8809c4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/__init__.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/__init__.py @@ -1,3 +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_v2022_07.apis import AdvertiserApi +# from criteo_api_marketingsolutions_v2023_10.apis import AdvertiserApi diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/advertiser_api.py similarity index 94% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/advertiser_api.py index 07c8cb4f..e1dd466a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/advertiser_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,7 +21,7 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2022_07.model.get_portfolio_response import GetPortfolioResponse +from criteo_api_marketingsolutions_v2023_10.model.get_portfolio_response import GetPortfolioResponse class AdvertiserApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/advertisers/me', + 'endpoint_path': '/2023-10/advertisers/me', 'operation_id': 'api_portfolio_get', 'http_method': 'GET', 'servers': None, diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py similarity index 96% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py index 8f2edd3c..0bc594e9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2022_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_07.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2022_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.statistics_report_query_message import StatisticsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_data_message import TransparencyReportDataMessage class AnalyticsApi(object): @@ -47,7 +47,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/statistics/report', + 'endpoint_path': '/2023-10/statistics/report', 'operation_id': 'get_adset_report', 'http_method': 'POST', 'servers': None, @@ -106,7 +106,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/placements/report', + 'endpoint_path': '/2023-10/placements/report', 'operation_id': 'get_placements_report', 'http_method': 'POST', 'servers': None, @@ -162,7 +162,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/transactions/report', + 'endpoint_path': '/2023-10/transactions/report', 'operation_id': 'get_transactions_report', 'http_method': 'POST', 'servers': None, @@ -221,7 +221,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/log-level/advertisers/{advertiser-id}/report', + 'endpoint_path': '/2023-10/log-level/advertisers/{advertiser-id}/report', 'operation_id': 'get_transparency_report', 'http_method': 'POST', 'servers': None, diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/audience_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/audience_api.py new file mode 100644 index 00000000..052c6a83 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/audience_api.py @@ -0,0 +1,2506 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.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_10.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_compute_sizes_input_v1 import AudienceComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_estimate_size_input_v1 import AudienceEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_search_input_v1 import AudienceSearchInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_compute_sizes_input_v1 import AudienceSegmentComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response import AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.model.contact_list_statistics_entity_v1_response import ContactListStatisticsEntityV1Response +from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment_request import ContactlistAmendmentRequest +from criteo_api_marketingsolutions_v2023_10.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse +from criteo_api_marketingsolutions_v2023_10.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_brand_entity_v1_list_response import InMarketAudienceSegmentBrandEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_interest_entity_v1_list_response import InMarketAudienceSegmentInterestEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.modify_audience_response import ModifyAudienceResponse + + +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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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.delete_contact_list_identifiers_endpoint = _Endpoint( + settings={ + 'response_type': (DeleteAudienceContactListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list', + 'operation_id': 'delete_contact_list_identifiers', + 'http_method': 'DELETE', + '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': + (str,), + }, + 'attribute_map': { + 'audience_segment_id': 'audience-segment-id', + }, + 'location_map': { + 'audience_segment_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-10/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-10/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-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics', + '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-10/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-10/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.search_audience_segments_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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-10/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 + ) + self.update_contact_list_identifiers_endpoint = _Endpoint( + settings={ + 'response_type': (ModifyAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list', + 'operation_id': 'update_contact_list_identifiers', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_id', + 'contactlist_amendment_request', + ], + 'required': [ + 'audience_segment_id', + 'contactlist_amendment_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_id': + (str,), + 'contactlist_amendment_request': + (ContactlistAmendmentRequest,), + }, + 'attribute_map': { + 'audience_segment_id': 'audience-segment-id', + }, + 'location_map': { + 'audience_segment_id': 'path', + 'contactlist_amendment_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + '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 delete_contact_list_identifiers( + self, + audience_segment_id, + **kwargs + ): + """delete_contact_list_identifiers # noqa: E501 + + Delete all identifiers from a contact list audience-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.delete_contact_list_identifiers(audience_segment_id, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_id (str): The id of the contact list audience-segment 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_segment_id'] = \ + audience_segment_id + return self.delete_contact_list_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 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) + + def update_contact_list_identifiers( + self, + audience_segment_id, + contactlist_amendment_request, + **kwargs + ): + """update_contact_list_identifiers # noqa: E501 + + Add/remove identifiers to or from a contact list audience-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.update_contact_list_identifiers(audience_segment_id, contactlist_amendment_request, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_id (str): The id of the contact list audience-segment 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_segment_id'] = \ + audience_segment_id + kwargs['contactlist_amendment_request'] = \ + contactlist_amendment_request + return self.update_contact_list_identifiers_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py similarity index 76% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py index 19eaa6bf..d3a6d033 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,24 +21,29 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2022_07.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse -from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse -from criteo_api_marketingsolutions_v2022_07.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_07.model.campaign_response import CampaignResponse -from criteo_api_marketingsolutions_v2022_07.model.campaign_search_request import CampaignSearchRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse -from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse -from criteo_api_marketingsolutions_v2022_07.model.request_ad_set_search import RequestAdSetSearch -from criteo_api_marketingsolutions_v2022_07.model.requests_ad_set_id import RequestsAdSetId -from criteo_api_marketingsolutions_v2022_07.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2022_07.model.response_ad_set_id import ResponseAdSetId -from criteo_api_marketingsolutions_v2022_07.model.response_read_ad_set import ResponseReadAdSet -from criteo_api_marketingsolutions_v2022_07.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_07.model.responses_read_ad_set import ResponsesReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +from criteo_api_marketingsolutions_v2023_10.model.campaign_list_response import CampaignListResponse +from criteo_api_marketingsolutions_v2023_10.model.campaign_response import CampaignResponse +from criteo_api_marketingsolutions_v2023_10.model.campaign_search_request import CampaignSearchRequest +from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1_response import CampaignV23Q1Response +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_request import CreateAdSetRequest +from criteo_api_marketingsolutions_v2023_10.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_list_request import PatchCampaignListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from criteo_api_marketingsolutions_v2023_10.model.request_ad_set_search import RequestAdSetSearch +from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_10.model.requests_patch_ad_set import RequestsPatchAdSet +from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_10.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_10.model.responses_read_ad_set import ResponsesReadAdSet class CampaignApi(object): @@ -52,6 +57,122 @@ 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-10/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-10/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,), @@ -59,7 +180,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/{adSetId}', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/{adSetId}', 'operation_id': 'get_ad_set', 'http_method': 'GET', 'servers': None, @@ -113,7 +234,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/campaigns/{campaign-id}', + 'endpoint_path': '/2023-10/marketing-solutions/campaigns/{campaign-id}', 'operation_id': 'get_campaign', 'http_method': 'GET', 'servers': None, @@ -167,7 +288,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids', 'operation_id': 'get_category_bid_list', 'http_method': 'GET', 'servers': None, @@ -221,7 +342,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', 'operation_id': 'get_display_multipliers', 'http_method': 'GET', 'servers': None, @@ -275,7 +396,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets', 'operation_id': 'patch_ad_sets', 'http_method': 'PATCH', 'servers': None, @@ -331,7 +452,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/campaigns', + 'endpoint_path': '/2023-10/marketing-solutions/campaigns', 'operation_id': 'patch_campaigns', 'http_method': 'PATCH', 'servers': None, @@ -387,7 +508,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids', 'operation_id': 'patch_category_bid_list', 'http_method': 'PATCH', 'servers': None, @@ -450,7 +571,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', 'operation_id': 'patch_display_multipliers', 'http_method': 'PATCH', 'servers': None, @@ -513,7 +634,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/search', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/search', 'operation_id': 'search_ad_sets', 'http_method': 'POST', 'servers': None, @@ -569,7 +690,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/campaigns/search', + 'endpoint_path': '/2023-10/marketing-solutions/campaigns/search', 'operation_id': 'search_campaigns', 'http_method': 'POST', 'servers': None, @@ -625,7 +746,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/start', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/start', 'operation_id': 'start_ad_sets', 'http_method': 'POST', 'servers': None, @@ -681,7 +802,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/ad-sets/stop', + 'endpoint_path': '/2023-10/marketing-solutions/ad-sets/stop', 'operation_id': 'stop_ad_sets', 'http_method': 'POST', 'servers': None, @@ -730,6 +851,236 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.update_ad_set_audience_endpoint = _Endpoint( + settings={ + 'response_type': (AdSetAudienceLinkEntityV1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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, @@ -1705,3 +2056,90 @@ def stop_ad_sets( 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_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/creative_api.py similarity index 54% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/creative_api.py index 491d1297..66a7f234 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/creative_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,27 +21,20 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse -from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_response import CampaignResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_search_request import CampaignSearchRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse -from criteo_api_marketingsolutions_v2022_10.model.request_ad_set_search import RequestAdSetSearch -from criteo_api_marketingsolutions_v2022_10.model.requests_ad_set_id import RequestsAdSetId -from criteo_api_marketingsolutions_v2022_10.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2022_10.model.response_ad_set_id import ResponseAdSetId -from criteo_api_marketingsolutions_v2022_10.model.response_read_ad_set import ResponseReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_10.model.responses_read_ad_set import ResponsesReadAdSet - - -class CampaignApi(object): +from criteo_api_marketingsolutions_v2023_10.model.ad_list_response import AdListResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_response import AdResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_write_request import AdWriteRequest +from criteo_api_marketingsolutions_v2023_10.model.coupon_list_response import CouponListResponse +from criteo_api_marketingsolutions_v2023_10.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_10.model.coupon_supported_sizes_response import CouponSupportedSizesResponse +from criteo_api_marketingsolutions_v2023_10.model.create_coupon_request import CreateCouponRequest +from criteo_api_marketingsolutions_v2023_10.model.creative_list_response import CreativeListResponse +from criteo_api_marketingsolutions_v2023_10.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_10.model.creative_write_request import CreativeWriteRequest +from criteo_api_marketingsolutions_v2023_10.model.update_coupon_request import UpdateCouponRequest + + +class CreativeApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -52,24 +45,26 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_ad_set_endpoint = _Endpoint( + self.create_advertiser_ad_endpoint = _Endpoint( settings={ - 'response_type': (ResponseReadAdSet,), + 'response_type': (AdResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/{adSetId}', - 'operation_id': 'get_ad_set', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/ads', + 'operation_id': 'create_advertiser_ad', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'ad_set_id', + 'advertiser_id', + 'ad_write_request', ], 'required': [ - 'ad_set_id', + 'advertiser_id', + 'ad_write_request', ], 'nullable': [ ], @@ -84,14 +79,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ad_set_id': + 'advertiser_id': (str,), + 'ad_write_request': + (AdWriteRequest,), }, 'attribute_map': { - 'ad_set_id': 'adSetId', + 'advertiser_id': 'advertiser-id', }, 'location_map': { - 'ad_set_id': 'path', + 'advertiser_id': 'path', + 'ad_write_request': 'body', }, 'collection_format_map': { } @@ -102,28 +100,35 @@ def __init__(self, api_client=None): 'application/json', 'text/json' ], - 'content_type': [], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] }, api_client=api_client ) - self.get_campaign_endpoint = _Endpoint( + self.create_advertiser_coupon_endpoint = _Endpoint( settings={ - 'response_type': (CampaignResponse,), + 'response_type': (CouponResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/campaigns/{campaign-id}', - 'operation_id': 'get_campaign', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons', + 'operation_id': 'create_advertiser_coupon', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'campaign_id', + 'advertiser_id', + 'create_coupon_request', ], 'required': [ - 'campaign_id', + 'advertiser_id', + 'create_coupon_request', ], 'nullable': [ ], @@ -138,14 +143,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_id': + 'advertiser_id': (str,), + 'create_coupon_request': + (CreateCouponRequest,), }, 'attribute_map': { - 'campaign_id': 'campaign-id', + 'advertiser_id': 'advertiser-id', }, 'location_map': { - 'campaign_id': 'path', + 'advertiser_id': 'path', + 'create_coupon_request': 'body', }, 'collection_format_map': { } @@ -156,28 +164,35 @@ def __init__(self, api_client=None): 'application/json', 'text/json' ], - 'content_type': [], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] }, api_client=api_client ) - self.get_category_bid_list_endpoint = _Endpoint( + self.create_advertiser_creative_endpoint = _Endpoint( settings={ - 'response_type': (AdSetCategoryBidListResponse,), + 'response_type': (CreativeResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids', - 'operation_id': 'get_category_bid_list', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/creatives', + 'operation_id': 'create_advertiser_creative', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'ad_set_id', + 'advertiser_id', + 'creative_write_request', ], 'required': [ - 'ad_set_id', + 'advertiser_id', + 'creative_write_request', ], 'nullable': [ ], @@ -192,14 +207,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ad_set_id': + 'advertiser_id': (str,), + 'creative_write_request': + (CreativeWriteRequest,), }, 'attribute_map': { - 'ad_set_id': 'ad-set-id', + 'advertiser_id': 'advertiser-id', }, 'location_map': { - 'ad_set_id': 'path', + 'advertiser_id': 'path', + 'creative_write_request': 'body', }, 'collection_format_map': { } @@ -210,28 +228,85 @@ def __init__(self, api_client=None): '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-10/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.get_display_multipliers_endpoint = _Endpoint( + self.delete_advertiser_coupon_endpoint = _Endpoint( settings={ - 'response_type': (AdSetDisplayMultiplierListResponse,), + 'response_type': None, 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', - 'operation_id': 'get_display_multipliers', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'delete_advertiser_coupon', + 'http_method': 'DELETE', 'servers': None, }, params_map={ 'all': [ - 'ad_set_id', + 'advertiser_id', + 'id', ], 'required': [ - 'ad_set_id', + 'advertiser_id', + 'id', ], 'nullable': [ ], @@ -246,45 +321,101 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ad_set_id': + 'advertiser_id': + (str,), + 'id': (str,), }, 'attribute_map': { - 'ad_set_id': 'ad-set-id', + 'advertiser_id': 'advertiser-id', + 'id': 'id', }, 'location_map': { - 'ad_set_id': 'path', + 'advertiser_id': 'path', + 'id': 'path', }, 'collection_format_map': { } }, headers_map={ - 'accept': [ - 'text/plain', - 'application/json', - 'text/json' + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) + self.delete_creative_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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.patch_ad_sets_endpoint = _Endpoint( + self.edit_advertiser_coupon_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (CouponResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets', - 'operation_id': 'patch_ad_sets', - 'http_method': 'PATCH', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'edit_advertiser_coupon', + 'http_method': 'PUT', 'servers': None, }, params_map={ 'all': [ - 'requests_patch_ad_set', + 'advertiser_id', + 'id', + 'update_coupon_request', + ], + 'required': [ + 'advertiser_id', + 'id', + 'update_coupon_request', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -298,13 +429,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'requests_patch_ad_set': - (RequestsPatchAdSet,), + 'advertiser_id': + (str,), + 'id': + (str,), + 'update_coupon_request': + (UpdateCouponRequest,), }, 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', }, 'location_map': { - 'requests_patch_ad_set': 'body', + 'advertiser_id': 'path', + 'id': 'path', + 'update_coupon_request': 'body', }, 'collection_format_map': { } @@ -324,23 +463,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.patch_campaigns_endpoint = _Endpoint( + self.edit_creative_endpoint = _Endpoint( settings={ - 'response_type': (PatchResultCampaignListResponse,), + 'response_type': (CreativeResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/campaigns', - 'operation_id': 'patch_campaigns', - 'http_method': 'PATCH', + 'endpoint_path': '/2023-10/marketing-solutions/creatives/{id}', + 'operation_id': 'edit_creative', + 'http_method': 'PUT', 'servers': None, }, params_map={ 'all': [ - 'patch_campaign_list_request', + 'id', + 'creative_write_request', + ], + 'required': [ + 'id', + 'creative_write_request', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -354,13 +497,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'patch_campaign_list_request': - (PatchCampaignListRequest,), + 'id': + (str,), + 'creative_write_request': + (CreativeWriteRequest,), }, 'attribute_map': { + 'id': 'id', }, 'location_map': { - 'patch_campaign_list_request': 'body', + 'id': 'path', + 'creative_write_request': 'body', }, 'collection_format_map': { } @@ -380,25 +527,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.patch_category_bid_list_endpoint = _Endpoint( + self.generate_creative_preview_endpoint = _Endpoint( settings={ - 'response_type': (PatchAdSetCategoryBidResultListResponse,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids', - 'operation_id': 'patch_category_bid_list', - 'http_method': 'PATCH', + 'endpoint_path': '/2023-10/marketing-solutions/creatives/{id}/preview', + 'operation_id': 'generate_creative_preview', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'ad_set_id', - 'patch_ad_set_category_bid_list_request', + 'id', + 'width', + 'height', ], 'required': [ - 'ad_set_id', + 'id', ], 'nullable': [ ], @@ -413,55 +561,110 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ad_set_id': + 'id': (str,), - 'patch_ad_set_category_bid_list_request': - (PatchAdSetCategoryBidListRequest,), + 'width': + (int,), + 'height': + (int,), }, 'attribute_map': { - 'ad_set_id': 'ad-set-id', + 'id': 'id', + 'width': 'width', + 'height': 'height', }, 'location_map': { - 'ad_set_id': 'path', - 'patch_ad_set_category_bid_list_request': 'body', + 'id': 'path', + 'width': 'query', + 'height': 'query', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'text/plain', + 'text/html', 'application/json', 'text/json' ], - 'content_type': [ - 'application/json-patch+json', - 'application/json', - 'text/json', - 'application/*+json' + 'content_type': [], + }, + api_client=api_client + ) + self.get_ad_endpoint = _Endpoint( + settings={ + 'response_type': (AdResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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.patch_display_multipliers_endpoint = _Endpoint( + self.get_advertiser_ads_endpoint = _Endpoint( settings={ - 'response_type': (PatchAdSetDisplayMultiplierResultListResponse,), + 'response_type': (AdListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', - 'operation_id': 'patch_display_multipliers', - 'http_method': 'PATCH', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/ads', + 'operation_id': 'get_advertiser_ads', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'ad_set_id', - 'patch_ad_set_display_multiplier_list_request', + 'advertiser_id', + 'limit', + 'offset', ], 'required': [ - 'ad_set_id', + 'advertiser_id', ], 'nullable': [ ], @@ -476,17 +679,22 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ad_set_id': + 'advertiser_id': (str,), - 'patch_ad_set_display_multiplier_list_request': - (PatchAdSetDisplayMultiplierListRequest,), + 'limit': + (int,), + 'offset': + (int,), }, 'attribute_map': { - 'ad_set_id': 'ad-set-id', + 'advertiser_id': 'advertiser-id', + 'limit': 'limit', + 'offset': 'offset', }, 'location_map': { - 'ad_set_id': 'path', - 'patch_ad_set_display_multiplier_list_request': 'body', + 'advertiser_id': 'path', + 'limit': 'query', + 'offset': 'query', }, 'collection_format_map': { } @@ -497,32 +705,31 @@ def __init__(self, api_client=None): 'application/json', 'text/json' ], - 'content_type': [ - 'application/json-patch+json', - 'application/json', - 'text/json', - 'application/*+json' - ] + 'content_type': [], }, api_client=api_client ) - self.search_ad_sets_endpoint = _Endpoint( + self.get_advertiser_coupon_endpoint = _Endpoint( settings={ - 'response_type': (ResponsesReadAdSet,), + 'response_type': (CouponResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/marketing-solutions/ad-sets/search', - 'operation_id': 'search_ad_sets', - 'http_method': 'POST', + 'endpoint_path': '/2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'get_advertiser_coupon', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'request_ad_set_search', + 'advertiser_id', + 'id', + ], + 'required': [ + 'advertiser_id', + 'id', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -536,13 +743,18 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'request_ad_set_search': - (RequestAdSetSearch,), + 'advertiser_id': + (str,), + 'id': + (str,), }, 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', }, 'location_map': { - 'request_ad_set_search': 'body', + 'advertiser_id': 'path', + 'id': 'path', }, 'collection_format_map': { } @@ -553,200 +765,684 @@ def __init__(self, api_client=None): 'application/json', 'text/json' ], - 'content_type': [ - 'application/json-patch+json', - 'application/json', - 'text/json', - 'application/*+json' + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_coupon_preview_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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.search_campaigns_endpoint = _Endpoint( - settings={ - 'response_type': (CampaignListResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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.get_advertiser_coupon_supported_sizes_endpoint = _Endpoint( + settings={ + 'response_type': (CouponSupportedSizesResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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-10/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-10/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-10/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 ) - self.start_ad_sets_endpoint = _Endpoint( - settings={ - 'response_type': (ResponsesAdSetId,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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 + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True ) - self.stop_ad_sets_endpoint = _Endpoint( - settings={ - 'response_type': (ResponsesAdSetId,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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 + 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 get_ad_set( + def delete_advertiser_coupon( self, - ad_set_id, + advertiser_id, + id, **kwargs ): - """get_ad_set # noqa: E501 + """delete_advertiser_coupon # noqa: E501 - Get the data for the specified ad set # 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.get_ad_set(ad_set_id, async_req=True) + >>> thread = api.delete_advertiser_coupon(advertiser_id, id, async_req=True) >>> result = thread.get() Args: - ad_set_id (str): Id of the ad set + 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 @@ -781,7 +1477,7 @@ def get_ad_set( async_req (bool): execute request asynchronously Returns: - ResponseReadAdSet + None If the method is called asynchronously, returns the request thread. """ @@ -810,26 +1506,28 @@ def get_ad_set( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.delete_advertiser_coupon_endpoint.call_with_http_info(**kwargs) - def get_campaign( + def delete_creative( self, - campaign_id, + id, **kwargs ): - """get_campaign # noqa: E501 + """delete_creative # noqa: E501 - Get the data for the specified campaign # 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.get_campaign(campaign_id, async_req=True) + >>> thread = api.delete_creative(id, async_req=True) >>> result = thread.get() Args: - campaign_id (str): Id of the campaign + id (str): The creative identifier to delete. Keyword Args: _return_http_data_only (bool): response data without head status @@ -864,7 +1562,7 @@ def get_campaign( async_req (bool): execute request asynchronously Returns: - CampaignResponse + None If the method is called asynchronously, returns the request thread. """ @@ -893,26 +1591,119 @@ def get_campaign( '_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) + 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 - def get_category_bid_list( + 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, - ad_set_id, + id, + creative_write_request, **kwargs ): - """get_category_bid_list # noqa: E501 + """edit_creative # noqa: E501 - Get the Category Bids for all valid Categories associated to an Ad Set # 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.get_category_bid_list(ad_set_id, async_req=True) + >>> thread = api.edit_creative(id, creative_write_request, async_req=True) >>> result = thread.get() Args: - ad_set_id (str): Id of the Ad Set + id (str): The creative identifier to edit. + creative_write_request (CreativeWriteRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -947,7 +1738,7 @@ def get_category_bid_list( async_req (bool): execute request asynchronously Returns: - AdSetCategoryBidListResponse + CreativeResponse If the method is called asynchronously, returns the request thread. """ @@ -976,28 +1767,32 @@ def get_category_bid_list( '_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) + kwargs['id'] = \ + id + kwargs['creative_write_request'] = \ + creative_write_request + return self.edit_creative_endpoint.call_with_http_info(**kwargs) - def get_display_multipliers( + def generate_creative_preview( self, - ad_set_id, + id, **kwargs ): - """get_display_multipliers # noqa: E501 + """generate_creative_preview # noqa: E501 - Get the Display Multipliers for all valid Categories associated to an Ad Set # 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_display_multipliers(ad_set_id, async_req=True) + >>> thread = api.generate_creative_preview(id, async_req=True) >>> result = thread.get() Args: - ad_set_id (str): Id of the Ad Set + 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 @@ -1030,7 +1825,7 @@ def get_display_multipliers( async_req (bool): execute request asynchronously Returns: - AdSetDisplayMultiplierListResponse + str If the method is called asynchronously, returns the request thread. """ @@ -1059,26 +1854,28 @@ def get_display_multipliers( '_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) + kwargs['id'] = \ + id + return self.generate_creative_preview_endpoint.call_with_http_info(**kwargs) - def patch_ad_sets( + def get_ad( self, + id, **kwargs ): - """patch_ad_sets # noqa: E501 + """get_ad # noqa: E501 - Patch a list of AdSets. # 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.patch_ad_sets(async_req=True) + >>> thread = api.get_ad(id, async_req=True) >>> result = thread.get() + Args: + id (int): The ad identifier to retrieve. 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 @@ -1111,7 +1908,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + AdResponse If the method is called asynchronously, returns the request thread. """ @@ -1140,24 +1937,30 @@ def patch_ad_sets( '_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) + kwargs['id'] = \ + id + return self.get_ad_endpoint.call_with_http_info(**kwargs) - def patch_campaigns( + def get_advertiser_ads( self, + advertiser_id, **kwargs ): - """patch_campaigns # noqa: E501 + """get_advertiser_ads # noqa: E501 - Patch a list of Campaigns. # 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.patch_campaigns(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: - patch_campaign_list_request (PatchCampaignListRequest): List of campaigns to patch.. [optional] + 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 @@ -1190,7 +1993,7 @@ def patch_campaigns( async_req (bool): execute request asynchronously Returns: - PatchResultCampaignListResponse + AdListResponse If the method is called asynchronously, returns the request thread. """ @@ -1219,27 +2022,30 @@ def patch_campaigns( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_ads_endpoint.call_with_http_info(**kwargs) - def patch_category_bid_list( + def get_advertiser_coupon( self, - ad_set_id, + advertiser_id, + id, **kwargs ): - """patch_category_bid_list # noqa: E501 + """get_advertiser_coupon # noqa: E501 - Patch Category Bids for one or more Categories in a single request. Partial success policy is followed. # 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.patch_category_bid_list(ad_set_id, async_req=True) + >>> thread = api.get_advertiser_coupon(advertiser_id, id, async_req=True) >>> result = thread.get() Args: - ad_set_id (str): Id of the Ad Set + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to retrieve. 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 @@ -1272,7 +2078,7 @@ def patch_category_bid_list( async_req (bool): execute request asynchronously Returns: - PatchAdSetCategoryBidResultListResponse + CouponResponse If the method is called asynchronously, returns the request thread. """ @@ -1301,29 +2107,34 @@ def patch_category_bid_list( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.get_advertiser_coupon_endpoint.call_with_http_info(**kwargs) - def patch_display_multipliers( + def get_advertiser_coupon_preview( self, - ad_set_id, + advertiser_id, + id, **kwargs ): - """patch_display_multipliers # noqa: E501 + """get_advertiser_coupon_preview # noqa: E501 - Patch Display Multipliers for one or more Categories in a single request. Partial success policy is followed. # 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.patch_display_multipliers(ad_set_id, async_req=True) + >>> thread = api.get_advertiser_coupon_preview(advertiser_id, id, async_req=True) >>> result = thread.get() Args: - ad_set_id (str): Id of the Ad Set + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to preview. Keyword Args: - patch_ad_set_display_multiplier_list_request (PatchAdSetDisplayMultiplierListRequest): [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 @@ -1356,7 +2167,7 @@ def patch_display_multipliers( async_req (bool): execute request asynchronously Returns: - PatchAdSetDisplayMultiplierResultListResponse + str If the method is called asynchronously, returns the request thread. """ @@ -1385,26 +2196,31 @@ def patch_display_multipliers( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.get_advertiser_coupon_preview_endpoint.call_with_http_info(**kwargs) - def search_ad_sets( + def get_advertiser_coupon_supported_sizes( self, + advertiser_id, **kwargs ): - """search_ad_sets # noqa: E501 + """get_advertiser_coupon_supported_sizes # noqa: E501 - Search for ad sets # 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.search_ad_sets(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: - request_ad_set_search (RequestAdSetSearch): [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 @@ -1437,7 +2253,7 @@ def search_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponsesReadAdSet + CouponSupportedSizesResponse If the method is called asynchronously, returns the request thread. """ @@ -1466,24 +2282,30 @@ def search_ad_sets( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_coupon_supported_sizes_endpoint.call_with_http_info(**kwargs) - def search_campaigns( + def get_advertiser_coupons( self, + advertiser_id, **kwargs ): - """search_campaigns # noqa: E501 + """get_advertiser_coupons # noqa: E501 - Search for campaigns # 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.search_campaigns(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: - campaign_search_request (CampaignSearchRequest): filters on campaigns. [optional] + 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 @@ -1516,7 +2338,7 @@ def search_campaigns( async_req (bool): execute request asynchronously Returns: - CampaignListResponse + CouponListResponse If the method is called asynchronously, returns the request thread. """ @@ -1545,24 +2367,30 @@ def search_campaigns( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_coupons_endpoint.call_with_http_info(**kwargs) - def start_ad_sets( + def get_advertiser_creatives( self, + advertiser_id, **kwargs ): - """start_ad_sets # noqa: E501 + """get_advertiser_creatives # noqa: E501 - Start the specified list of ad sets # 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.start_ad_sets(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: - requests_ad_set_id (RequestsAdSetId): All the ad sets to start. [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 @@ -1595,7 +2423,7 @@ def start_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponsesAdSetId + CreativeListResponse If the method is called asynchronously, returns the request thread. """ @@ -1624,24 +2452,28 @@ def start_ad_sets( '_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) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_creatives_endpoint.call_with_http_info(**kwargs) - def stop_ad_sets( + def get_creative( self, + id, **kwargs ): - """stop_ad_sets # noqa: E501 + """get_creative # noqa: E501 - Stop the specified list of ad sets # 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.stop_ad_sets(async_req=True) + >>> thread = api.get_creative(id, async_req=True) >>> result = thread.get() + Args: + id (str): The creative identifier to retrieve. 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 @@ -1674,7 +2506,7 @@ def stop_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponsesAdSetId + CreativeResponse If the method is called asynchronously, returns the request thread. """ @@ -1703,5 +2535,7 @@ def stop_ad_sets( '_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) + kwargs['id'] = \ + id + return self.get_creative_endpoint.call_with_http_info(**kwargs) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/gateway_api.py similarity index 94% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/gateway_api.py index b2e1c960..c252454a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/gateway_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,7 +21,7 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2022_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_marketingsolutions_v2023_10.model.application_summary_model_response import ApplicationSummaryModelResponse class GatewayApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/marketing-solutions/me', + 'endpoint_path': '/2023-10/marketing-solutions/me', 'operation_id': 'get_current_application', 'http_method': 'GET', 'servers': None, diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py similarity index 99% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py index 988e3b74..c217ac25 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -20,10 +20,10 @@ from urllib3.fields import RequestField -from criteo_api_marketingsolutions_v2022_10 import rest -from criteo_api_marketingsolutions_v2022_10.configuration import Configuration -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiTypeError, ApiValueError, ApiException -from criteo_api_marketingsolutions_v2022_10.model_utils import ( +from criteo_api_marketingsolutions_v2023_10 import rest +from criteo_api_marketingsolutions_v2023_10.configuration import Configuration +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiTypeError, ApiValueError, ApiException +from criteo_api_marketingsolutions_v2023_10.model_utils import ( ModelNormal, ModelSimple, ModelComposed, @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.231113/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client_builder.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client_builder.py similarity index 87% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client_builder.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client_builder.py index 6cbc8bd8..bcb1b0bd 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client_builder.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client_builder.py @@ -1,6 +1,6 @@ -from criteo_api_marketingsolutions_v2022_07.configuration import Configuration -from criteo_api_marketingsolutions_v2022_07.criteo_api_client import CriteoApiClient -from criteo_api_marketingsolutions_v2022_07 import flow_constants +from criteo_api_marketingsolutions_v2023_10.configuration import Configuration +from criteo_api_marketingsolutions_v2023_10.criteo_api_client import CriteoApiClient +from criteo_api_marketingsolutions_v2023_10 import flow_constants class ApiClientBuilder : diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/apis/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/apis/__init__.py similarity index 50% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/apis/__init__.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/apis/__init__.py index 6870f540..212a0b58 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/apis/__init__.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/apis/__init__.py @@ -6,7 +6,7 @@ # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # -# from criteo_api_marketingsolutions_v2022_10.api.advertiser_api import AdvertiserApi +# from criteo_api_marketingsolutions_v2023_10.api.advertiser_api import AdvertiserApi # # or import this package, but before doing it, use: # @@ -14,8 +14,9 @@ # sys.setrecursionlimit(n) # Import APIs into API package: -from criteo_api_marketingsolutions_v2022_10.api.advertiser_api import AdvertiserApi -from criteo_api_marketingsolutions_v2022_10.api.analytics_api import AnalyticsApi -from criteo_api_marketingsolutions_v2022_10.api.audience_api import AudienceApi -from criteo_api_marketingsolutions_v2022_10.api.campaign_api import CampaignApi -from criteo_api_marketingsolutions_v2022_10.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_10.api.advertiser_api import AdvertiserApi +from criteo_api_marketingsolutions_v2023_10.api.analytics_api import AnalyticsApi +from criteo_api_marketingsolutions_v2023_10.api.audience_api import AudienceApi +from criteo_api_marketingsolutions_v2023_10.api.campaign_api import CampaignApi +from criteo_api_marketingsolutions_v2023_10.api.creative_api import CreativeApi +from criteo_api_marketingsolutions_v2023_10.api.gateway_api import GatewayApi diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py index f046b30b..826d5379 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ import urllib3 from http import client as http_client -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiValueError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { @@ -133,7 +133,7 @@ def __init__(self, host=None, self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("criteo_api_marketingsolutions_v2022_10") + self.logger["package_logger"] = logging.getLogger("criteo_api_marketingsolutions_v2023_10") self.logger["urllib3_logger"] = logging.getLogger("urllib3") self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format @@ -394,8 +394,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2022-10\n"\ - "SDK Package Version: 2022.10.0.230831".\ + "Version of the API: 2023-10\n"\ + "SDK Package Version: 2023.10.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_api_client.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_api_client.py similarity index 80% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_api_client.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_api_client.py index fd260f75..d7fd0ef4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_api_client.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_api_client.py @@ -1,5 +1,5 @@ -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_10.criteo_rest import CriteoRESTClientObject +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_10.criteo_rest import CriteoRESTClientObject class CriteoApiClient(ApiClient): def __init__(self, configuration=None, header_name=None, header_value=None, diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_auth.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_auth.py similarity index 95% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_auth.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_auth.py index 8436e674..3e97e31c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_auth.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_auth.py @@ -1,8 +1,8 @@ import json from datetime import datetime, timedelta -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiException -from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient -from criteo_api_marketingsolutions_v2022_10 import flow_constants +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiException +from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_10 import flow_constants class Token(object): diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_rest.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_rest.py similarity index 94% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_rest.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_rest.py index 187a405a..34a4de0d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/criteo_rest.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/criteo_rest.py @@ -1,6 +1,6 @@ -from criteo_api_marketingsolutions_v2022_10.rest import RESTClientObject -from criteo_api_marketingsolutions_v2022_10.criteo_auth import * -from criteo_api_marketingsolutions_v2022_10 import flow_constants +from criteo_api_marketingsolutions_v2023_10.rest import RESTClientObject +from criteo_api_marketingsolutions_v2023_10.criteo_auth import * +from criteo_api_marketingsolutions_v2023_10 import flow_constants class CriteoRESTClientObject(RESTClientObject): diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/exceptions.py similarity index 99% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/exceptions.py index 72e2ea45..1ef52e73 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/exceptions.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/flow_constants.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/flow_constants.py similarity index 100% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/flow_constants.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/flow_constants.py diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/__init__.py similarity index 82% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/__init__.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/__init__.py index 6a6b7592..15dfd800 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/__init__.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/__init__.py @@ -2,4 +2,4 @@ # 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_v2022_10.models import ModelA, ModelB +# from criteo_api_marketingsolutions_v2023_10.models import ModelA, ModelB diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad.py new file mode 100644 index 00000000..808f8cd6 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + '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, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'creative_id': (str, none_type,), # noqa: E501 + 'ad_set_id': (str, none_type,), # noqa: E501 + 'inventory_type': (str, none_type,), # noqa: E501 + 'start_date': (str, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # 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, none_type): The name of the ad. [optional] # noqa: E501 + description (str, none_type): The description of the ad. [optional] # noqa: E501 + creative_id (str, none_type): The id of the Creative binded to this Ad. [optional] # noqa: E501 + ad_set_id (str, none_type): The id of the Ad Set binded to this Ad. [optional] # noqa: E501 + inventory_type (str, none_type): 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, none_type): The date when the ad will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str, none_type): 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, none_type): The name of the ad. [optional] # noqa: E501 + description (str, none_type): The description of the ad. [optional] # noqa: E501 + creative_id (str, none_type): The id of the Creative binded to this Ad. [optional] # noqa: E501 + ad_set_id (str, none_type): The id of the Ad Set binded to this Ad. [optional] # noqa: E501 + inventory_type (str, none_type): 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, none_type): The date when the ad will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_list_response.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_list_response.py index a745d631..b8b21483 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.application_summary_model_resource import ApplicationSummaryModelResource - from criteo_api_marketingsolutions_v2022_07.model.common_problem import CommonProblem - globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource + from criteo_api_marketingsolutions_v2023_10.model.ad_resource import AdResource + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + globals()['AdResource'] = AdResource globals()['CommonProblem'] = CommonProblem -class ApplicationSummaryModelResponse(ModelNormal): +class AdListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,6 +64,8 @@ class ApplicationSummaryModelResponse(ModelNormal): } validations = { + ('data',): { + }, ('warnings',): { }, ('errors',): { @@ -93,7 +95,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ApplicationSummaryModelResource,), # noqa: E501 + 'data': ([AdResource], none_type,), # noqa: E501 'warnings': ([CommonProblem], none_type,), # noqa: E501 'errors': ([CommonProblem], none_type,), # noqa: E501 } @@ -119,7 +121,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResponse - a model defined in OpenAPI + """AdListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +154,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,) - data (ApplicationSummaryModelResource): [optional] # noqa: E501 + data ([AdResource], none_type): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ @@ -207,7 +209,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResponse - a model defined in OpenAPI + """AdListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +242,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,) - data (ApplicationSummaryModelResource): [optional] # noqa: E501 + data ([AdResource], none_type): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_resource.py similarity index 94% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_resource.py index df4b47a8..cce93cbe 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_resource.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - RetailMedia # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.asset import Asset - globals()['Asset'] = Asset + from criteo_api_marketingsolutions_v2023_10.model.ad import Ad + globals()['Ad'] = Ad -class AssetResource(ModelNormal): +class AdResource(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 { - 'attributes': (Asset,), # noqa: E501 + 'attributes': (Ad,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AssetResource - a model defined in OpenAPI + """AdResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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 (Asset): [optional] # noqa: E501 + attributes (Ad): [optional] # noqa: E501 id (str, none_type): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 """ @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AssetResource - a model defined in OpenAPI + """AdResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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 (Asset): [optional] # noqa: E501 + attributes (Ad): [optional] # noqa: E501 id (str, none_type): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_response.py new file mode 100644 index 00000000..56fdf044 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.ad_resource import AdResource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1.py similarity index 94% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1.py index 6e92f99b..23c6c1ef 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - RetailMedia # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class ExternalPromotedProduct202110(ModelNormal): +class AdSetAudienceLinkEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,7 +81,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'bid_override': (float, none_type,), # noqa: E501 + 'audience_id': (str, none_type,), # noqa: E501 } @cached_property @@ -90,7 +90,7 @@ def discriminator(): attribute_map = { - 'bid_override': 'bidOverride', # noqa: E501 + 'audience_id': 'audienceId', # noqa: E501 } read_only_vars = { @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ExternalPromotedProduct202110 - a model defined in OpenAPI + """AdSetAudienceLinkEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - bid_override (float, none_type): [optional] # noqa: E501 + audience_id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -187,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 - """ExternalPromotedProduct202110 - a model defined in OpenAPI + """AdSetAudienceLinkEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - bid_override (float, none_type): [optional] # noqa: E501 + audience_id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_resource.py new file mode 100644 index 00000000..81f5aefd --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_entity_v1_response.py new file mode 100644 index 00000000..9ec34e78 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_input_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_audience_link_input_entity_v1.py new file mode 100644 index 00000000..50f2b2b8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid.py index 53298361..66f601f6 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py index 73d508f6..127372d1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_resource.py index 4741565d..96a67748 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid import AdSetCategoryBid + from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid import AdSetCategoryBid globals()['AdSetCategoryBid'] = AdSetCategoryBid diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py index 5493baa8..78b5e5ac 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier.py index 13adf35d..47d90d21 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py index 9cd489a5..7301874f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_resource.py index 65e03864..a4e1302e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier import AdSetDisplayMultiplier + from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier import AdSetDisplayMultiplier globals()['AdSetDisplayMultiplier'] = AdSetDisplayMultiplier diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py index 56e9df22..4ce48a45 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_geo_location.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_geo_location.py index 33bc72de..b9244c88 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_geo_location.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule + from criteo_api_marketingsolutions_v2023_10.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule globals()['NillableAdSetTargetingRule'] = NillableAdSetTargetingRule diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py index f9f5d53d..d9eaa40e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting.py index 61a80821..d226ae96 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_delivery_limitations import AdSetDeliveryLimitations - from criteo_api_marketingsolutions_v2022_07.model.ad_set_frequency_capping import AdSetFrequencyCapping - from criteo_api_marketingsolutions_v2022_07.model.ad_set_geo_location import AdSetGeoLocation + from criteo_api_marketingsolutions_v2023_10.model.ad_set_delivery_limitations import AdSetDeliveryLimitations + from criteo_api_marketingsolutions_v2023_10.model.ad_set_frequency_capping import AdSetFrequencyCapping + from criteo_api_marketingsolutions_v2023_10.model.ad_set_geo_location import AdSetGeoLocation globals()['AdSetDeliveryLimitations'] = AdSetDeliveryLimitations globals()['AdSetFrequencyCapping'] = AdSetFrequencyCapping globals()['AdSetGeoLocation'] = AdSetGeoLocation diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py index afb73934..6b7ac94c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write.py similarity index 78% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write.py index 18f676ed..17e0234a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class NewAudienceAttributes(ModelNormal): +class AdWrite(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,6 +55,11 @@ class NewAudienceAttributes(ModelNormal): """ allowed_values = { + ('inventory_type',): { + 'None': None, + 'DISPLAY': "Display", + 'NATIVE': "Native", + }, } validations = { @@ -82,8 +87,12 @@ def openapi_types(): """ return { 'name': (str,), # noqa: E501 - 'advertiser_id': (str, none_type,), # noqa: E501 + 'creative_id': (str,), # noqa: E501 + 'ad_set_id': (str,), # noqa: E501 + 'start_date': (str,), # noqa: E501 'description': (str, none_type,), # noqa: E501 + 'inventory_type': (str, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 } @cached_property @@ -93,8 +102,12 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'advertiser_id': 'advertiserId', # 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 = { @@ -104,11 +117,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 - """NewAudienceAttributes - a model defined in OpenAPI + 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 new audience + 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 @@ -141,8 +157,9 @@ def _from_openapi_data(cls, name, *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, none_type): The advertiser id to create the audience for. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + description (str, none_type): The description of the ad. [optional] # noqa: E501 + inventory_type (str, none_type): 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, none_type): 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) @@ -175,6 +192,9 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 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 \ @@ -195,11 +215,14 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, *args, **kwargs): # noqa: E501 - """NewAudienceAttributes - a model defined in OpenAPI + 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 new audience + 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 @@ -232,8 +255,9 @@ def __init__(self, name, *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, none_type): The advertiser id to create the audience for. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + description (str, none_type): The description of the ad. [optional] # noqa: E501 + inventory_type (str, none_type): 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, none_type): 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) @@ -264,6 +288,9 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_request.py similarity index 94% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_request.py index 3d5f604b..4d9b9052 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.new_audience import NewAudience - globals()['NewAudience'] = NewAudience + from criteo_api_marketingsolutions_v2023_10.model.ad_write_resource import AdWriteResource + globals()['AdWriteResource'] = AdWriteResource -class NewAudienceRequest(ModelNormal): +class AdWriteRequest(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': (NewAudience,), # noqa: E501 + 'data': (AdWriteResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """NewAudienceRequest - a model defined in OpenAPI + """AdWriteRequest - 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,) - data (NewAudience): [optional] # noqa: E501 + data (AdWriteResource): [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 - """NewAudienceRequest - a model defined in OpenAPI + """AdWriteRequest - 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,) - data (NewAudience): [optional] # noqa: E501 + data (AdWriteResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_resource.py new file mode 100644 index 00000000..a81cda7d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_write_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_attributes.py new file mode 100644 index 00000000..6d183449 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_attributes.py @@ -0,0 +1,361 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.adaptive_colors import AdaptiveColors + from criteo_api_marketingsolutions_v2023_10.model.image_set import ImageSet + from criteo_api_marketingsolutions_v2023_10.model.image_shape import ImageShape + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'image_display': (str, none_type,), # noqa: E501 + 'videos': ([VideoDetail], none_type,), # 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], none_type): Multiple image sets, each image set consists of multiple images and a headline text.. [optional] # noqa: E501 + image_display (str, none_type): 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], none_type): 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], none_type): Multiple image sets, each image set consists of multiple images and a headline text.. [optional] # noqa: E501 + image_display (str, none_type): 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], none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_colors.py similarity index 75% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_colors.py index 2caf972d..68dd02e4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_colors.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_name_description import AudienceNameDescription - globals()['AudienceNameDescription'] = AudienceNameDescription - -class ReplaceAudience(ModelNormal): +class AdaptiveColors(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,7 +66,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 @@ -85,10 +80,13 @@ def openapi_types(): 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 + '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 @@ -97,8 +95,12 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + '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 = { @@ -108,12 +110,16 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """ReplaceAudience - a model defined in OpenAPI + 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: - type (str): the name of the entity type - attributes (AudienceNameDescription): + 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 @@ -177,8 +183,12 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes + 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 \ @@ -199,12 +209,16 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """ReplaceAudience - a model defined in OpenAPI + 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: - type (str): the name of the entity type - attributes (AudienceNameDescription): + 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 @@ -266,8 +280,12 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes + 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 \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_write_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_write_attributes.py new file mode 100644 index 00000000..9b55c87d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/adaptive_write_attributes.py @@ -0,0 +1,357 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.adaptive_colors import AdaptiveColors + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'image_display': (str, none_type,), # noqa: E501 + 'video_base64_strings': ([str], none_type,), # 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], none_type): 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, none_type): 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], none_type): 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], none_type): 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, none_type): 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], none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/algebra_node_v1.py similarity index 89% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/algebra_node_v1.py index 2794a6f7..22036e34 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/algebra_node_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails - -class ProblemsDetails(ModelNormal): +class AlgebraNodeV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +58,6 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } @cached_property @@ -72,7 +66,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 @@ -87,9 +80,11 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + '_and': ([AlgebraNodeV1], none_type,), # noqa: E501 + '_or': ([AlgebraNodeV1], none_type,), # noqa: E501 + '_not': (AlgebraNodeV1,), # noqa: E501 + 'audience_segment_id': (str, none_type,), # noqa: E501 } @cached_property @@ -98,11 +93,13 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + '_and': 'and', # noqa: E501 + '_or': 'or', # noqa: E501 + '_not': 'not', # noqa: E501 + 'audience_segment_id': 'audienceSegmentId', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """AlgebraNodeV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +140,10 @@ 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 ([ProblemDetails], none_type): [optional] # noqa: E501 + _and ([AlgebraNodeV1], none_type): [optional] # noqa: E501 + _or ([AlgebraNodeV1], none_type): [optional] # noqa: E501 + _not (AlgebraNodeV1): [optional] # noqa: E501 + audience_segment_id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """AlgebraNodeV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +229,10 @@ 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 ([ProblemDetails], none_type): [optional] # noqa: E501 + _and ([AlgebraNodeV1], none_type): [optional] # noqa: E501 + _or ([AlgebraNodeV1], none_type): [optional] # noqa: E501 + _not (AlgebraNodeV1): [optional] # noqa: E501 + audience_segment_id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model.py index da8da285..c264e7a7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_resource.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_resource.py index be79eadc..f567e9d7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.application_summary_model import ApplicationSummaryModel + from criteo_api_marketingsolutions_v2023_10.model.application_summary_model import ApplicationSummaryModel globals()['ApplicationSummaryModel'] = ApplicationSummaryModel diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_response.py index 92573d87..2816e881 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/application_summary_model_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.application_summary_model_resource import ApplicationSummaryModelResource - from criteo_api_marketingsolutions_v2022_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.model.application_summary_model_resource import ApplicationSummaryModelResource + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource globals()['CommonProblem'] = CommonProblem diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_create_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_create_input_v1.py new file mode 100644 index 00000000..e3c4d258 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_delete_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_delete_input_v1.py new file mode 100644 index 00000000..4020140d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_update_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_bulk_update_input_v1.py new file mode 100644 index 00000000..008f6b61 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_size_entity_v1_resource.py new file mode 100644 index 00000000..d891ff47 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_sizes_input_v1.py similarity index 92% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_sizes_input_v1.py index 56552409..86772d1c 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_compute_sizes_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource - globals()['PatchAdSetDisplayMultiplierResource'] = PatchAdSetDisplayMultiplierResource + from criteo_api_marketingsolutions_v2023_10.model.audience_compute_size_entity_v1_resource import AudienceComputeSizeEntityV1Resource + globals()['AudienceComputeSizeEntityV1Resource'] = AudienceComputeSizeEntityV1Resource -class PatchAdSetDisplayMultiplierListRequest(ModelNormal): +class AudienceComputeSizesInputV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property @@ -89,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([PatchAdSetDisplayMultiplierResource], none_type,), # noqa: E501 + 'data': ([AudienceComputeSizeEntityV1Resource], none_type,), # noqa: E501 } @cached_property @@ -109,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetDisplayMultiplierListRequest - a model defined in OpenAPI + """AudienceComputeSizesInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,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,) - data ([PatchAdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 + data ([AudienceComputeSizeEntityV1Resource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,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 - """PatchAdSetDisplayMultiplierListRequest - a model defined in OpenAPI + """AudienceComputeSizesInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -228,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,) - data ([PatchAdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 + data ([AudienceComputeSizeEntityV1Resource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1.py similarity index 87% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1.py index 5899ccfc..8ac51df1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.algebra_node_v1 import AlgebraNodeV1 + globals()['AlgebraNodeV1'] = AlgebraNodeV1 -class NewAudienceAttributes(ModelNormal): + +class AudienceCreateEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -66,6 +70,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 """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,9 +85,11 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'name': (str,), # noqa: E501 - 'advertiser_id': (str, none_type,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 'description': (str, none_type,), # noqa: E501 } @@ -94,6 +101,7 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'advertiser_id': 'advertiserId', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 'description': 'description', # noqa: E501 } @@ -104,11 +112,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 - """NewAudienceAttributes - a model defined in OpenAPI + def _from_openapi_data(cls, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1 - a model defined in OpenAPI Args: - name (str): The name of the new audience + 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 @@ -141,8 +151,7 @@ def _from_openapi_data(cls, name, *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, none_type): The advertiser id to create the audience for. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + description (str, none_type): Description of the audience. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -175,6 +184,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 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 \ @@ -195,11 +206,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 - """NewAudienceAttributes - a model defined in OpenAPI + def __init__(self, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1 - a model defined in OpenAPI Args: - name (str): The name of the new audience + 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 @@ -232,8 +245,7 @@ def __init__(self, name, *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, none_type): The advertiser id to create the audience for. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + description (str, none_type): Description of the audience. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -264,6 +276,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1_resource.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1_resource.py index b976bd77..3fde19b4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_create_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.application_summary_model import ApplicationSummaryModel - globals()['ApplicationSummaryModel'] = ApplicationSummaryModel + from criteo_api_marketingsolutions_v2023_10.model.audience_create_entity_v1 import AudienceCreateEntityV1 + globals()['AudienceCreateEntityV1'] = AudienceCreateEntityV1 -class ApplicationSummaryModelResource(ModelNormal): +class AudienceCreateEntityV1Resource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (ApplicationSummaryModel,), # noqa: E501 + 'attributes': (AudienceCreateEntityV1,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResource - a model defined in OpenAPI + """AudienceCreateEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (ApplicationSummaryModel): [optional] # noqa: E501 + attributes (AudienceCreateEntityV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResource - a model defined in OpenAPI + """AudienceCreateEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (ApplicationSummaryModel): [optional] # noqa: E501 + attributes (AudienceCreateEntityV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_delete_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_delete_entity_v1_resource.py new file mode 100644 index 00000000..a39ceb86 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1.py new file mode 100644 index 00000000..285675c1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1.py @@ -0,0 +1,295 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # noqa: E501 + 'ad_set_ids': ([str], none_type,), # 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, none_type): Name of the audience. [optional] # noqa: E501 + description (str, none_type): Description of the audience. [optional] # noqa: E501 + created_at (datetime, none_type): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501 + updated_at (datetime, none_type): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501 + advertiser_id (str, none_type): Advertiser associated to the audience. [optional] # noqa: E501 + ad_set_ids ([str], none_type): 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, none_type): Name of the audience. [optional] # noqa: E501 + description (str, none_type): Description of the audience. [optional] # noqa: E501 + created_at (datetime, none_type): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501 + updated_at (datetime, none_type): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501 + advertiser_id (str, none_type): Advertiser associated to the audience. [optional] # noqa: E501 + ad_set_ids ([str], none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_audience_search_metadata_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_audience_search_metadata_v1_list_response.py new file mode 100644 index 00000000..a4e9e287 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_resource import AudienceEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.model.audience_search_metadata_v1 import AudienceSearchMetadataV1 + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_list_response.py new file mode 100644 index 00000000..036c4152 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_resource import AudienceEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_resource.py similarity index 94% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_resource.py index 86ed82b7..addbe3e5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.campaign import Campaign - globals()['Campaign'] = Campaign + from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1 import AudienceEntityV1 + globals()['AudienceEntityV1'] = AudienceEntityV1 -class CampaignReadResource(ModelNormal): +class AudienceEntityV1Resource(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': (AudienceEntityV1,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (Campaign,), # noqa: E501 } @cached_property @@ -98,14 +98,12 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { - 'id', # noqa: E501 - 'type', # noqa: E501 } _composed_schemas = {} @@ -113,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignReadResource - a model defined in OpenAPI + """AudienceEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,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,) + attributes (AudienceEntityV1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (Campaign): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -201,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CampaignReadResource - a model defined in OpenAPI + """AudienceEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,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,) + attributes (AudienceEntityV1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (Campaign): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_error.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_error.py index 39039e07..8df76045 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1.py similarity index 89% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1.py index bfba31e4..bc8fabba 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes - globals()['ContactlistAmendmentAttributes'] = ContactlistAmendmentAttributes + from criteo_api_marketingsolutions_v2023_10.model.algebra_node_v1 import AlgebraNodeV1 + globals()['AlgebraNodeV1'] = AlgebraNodeV1 -class ContactlistAmendment(ModelNormal): +class AudienceEstimateSizeEntityV1(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 { - 'type': (str,), # noqa: E501 - 'attributes': (ContactlistAmendmentAttributes,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 } @cached_property @@ -97,8 +97,8 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 } read_only_vars = { @@ -108,12 +108,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """ContactlistAmendment - a model defined in OpenAPI + def _from_openapi_data(cls, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI Args: - type (str): User List - attributes (ContactlistAmendmentAttributes): + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -177,8 +177,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes + 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 \ @@ -199,12 +199,12 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """ContactlistAmendment - a model defined in OpenAPI + def __init__(self, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI Args: - type (str): User List - attributes (ContactlistAmendmentAttributes): + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -266,8 +266,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes + 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_entity_v1_resource.py new file mode 100644 index 00000000..b9cbba9c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_estimate_size_input_v1.py new file mode 100644 index 00000000..7dbdfad5 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_list_response.py new file mode 100644 index 00000000..ccc7e125 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_id_entity_v1_resource import AudienceIdEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_resource.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_resource.py index e97d6b64..040e1f80 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_id_entity_v1_resource.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - RetailMedia # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class ResourceOfBalanceCampaign202110(ModelNormal): +class AudienceIdEntityV1Resource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,9 +81,9 @@ def openapi_types(): and the value is attribute type. """ return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -92,9 +92,9 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -105,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfBalanceCampaign202110 - a model defined in OpenAPI + """AudienceIdEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -138,9 +138,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,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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 + type (str, none_type): [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 - """ResourceOfBalanceCampaign202110 - a model defined in OpenAPI + """AudienceIdEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,9 +226,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,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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 + type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_name_description.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_name_description.py index 59a6b438..017a74b9 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_name_description.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1.py similarity index 88% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1.py index 3d811430..77c1b8b0 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetSearchFilter(ModelNormal): +class AudienceSearchEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -58,12 +58,6 @@ class AdSetSearchFilter(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -87,9 +81,10 @@ def openapi_types(): and the value is attribute type. """ return { - 'ad_set_ids': ([str], none_type,), # noqa: E501 + 'audience_ids': ([str], none_type,), # noqa: E501 'advertiser_ids': ([str], none_type,), # noqa: E501 - 'campaign_ids': ([str], none_type,), # noqa: E501 + 'audience_segment_ids': ([str], none_type,), # noqa: E501 + 'ad_set_ids': ([str], none_type,), # noqa: E501 } @cached_property @@ -98,9 +93,10 @@ def discriminator(): attribute_map = { - 'ad_set_ids': 'adSetIds', # noqa: E501 + 'audience_ids': 'audienceIds', # noqa: E501 'advertiser_ids': 'advertiserIds', # noqa: E501 - 'campaign_ids': 'campaignIds', # noqa: E501 + 'audience_segment_ids': 'audienceSegmentIds', # noqa: E501 + 'ad_set_ids': 'adSetIds', # noqa: E501 } read_only_vars = { @@ -111,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetSearchFilter - a model defined in OpenAPI + """AudienceSearchEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +140,10 @@ 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,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + audience_ids ([str], none_type): List of audience ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): List of advertiser ids. [optional] # noqa: E501 + audience_segment_ids ([str], none_type): List of segment ids (linked to the result audiences). [optional] # noqa: E501 + ad_set_ids ([str], none_type): List of AdSet ids. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetSearchFilter - a model defined in OpenAPI + """AudienceSearchEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +229,10 @@ 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,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + audience_ids ([str], none_type): List of audience ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): List of advertiser ids. [optional] # noqa: E501 + audience_segment_ids ([str], none_type): List of segment ids (linked to the result audiences). [optional] # noqa: E501 + ad_set_ids ([str], none_type): List of AdSet ids. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_entity_v1_resource.py new file mode 100644 index 00000000..f236b5fd --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_input_v1.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_input_v1.py index d4bfe658..4b644142 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.write_model_patch_ad_set import WriteModelPatchAdSet - globals()['WriteModelPatchAdSet'] = WriteModelPatchAdSet + from criteo_api_marketingsolutions_v2023_10.model.audience_search_entity_v1_resource import AudienceSearchEntityV1Resource + globals()['AudienceSearchEntityV1Resource'] = AudienceSearchEntityV1Resource -class RequestsPatchAdSet(ModelNormal): +class AudienceSearchInputV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property @@ -89,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([WriteModelPatchAdSet], none_type,), # noqa: E501 + 'data': (AudienceSearchEntityV1Resource,), # noqa: E501 } @cached_property @@ -109,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """RequestsPatchAdSet - a model defined in OpenAPI + """AudienceSearchInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,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,) - data ([WriteModelPatchAdSet], none_type): [optional] # noqa: E501 + data (AudienceSearchEntityV1Resource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,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 - """RequestsPatchAdSet - a model defined in OpenAPI + """AudienceSearchInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -228,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,) - data ([WriteModelPatchAdSet], none_type): [optional] # noqa: E501 + data (AudienceSearchEntityV1Resource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_metadata_v1.py similarity index 90% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_metadata_v1.py index 3a5d5d2d..ddd591ff 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_search_metadata_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetDisplayMultiplier(ModelNormal): +class AudienceSearchMetadataV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,8 +81,9 @@ def openapi_types(): and the value is attribute type. """ return { - 'category_name': (str, none_type,), # noqa: E501 - 'display_multiplier': (float, none_type,), # noqa: E501 + 'total_items': (int, none_type,), # noqa: E501 + 'limit': (int, none_type,), # noqa: E501 + 'offset': (int, none_type,), # noqa: E501 } @cached_property @@ -91,8 +92,9 @@ def discriminator(): attribute_map = { - 'category_name': 'categoryName', # noqa: E501 - 'display_multiplier': 'displayMultiplier', # noqa: E501 + 'total_items': 'totalItems', # noqa: E501 + 'limit': 'limit', # noqa: E501 + 'offset': 'offset', # noqa: E501 } read_only_vars = { @@ -103,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetDisplayMultiplier - a model defined in OpenAPI + """AudienceSearchMetadataV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,8 +138,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,) - category_name (str, none_type): The name of the Category to which the given for which the Display Multiplier has been applied.. [optional] # noqa: E501 - display_multiplier (float, none_type): The Display Multiplier applied to the given Category associated to an Ad Set.. [optional] # noqa: E501 + total_items (int, none_type): Total number of items. [optional] # noqa: E501 + limit (int, none_type): Max item of the current page. [optional] # noqa: E501 + offset (int, none_type): Number of item to skip. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -190,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 - """AdSetDisplayMultiplier - a model defined in OpenAPI + """AudienceSearchMetadataV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,8 +226,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,) - category_name (str, none_type): The name of the Category to which the given for which the Display Multiplier has been applied.. [optional] # noqa: E501 - display_multiplier (float, none_type): The Display Multiplier applied to the given Category associated to an Ad Set.. [optional] # noqa: E501 + total_items (int, none_type): Total number of items. [optional] # noqa: E501 + limit (int, none_type): Max item of the current page. [optional] # noqa: E501 + offset (int, none_type): Number of item to skip. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_create_input_v1.py similarity index 92% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_create_input_v1.py index 4403527a..514cd7aa 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_create_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource - globals()['PatchAdSetCategoryBidResource'] = PatchAdSetCategoryBidResource + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_create_entity_v1_resource import AudienceSegmentCreateEntityV1Resource + globals()['AudienceSegmentCreateEntityV1Resource'] = AudienceSegmentCreateEntityV1Resource -class PatchAdSetCategoryBidListRequest(ModelNormal): +class AudienceSegmentBulkCreateInputV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property @@ -89,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([PatchAdSetCategoryBidResource], none_type,), # noqa: E501 + 'data': ([AudienceSegmentCreateEntityV1Resource], none_type,), # noqa: E501 } @cached_property @@ -109,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidListRequest - a model defined in OpenAPI + """AudienceSegmentBulkCreateInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,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,) - data ([PatchAdSetCategoryBidResource], none_type): [optional] # noqa: E501 + data ([AudienceSegmentCreateEntityV1Resource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,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 - """PatchAdSetCategoryBidListRequest - a model defined in OpenAPI + """AudienceSegmentBulkCreateInputV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -228,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,) - data ([PatchAdSetCategoryBidResource], none_type): [optional] # noqa: E501 + data ([AudienceSegmentCreateEntityV1Resource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_delete_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_delete_input_v1.py new file mode 100644 index 00000000..1ffc8b8f --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_update_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_bulk_update_input_v1.py new file mode 100644 index 00000000..49750671 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_size_entity_v1_resource.py new file mode 100644 index 00000000..4ebf97a4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_sizes_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_compute_sizes_input_v1.py new file mode 100644 index 00000000..2514c219 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], 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 + """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], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1.py new file mode 100644 index 00000000..4f321349 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.in_market_create_v1 import InMarketCreateV1 + from criteo_api_marketingsolutions_v2023_10.model.location_create_v1 import LocationCreateV1 + from criteo_api_marketingsolutions_v2023_10.model.lookalike_create_v1 import LookalikeCreateV1 + from criteo_api_marketingsolutions_v2023_10.model.prospecting_create_v1 import ProspectingCreateV1 + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_create_entity_v1_resource.py new file mode 100644 index 00000000..2c66723d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_delete_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_delete_entity_v1_resource.py new file mode 100644 index 00000000..079bcf16 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1.py new file mode 100644 index 00000000..1266f89d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1.py @@ -0,0 +1,340 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.behavioral_v1 import BehavioralV1 + from criteo_api_marketingsolutions_v2023_10.model.contact_list_v1 import ContactListV1 + from criteo_api_marketingsolutions_v2023_10.model.in_market_v1 import InMarketV1 + from criteo_api_marketingsolutions_v2023_10.model.location_v1 import LocationV1 + from criteo_api_marketingsolutions_v2023_10.model.lookalike_v1 import LookalikeV1 + from criteo_api_marketingsolutions_v2023_10.model.prospecting_v1 import ProspectingV1 + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + '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, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # 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, none_type): Name of the segment. [optional] # noqa: E501 + description (str, none_type): Description of the segment. [optional] # noqa: E501 + type (str, none_type): Type of segment (read-only). [optional] # noqa: E501 + created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 + updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + advertiser_id (str, none_type): 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, none_type): Name of the segment. [optional] # noqa: E501 + description (str, none_type): Description of the segment. [optional] # noqa: E501 + type (str, none_type): Type of segment (read-only). [optional] # noqa: E501 + created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 + updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + advertiser_id (str, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py new file mode 100644 index 00000000..e10cf413 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_metadata_v1 import AudienceSegmentSearchMetadataV1 + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_list_response.py new file mode 100644 index 00000000..093b73de --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_entity_v1_resource.py new file mode 100644 index 00000000..c69dcdef --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_estimate_size_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_estimate_size_input_v1.py new file mode 100644 index 00000000..c4e23d49 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_list_response.py new file mode 100644 index 00000000..95b4abfe --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_id_entity_v1_resource import AudienceSegmentIdEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_id_entity_v1_resource.py new file mode 100644 index 00000000..48b478b3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1.py new file mode 100644 index 00000000..e1c4d175 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1.py @@ -0,0 +1,282 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'advertiser_ids': ([str], none_type,), # noqa: E501 + 'audience_segment_types': ([str], none_type,), # 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], none_type): List of segment ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): List of advertiser ids. [optional] # noqa: E501 + audience_segment_types ([str], none_type): 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], none_type): List of segment ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): List of advertiser ids. [optional] # noqa: E501 + audience_segment_types ([str], none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_entity_v1_resource.py new file mode 100644 index 00000000..9717ebe0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_input_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_input_v1.py new file mode 100644 index 00000000..5435cceb --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_metadata_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_search_metadata_v1.py new file mode 100644 index 00000000..f29cca02 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'limit': (int, none_type,), # noqa: E501 + 'offset': (int, none_type,), # 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, none_type): Total number of items. [optional] # noqa: E501 + limit (int, none_type): Max item of the current page. [optional] # noqa: E501 + offset (int, none_type): 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, none_type): Total number of items. [optional] # noqa: E501 + limit (int, none_type): Max item of the current page. [optional] # noqa: E501 + offset (int, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1.py similarity index 94% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1.py index cfc71bac..eade56cf 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class PortfolioMessage(ModelNormal): +class AudienceSegmentSizeEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,7 +81,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'advertiser_name': (str, none_type,), # noqa: E501 + 'size': (int, none_type,), # noqa: E501 } @cached_property @@ -90,7 +90,7 @@ def discriminator(): attribute_map = { - 'advertiser_name': 'advertiserName', # noqa: E501 + 'size': 'size', # noqa: E501 } read_only_vars = { @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PortfolioMessage - a model defined in OpenAPI + """AudienceSegmentSizeEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - advertiser_name (str, none_type): [optional] # noqa: E501 + size (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -187,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 - """PortfolioMessage - a model defined in OpenAPI + """AudienceSegmentSizeEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - advertiser_name (str, none_type): [optional] # noqa: E501 + size (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_list_response.py new file mode 100644 index 00000000..3c8e5658 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1_resource import AudienceSegmentSizeEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_entity_v1_resource.py new file mode 100644 index 00000000..3bc24665 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1.py similarity index 87% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1.py index 0fe81e3e..d2968cb9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.transparency_report_file import TransparencyReportFile - globals()['TransparencyReportFile'] = TransparencyReportFile + from criteo_api_marketingsolutions_v2023_10.model.in_market_size_estimation_v1 import InMarketSizeEstimationV1 + from criteo_api_marketingsolutions_v2023_10.model.location_size_estimation_v1 import LocationSizeEstimationV1 + globals()['InMarketSizeEstimationV1'] = InMarketSizeEstimationV1 + globals()['LocationSizeEstimationV1'] = LocationSizeEstimationV1 -class TransparencyReportAttributes(ModelNormal): +class AudienceSegmentSizeEstimationEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +64,6 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } @cached_property @@ -90,8 +90,8 @@ def openapi_types(): lazy_import() return { 'advertiser_id': (str,), # noqa: E501 - 'token_valid_until': (datetime,), # noqa: E501 - 'files': ([TransparencyReportFile],), # noqa: E501 + 'in_market': (InMarketSizeEstimationV1,), # noqa: E501 + 'location': (LocationSizeEstimationV1,), # noqa: E501 } @cached_property @@ -101,8 +101,8 @@ def discriminator(): attribute_map = { 'advertiser_id': 'advertiserId', # noqa: E501 - 'token_valid_until': 'tokenValidUntil', # noqa: E501 - 'files': 'files', # noqa: E501 + 'in_market': 'inMarket', # noqa: E501 + 'location': 'location', # noqa: E501 } read_only_vars = { @@ -112,13 +112,11 @@ def discriminator(): @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 + def _from_openapi_data(cls, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI Args: - advertiser_id (str): - token_valid_until (datetime): - files ([TransparencyReportFile]): + advertiser_id (str): Advertiser associated to the segment Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -151,6 +149,8 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw 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) @@ -183,8 +183,6 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw 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 \ @@ -205,13 +203,11 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw ]) @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 + def __init__(self, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI Args: - advertiser_id (str): - token_valid_until (datetime): - files ([TransparencyReportFile]): + advertiser_id (str): Advertiser associated to the segment Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -244,6 +240,8 @@ def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # 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) @@ -274,8 +272,6 @@ def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # 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 \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_entity_v1_resource.py new file mode 100644 index 00000000..ed7d5372 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1.py new file mode 100644 index 00000000..57d7a5ce --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, 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 + """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, 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_resource.py new file mode 100644 index 00000000..187bafae --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_size_estimation_v1_response.py new file mode 100644 index 00000000..098153dd --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1_resource import AudienceSegmentSizeEstimationV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1.py similarity index 79% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1.py index 4a29f7e1..f0f024d1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,21 +26,25 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_targeting import AdSetTargeting - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_bidding import PatchAdSetBidding - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_budget import PatchAdSetBudget - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_scheduling import PatchAdSetScheduling - globals()['AdSetTargeting'] = AdSetTargeting - globals()['PatchAdSetBidding'] = PatchAdSetBidding - globals()['PatchAdSetBudget'] = PatchAdSetBudget - globals()['PatchAdSetScheduling'] = PatchAdSetScheduling - - -class PatchAdSet(ModelNormal): + from criteo_api_marketingsolutions_v2023_10.model.in_market_update_v1 import InMarketUpdateV1 + from criteo_api_marketingsolutions_v2023_10.model.location_update_v1 import LocationUpdateV1 + from criteo_api_marketingsolutions_v2023_10.model.lookalike_update_v1 import LookalikeUpdateV1 + from criteo_api_marketingsolutions_v2023_10.model.nillable_string import NillableString + from criteo_api_marketingsolutions_v2023_10.model.prospecting_update_v1 import ProspectingUpdateV1 + from criteo_api_marketingsolutions_v2023_10.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 @@ -94,10 +98,12 @@ def openapi_types(): lazy_import() return { 'name': (str, none_type,), # noqa: E501 - 'scheduling': (PatchAdSetScheduling,), # noqa: E501 - 'bidding': (PatchAdSetBidding,), # noqa: E501 - 'targeting': (AdSetTargeting,), # noqa: E501 - 'budget': (PatchAdSetBudget,), # 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 @@ -107,10 +113,12 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'scheduling': 'scheduling', # noqa: E501 - 'bidding': 'bidding', # noqa: E501 - 'targeting': 'targeting', # noqa: E501 - 'budget': 'budget', # 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 = { @@ -121,7 +129,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSet - a model defined in OpenAPI + """AudienceSegmentUpdateEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -154,11 +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, none_type): 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 + name (str, none_type): 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) @@ -211,7 +221,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSet - a model defined in OpenAPI + """AudienceSegmentUpdateEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -244,11 +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, none_type): 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 + name (str, none_type): 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_segment_update_entity_v1_resource.py new file mode 100644 index 00000000..8ef3f8f9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1.py new file mode 100644 index 00000000..8a2efa88 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + + +class AudienceSizeEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + 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, none_type,), # 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 + """AudienceSizeEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, 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 + """AudienceSizeEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_list_response.py new file mode 100644 index 00000000..726b76de --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1_resource import AudienceSizeEntityV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_resource.py similarity index 93% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_resource.py index cb6eeb47..1caf5a9d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.read_ad_set import ReadAdSet - globals()['ReadAdSet'] = ReadAdSet + from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1 import AudienceSizeEntityV1 + globals()['AudienceSizeEntityV1'] = AudienceSizeEntityV1 -class ReadModelReadAdSet(ModelNormal): +class AudienceSizeEntityV1Resource(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': (AudienceSizeEntityV1,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (ReadAdSet,), # noqa: E501 } @cached_property @@ -98,14 +98,12 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { - 'id', # noqa: E501 - 'type', # noqa: E501 } _composed_schemas = {} @@ -113,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReadModelReadAdSet - a model defined in OpenAPI + """AudienceSizeEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,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,) + attributes (AudienceSizeEntityV1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (ReadAdSet): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -201,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ReadModelReadAdSet - a model defined in OpenAPI + """AudienceSizeEntityV1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,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,) + attributes (AudienceSizeEntityV1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (ReadAdSet): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1.py new file mode 100644 index 00000000..dde6c9e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, 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 + """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, 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_resource.py new file mode 100644 index 00000000..39940e88 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_size_estimation_v1_response.py new file mode 100644 index 00000000..b4e75a9f --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1_resource import AudienceSizeEstimationV1Resource + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1.py new file mode 100644 index 00000000..929b9f97 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.algebra_node_v1 import AlgebraNodeV1 + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_update_entity_v1_resource.py new file mode 100644 index 00000000..786c0818 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_warning.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_warning.py index b57f9190..452e2f25 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/audience_warning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/basic_audience_definition.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/basic_audience_definition.py index 51472d8c..d830acaf 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/basic_audience_definition.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_name_description import AudienceNameDescription + from criteo_api_marketingsolutions_v2023_10.model.audience_name_description import AudienceNameDescription globals()['AudienceNameDescription'] = AudienceNameDescription diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/behavioral_v1.py similarity index 85% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/behavioral_v1.py index 8bbd9e08..dd605a29 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/behavioral_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class TransparencyQueryMessage(ModelNormal): +class BehavioralV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,6 +55,13 @@ class TransparencyQueryMessage(ModelNormal): """ allowed_values = { + ('category',): { + 'UNKNOWN': "Unknown", + 'LIFESTYLES': "Lifestyles", + 'LIFEEVENTS': "LifeEvents", + 'SEASONAL': "Seasonal", + 'BUYINGPATTERNS': "BuyingPatterns", + }, } validations = { @@ -81,9 +88,10 @@ def openapi_types(): and the value is attribute type. """ return { - 'start_date': (datetime,), # noqa: E501 - 'end_date': (datetime,), # noqa: E501 - 'should_display_product_ids': (bool, none_type,), # noqa: E501 + 'category': (str,), # noqa: E501 + 'country': (str, none_type,), # noqa: E501 + 'start_date': (datetime, none_type,), # noqa: E501 + 'end_date': (datetime, none_type,), # noqa: E501 } @cached_property @@ -92,9 +100,10 @@ def discriminator(): attribute_map = { + 'category': 'category', # noqa: E501 + 'country': 'country', # noqa: E501 'start_date': 'startDate', # noqa: E501 'end_date': 'endDate', # noqa: E501 - 'should_display_product_ids': 'shouldDisplayProductIds', # noqa: E501 } read_only_vars = { @@ -104,12 +113,11 @@ def discriminator(): @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 + def _from_openapi_data(cls, category, *args, **kwargs): # noqa: E501 + """BehavioralV1 - 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. + category (str): The type of behavioral Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,7 +150,9 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 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, none_type): Specify if the product ids are displayed in the report.. [optional] if omitted the server will use the default value of False # noqa: E501 + country (str, none_type): The users' country. [optional] # noqa: E501 + start_date (datetime, none_type): Desired date when the behavioral will start. [optional] # noqa: E501 + end_date (datetime, none_type): Desired date when the behavioral will end. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,8 +184,7 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.start_date = start_date - self.end_date = end_date + 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 \ @@ -196,12 +205,11 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 ]) @convert_js_args_to_python_args - def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 - """TransparencyQueryMessage - a model defined in OpenAPI + def __init__(self, category, *args, **kwargs): # noqa: E501 + """BehavioralV1 - 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. + category (str): The type of behavioral Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,7 +242,9 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 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, none_type): Specify if the product ids are displayed in the report.. [optional] if omitted the server will use the default value of False # noqa: E501 + country (str, none_type): The users' country. [optional] # noqa: E501 + start_date (datetime, none_type): Desired date when the behavioral will start. [optional] # noqa: E501 + end_date (datetime, none_type): Desired date when the behavioral will end. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -264,8 +274,7 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.start_date = start_date - self.end_date = end_date + 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 \ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py index c4bc7b41..e554c0a7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.campaign_spend_limit import CampaignSpendLimit + from criteo_api_marketingsolutions_v2023_10.model.campaign_spend_limit import CampaignSpendLimit globals()['CampaignSpendLimit'] = CampaignSpendLimit diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py index 5f7c6726..60fc2081 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.campaign_read_resource import CampaignReadResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['CampaignReadResource'] = CampaignReadResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_read_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_read_resource.py index aafdad6b..d5c00913 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_read_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.campaign import Campaign + from criteo_api_marketingsolutions_v2023_10.model.campaign import Campaign globals()['Campaign'] = Campaign diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py index b3580c46..9ee2de14 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.campaign_read_resource import CampaignReadResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['CampaignReadResource'] = CampaignReadResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py index 91fc04e4..a553fd64 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_request.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_request.py index 44cb1aad..a59089cc 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.campaign_search_filters import CampaignSearchFilters + from criteo_api_marketingsolutions_v2023_10.model.campaign_search_filters import CampaignSearchFilters globals()['CampaignSearchFilters'] = CampaignSearchFilters diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py index 7796811f..f4a3250d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py similarity index 96% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py index 04bce409..0c4f4341 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal -class CampaignSpendLimit(ModelNormal): +class CampaignSpendLimitV23Q1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -123,7 +123,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignSpendLimit - a model defined in OpenAPI + """CampaignSpendLimitV23Q1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -211,7 +211,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CampaignSpendLimit - a model defined in OpenAPI + """CampaignSpendLimitV23Q1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py similarity index 91% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py index 9ef281ee..bbeaa6ee 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.campaign_spend_limit import CampaignSpendLimit - globals()['CampaignSpendLimit'] = CampaignSpendLimit + from criteo_api_marketingsolutions_v2023_10.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1 + globals()['CampaignSpendLimitV23Q1'] = CampaignSpendLimitV23Q1 -class Campaign(ModelNormal): +class CampaignV23Q1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -61,9 +61,9 @@ class Campaign(ModelNormal): allowed_values = { ('goal',): { 'None': None, - 'UNSPECIFIED': "Unspecified", - 'ACQUISITION': "Acquisition", - 'RETENTION': "Retention", + 'UNSPECIFIED': "unspecified", + 'ACQUISITION': "acquisition", + 'RETENTION': "retention", }, } @@ -95,8 +95,7 @@ def openapi_types(): return { 'name': (str, none_type,), # noqa: E501 'advertiser_id': (str, none_type,), # noqa: E501 - 'objective': (str, none_type,), # noqa: E501 - 'spend_limit': (CampaignSpendLimit,), # noqa: E501 + 'spend_limit': (CampaignSpendLimitV23Q1,), # noqa: E501 'goal': (str, none_type,), # noqa: E501 } @@ -108,7 +107,6 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'advertiser_id': 'advertiserId', # noqa: E501 - 'objective': 'objective', # noqa: E501 'spend_limit': 'spendLimit', # noqa: E501 'goal': 'goal', # noqa: E501 } @@ -121,7 +119,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Campaign - a model defined in OpenAPI + """CampaignV23Q1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -156,8 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str, none_type): Name of the campaign. [optional] # noqa: E501 advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 - spend_limit (CampaignSpendLimit): [optional] # noqa: E501 + spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 """ @@ -211,7 +208,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """Campaign - a model defined in OpenAPI + """CampaignV23Q1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -246,8 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str, none_type): Name of the campaign. [optional] # noqa: E501 advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 - spend_limit (CampaignSpendLimit): [optional] # noqa: E501 + spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_resource.py similarity index 94% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_resource.py index b1596c24..785ea281 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set import PatchAdSet - globals()['PatchAdSet'] = PatchAdSet + from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1 import CampaignV23Q1 + globals()['CampaignV23Q1'] = CampaignV23Q1 -class WriteModelPatchAdSet(ModelNormal): +class CampaignV23Q1Resource(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': (CampaignV23Q1,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (PatchAdSet,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """WriteModelPatchAdSet - a model defined in OpenAPI + """CampaignV23Q1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) + attributes (CampaignV23Q1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (PatchAdSet): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """WriteModelPatchAdSet - a model defined in OpenAPI + """CampaignV23Q1Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) + attributes (CampaignV23Q1): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (PatchAdSet): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py index 0a5461e9..6bbc0604 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_07.model.read_model_read_ad_set import ReadModelReadAdSet + from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1_resource import CampaignV23Q1Resource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelReadAdSet'] = ReadModelReadAdSet -class ResponseReadAdSet(ModelNormal): +class CampaignV23Q1Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -93,7 +93,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelReadAdSet,), # noqa: E501 + 'data': (CampaignV23Q1Resource,), # noqa: E501 'warnings': ([ProblemDetails], none_type,), # noqa: E501 'errors': ([ProblemDetails], none_type,), # noqa: E501 } @@ -119,7 +119,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseReadAdSet - a model defined in OpenAPI + """CampaignV23Q1Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +152,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,) - data (ReadModelReadAdSet): [optional] # noqa: E501 + data (CampaignV23Q1Resource): [optional] # noqa: E501 warnings ([ProblemDetails], none_type): [optional] # noqa: E501 errors ([ProblemDetails], none_type): [optional] # noqa: E501 """ @@ -207,7 +207,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseReadAdSet - a model defined in OpenAPI + """CampaignV23Q1Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +240,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,) - data (ReadModelReadAdSet): [optional] # noqa: E501 + data (CampaignV23Q1Resource): [optional] # noqa: E501 warnings ([ProblemDetails], none_type): [optional] # noqa: E501 errors ([ProblemDetails], none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/common_problem.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/common_problem.py index 68b0484b..a33f344c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/common_problem.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1.py similarity index 87% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1.py index 7438f58e..5b8c55b3 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class ApplicationSummaryModel(ModelNormal): +class ContactListStatisticsEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,11 +81,9 @@ def openapi_types(): and the value is attribute type. """ return { - 'application_id': (int, none_type,), # noqa: E501 - 'name': (str, none_type,), # noqa: E501 - 'organization_id': (int, none_type,), # noqa: E501 - 'description': (str, none_type,), # noqa: E501 - 'criteo_service': (str, none_type,), # noqa: E501 + 'number_of_identifiers': (int, none_type,), # noqa: E501 + 'number_of_matches': (int, none_type,), # noqa: E501 + 'match_rate': (float, none_type,), # noqa: E501 } @cached_property @@ -94,11 +92,9 @@ def discriminator(): 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 + 'number_of_identifiers': 'numberOfIdentifiers', # noqa: E501 + 'number_of_matches': 'numberOfMatches', # noqa: E501 + 'match_rate': 'matchRate', # noqa: E501 } read_only_vars = { @@ -109,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModel - a model defined in OpenAPI + """ContactListStatisticsEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,11 +138,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,) - application_id (int, none_type): [optional] # noqa: E501 - name (str, none_type): [optional] # noqa: E501 - organization_id (int, none_type): [optional] # noqa: E501 - description (str, none_type): [optional] # noqa: E501 - criteo_service (str, none_type): [optional] # noqa: E501 + number_of_identifiers (int, none_type): Number of identifiers in the contact list.. [optional] # noqa: E501 + number_of_matches (int, none_type): Number of matched identifiers in the contact list.. [optional] # noqa: E501 + match_rate (float, none_type): 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) @@ -199,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 - """ApplicationSummaryModel - a model defined in OpenAPI + """ContactListStatisticsEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,11 +226,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,) - application_id (int, none_type): [optional] # noqa: E501 - name (str, none_type): [optional] # noqa: E501 - organization_id (int, none_type): [optional] # noqa: E501 - description (str, none_type): [optional] # noqa: E501 - criteo_service (str, none_type): [optional] # noqa: E501 + number_of_identifiers (int, none_type): Number of identifiers in the contact list.. [optional] # noqa: E501 + number_of_matches (int, none_type): Number of matched identifiers in the contact list.. [optional] # noqa: E501 + match_rate (float, none_type): 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) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_resource.py new file mode 100644 index 00000000..a9eb9f93 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_statistics_entity_v1_response.py new file mode 100644 index 00000000..9d5b745d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_v1.py new file mode 100644 index 00000000..f4b88630 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contact_list_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, none_type): 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, none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment.py index a3344b2f..88597e17 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes + from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes globals()['ContactlistAmendmentAttributes'] = ContactlistAmendmentAttributes diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_attributes.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_attributes.py index e328d393..97600865 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_request.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_request.py index 1f2e69d7..319826c4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_amendment_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.contactlist_amendment import ContactlistAmendment + from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment import ContactlistAmendment globals()['ContactlistAmendment'] = ContactlistAmendment diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation.py index cc3da548..28f7ff4a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.contactlist_operation_attributes import ContactlistOperationAttributes + from criteo_api_marketingsolutions_v2023_10.model.contactlist_operation_attributes import ContactlistOperationAttributes globals()['ContactlistOperationAttributes'] = ContactlistOperationAttributes diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation_attributes.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation_attributes.py index 6a635a60..93f1045b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/contactlist_operation_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon.py new file mode 100644 index 00000000..e1e8673b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon.py @@ -0,0 +1,323 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'author': (str, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # noqa: E501 + 'ad_set_id': (str, none_type,), # noqa: E501 + 'landing_page_url': (str, none_type,), # noqa: E501 + 'start_date': (str, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'status': (str, none_type,), # noqa: E501 + 'images': ([ImageSlide], none_type,), # noqa: E501 + 'show_every': (int, none_type,), # noqa: E501 + 'show_duration': (int, none_type,), # noqa: E501 + 'rotations_number': (int, none_type,), # 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, none_type): The name of the Coupon. [optional] # noqa: E501 + description (str, none_type): The description of the Coupon. [optional] # noqa: E501 + author (str, none_type): The login of the person who created this Coupon. [optional] # noqa: E501 + advertiser_id (str, none_type): Advertiser linked to the Coupon. [optional] # noqa: E501 + ad_set_id (str, none_type): The id of the Ad Set on which the Coupon is applied to. [optional] # noqa: E501 + landing_page_url (str, none_type): Web redirection of the landing page url. [optional] # noqa: E501 + start_date (str, none_type): The date when the Coupon will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str, none_type): 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, none_type): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\". [optional] # noqa: E501 + status (str, none_type): The status of the Coupon. [optional] # noqa: E501 + images ([ImageSlide], none_type): List of slides containing the image URLs. [optional] # noqa: E501 + show_every (int, none_type): Show the Coupon every N seconds (between 1 and 10). [optional] # noqa: E501 + show_duration (int, none_type): Show Coupon for a duration of N seconds (between 1 and 5). [optional] # noqa: E501 + rotations_number (int, none_type): 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, none_type): The name of the Coupon. [optional] # noqa: E501 + description (str, none_type): The description of the Coupon. [optional] # noqa: E501 + author (str, none_type): The login of the person who created this Coupon. [optional] # noqa: E501 + advertiser_id (str, none_type): Advertiser linked to the Coupon. [optional] # noqa: E501 + ad_set_id (str, none_type): The id of the Ad Set on which the Coupon is applied to. [optional] # noqa: E501 + landing_page_url (str, none_type): Web redirection of the landing page url. [optional] # noqa: E501 + start_date (str, none_type): The date when the Coupon will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str, none_type): 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, none_type): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\". [optional] # noqa: E501 + status (str, none_type): The status of the Coupon. [optional] # noqa: E501 + images ([ImageSlide], none_type): List of slides containing the image URLs. [optional] # noqa: E501 + show_every (int, none_type): Show the Coupon every N seconds (between 1 and 10). [optional] # noqa: E501 + show_duration (int, none_type): Show Coupon for a duration of N seconds (between 1 and 5). [optional] # noqa: E501 + rotations_number (int, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/coupon_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_list_response.py new file mode 100644 index 00000000..40628b9a --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_resource.py new file mode 100644 index 00000000..f0cb7f55 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_response.py new file mode 100644 index 00000000..fbba219e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes.py similarity index 90% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes.py index b5bf838d..01f3a4e3 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetTargetingRule(ModelNormal): +class CouponSupportedSizes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,16 +55,12 @@ class AdSetTargetingRule(ModelNormal): """ allowed_values = { - ('operand',): { - 'None': None, - 'UNDEFINED': "undefined", - 'IN': "in", - 'NOTIN': "notIn", - }, } validations = { - ('values',): { + ('logo_zone',): { + }, + ('full_frame',): { }, } @@ -89,8 +85,8 @@ def openapi_types(): and the value is attribute type. """ return { - 'operand': (str, none_type,), # noqa: E501 - 'values': ([str], none_type,), # noqa: E501 + 'logo_zone': ([str], none_type,), # noqa: E501 + 'full_frame': ([str], none_type,), # noqa: E501 } @cached_property @@ -99,8 +95,8 @@ def discriminator(): attribute_map = { - 'operand': 'operand', # noqa: E501 - 'values': 'values', # noqa: E501 + 'logo_zone': 'logoZone', # noqa: E501 + 'full_frame': 'fullFrame', # noqa: E501 } read_only_vars = { @@ -111,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetTargetingRule - a model defined in OpenAPI + """CouponSupportedSizes - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,8 +140,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,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + logo_zone ([str], none_type): Array of LogoZone sizes as string in width x height format. [optional] # noqa: E501 + full_frame ([str], none_type): Array of FullFrame sizes as string in width x height format. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -198,7 +194,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetTargetingRule - a model defined in OpenAPI + """CouponSupportedSizes - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -231,8 +227,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,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + logo_zone ([str], none_type): Array of LogoZone sizes as string in width x height format. [optional] # noqa: E501 + full_frame ([str], none_type): Array of FullFrame sizes as string in width x height format. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_resource.py new file mode 100644 index 00000000..f03c5196 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_response.py new file mode 100644 index 00000000..80cc3c35 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/coupon_supported_sizes_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py similarity index 73% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py index 6ed423b4..290e3bdc 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,21 +26,21 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_targeting import AdSetTargeting - from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_bidding import ReadAdSetBidding - from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_budget import ReadAdSetBudget - from criteo_api_marketingsolutions_v2022_10.model.read_ad_set_schedule import ReadAdSetSchedule - globals()['AdSetTargeting'] = AdSetTargeting - globals()['ReadAdSetBidding'] = ReadAdSetBidding - globals()['ReadAdSetBudget'] = ReadAdSetBudget - globals()['ReadAdSetSchedule'] = ReadAdSetSchedule + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_bidding import CreateAdSetBidding + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_budget import CreateAdSetBudget + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_schedule import CreateAdSetSchedule + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_targeting import CreateAdSetTargeting + globals()['CreateAdSetBidding'] = CreateAdSetBidding + globals()['CreateAdSetBudget'] = CreateAdSetBudget + globals()['CreateAdSetSchedule'] = CreateAdSetSchedule + globals()['CreateAdSetTargeting'] = CreateAdSetTargeting -class ReadAdSet(ModelNormal): +class CreateAdSet(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -65,14 +65,20 @@ class ReadAdSet(ModelNormal): """ allowed_values = { - ('destination_environment',): { - 'None': None, - 'UNDEFINED': "undefined", - 'WEB': "web", - 'APP': "app", + ('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',): { - 'None': None, 'DISPLAY': "display", 'VIDEO': "video", }, @@ -104,16 +110,16 @@ def openapi_types(): """ lazy_import() return { - 'name': (str, none_type,), # noqa: E501 - 'advertiser_id': (str, none_type,), # noqa: E501 - 'dataset_id': (str, none_type,), # noqa: E501 - 'campaign_id': (str, none_type,), # noqa: E501 - 'destination_environment': (str, none_type,), # noqa: E501 - 'schedule': (ReadAdSetSchedule,), # noqa: E501 - 'bidding': (ReadAdSetBidding,), # noqa: E501 - 'targeting': (AdSetTargeting,), # noqa: E501 - 'budget': (ReadAdSetBudget,), # noqa: E501 - 'media_type': (str, none_type,), # noqa: E501 + '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 @@ -123,14 +129,14 @@ def discriminator(): 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 + '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 } @@ -141,8 +147,20 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReadAdSet - a model defined in OpenAPI + 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 @@ -175,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, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): 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, none_type): Media type for the ad set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -216,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 \ @@ -236,8 +254,20 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ReadAdSet - a model defined in OpenAPI + 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 @@ -270,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, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): 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, none_type): Media type for the ad set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -309,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_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_bidding.py similarity index 86% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_bidding.py index b92be5a1..bbb869ac 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_bidding.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetCategoryBid(ModelNormal): +class CreateAdSetBidding(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,6 +55,16 @@ class AdSetCategoryBid(ModelNormal): """ allowed_values = { + ('cost_controller',): { + 'COS': "COS", + 'CPC': "CPC", + 'CPI': "CPI", + 'CPM': "CPM", + 'CPO': "CPO", + 'CPSV': "CPSV", + 'CPV': "CPV", + 'DAILYBUDGET': "dailyBudget", + }, } validations = { @@ -81,7 +91,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'category_name': (str, none_type,), # noqa: E501 + 'cost_controller': (str,), # noqa: E501 'bid_amount': (float, none_type,), # noqa: E501 } @@ -91,7 +101,7 @@ def discriminator(): attribute_map = { - 'category_name': 'categoryName', # noqa: E501 + 'cost_controller': 'costController', # noqa: E501 'bid_amount': 'bidAmount', # noqa: E501 } @@ -102,8 +112,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetCategoryBid - a model defined in OpenAPI + 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 @@ -136,8 +149,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,) - category_name (str, none_type): The name of the Category to which the Category Bid has been applied.. [optional] # noqa: E501 - bid_amount (float, none_type): 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 + bid_amount (float, none_type): 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) @@ -169,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 \ @@ -189,8 +202,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetCategoryBid - a model defined in OpenAPI + 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 @@ -223,8 +239,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,) - category_name (str, none_type): The name of the Category to which the Category Bid has been applied.. [optional] # noqa: E501 - bid_amount (float, none_type): 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 + bid_amount (float, none_type): 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) @@ -254,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_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_budget.py similarity index 87% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_budget.py index 09a69fdc..a435c8d6 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_budget.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal - globals()['NillableDecimal'] = NillableDecimal - -class ReadAdSetBudget(ModelNormal): +class CreateAdSetBudget(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -60,7 +56,6 @@ class ReadAdSetBudget(ModelNormal): allowed_values = { ('budget_strategy',): { - 'None': None, 'CAPPED': "capped", 'UNCAPPED': "uncapped", }, @@ -98,7 +93,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 @@ -113,13 +107,12 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'budget_strategy': (str, none_type,), # noqa: E501 + 'budget_strategy': (str,), # noqa: E501 'budget_renewal': (str, none_type,), # noqa: E501 'budget_delivery_smoothing': (str, none_type,), # noqa: E501 'budget_delivery_week': (str, none_type,), # noqa: E501 - 'budget_amount': (NillableDecimal,), # noqa: E501 + 'budget_amount': (float, none_type,), # noqa: E501 } @cached_property @@ -142,8 +135,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ReadAdSetBudget - a model defined in OpenAPI + 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 @@ -176,11 +172,10 @@ 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, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 - budget_amount (NillableDecimal): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 + budget_amount (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -212,6 +207,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 \ @@ -232,8 +228,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ReadAdSetBudget - a model defined in OpenAPI + 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 @@ -266,11 +265,10 @@ 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, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 - budget_amount (NillableDecimal): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 + budget_amount (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -300,6 +298,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_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_geo_location.py similarity index 90% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_geo_location.py index 51515864..fb9d79ab 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_geo_location.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule - globals()['NillableAdSetTargetingRule'] = NillableAdSetTargetingRule + from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting_rule import AdSetTargetingRule + globals()['AdSetTargetingRule'] = AdSetTargetingRule -class AdSetGeoLocation(ModelNormal): +class CreateAdSetGeoLocation(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 { - 'countries': (NillableAdSetTargetingRule,), # noqa: E501 - 'subdivisions': (NillableAdSetTargetingRule,), # noqa: E501 - 'zip_codes': (NillableAdSetTargetingRule,), # noqa: E501 + 'countries': (AdSetTargetingRule,), # noqa: E501 + 'subdivisions': (AdSetTargetingRule,), # noqa: E501 + 'zip_codes': (AdSetTargetingRule,), # noqa: E501 } @cached_property @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetGeoLocation - a model defined in OpenAPI + """CreateAdSetGeoLocation - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - countries (NillableAdSetTargetingRule): [optional] # noqa: E501 - subdivisions (NillableAdSetTargetingRule): [optional] # noqa: E501 - zip_codes (NillableAdSetTargetingRule): [optional] # noqa: E501 + countries (AdSetTargetingRule): [optional] # noqa: E501 + subdivisions (AdSetTargetingRule): [optional] # noqa: E501 + zip_codes (AdSetTargetingRule): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetGeoLocation - a model defined in OpenAPI + """CreateAdSetGeoLocation - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - countries (NillableAdSetTargetingRule): [optional] # noqa: E501 - subdivisions (NillableAdSetTargetingRule): [optional] # noqa: E501 - zip_codes (NillableAdSetTargetingRule): [optional] # noqa: E501 + countries (AdSetTargetingRule): [optional] # noqa: E501 + subdivisions (AdSetTargetingRule): [optional] # noqa: E501 + zip_codes (AdSetTargetingRule): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_request.py similarity index 94% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_request.py index 669462e0..083096c6 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.new_audience import NewAudience - globals()['NewAudience'] = NewAudience + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_resource import CreateAdSetResource + globals()['CreateAdSetResource'] = CreateAdSetResource -class NewAudienceRequest(ModelNormal): +class CreateAdSetRequest(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': (NewAudience,), # noqa: E501 + 'data': (CreateAdSetResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """NewAudienceRequest - a model defined in OpenAPI + """CreateAdSetRequest - 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,) - data (NewAudience): [optional] # noqa: E501 + data (CreateAdSetResource): [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 - """NewAudienceRequest - a model defined in OpenAPI + """CreateAdSetRequest - 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,) - data (NewAudience): [optional] # noqa: E501 + data (CreateAdSetResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_resource.py similarity index 93% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_resource.py index f63238bb..48575e4c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set import CreateAdSet + globals()['CreateAdSet'] = CreateAdSet -class PatchAdSetCategoryBidResultResource(ModelNormal): + +class CreateAdSetResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -66,6 +70,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 """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,8 +85,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'id': (str, none_type,), # noqa: E501 + 'attributes': (CreateAdSet,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -91,7 +97,7 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 'type': 'type', # noqa: E501 } @@ -103,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResultResource - a model defined in OpenAPI + """CreateAdSetResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,7 +142,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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 + attributes (CreateAdSet): [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ @@ -190,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResultResource - a model defined in OpenAPI + """CreateAdSetResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,7 +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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 + attributes (CreateAdSet): [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_schedule.py similarity index 91% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_schedule.py index 92b84120..e461f4a9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_schedule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.contactlist_amendment import ContactlistAmendment - globals()['ContactlistAmendment'] = ContactlistAmendment - -class ContactlistAmendmentRequest(ModelNormal): +class CreateAdSetSchedule(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,7 +66,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 @@ -85,9 +80,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'data': (ContactlistAmendment,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime, none_type,), # noqa: E501 } @cached_property @@ -96,7 +91,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 } read_only_vars = { @@ -106,11 +102,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """ContactlistAmendmentRequest - a model defined in OpenAPI + def _from_openapi_data(cls, start_date, *args, **kwargs): # noqa: E501 + """CreateAdSetSchedule - a model defined in OpenAPI Args: - data (ContactlistAmendment): + start_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +139,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +171,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ @@ -195,11 +192,11 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """ContactlistAmendmentRequest - a model defined in OpenAPI + def __init__(self, start_date, *args, **kwargs): # noqa: E501 + """CreateAdSetSchedule - a model defined in OpenAPI Args: - data (ContactlistAmendment): + start_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +229,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +259,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_targeting.py similarity index 90% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_targeting.py index 2a49e741..76b5e435 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set_targeting.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,19 +26,19 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_delivery_limitations import AdSetDeliveryLimitations - from criteo_api_marketingsolutions_v2022_10.model.ad_set_frequency_capping import AdSetFrequencyCapping - from criteo_api_marketingsolutions_v2022_10.model.ad_set_geo_location import AdSetGeoLocation + from criteo_api_marketingsolutions_v2023_10.model.ad_set_delivery_limitations import AdSetDeliveryLimitations + from criteo_api_marketingsolutions_v2023_10.model.ad_set_frequency_capping import AdSetFrequencyCapping + from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_geo_location import CreateAdSetGeoLocation globals()['AdSetDeliveryLimitations'] = AdSetDeliveryLimitations globals()['AdSetFrequencyCapping'] = AdSetFrequencyCapping - globals()['AdSetGeoLocation'] = AdSetGeoLocation + globals()['CreateAdSetGeoLocation'] = CreateAdSetGeoLocation -class AdSetTargeting(ModelNormal): +class CreateAdSetTargeting(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,9 +91,9 @@ def openapi_types(): """ lazy_import() return { - 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501 - 'geo_location': (AdSetGeoLocation,), # noqa: E501 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501 + 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501 + 'geo_location': (CreateAdSetGeoLocation,), # 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,8 +114,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetTargeting - a model defined in OpenAPI + 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 @@ -149,8 +152,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 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 + geo_location (CreateAdSetGeoLocation): [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,8 +205,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetTargeting - a model defined in OpenAPI + 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 @@ -237,8 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 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 + geo_location (CreateAdSetGeoLocation): [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_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py new file mode 100644 index 00000000..98f31933 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py @@ -0,0 +1,298 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_request.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_request.py index cb6fc728..6fee7f95 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.write_model_ad_set_id import WriteModelAdSetId - globals()['WriteModelAdSetId'] = WriteModelAdSetId + from criteo_api_marketingsolutions_v2023_10.model.create_campaign_resource import CreateCampaignResource + globals()['CreateCampaignResource'] = CreateCampaignResource -class RequestsAdSetId(ModelNormal): +class CreateCampaignRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property @@ -89,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([WriteModelAdSetId], none_type,), # noqa: E501 + 'data': (CreateCampaignResource,), # noqa: E501 } @cached_property @@ -109,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """RequestsAdSetId - a model defined in OpenAPI + """CreateCampaignRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,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,) - data ([WriteModelAdSetId], none_type): [optional] # noqa: E501 + data (CreateCampaignResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,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 - """RequestsAdSetId - a model defined in OpenAPI + """CreateCampaignRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -228,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,) - data ([WriteModelAdSetId], none_type): [optional] # noqa: E501 + data (CreateCampaignResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_resource.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_resource.py index 5a34f26d..bdda012b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.create_campaign import CreateCampaign + globals()['CreateCampaign'] = CreateCampaign -class PatchAdSetDisplayMultiplierResultResource(ModelNormal): + +class CreateCampaignResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -66,6 +70,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 """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,8 +85,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'id': (str, none_type,), # noqa: E501 + 'attributes': (CreateCampaign,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -91,7 +97,7 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 'type': 'type', # noqa: E501 } @@ -103,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetDisplayMultiplierResultResource - a model defined in OpenAPI + """CreateCampaignResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,7 +142,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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 + attributes (CreateCampaign): [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ @@ -190,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetDisplayMultiplierResultResource - a model defined in OpenAPI + """CreateCampaignResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,7 +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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 + attributes (CreateCampaign): [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_spend_limit.py similarity index 90% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_spend_limit.py index 9a028555..88be4f32 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign_spend_limit.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal - globals()['NillableDecimal'] = NillableDecimal - -class PatchCampaignSpendLimit(ModelNormal): +class CreateCampaignSpendLimit(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -60,7 +56,6 @@ class PatchCampaignSpendLimit(ModelNormal): allowed_values = { ('spend_limit_type',): { - 'None': None, 'CAPPED': "capped", 'UNCAPPED': "uncapped", }, @@ -82,7 +77,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 @@ -97,11 +91,10 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'spend_limit_type': (str, none_type,), # noqa: E501 + 'spend_limit_type': (str,), # noqa: E501 'spend_limit_renewal': (str, none_type,), # noqa: E501 - 'spend_limit_amount': (NillableDecimal,), # noqa: E501 + 'spend_limit_amount': (float, none_type,), # noqa: E501 } @cached_property @@ -122,8 +115,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchCampaignSpendLimit - a model defined in OpenAPI + 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 @@ -156,9 +152,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,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 - spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + spend_limit_amount (float, none_type): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -190,6 +185,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 \ @@ -210,8 +206,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """PatchCampaignSpendLimit - a model defined in OpenAPI + 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 @@ -244,9 +243,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,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 - spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + spend_limit_amount (float, none_type): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,6 +274,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/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon.py similarity index 68% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon.py index 00bef1c2..8b969f50 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - RetailMedia # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_07.model.external_line_item_page202110 import ExternalLineItemPage202110 - globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 - globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 + from criteo_api_marketingsolutions_v2023_10.model.create_image_slide import CreateImageSlide + globals()['CreateImageSlide'] = CreateImageSlide -class ExternalPreferredLineItemCreateModel202110(ModelNormal): +class CreateCoupon(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -61,28 +59,26 @@ class ExternalPreferredLineItemCreateModel202110(ModelNormal): """ 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", + ('format',): { + 'FULLFRAME': "FullFrame", + 'LOGOZONE': "LogoZone", }, } validations = { - ('name',): { - 'max_length': 255, - 'min_length': 0, + ('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, }, } @@ -110,15 +106,16 @@ def openapi_types(): 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 + '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, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 } @cached_property @@ -128,15 +125,16 @@ def discriminator(): 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 - '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 = { @@ -146,17 +144,19 @@ def discriminator(): @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 + 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): - 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): + 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 @@ -189,9 +189,8 @@ def _from_openapi_data(cls, name, start_date, end_date, pacing, page, target_ret 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 + description (str, none_type): The description of the Coupon. [optional] # noqa: E501 + end_date (str, none_type): 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) @@ -224,12 +223,14 @@ def _from_openapi_data(cls, name, start_date, end_date, pacing, page, target_ret 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.end_date = end_date - self.pacing = pacing - self.page = page - self.target_retailer_id = target_retailer_id - self.budget = budget + 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 \ @@ -250,17 +251,19 @@ def _from_openapi_data(cls, name, start_date, end_date, pacing, page, target_ret ]) @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 + 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): - 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): + 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 @@ -293,9 +296,8 @@ def __init__(self, name, start_date, end_date, pacing, page, target_retailer_id, 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 + description (str, none_type): The description of the Coupon. [optional] # noqa: E501 + end_date (str, none_type): 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) @@ -326,12 +328,14 @@ def __init__(self, name, start_date, end_date, pacing, page, target_retailer_id, 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.end_date = end_date - self.pacing = pacing - self.page = page - self.target_retailer_id = target_retailer_id - self.budget = budget + 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 \ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_request.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_request.py index 66d5e400..069ca0b8 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_search_filter import AdSetSearchFilter - globals()['AdSetSearchFilter'] = AdSetSearchFilter + from criteo_api_marketingsolutions_v2023_10.model.create_coupon_resource import CreateCouponResource + globals()['CreateCouponResource'] = CreateCouponResource -class RequestAdSetSearch(ModelNormal): +class CreateCouponRequest(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 { - 'filters': (AdSetSearchFilter,), # noqa: E501 + 'data': (CreateCouponResource,), # noqa: E501 } @cached_property @@ -96,7 +96,7 @@ def discriminator(): attribute_map = { - 'filters': 'filters', # 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 - """RequestAdSetSearch - a model defined in OpenAPI + """CreateCouponRequest - 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,) - filters (AdSetSearchFilter): [optional] # noqa: E501 + data (CreateCouponResource): [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 - """RequestAdSetSearch - a model defined in OpenAPI + """CreateCouponRequest - 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,) - filters (AdSetSearchFilter): [optional] # noqa: E501 + data (CreateCouponResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_resource.py new file mode 100644 index 00000000..055da0a7 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_image_slide.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_image_slide.py new file mode 100644 index 00000000..5b979a50 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_image_slide.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'height': (int, none_type,), # noqa: E501 + 'slide_base64_strings': ([str], none_type,), # 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, none_type): Width of the Coupon slide. [optional] # noqa: E501 + height (int, none_type): Height of the Coupon slide. [optional] # noqa: E501 + slide_base64_strings ([str], none_type): 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, none_type): Width of the Coupon slide. [optional] # noqa: E501 + height (int, none_type): Height of the Coupon slide. [optional] # noqa: E501 + slide_base64_strings ([str], none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative.py similarity index 73% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative.py index 157bf1c3..1973ac1d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,21 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.adaptive_attributes import AdaptiveAttributes + from criteo_api_marketingsolutions_v2023_10.model.dynamic_attributes import DynamicAttributes + from criteo_api_marketingsolutions_v2023_10.model.html_tag_attributes import HtmlTagAttributes + from criteo_api_marketingsolutions_v2023_10.model.image_attributes import ImageAttributes + globals()['AdaptiveAttributes'] = AdaptiveAttributes + globals()['DynamicAttributes'] = DynamicAttributes + globals()['HtmlTagAttributes'] = HtmlTagAttributes + globals()['ImageAttributes'] = ImageAttributes -class AudienceAttributes(ModelNormal): + +class Creative(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -66,6 +76,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 """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,15 +91,19 @@ def openapi_types(): 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': (datetime,), # noqa: E501 - 'updated': (datetime,), # noqa: E501 - 'advertiser_id': (str, none_type,), # noqa: E501 - 'nb_lines': (int, none_type,), # noqa: E501 - 'nb_lines_email': (int, none_type,), # noqa: E501 - 'nb_matches_email': (int, none_type,), # noqa: E501 + 'author': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'dataset_id': (str, none_type,), # 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 @@ -98,13 +113,16 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'description': 'description', # noqa: E501 - 'created': 'created', # noqa: E501 - 'updated': 'updated', # noqa: E501 + 'author': 'author', # noqa: E501 + 'status': 'status', # noqa: E501 'advertiser_id': 'advertiserId', # noqa: E501 - 'nb_lines': 'nbLines', # noqa: E501 - 'nb_lines_email': 'nbLinesEmail', # noqa: E501 - 'nb_matches_email': 'nbMatchesEmail', # 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 = { @@ -114,14 +132,14 @@ def discriminator(): @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 + 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 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 + 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 @@ -154,10 +172,13 @@ def _from_openapi_data(cls, name, description, created, updated, *args, **kwargs Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str, none_type): The advertiser id that owns this Audience. [optional] # noqa: E501 - nb_lines (int, none_type): The number of line in the audience available once processed. [optional] # noqa: E501 - nb_lines_email (int, none_type): The number of email line in the audience available once processed. [optional] # noqa: E501 - nb_matches_email (int, none_type): The number of email matches in the audience available once processed. [optional] # noqa: E501 + description (str, none_type): The description of the creative. [optional] # noqa: E501 + format (str, none_type): The format of the creative. [optional] # noqa: E501 + dataset_id (str, none_type): 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) @@ -190,9 +211,9 @@ def _from_openapi_data(cls, name, description, created, updated, *args, **kwargs self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name - self.description = description - self.created = created - self.updated = updated + 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 \ @@ -213,14 +234,14 @@ def _from_openapi_data(cls, name, description, created, updated, *args, **kwargs ]) @convert_js_args_to_python_args - def __init__(self, name, description, created, updated, *args, **kwargs): # noqa: E501 - """AudienceAttributes - a model defined in OpenAPI + 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 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 + 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 @@ -253,10 +274,13 @@ def __init__(self, name, description, created, updated, *args, **kwargs): # noq Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str, none_type): The advertiser id that owns this Audience. [optional] # noqa: E501 - nb_lines (int, none_type): The number of line in the audience available once processed. [optional] # noqa: E501 - nb_lines_email (int, none_type): The number of email line in the audience available once processed. [optional] # noqa: E501 - nb_matches_email (int, none_type): The number of email matches in the audience available once processed. [optional] # noqa: E501 + description (str, none_type): The description of the creative. [optional] # noqa: E501 + format (str, none_type): The format of the creative. [optional] # noqa: E501 + dataset_id (str, none_type): 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) @@ -287,9 +311,9 @@ def __init__(self, name, description, created, updated, *args, **kwargs): # noq self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name - self.description = description - self.created = created - self.updated = updated + 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 \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_list_response.py new file mode 100644 index 00000000..17f21391 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_resource.py new file mode 100644 index 00000000..f9b77b1d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_response.py new file mode 100644 index 00000000..06306390 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write.py new file mode 100644 index 00000000..5aaf66df --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write.py @@ -0,0 +1,319 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.adaptive_write_attributes import AdaptiveWriteAttributes + from criteo_api_marketingsolutions_v2023_10.model.dynamic_write_attributes import DynamicWriteAttributes + from criteo_api_marketingsolutions_v2023_10.model.html_tag_write_attributes import HtmlTagWriteAttributes + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # 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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_request.py new file mode 100644 index 00000000..a82243af --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_resource.py new file mode 100644 index 00000000..e0c0cf61 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/creative_write_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_error.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_error.py index 2a5cab17..f0a6de3a 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_warning.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_warning.py index 3f632732..cbf6763f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/criteo_api_warning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/delete_audience_contact_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/delete_audience_contact_list_response.py index d38ae3ad..81f7dafd 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/delete_audience_contact_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_10.model.basic_audience_definition import BasicAudienceDefinition + from criteo_api_marketingsolutions_v2023_10.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_10.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_10.model.basic_audience_definition import BasicAudienceDefinition globals()['AudienceError'] = AudienceError globals()['AudienceWarning'] = AudienceWarning globals()['BasicAudienceDefinition'] = BasicAudienceDefinition diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_attributes.py new file mode 100644 index 00000000..b321d724 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_attributes.py @@ -0,0 +1,302 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'creative_background_color': (str, none_type,), # noqa: E501 + 'body_text_color': (str, none_type,), # noqa: E501 + 'prices_color': (str, none_type,), # noqa: E501 + 'primary_font': (str, none_type,), # noqa: E501 + 'calls_to_action': ([str], none_type,), # noqa: E501 + 'product_image_display': (str, none_type,), # 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], none_type): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + creative_background_color (str, none_type): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + body_text_color (str, none_type): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + prices_color (str, none_type): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str, none_type): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + calls_to_action ([str], none_type): 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, none_type): 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], none_type): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + creative_background_color (str, none_type): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + body_text_color (str, none_type): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + prices_color (str, none_type): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str, none_type): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + calls_to_action ([str], none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_write_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_write_attributes.py new file mode 100644 index 00000000..5f96ff05 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/dynamic_write_attributes.py @@ -0,0 +1,308 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'primary_font': (str, none_type,), # 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, none_type): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str, none_type): 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, none_type): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/entity_of_portfolio_message.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/entity_of_portfolio_message.py index 4c9fbe45..5293628b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/entity_of_portfolio_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.portfolio_message import PortfolioMessage + from criteo_api_marketingsolutions_v2023_10.model.portfolio_message import PortfolioMessage globals()['PortfolioMessage'] = PortfolioMessage diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/error_code_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/error_code_response.py index 25bf1dd9..171de7f7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/error_code_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_10.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_10.model.audience_warning import AudienceWarning globals()['AudienceError'] = AudienceError globals()['AudienceWarning'] = AudienceWarning diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/get_portfolio_response.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/get_portfolio_response.py index b507cbd0..46fa3f8e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/get_portfolio_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.criteo_api_error import CriteoApiError - from criteo_api_marketingsolutions_v2022_07.model.criteo_api_warning import CriteoApiWarning - from criteo_api_marketingsolutions_v2022_07.model.entity_of_portfolio_message import EntityOfPortfolioMessage + from criteo_api_marketingsolutions_v2023_10.model.criteo_api_error import CriteoApiError + from criteo_api_marketingsolutions_v2023_10.model.criteo_api_warning import CriteoApiWarning + from criteo_api_marketingsolutions_v2023_10.model.entity_of_portfolio_message import EntityOfPortfolioMessage globals()['CriteoApiError'] = CriteoApiError globals()['CriteoApiWarning'] = CriteoApiWarning globals()['EntityOfPortfolioMessage'] = EntityOfPortfolioMessage diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_attributes.py new file mode 100644 index 00000000..318dc099 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_attributes.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # 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], none_type): 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], none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_write_attributes.py similarity index 92% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_write_attributes.py index 185a0fb5..a9520fa1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/html_tag_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.replace_audience import ReplaceAudience - globals()['ReplaceAudience'] = ReplaceAudience + from criteo_api_marketingsolutions_v2023_10.model.tag import Tag + globals()['Tag'] = Tag -class ReplaceAudienceRequest(ModelNormal): +class HtmlTagWriteAttributes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +62,8 @@ class ReplaceAudienceRequest(ModelNormal): } validations = { + ('tags',): { + }, } @cached_property @@ -87,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReplaceAudience,), # noqa: E501 + 'tags': ([Tag],), # noqa: E501 } @cached_property @@ -96,7 +98,7 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -106,11 +108,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """ReplaceAudienceRequest - a model defined in OpenAPI + def _from_openapi_data(cls, tags, *args, **kwargs): # noqa: E501 + """HtmlTagWriteAttributes - a model defined in OpenAPI Args: - data (ReplaceAudience): + tags ([Tag]): An array containing the html tags Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -174,7 +176,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ @@ -195,11 +197,11 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """ReplaceAudienceRequest - a model defined in OpenAPI + def __init__(self, tags, *args, **kwargs): # noqa: E501 + """HtmlTagWriteAttributes - a model defined in OpenAPI Args: - data (ReplaceAudience): + tags ([Tag]): An array containing the html tags Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -261,7 +263,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_attributes.py similarity index 90% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_attributes.py index 20783754..479d4cf3 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class CampaignSearchFilters(ModelNormal): +class ImageAttributes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -58,9 +58,7 @@ class CampaignSearchFilters(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { + ('urls',): { }, } @@ -85,8 +83,8 @@ def openapi_types(): and the value is attribute type. """ return { - 'campaign_ids': ([str], none_type,), # noqa: E501 - 'advertiser_ids': ([str], none_type,), # noqa: E501 + 'urls': ([str], none_type,), # noqa: E501 + 'landing_page_url': (str, none_type,), # noqa: E501 } @cached_property @@ -95,8 +93,8 @@ def discriminator(): attribute_map = { - 'campaign_ids': 'campaignIds', # noqa: E501 - 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'urls': 'urls', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 } read_only_vars = { @@ -107,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignSearchFilters - a model defined in OpenAPI + """ImageAttributes - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,8 +138,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,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + urls ([str], none_type): Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + landing_page_url (str, none_type): Web redirection of the landing page url. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -194,7 +192,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CampaignSearchFilters - a model defined in OpenAPI + """ImageAttributes - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -227,8 +225,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,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + urls ([str], none_type): Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + landing_page_url (str, none_type): Web redirection of the landing page url. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set.py similarity index 90% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set.py index 359144f4..7f548ff7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2023_10.model.image_shape import ImageShape + globals()['ImageShape'] = ImageShape -class TransparencyReportDataMessage(ModelNormal): +class ImageSet(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,7 +62,7 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { + ('images',): { }, } @@ -89,7 +89,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'images': ([ImageShape],), # noqa: E501 + 'headline_text': (str, none_type,), # noqa: E501 } @cached_property @@ -98,7 +99,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'images': 'images', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 } read_only_vars = { @@ -108,11 +110,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI + def _from_openapi_data(cls, images, *args, **kwargs): # noqa: E501 + """ImageSet - a model defined in OpenAPI Args: - data ([TransparencyReportEntityMessage]): + images ([ImageShape]): The images' urls with their shapes. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +147,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + headline_text (str, none_type): The headline of the image set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +179,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ @@ -197,11 +200,11 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI + def __init__(self, images, *args, **kwargs): # noqa: E501 + """ImageSet - a model defined in OpenAPI Args: - data ([TransparencyReportEntityMessage]): + images ([ImageShape]): The images' urls with their shapes. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +237,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + headline_text (str, none_type): The headline of the image set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +267,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set_base64.py similarity index 88% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set_base64.py index 29353a46..0a927d92 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_set_base64.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - -class TransactionsReportQueryDataMessage(ModelNormal): +class ImageSetBase64(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,7 +58,8 @@ class TransactionsReportQueryDataMessage(ModelNormal): } validations = { - ('data',): { + ('image_base64_strings',): { + 'min_items': 1, }, } @@ -72,7 +69,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 @@ -87,9 +83,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 + 'image_base64_strings': ([str],), # noqa: E501 + 'headline_text': (str, none_type,), # noqa: E501 } @cached_property @@ -98,7 +94,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'image_base64_strings': 'imageBase64Strings', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 } read_only_vars = { @@ -108,11 +105,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI + def _from_openapi_data(cls, image_base64_strings, *args, **kwargs): # noqa: E501 + """ImageSetBase64 - a model defined in OpenAPI Args: - data ([TransactionsReportQueryEntityMessage]): + 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 @@ -145,6 +142,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + headline_text (str, none_type): The headline of the image set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +174,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ @@ -197,11 +195,11 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI + def __init__(self, image_base64_strings, *args, **kwargs): # noqa: E501 + """ImageSetBase64 - a model defined in OpenAPI Args: - data ([TransactionsReportQueryEntityMessage]): + 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 @@ -234,6 +232,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + headline_text (str, none_type): The headline of the image set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +262,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_shape.py similarity index 91% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_shape.py index 5ea2ae51..fba28a98 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_shape.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class TransparencyReportFile(ModelNormal): +class ImageShape(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,6 +55,11 @@ class TransparencyReportFile(ModelNormal): """ allowed_values = { + ('shape',): { + 'HORIZONTAL': "Horizontal", + 'VERTICAL': "Vertical", + 'SQUARE': "Square", + }, } validations = { @@ -81,7 +86,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'file_name': (str,), # noqa: E501 + 'shape': (str,), # noqa: E501 'url': (str,), # noqa: E501 } @@ -91,7 +96,7 @@ def discriminator(): attribute_map = { - 'file_name': 'fileName', # noqa: E501 + 'shape': 'shape', # noqa: E501 'url': 'url', # noqa: E501 } @@ -102,12 +107,12 @@ def discriminator(): @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 + def _from_openapi_data(cls, shape, url, *args, **kwargs): # noqa: E501 + """ImageShape - a model defined in OpenAPI Args: - file_name (str): - url (str): + 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 @@ -171,7 +176,7 @@ def _from_openapi_data(cls, file_name, url, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.file_name = file_name + self.shape = shape self.url = url for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -193,12 +198,12 @@ def _from_openapi_data(cls, file_name, url, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, file_name, url, *args, **kwargs): # noqa: E501 - """TransparencyReportFile - a model defined in OpenAPI + def __init__(self, shape, url, *args, **kwargs): # noqa: E501 + """ImageShape - a model defined in OpenAPI Args: - file_name (str): - url (str): + 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 @@ -260,7 +265,7 @@ def __init__(self, file_name, url, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.file_name = file_name + self.shape = shape self.url = url for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_slide.py similarity index 88% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_slide.py index 91ded10e..bb95bc0b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_slide.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetFrequencyCapping(ModelNormal): +class ImageSlide(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,16 +55,11 @@ class AdSetFrequencyCapping(ModelNormal): """ allowed_values = { - ('frequency',): { - 'None': None, - 'HOURLY': "hourly", - 'DAILY': "daily", - 'LIFETIME': "lifetime", - 'ADVANCED': "advanced", - }, } validations = { + ('slide_urls',): { + }, } @cached_property @@ -88,8 +83,9 @@ def openapi_types(): and the value is attribute type. """ return { - 'frequency': (str, none_type,), # noqa: E501 - 'maximum_impressions': (int, none_type,), # noqa: E501 + 'width': (int, none_type,), # noqa: E501 + 'height': (int, none_type,), # noqa: E501 + 'slide_urls': ([str], none_type,), # noqa: E501 } @cached_property @@ -98,8 +94,9 @@ def discriminator(): attribute_map = { - 'frequency': 'frequency', # noqa: E501 - 'maximum_impressions': 'maximumImpressions', # noqa: E501 + 'width': 'width', # noqa: E501 + 'height': 'height', # noqa: E501 + 'slide_urls': 'slideUrls', # noqa: E501 } read_only_vars = { @@ -110,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetFrequencyCapping - a model defined in OpenAPI + """ImageSlide - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,8 +140,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,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + width (int, none_type): Width of the Coupon slide. [optional] # noqa: E501 + height (int, none_type): Height of the Coupon slide. [optional] # noqa: E501 + slide_urls ([str], none_type): 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) @@ -197,7 +195,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetFrequencyCapping - a model defined in OpenAPI + """ImageSlide - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,8 +228,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,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + width (int, none_type): Width of the Coupon slide. [optional] # noqa: E501 + height (int, none_type): Height of the Coupon slide. [optional] # noqa: E501 + slide_urls ([str], none_type): 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) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_write_attributes.py similarity index 89% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_write_attributes.py index 126b566f..4bdf3722 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/image_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - -class PlacementsReportQueryDataMessage(ModelNormal): +class ImageWriteAttributes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,7 +58,8 @@ class PlacementsReportQueryDataMessage(ModelNormal): } validations = { - ('data',): { + ('base64_strings',): { + 'min_items': 1, }, } @@ -72,7 +69,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 @@ -87,9 +83,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 + 'base64_strings': ([str],), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 } @cached_property @@ -98,7 +94,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'base64_strings': 'base64Strings', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 } read_only_vars = { @@ -108,11 +105,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI + def _from_openapi_data(cls, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 + """ImageWriteAttributes - a model defined in OpenAPI Args: - data ([PlacementsReportQueryEntityMessage]): + 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 @@ -176,7 +174,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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 \ @@ -197,11 +196,12 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI + def __init__(self, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 + """ImageWriteAttributes - a model defined in OpenAPI Args: - data ([PlacementsReportQueryEntityMessage]): + 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 @@ -263,7 +263,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1.py similarity index 92% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1.py index 30c1ca4a..9e1dc588 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AudienceNameDescription(ModelNormal): +class InMarketAudienceSegmentBrandEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'name': (str, none_type,), # noqa: E501 - 'description': (str, none_type,), # noqa: E501 + 'size': (int, none_type,), # noqa: E501 } @cached_property @@ -92,7 +92,7 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'description': 'description', # noqa: E501 + 'size': 'size', # noqa: E501 } read_only_vars = { @@ -103,7 +103,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AudienceNameDescription - a model defined in OpenAPI + """InMarketAudienceSegmentBrandEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,8 +136,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,) - name (str, none_type): The name to designate the audience by. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + name (str, none_type): Name of the in-market segment brand. [optional] # noqa: E501 + size (int, none_type): Size of the in-market segment brand. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -190,7 +190,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AudienceNameDescription - a model defined in OpenAPI + """InMarketAudienceSegmentBrandEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,8 +223,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,) - name (str, none_type): The name to designate the audience by. [optional] # noqa: E501 - description (str, none_type): The description of the audience. [optional] # noqa: E501 + name (str, none_type): Name of the in-market segment brand. [optional] # noqa: E501 + size (int, none_type): Size of the in-market segment brand. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_list_response.py new file mode 100644 index 00000000..3b9c482c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_brand_entity_v1_resource.py new file mode 100644 index 00000000..083177c8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1.py new file mode 100644 index 00000000..5f189c3c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_list_response.py new file mode 100644 index 00000000..27a9421b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_audience_segment_interest_entity_v1_resource.py new file mode 100644 index 00000000..a2bd371e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 + type (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 + """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, none_type): Id of the entity. [optional] # noqa: E501 + type (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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_create_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_create_v1.py new file mode 100644 index 00000000..c23df597 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_create_v1.py @@ -0,0 +1,315 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('gender',): { + 'None': None, + 'MALE': "Male", + 'FEMALE': "Female", + }, + ('price_range',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'gender': (str, none_type,), # noqa: E501 + 'interest_ids': ([str], none_type,), # noqa: E501 + 'brand_ids': ([str], none_type,), # noqa: E501 + 'price_range': ([str], none_type,), # 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], none_type): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str, none_type): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): 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], none_type): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str, none_type): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_size_estimation_v1.py similarity index 81% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_size_estimation_v1.py index d440fa55..7eabd5e5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class AdSetDeliveryLimitations(ModelNormal): +class InMarketSizeEstimationV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,32 +55,34 @@ class AdSetDeliveryLimitations(ModelNormal): """ allowed_values = { - ('environments',): { + ('buying_power',): { 'None': None, - 'WEB': "web", - 'INAPP': "inApp", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", }, - ('devices',): { + ('gender',): { 'None': None, - 'OTHER': "other", - 'DESKTOP': "desktop", - 'MOBILE': "mobile", - 'TABLET': "tablet", + 'MALE': "Male", + 'FEMALE': "Female", }, - ('operating_systems',): { + ('price_range',): { 'None': None, - 'ANDROID': "android", - 'IOS': "ios", - 'UNKNOWN': "unknown", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", }, } validations = { - ('environments',): { + ('buying_power',): { }, - ('devices',): { + ('interest_ids',): { }, - ('operating_systems',): { + ('brand_ids',): { + }, + ('price_range',): { }, } @@ -105,9 +107,12 @@ def openapi_types(): and the value is attribute type. """ return { - 'environments': ([str], none_type,), # noqa: E501 - 'devices': ([str], none_type,), # noqa: E501 - 'operating_systems': ([str], none_type,), # noqa: E501 + 'country': (str,), # noqa: E501 + 'buying_power': ([str], none_type,), # noqa: E501 + 'gender': (str, none_type,), # noqa: E501 + 'interest_ids': ([str], none_type,), # noqa: E501 + 'brand_ids': ([str], none_type,), # noqa: E501 + 'price_range': ([str], none_type,), # noqa: E501 } @cached_property @@ -116,9 +121,12 @@ def discriminator(): attribute_map = { - 'environments': 'environments', # noqa: E501 - 'devices': 'devices', # noqa: E501 - 'operating_systems': 'operatingSystems', # noqa: E501 + '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 = { @@ -128,8 +136,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetDeliveryLimitations - a model defined in OpenAPI + 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 @@ -162,9 +173,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,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + buying_power ([str], none_type): [optional] # noqa: E501 + gender (str, none_type): [optional] # noqa: E501 + interest_ids ([str], none_type): [optional] # noqa: E501 + brand_ids ([str], none_type): [optional] # noqa: E501 + price_range ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,6 +209,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 \ @@ -216,8 +230,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetDeliveryLimitations - a model defined in OpenAPI + 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 @@ -250,9 +267,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,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + buying_power ([str], none_type): [optional] # noqa: E501 + gender (str, none_type): [optional] # noqa: E501 + interest_ids ([str], none_type): [optional] # noqa: E501 + brand_ids ([str], none_type): [optional] # noqa: E501 + price_range ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -282,6 +301,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_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_update_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_update_v1.py new file mode 100644 index 00000000..e2f47671 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_update_v1.py @@ -0,0 +1,310 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('price_range',): { + 'None': None, + '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, none_type,), # noqa: E501 + 'buying_power': ([str], none_type,), # noqa: E501 + 'gender': (NillableGenderV1,), # noqa: E501 + 'interest_ids': ([str], none_type,), # noqa: E501 + 'brand_ids': ([str], none_type,), # noqa: E501 + 'price_range': ([str], none_type,), # 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, none_type): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str], none_type): 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], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): 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, none_type): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str], none_type): 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], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_v1.py similarity index 77% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_v1.py index 8952666c..044bd2f6 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/in_market_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal - globals()['NillableDecimal'] = NillableDecimal - -class PatchAdSetBudget(ModelNormal): +class InMarketV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,37 +55,38 @@ class PatchAdSetBudget(ModelNormal): """ allowed_values = { - ('budget_strategy',): { - 'None': None, - 'CAPPED': "capped", - 'UNCAPPED': "uncapped", - }, - ('budget_renewal',): { + ('buying_power',): { 'None': None, - 'UNDEFINED': "undefined", - 'DAILY': "daily", - 'MONTHLY': "monthly", - 'LIFETIME': "lifetime", + 'UNKNOWN': "Unknown", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", }, - ('budget_delivery_smoothing',): { + ('gender',): { 'None': None, - 'ACCELERATED': "accelerated", - 'STANDARD': "standard", + 'UNKNOWN': "Unknown", + 'MALE': "Male", + 'FEMALE': "Female", }, - ('budget_delivery_week',): { + ('price_range',): { 'None': None, - 'UNDEFINED': "undefined", - 'MONDAYTOSUNDAY': "mondayToSunday", - 'TUESDAYTOMONDAY': "tuesdayToMonday", - 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday", - 'THURSDAYTOWEDNESDAY': "thursdayToWednesday", - 'FRIDAYTOTHURSDAY': "fridayToThursday", - 'SATURDAYTOFRIDAY': "saturdayToFriday", - 'SUNDAYTOSATURDAY': "sundayToSaturday", + 'UNKNOWN': "Unknown", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", }, } validations = { + ('buying_power',): { + }, + ('interest_ids',): { + }, + ('brand_ids',): { + }, + ('price_range',): { + }, } @cached_property @@ -98,7 +95,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 @@ -113,13 +109,13 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'budget_strategy': (str, none_type,), # noqa: E501 - 'budget_renewal': (str, none_type,), # noqa: E501 - 'budget_delivery_smoothing': (str, none_type,), # noqa: E501 - 'budget_delivery_week': (str, none_type,), # noqa: E501 - 'budget_amount': (NillableDecimal,), # noqa: E501 + 'country': (str, none_type,), # noqa: E501 + 'buying_power': ([str], none_type,), # noqa: E501 + 'gender': (str, none_type,), # noqa: E501 + 'interest_ids': ([str], none_type,), # noqa: E501 + 'brand_ids': ([str], none_type,), # noqa: E501 + 'price_range': ([str], none_type,), # noqa: E501 } @cached_property @@ -128,11 +124,12 @@ def discriminator(): 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 + '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 = { @@ -143,7 +140,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetBudget - a model defined in OpenAPI + """InMarketV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -176,11 +173,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,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 - budget_amount (NillableDecimal): [optional] # noqa: E501 + country (str, none_type): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str], none_type): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str, none_type): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -233,7 +231,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetBudget - a model defined in OpenAPI + """InMarketV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -266,11 +264,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,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 - budget_amount (NillableDecimal): [optional] # noqa: E501 + country (str, none_type): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str], none_type): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str, none_type): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str], none_type): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str], none_type): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str], none_type): 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_create_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_create_v1.py new file mode 100644 index 00000000..59720caa --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_create_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_size_estimation_v1.py similarity index 89% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_size_estimation_v1.py index 9e7acc7b..538ba39f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_07.model.audience_warning import AudienceWarning - globals()['AudienceError'] = AudienceError - globals()['AudienceWarning'] = AudienceWarning + from criteo_api_marketingsolutions_v2023_10.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 -class ErrorCodeResponse(ModelNormal): +class LocationSizeEstimationV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,8 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([AudienceError],), # noqa: E501 - 'warnings': ([AudienceWarning], none_type,), # noqa: E501 + 'points_of_interest': ([PointOfInterestV1],), # noqa: E501 + 'radius_in_km': (int,), # noqa: E501 } @cached_property @@ -99,8 +97,8 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 } read_only_vars = { @@ -110,11 +108,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501 - """ErrorCodeResponse - a model defined in OpenAPI + def _from_openapi_data(cls, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationSizeEstimationV1 - a model defined in OpenAPI Args: - errors ([AudienceError]): + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,7 +146,6 @@ def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - warnings ([AudienceWarning], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -179,7 +177,8 @@ def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.errors = errors + 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 \ @@ -200,11 +199,12 @@ def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, errors, *args, **kwargs): # noqa: E501 - """ErrorCodeResponse - a model defined in OpenAPI + def __init__(self, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationSizeEstimationV1 - a model defined in OpenAPI Args: - errors ([AudienceError]): + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,7 +237,6 @@ def __init__(self, errors, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - warnings ([AudienceWarning], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -267,7 +266,8 @@ def __init__(self, errors, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.errors = errors + 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_update_v1.py similarity index 86% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_update_v1.py index 05f4c7bd..ffa0c9c7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 -class PatchResultCampaignListResponse(ModelNormal): +class LocationUpdateV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -61,15 +59,13 @@ class PatchResultCampaignListResponse(ModelNormal): """ allowed_values = { + ('registry_type',): { + 'None': None, + 'POINTOFINTEREST': "PointOfInterest", + }, } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -95,9 +91,9 @@ def openapi_types(): """ lazy_import() return { - 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'points_of_interest': ([PointOfInterestV1], none_type,), # noqa: E501 + 'radius_in_km': (int, none_type,), # noqa: E501 + 'registry_type': (str, none_type,), # noqa: E501 } @cached_property @@ -106,15 +102,12 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 + 'registry_type': 'registryType', # noqa: E501 } read_only_vars = { - 'data', # noqa: E501 - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @@ -122,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchResultCampaignListResponse - a model defined in OpenAPI + """LocationUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -155,9 +148,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,) - data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + points_of_interest ([PointOfInterestV1], none_type): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int, none_type): Radius in kilometers. [optional] # noqa: E501 + registry_type (str, none_type): 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) @@ -210,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchResultCampaignListResponse - a model defined in OpenAPI + """LocationUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -243,9 +236,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,) - data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + points_of_interest ([PointOfInterestV1], none_type): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int, none_type): Radius in kilometers. [optional] # noqa: E501 + registry_type (str, none_type): 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_v1.py new file mode 100644 index 00000000..5b06d7a4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/location_v1.py @@ -0,0 +1,282 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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',): { + 'None': None, + '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], none_type,), # noqa: E501 + 'radius_in_km': (int, none_type,), # noqa: E501 + 'registry_type': (str, none_type,), # 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], none_type): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int, none_type): The expected maximum distance in kilometers between a user and a point of interest. [optional] # noqa: E501 + registry_type (str, none_type): 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], none_type): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int, none_type): The expected maximum distance in kilometers between a user and a point of interest. [optional] # noqa: E501 + registry_type (str, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_create_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_create_v1.py new file mode 100644 index 00000000..86540091 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_create_v1.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_update_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_update_v1.py new file mode 100644 index 00000000..ff72db8b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_update_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # 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, none_type): 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, none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_v1.py similarity index 91% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_v1.py index a1b828d6..8eb28710 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/lookalike_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal - globals()['NillableDecimal'] = NillableDecimal - -class PatchAdSetBidding(ModelNormal): +class LookalikeV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,7 +66,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 @@ -85,9 +80,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'bid_amount': (NillableDecimal,), # noqa: E501 + 'seed_segment_id': (str, none_type,), # noqa: E501 + 'target_size': (int, none_type,), # noqa: E501 } @cached_property @@ -96,7 +91,8 @@ def discriminator(): attribute_map = { - 'bid_amount': 'bidAmount', # noqa: E501 + 'seed_segment_id': 'seedSegmentId', # noqa: E501 + 'target_size': 'targetSize', # noqa: E501 } read_only_vars = { @@ -107,7 +103,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetBidding - a model defined in OpenAPI + """LookalikeV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +136,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,) - bid_amount (NillableDecimal): [optional] # noqa: E501 + seed_segment_id (str, none_type): Segment from which the Lookalike segment will be generated. [optional] # noqa: E501 + target_size (int, none_type): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,7 +190,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetBidding - a model defined in OpenAPI + """LookalikeV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +223,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,) - bid_amount (NillableDecimal): [optional] # noqa: E501 + seed_segment_id (str, none_type): Segment from which the Lookalike segment will be generated. [optional] # noqa: E501 + target_size (int, none_type): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/modify_audience_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/modify_audience_response.py index 10ebc77d..190a4184 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/modify_audience_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.audience_error import AudienceError - from criteo_api_marketingsolutions_v2022_10.model.audience_warning import AudienceWarning - from criteo_api_marketingsolutions_v2022_10.model.contactlist_operation import ContactlistOperation + from criteo_api_marketingsolutions_v2023_10.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_10.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_10.model.contactlist_operation import ContactlistOperation globals()['AudienceError'] = AudienceError globals()['AudienceWarning'] = AudienceWarning globals()['ContactlistOperation'] = ContactlistOperation diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py index 66c99383..fbe6ec99 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue + from criteo_api_marketingsolutions_v2023_10.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue globals()['NillableAdSetTargetingRuleValue'] = NillableAdSetTargetingRuleValue diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py index 1240e0b3..550c21da 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_targeting_rule import AdSetTargetingRule + from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting_rule import AdSetTargetingRule globals()['AdSetTargetingRule'] = AdSetTargetingRule diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py index 0a4133ab..16a2af3d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py index ff44fefd..76afce9f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py new file mode 100644 index 00000000..910ab2f4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + '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, 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, *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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py new file mode 100644 index 00000000..02c87e51 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, 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, *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, none_type): 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, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/nillable_string.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_string.py new file mode 100644 index 00000000..157c5a5c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_string.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, 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, *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, none_type): 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, none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py similarity index 96% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py index 539dbd30..03297fe6 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_targeting import AdSetTargeting - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_bidding import PatchAdSetBidding - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_budget import PatchAdSetBudget - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_scheduling import PatchAdSetScheduling + from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting import AdSetTargeting + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_bidding import PatchAdSetBidding + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_budget import PatchAdSetBudget + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_scheduling import PatchAdSetScheduling globals()['AdSetTargeting'] = AdSetTargeting globals()['PatchAdSetBidding'] = PatchAdSetBidding globals()['PatchAdSetBudget'] = PatchAdSetBudget diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_bidding.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_bidding.py index 964df986..625ec94a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_bidding.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py index e1931b30..fbb1b226 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid.py index 0b088e01..d1c2cf59 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py index e84fee54..87317c3f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource globals()['PatchAdSetCategoryBidResource'] = PatchAdSetCategoryBidResource diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_resource.py index 2da5e7c3..e67f23a9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid import PatchAdSetCategoryBid globals()['PatchAdSetCategoryBid'] = PatchAdSetCategoryBid 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py index c96f5a1c..620bca6c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_resource.py index 8e4c52c3..a38424ee 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier.py index ca41ac2f..f51c2002 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py index ce167e33..ad0164a5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource globals()['PatchAdSetDisplayMultiplierResource'] = PatchAdSetDisplayMultiplierResource diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_resource.py index 54a90a4e..c234d56e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier globals()['PatchAdSetDisplayMultiplier'] = PatchAdSetDisplayMultiplier 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_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py index 874e7c4e..9c9f029b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_resource.py index 18bb271a..26211534 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_scheduling.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_scheduling.py index 7a382d55..b3c8ace7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_scheduling.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_date_time import NillableDateTime + from criteo_api_marketingsolutions_v2023_10.model.nillable_date_time import NillableDateTime globals()['NillableDateTime'] = NillableDateTime diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign.py index 03da7248..788b69a1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_spend_limit import PatchCampaignSpendLimit + from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_spend_limit import PatchCampaignSpendLimit globals()['PatchCampaignSpendLimit'] = PatchCampaignSpendLimit diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py index 79681e33..46c2f660 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_campaign_write_resource import PatchCampaignWriteResource + from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_write_resource import PatchCampaignWriteResource globals()['PatchCampaignWriteResource'] = PatchCampaignWriteResource diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py index 6d3d75f0..c99134b9 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_write_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_write_resource.py index b699a0e6..802bc14f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_write_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_campaign import PatchCampaign + from criteo_api_marketingsolutions_v2023_10.model.patch_campaign import PatchCampaign globals()['PatchCampaign'] = PatchCampaign diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py index c446134c..d3533805 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_read_resource.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_read_resource.py index da316354..b473b6d9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_read_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py index a2af5d0c..ddff6859 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage + from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py index a0c86e70..9d1a2c28 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_message import PlacementsReportQueryMessage + from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message import PlacementsReportQueryMessage globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py index 8fde3abc..e31652f4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py new file mode 100644 index 00000000..0245b5a8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'latitude': (float, none_type,), # noqa: E501 + 'longitude': (float, none_type,), # 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, none_type): Name of the point of interest. [optional] # noqa: E501 + latitude (float, none_type): ISO-6709 latitude (rounded at 5 decimals). [optional] # noqa: E501 + longitude (float, none_type): 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, none_type): Name of the point of interest. [optional] # noqa: E501 + latitude (float, none_type): ISO-6709 latitude (rounded at 5 decimals). [optional] # noqa: E501 + longitude (float, none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/portfolio_message.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/portfolio_message.py index 1a972c15..5c481336 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/portfolio_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py index 5890b885..bccd41ea 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py index f24d8475..724503c1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails globals()['ProblemDetails'] = ProblemDetails diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py new file mode 100644 index 00000000..e37b5a18 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'days_since_last_visit_max': (int, none_type,), # 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, none_type): 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, none_type): 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, none_type): 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, none_type): 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_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py similarity index 87% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py index 6787a390..b9d35161 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid import PatchAdSetCategoryBid - globals()['PatchAdSetCategoryBid'] = PatchAdSetCategoryBid + from criteo_api_marketingsolutions_v2023_10.model.nillable_int32 import NillableInt32 + globals()['NillableInt32'] = NillableInt32 -class PatchAdSetCategoryBidResource(ModelNormal): +class ProspectingUpdateV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +59,11 @@ class PatchAdSetCategoryBidResource(ModelNormal): """ allowed_values = { + ('users_type',): { + 'None': None, + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, } validations = { @@ -87,9 +92,9 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (PatchAdSetCategoryBid,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 + 'days_since_last_visit_min': (NillableInt32,), # noqa: E501 + 'days_since_last_visit_max': (NillableInt32,), # noqa: E501 + 'users_type': (str, none_type,), # noqa: E501 } @cached_property @@ -98,9 +103,9 @@ def discriminator(): attribute_map = { - 'attributes': 'attributes', # noqa: E501 - 'id': 'id', # noqa: E501 - 'type': 'type', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + 'users_type': 'usersType', # noqa: E501 } read_only_vars = { @@ -111,7 +116,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResource - a model defined in OpenAPI + """ProspectingUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +149,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,) - attributes (PatchAdSetCategoryBid): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str, none_type): Type of users to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +204,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResource - a model defined in OpenAPI + """ProspectingUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +237,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,) - attributes (PatchAdSetCategoryBid): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str, none_type): Type of users to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py new file mode 100644 index 00000000..b2989caf --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + '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, none_type,), # noqa: E501 + 'days_since_last_visit_max': (int, none_type,), # noqa: E501 + 'users_type': (str, none_type,), # 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, none_type): 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, none_type): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str, none_type): 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, none_type): 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, none_type): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str, none_type): 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_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py index 93f160d2..1cacdcaa 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_targeting import AdSetTargeting - from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_bidding import ReadAdSetBidding - from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_budget import ReadAdSetBudget - from criteo_api_marketingsolutions_v2022_07.model.read_ad_set_schedule import ReadAdSetSchedule + from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting import AdSetTargeting + from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_bidding import ReadAdSetBidding + from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_budget import ReadAdSetBudget + from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_schedule import ReadAdSetSchedule globals()['AdSetTargeting'] = AdSetTargeting globals()['ReadAdSetBidding'] = ReadAdSetBidding globals()['ReadAdSetBudget'] = ReadAdSetBudget diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_bidding.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_bidding.py index 221db06c..528b9879 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_bidding.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py index 8a9564cf..70a19269 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_decimal import NillableDecimal + from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal globals()['NillableDecimal'] = NillableDecimal diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py index a94e2e2e..a4b0d6fe 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.nillable_date_time import NillableDateTime + from criteo_api_marketingsolutions_v2023_10.model.nillable_date_time import NillableDateTime globals()['NillableDateTime'] = NillableDateTime diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_ad_set_id.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_ad_set_id.py index e80d2a99..30ccc6a7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_read_ad_set.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_read_ad_set.py index 0aa8abf2..534ba5ee 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_model_read_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.read_ad_set import ReadAdSet + from criteo_api_marketingsolutions_v2023_10.model.read_ad_set import ReadAdSet globals()['ReadAdSet'] = ReadAdSet diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/request_ad_set_search.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/request_ad_set_search.py index b66ef2d7..20cae9c8 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/request_ad_set_search.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.ad_set_search_filter import AdSetSearchFilter + from criteo_api_marketingsolutions_v2023_10.model.ad_set_search_filter import AdSetSearchFilter globals()['AdSetSearchFilter'] = AdSetSearchFilter diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py index 7d88452b..2b1d57eb 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.write_model_ad_set_id import WriteModelAdSetId + from criteo_api_marketingsolutions_v2023_10.model.write_model_ad_set_id import WriteModelAdSetId globals()['WriteModelAdSetId'] = WriteModelAdSetId diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py index a1b0ea19..26ad2473 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.write_model_patch_ad_set import WriteModelPatchAdSet + from criteo_api_marketingsolutions_v2023_10.model.write_model_patch_ad_set import WriteModelPatchAdSet globals()['WriteModelPatchAdSet'] = WriteModelPatchAdSet diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py index 0ae48509..07916a09 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_07.model.read_model_ad_set_id import ReadModelAdSetId + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.read_model_ad_set_id import ReadModelAdSetId globals()['ProblemDetails'] = ProblemDetails globals()['ReadModelAdSetId'] = ReadModelAdSetId diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py index fc0588cc..e3e4c22a 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_10.model.read_model_read_ad_set import ReadModelReadAdSet + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.read_model_read_ad_set import ReadModelReadAdSet globals()['ProblemDetails'] = ProblemDetails globals()['ReadModelReadAdSet'] = ReadModelReadAdSet diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py index 546b040b..3182bb4d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_07.model.read_model_ad_set_id import ReadModelAdSetId + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.read_model_ad_set_id import ReadModelAdSetId globals()['ProblemDetails'] = ProblemDetails globals()['ReadModelAdSetId'] = ReadModelAdSetId diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py similarity index 97% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py index 42d7e666..223b23d2 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2022_10.model.read_model_read_ad_set import ReadModelReadAdSet + from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.read_model_read_ad_set import ReadModelReadAdSet globals()['ProblemDetails'] = ProblemDetails globals()['ReadModelReadAdSet'] = ReadModelReadAdSet diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_create_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_create_v1.py new file mode 100644 index 00000000..841a807a --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_create_v1.py @@ -0,0 +1,286 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_update_v1.py similarity index 87% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_update_v1.py index a8139f12..8b7f1249 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.ad_set_display_multiplier import AdSetDisplayMultiplier - globals()['AdSetDisplayMultiplier'] = AdSetDisplayMultiplier - -class AdSetDisplayMultiplierResource(ModelNormal): +class RetargetingUpdateV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +55,12 @@ class AdSetDisplayMultiplierResource(ModelNormal): """ allowed_values = { + ('visitors_type',): { + 'None': None, + 'ALL': "All", + 'BUYERS': "Buyers", + 'NONBUYERS': "NonBuyers", + }, } validations = { @@ -70,7 +72,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 @@ -85,11 +86,10 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'attributes': (AdSetDisplayMultiplier,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 + 'visitors_type': (str, none_type,), # noqa: E501 + 'days_since_last_visit_min': (int, none_type,), # noqa: E501 + 'days_since_last_visit_max': (int, none_type,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { - 'attributes': 'attributes', # noqa: E501 - 'id': 'id', # noqa: E501 - 'type': 'type', # noqa: E501 + 'visitors_type': 'visitorsType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 } read_only_vars = { @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AdSetDisplayMultiplierResource - a model defined in OpenAPI + """RetargetingUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - attributes (AdSetDisplayMultiplier): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 + visitors_type (str, none_type): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int, none_type): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int, none_type): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AdSetDisplayMultiplierResource - a model defined in OpenAPI + """RetargetingUpdateV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - attributes (AdSetDisplayMultiplier): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 + visitors_type (str, none_type): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int, none_type): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int, none_type): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py new file mode 100644 index 00000000..e3cfada4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py @@ -0,0 +1,278 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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',): { + 'None': None, + '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, none_type,), # noqa: E501 + 'days_since_last_visit_min': (int, none_type,), # noqa: E501 + 'days_since_last_visit_max': (int, none_type,), # 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, none_type): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int, none_type): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int, none_type): 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, none_type): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int, none_type): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int, none_type): 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-10/criteo_api_marketingsolutions_v2023_10/model/size.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/size.py new file mode 100644 index 00000000..2549e92b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/size.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.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, none_type,), # noqa: E501 + 'height': (int, none_type,), # 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, none_type): [optional] # noqa: E501 + height (int, 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 + """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, none_type): [optional] # noqa: E501 + height (int, 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/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py index 0185559e..078dcee7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/tag.py similarity index 93% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/tag.py index c2a34d73..6957aa9f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/tag.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.campaign_search_filters import CampaignSearchFilters - globals()['CampaignSearchFilters'] = CampaignSearchFilters + from criteo_api_marketingsolutions_v2023_10.model.size import Size + globals()['Size'] = Size -class CampaignSearchRequest(ModelNormal): +class Tag(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'filters': (CampaignSearchFilters,), # noqa: E501 + 'html_tag': (str, none_type,), # noqa: E501 + 'size': (Size,), # noqa: E501 } @cached_property @@ -96,7 +97,8 @@ def discriminator(): attribute_map = { - 'filters': 'filters', # noqa: E501 + 'html_tag': 'htmlTag', # noqa: E501 + 'size': 'size', # noqa: E501 } read_only_vars = { @@ -107,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignSearchRequest - a model defined in OpenAPI + """Tag - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +142,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,) - filters (CampaignSearchFilters): [optional] # noqa: E501 + html_tag (str, none_type): Html tag. [optional] # noqa: E501 + size (Size): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CampaignSearchRequest - a model defined in OpenAPI + """Tag - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +229,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,) - filters (CampaignSearchFilters): [optional] # noqa: E501 + html_tag (str, none_type): Html tag. [optional] # noqa: E501 + size (Size): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py index 92526b39..4d8d941f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage + from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py index 08630075..ec928615 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.transactions_report_query_message import TransactionsReportQueryMessage + from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message import TransactionsReportQueryMessage globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py index 3826c877..668214d7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py index db233eae..3ece46f5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py index 5b3d9f86..d45e29a1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.transparency_report_file import TransparencyReportFile + from criteo_api_marketingsolutions_v2023_10.model.transparency_report_file import TransparencyReportFile globals()['TransparencyReportFile'] = TransparencyReportFile diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py similarity index 97% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py index 2eee16fe..53e7df94 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.transparency_report_entity_message import TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2023_10.model.transparency_report_entity_message import TransparencyReportEntityMessage globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py index df2f3eb7..c1b4a73a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.transparency_report_attributes import TransparencyReportAttributes + from criteo_api_marketingsolutions_v2023_10.model.transparency_report_attributes import TransparencyReportAttributes globals()['TransparencyReportAttributes'] = TransparencyReportAttributes diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py index 579d9fae..cb296b91 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon.py similarity index 89% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon.py index 94f862dc..4fe65cb4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_v2022_10.model.nillable_date_time import NillableDateTime - globals()['NillableDateTime'] = NillableDateTime - -class PatchAdSetScheduling(ModelNormal): +class UpdateCoupon(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,7 +66,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 @@ -85,10 +80,9 @@ def openapi_types(): 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 + 'start_date': (str,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 } @cached_property @@ -108,8 +102,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetScheduling - a model defined in OpenAPI + 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 @@ -142,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,) - start_date (NillableDateTime): [optional] # noqa: E501 - end_date (NillableDateTime): [optional] # noqa: E501 + end_date (str, none_type): 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) @@ -175,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 \ @@ -195,8 +192,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetScheduling - a model defined in OpenAPI + 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 @@ -229,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,) - start_date (NillableDateTime): [optional] # noqa: E501 - end_date (NillableDateTime): [optional] # noqa: E501 + end_date (str, none_type): 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) @@ -260,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_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py new file mode 100644 index 00000000..3f7c3b33 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py new file mode 100644 index 00000000..98087dd3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/video_detail.py similarity index 87% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/video_detail.py index 8776635d..985012cf 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/video_detail.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - RetailMedia # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError -class HyperlinkVariableValue(ModelNormal): +class VideoDetail(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,6 +55,11 @@ class HyperlinkVariableValue(ModelNormal): """ allowed_values = { + ('shape',): { + 'HORIZONTAL': "Horizontal", + 'VERTICAL': "Vertical", + 'SQUARE': "Square", + }, } validations = { @@ -81,6 +86,8 @@ def openapi_types(): and the value is attribute type. """ return { + 'duration': (float,), # noqa: E501 + 'shape': (str,), # noqa: E501 'url': (str,), # noqa: E501 } @@ -90,6 +97,8 @@ def discriminator(): attribute_map = { + 'duration': 'duration', # noqa: E501 + 'shape': 'shape', # noqa: E501 'url': 'url', # noqa: E501 } @@ -100,11 +109,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, url, *args, **kwargs): # noqa: E501 - """HyperlinkVariableValue - a model defined in OpenAPI + def _from_openapi_data(cls, duration, shape, url, *args, **kwargs): # noqa: E501 + """VideoDetail - a model defined in OpenAPI Args: - url (str): The url to redirect to + 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 @@ -168,6 +179,8 @@ def _from_openapi_data(cls, url, *args, **kwargs): # noqa: E501 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 \ @@ -189,11 +202,13 @@ def _from_openapi_data(cls, url, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, url, *args, **kwargs): # noqa: E501 - """HyperlinkVariableValue - a model defined in OpenAPI + def __init__(self, duration, shape, url, *args, **kwargs): # noqa: E501 + """VideoDetail - a model defined in OpenAPI Args: - url (str): The url to redirect to + 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 @@ -255,6 +270,8 @@ def __init__(self, url, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_ad_set_id.py similarity index 98% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_ad_set_id.py index b4b1decd..70cc98fc 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_patch_ad_set.py similarity index 98% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_patch_ad_set.py index 8186e963..ba97ea06 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/write_model_patch_ad_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set import PatchAdSet + from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set import PatchAdSet globals()['PatchAdSet'] = PatchAdSet diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model_utils.py similarity index 99% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model_utils.py index b2df0fd3..cda1ea54 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model_utils.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -20,7 +20,7 @@ from dateutil.parser import parse -from criteo_api_marketingsolutions_v2022_07.exceptions import ( +from criteo_api_marketingsolutions_v2023_10.exceptions import ( ApiKeyError, ApiAttributeError, ApiTypeError, diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py new file mode 100644 index 00000000..1d80d344 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py @@ -0,0 +1,259 @@ +# 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_10.model.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from criteo_api_marketingsolutions_v2023_10.model.ad import Ad +from criteo_api_marketingsolutions_v2023_10.model.ad_list_response import AdListResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_resource import AdResource +from criteo_api_marketingsolutions_v2023_10.model.ad_response import AdResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1 import AdSetAudienceLinkEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid import AdSetCategoryBid +from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource +from criteo_api_marketingsolutions_v2023_10.model.ad_set_delivery_limitations import AdSetDeliveryLimitations +from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier import AdSetDisplayMultiplier +from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource +from criteo_api_marketingsolutions_v2023_10.model.ad_set_frequency_capping import AdSetFrequencyCapping +from criteo_api_marketingsolutions_v2023_10.model.ad_set_geo_location import AdSetGeoLocation +from criteo_api_marketingsolutions_v2023_10.model.ad_set_search_filter import AdSetSearchFilter +from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting import AdSetTargeting +from criteo_api_marketingsolutions_v2023_10.model.ad_set_targeting_rule import AdSetTargetingRule +from criteo_api_marketingsolutions_v2023_10.model.ad_write import AdWrite +from criteo_api_marketingsolutions_v2023_10.model.ad_write_request import AdWriteRequest +from criteo_api_marketingsolutions_v2023_10.model.ad_write_resource import AdWriteResource +from criteo_api_marketingsolutions_v2023_10.model.adaptive_attributes import AdaptiveAttributes +from criteo_api_marketingsolutions_v2023_10.model.adaptive_colors import AdaptiveColors +from criteo_api_marketingsolutions_v2023_10.model.adaptive_write_attributes import AdaptiveWriteAttributes +from criteo_api_marketingsolutions_v2023_10.model.algebra_node_v1 import AlgebraNodeV1 +from criteo_api_marketingsolutions_v2023_10.model.application_summary_model import ApplicationSummaryModel +from criteo_api_marketingsolutions_v2023_10.model.application_summary_model_resource import ApplicationSummaryModelResource +from criteo_api_marketingsolutions_v2023_10.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_compute_size_entity_v1_resource import AudienceComputeSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_compute_sizes_input_v1 import AudienceComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_create_entity_v1 import AudienceCreateEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_create_entity_v1_resource import AudienceCreateEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_delete_entity_v1_resource import AudienceDeleteEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1 import AudienceEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_resource import AudienceEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_error import AudienceError +from criteo_api_marketingsolutions_v2023_10.model.audience_estimate_size_entity_v1 import AudienceEstimateSizeEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_estimate_size_entity_v1_resource import AudienceEstimateSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_estimate_size_input_v1 import AudienceEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_id_entity_v1_resource import AudienceIdEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_name_description import AudienceNameDescription +from criteo_api_marketingsolutions_v2023_10.model.audience_search_entity_v1 import AudienceSearchEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_search_entity_v1_resource import AudienceSearchEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_search_input_v1 import AudienceSearchInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_search_metadata_v1 import AudienceSearchMetadataV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_compute_size_entity_v1_resource import AudienceSegmentComputeSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_compute_sizes_input_v1 import AudienceSegmentComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_create_entity_v1 import AudienceSegmentCreateEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_create_entity_v1_resource import AudienceSegmentCreateEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_delete_entity_v1_resource import AudienceSegmentDeleteEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1 import AudienceSegmentEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response import AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_id_entity_v1_resource import AudienceSegmentIdEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_entity_v1 import AudienceSegmentSearchEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_entity_v1_resource import AudienceSegmentSearchEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_metadata_v1 import AudienceSegmentSearchMetadataV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1 import AudienceSegmentSizeEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1_resource import AudienceSegmentSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_entity_v1 import AudienceSegmentSizeEstimationEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_entity_v1_resource import AudienceSegmentSizeEstimationEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1 import AudienceSegmentSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1_resource import AudienceSegmentSizeEstimationV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_update_entity_v1 import AudienceSegmentUpdateEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_update_entity_v1_resource import AudienceSegmentUpdateEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1 import AudienceSizeEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1_resource import AudienceSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1 import AudienceSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1_resource import AudienceSizeEstimationV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.model.audience_update_entity_v1 import AudienceUpdateEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_update_entity_v1_resource import AudienceUpdateEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.audience_warning import AudienceWarning +from criteo_api_marketingsolutions_v2023_10.model.basic_audience_definition import BasicAudienceDefinition +from criteo_api_marketingsolutions_v2023_10.model.behavioral_v1 import BehavioralV1 +from criteo_api_marketingsolutions_v2023_10.model.campaign import Campaign +from criteo_api_marketingsolutions_v2023_10.model.campaign_list_response import CampaignListResponse +from criteo_api_marketingsolutions_v2023_10.model.campaign_read_resource import CampaignReadResource +from criteo_api_marketingsolutions_v2023_10.model.campaign_response import CampaignResponse +from criteo_api_marketingsolutions_v2023_10.model.campaign_search_filters import CampaignSearchFilters +from criteo_api_marketingsolutions_v2023_10.model.campaign_search_request import CampaignSearchRequest +from criteo_api_marketingsolutions_v2023_10.model.campaign_spend_limit import CampaignSpendLimit +from criteo_api_marketingsolutions_v2023_10.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1 +from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1 import CampaignV23Q1 +from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1_resource import CampaignV23Q1Resource +from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1_response import CampaignV23Q1Response +from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem +from criteo_api_marketingsolutions_v2023_10.model.contact_list_statistics_entity_v1 import ContactListStatisticsEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.contact_list_statistics_entity_v1_resource import ContactListStatisticsEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.contact_list_statistics_entity_v1_response import ContactListStatisticsEntityV1Response +from criteo_api_marketingsolutions_v2023_10.model.contact_list_v1 import ContactListV1 +from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment import ContactlistAmendment +from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes +from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment_request import ContactlistAmendmentRequest +from criteo_api_marketingsolutions_v2023_10.model.contactlist_operation import ContactlistOperation +from criteo_api_marketingsolutions_v2023_10.model.contactlist_operation_attributes import ContactlistOperationAttributes +from criteo_api_marketingsolutions_v2023_10.model.coupon import Coupon +from criteo_api_marketingsolutions_v2023_10.model.coupon_list_response import CouponListResponse +from criteo_api_marketingsolutions_v2023_10.model.coupon_resource import CouponResource +from criteo_api_marketingsolutions_v2023_10.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_10.model.coupon_supported_sizes import CouponSupportedSizes +from criteo_api_marketingsolutions_v2023_10.model.coupon_supported_sizes_resource import CouponSupportedSizesResource +from criteo_api_marketingsolutions_v2023_10.model.coupon_supported_sizes_response import CouponSupportedSizesResponse +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set import CreateAdSet +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_bidding import CreateAdSetBidding +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_budget import CreateAdSetBudget +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_geo_location import CreateAdSetGeoLocation +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_request import CreateAdSetRequest +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_resource import CreateAdSetResource +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_schedule import CreateAdSetSchedule +from criteo_api_marketingsolutions_v2023_10.model.create_ad_set_targeting import CreateAdSetTargeting +from criteo_api_marketingsolutions_v2023_10.model.create_campaign import CreateCampaign +from criteo_api_marketingsolutions_v2023_10.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_10.model.create_campaign_resource import CreateCampaignResource +from criteo_api_marketingsolutions_v2023_10.model.create_campaign_spend_limit import CreateCampaignSpendLimit +from criteo_api_marketingsolutions_v2023_10.model.create_coupon import CreateCoupon +from criteo_api_marketingsolutions_v2023_10.model.create_coupon_request import CreateCouponRequest +from criteo_api_marketingsolutions_v2023_10.model.create_coupon_resource import CreateCouponResource +from criteo_api_marketingsolutions_v2023_10.model.create_image_slide import CreateImageSlide +from criteo_api_marketingsolutions_v2023_10.model.creative import Creative +from criteo_api_marketingsolutions_v2023_10.model.creative_list_response import CreativeListResponse +from criteo_api_marketingsolutions_v2023_10.model.creative_resource import CreativeResource +from criteo_api_marketingsolutions_v2023_10.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_10.model.creative_write import CreativeWrite +from criteo_api_marketingsolutions_v2023_10.model.creative_write_request import CreativeWriteRequest +from criteo_api_marketingsolutions_v2023_10.model.creative_write_resource import CreativeWriteResource +from criteo_api_marketingsolutions_v2023_10.model.criteo_api_error import CriteoApiError +from criteo_api_marketingsolutions_v2023_10.model.criteo_api_warning import CriteoApiWarning +from criteo_api_marketingsolutions_v2023_10.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse +from criteo_api_marketingsolutions_v2023_10.model.dynamic_attributes import DynamicAttributes +from criteo_api_marketingsolutions_v2023_10.model.dynamic_write_attributes import DynamicWriteAttributes +from criteo_api_marketingsolutions_v2023_10.model.entity_of_portfolio_message import EntityOfPortfolioMessage +from criteo_api_marketingsolutions_v2023_10.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_10.model.get_portfolio_response import GetPortfolioResponse +from criteo_api_marketingsolutions_v2023_10.model.html_tag_attributes import HtmlTagAttributes +from criteo_api_marketingsolutions_v2023_10.model.html_tag_write_attributes import HtmlTagWriteAttributes +from criteo_api_marketingsolutions_v2023_10.model.image_attributes import ImageAttributes +from criteo_api_marketingsolutions_v2023_10.model.image_set import ImageSet +from criteo_api_marketingsolutions_v2023_10.model.image_set_base64 import ImageSetBase64 +from criteo_api_marketingsolutions_v2023_10.model.image_shape import ImageShape +from criteo_api_marketingsolutions_v2023_10.model.image_slide import ImageSlide +from criteo_api_marketingsolutions_v2023_10.model.image_write_attributes import ImageWriteAttributes +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_brand_entity_v1 import InMarketAudienceSegmentBrandEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_brand_entity_v1_list_response import InMarketAudienceSegmentBrandEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_brand_entity_v1_resource import InMarketAudienceSegmentBrandEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_interest_entity_v1 import InMarketAudienceSegmentInterestEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_interest_entity_v1_list_response import InMarketAudienceSegmentInterestEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.in_market_audience_segment_interest_entity_v1_resource import InMarketAudienceSegmentInterestEntityV1Resource +from criteo_api_marketingsolutions_v2023_10.model.in_market_create_v1 import InMarketCreateV1 +from criteo_api_marketingsolutions_v2023_10.model.in_market_size_estimation_v1 import InMarketSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_10.model.in_market_update_v1 import InMarketUpdateV1 +from criteo_api_marketingsolutions_v2023_10.model.in_market_v1 import InMarketV1 +from criteo_api_marketingsolutions_v2023_10.model.location_create_v1 import LocationCreateV1 +from criteo_api_marketingsolutions_v2023_10.model.location_size_estimation_v1 import LocationSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_10.model.location_update_v1 import LocationUpdateV1 +from criteo_api_marketingsolutions_v2023_10.model.location_v1 import LocationV1 +from criteo_api_marketingsolutions_v2023_10.model.lookalike_create_v1 import LookalikeCreateV1 +from criteo_api_marketingsolutions_v2023_10.model.lookalike_update_v1 import LookalikeUpdateV1 +from criteo_api_marketingsolutions_v2023_10.model.lookalike_v1 import LookalikeV1 +from criteo_api_marketingsolutions_v2023_10.model.modify_audience_response import ModifyAudienceResponse +from criteo_api_marketingsolutions_v2023_10.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule +from criteo_api_marketingsolutions_v2023_10.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue +from criteo_api_marketingsolutions_v2023_10.model.nillable_date_time import NillableDateTime +from criteo_api_marketingsolutions_v2023_10.model.nillable_decimal import NillableDecimal +from criteo_api_marketingsolutions_v2023_10.model.nillable_gender_v1 import NillableGenderV1 +from criteo_api_marketingsolutions_v2023_10.model.nillable_int32 import NillableInt32 +from criteo_api_marketingsolutions_v2023_10.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set import PatchAdSet +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_bidding import PatchAdSetBidding +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_budget import PatchAdSetBudget +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid import PatchAdSetCategoryBid +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_scheduling import PatchAdSetScheduling +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign import PatchCampaign +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_list_request import PatchCampaignListRequest +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_spend_limit import PatchCampaignSpendLimit +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_write_resource import PatchCampaignWriteResource +from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.point_of_interest_v1 import PointOfInterestV1 +from criteo_api_marketingsolutions_v2023_10.model.portfolio_message import PortfolioMessage +from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails +from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.prospecting_create_v1 import ProspectingCreateV1 +from criteo_api_marketingsolutions_v2023_10.model.prospecting_update_v1 import ProspectingUpdateV1 +from criteo_api_marketingsolutions_v2023_10.model.prospecting_v1 import ProspectingV1 +from criteo_api_marketingsolutions_v2023_10.model.read_ad_set import ReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_bidding import ReadAdSetBidding +from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_budget import ReadAdSetBudget +from criteo_api_marketingsolutions_v2023_10.model.read_ad_set_schedule import ReadAdSetSchedule +from criteo_api_marketingsolutions_v2023_10.model.read_model_ad_set_id import ReadModelAdSetId +from criteo_api_marketingsolutions_v2023_10.model.read_model_read_ad_set import ReadModelReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.request_ad_set_search import RequestAdSetSearch +from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_10.model.requests_patch_ad_set import RequestsPatchAdSet +from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_10.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_10.model.responses_read_ad_set import ResponsesReadAdSet +from criteo_api_marketingsolutions_v2023_10.model.retargeting_create_v1 import RetargetingCreateV1 +from criteo_api_marketingsolutions_v2023_10.model.retargeting_update_v1 import RetargetingUpdateV1 +from criteo_api_marketingsolutions_v2023_10.model.retargeting_v1 import RetargetingV1 +from criteo_api_marketingsolutions_v2023_10.model.size import Size +from criteo_api_marketingsolutions_v2023_10.model.statistics_report_query_message import StatisticsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.tag import Tag +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_attributes import TransparencyReportAttributes +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2023_10.model.update_coupon import UpdateCoupon +from criteo_api_marketingsolutions_v2023_10.model.update_coupon_request import UpdateCouponRequest +from criteo_api_marketingsolutions_v2023_10.model.update_coupon_resource import UpdateCouponResource +from criteo_api_marketingsolutions_v2023_10.model.video_detail import VideoDetail +from criteo_api_marketingsolutions_v2023_10.model.write_model_ad_set_id import WriteModelAdSetId +from criteo_api_marketingsolutions_v2023_10.model.write_model_patch_ad_set import WriteModelPatchAdSet diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/rest.py similarity index 99% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/rest.py index 11d914bf..0a57ab0d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/rest.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -19,7 +19,7 @@ import urllib3 import ipaddress -from criteo_api_marketingsolutions_v2022_10.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError +from criteo_api_marketingsolutions_v2023_10.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError logger = logging.getLogger(__name__) diff --git a/sdks/marketingsolutions_2023-10/docs/Ad.md b/sdks/marketingsolutions_2023-10/docs/Ad.md new file mode 100644 index 00000000..8bb233e5 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The name of the ad | [optional] +**description** | **str, none_type** | The description of the ad | [optional] +**creative_id** | **str, none_type** | The id of the Creative binded to this Ad | [optional] +**ad_set_id** | **str, none_type** | The id of the Ad Set binded to this Ad | [optional] +**inventory_type** | **str, none_type** | 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, none_type** | The date when the ad will be launched String must be in ISO8601 format | [optional] +**end_date** | **str, none_type** | 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/retailmedia_2022-07/docs/ApplicationSummaryModelResponse.md b/sdks/marketingsolutions_2023-10/docs/AdListResponse.md similarity index 78% rename from sdks/retailmedia_2022-07/docs/ApplicationSummaryModelResponse.md rename to sdks/marketingsolutions_2023-10/docs/AdListResponse.md index 84ff1697..be5c8ca6 100644 --- a/sdks/retailmedia_2022-07/docs/ApplicationSummaryModelResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/AdListResponse.md @@ -1,11 +1,11 @@ -# ApplicationSummaryModelResponse +# AdListResponse -Response of ApplicationSummaryModel +Data model for a list of response resources ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ApplicationSummaryModelResource**](ApplicationSummaryModelResource.md) | | [optional] +**data** | [**[AdResource], none_type**](AdResource.md) | | [optional] **warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem], none_type**](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] diff --git a/sdks/retailmedia_2022-10/docs/AssetResource.md b/sdks/marketingsolutions_2023-10/docs/AdResource.md similarity index 80% rename from sdks/retailmedia_2022-10/docs/AssetResource.md rename to sdks/marketingsolutions_2023-10/docs/AdResource.md index ef9a82a9..0037a3fa 100644 --- a/sdks/retailmedia_2022-10/docs/AssetResource.md +++ b/sdks/marketingsolutions_2023-10/docs/AdResource.md @@ -1,11 +1,11 @@ -# AssetResource +# AdResource -A class that represents an entity in a guild compliant way +Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**Asset**](Asset.md) | | [optional] +**attributes** | [**Ad**](Ad.md) | | [optional] **id** | **str, none_type** | | [optional] **type** | **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] diff --git a/sdks/retailmedia_2022-10/docs/ApplicationSummaryModelResponse.md b/sdks/marketingsolutions_2023-10/docs/AdResponse.md similarity index 78% rename from sdks/retailmedia_2022-10/docs/ApplicationSummaryModelResponse.md rename to sdks/marketingsolutions_2023-10/docs/AdResponse.md index 84ff1697..c6867e90 100644 --- a/sdks/retailmedia_2022-10/docs/ApplicationSummaryModelResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/AdResponse.md @@ -1,11 +1,11 @@ -# ApplicationSummaryModelResponse +# AdResponse -Response of ApplicationSummaryModel +Data model for response resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ApplicationSummaryModelResource**](ApplicationSummaryModelResource.md) | | [optional] +**data** | [**AdResource**](AdResource.md) | | [optional] **warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem], none_type**](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] diff --git a/sdks/retailmedia_2022-07/docs/BadRequest.md b/sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1.md similarity index 80% rename from sdks/retailmedia_2022-07/docs/BadRequest.md rename to sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1.md index 5467d5db..1e914dc8 100644 --- a/sdks/retailmedia_2022-07/docs/BadRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1.md @@ -1,11 +1,11 @@ -# BadRequest +# AdSetAudienceLinkEntityV1 -Bad request errors +Link Audience with an ad set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[Error], none_type**](Error.md) | The errors | [optional] +**audience_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/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Resource.md new file mode 100644 index 00000000..e36a8036 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Response.md b/sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkEntityV1Response.md new file mode 100644 index 00000000..bbdfcd1b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/AdSetAudienceLinkInputEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AdSetAudienceLinkInputEntityV1.md new file mode 100644 index 00000000..c7d36dc7 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-07/docs/AdSetCategoryBid.md b/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBid.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetCategoryBid.md rename to sdks/marketingsolutions_2023-10/docs/AdSetCategoryBid.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetCategoryBidListResponse.md rename to sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetCategoryBidResource.md b/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetCategoryBidResource.md rename to sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetDeliveryLimitations.md rename to sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplier.md b/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplier.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplier.md rename to sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplier.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplierListResponse.md rename to sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetDisplayMultiplierResource.md rename to sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetFrequencyCapping.md rename to sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetGeoLocation.md b/sdks/marketingsolutions_2023-10/docs/AdSetGeoLocation.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetGeoLocation.md rename to sdks/marketingsolutions_2023-10/docs/AdSetGeoLocation.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetSearchFilter.md rename to sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetTargeting.md b/sdks/marketingsolutions_2023-10/docs/AdSetTargeting.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetTargeting.md rename to sdks/marketingsolutions_2023-10/docs/AdSetTargeting.md diff --git a/sdks/marketingsolutions_2022-07/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AdSetTargetingRule.md rename to sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md diff --git a/sdks/marketingsolutions_2023-10/docs/AdWrite.md b/sdks/marketingsolutions_2023-10/docs/AdWrite.md new file mode 100644 index 00000000..20476c06 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The description of the ad | [optional] +**inventory_type** | **str, none_type** | 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, none_type** | 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/retailmedia_2022-07/docs/EnvelopeReportRequest.md b/sdks/marketingsolutions_2023-10/docs/AdWriteRequest.md similarity index 79% rename from sdks/retailmedia_2022-07/docs/EnvelopeReportRequest.md rename to sdks/marketingsolutions_2023-10/docs/AdWriteRequest.md index 1c864080..d6ae0b45 100644 --- a/sdks/retailmedia_2022-07/docs/EnvelopeReportRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/AdWriteRequest.md @@ -1,11 +1,11 @@ -# EnvelopeReportRequest +# AdWriteRequest -Standard response envelope +Data model for input resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReportRequest**](ReportRequest.md) | | +**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/retailmedia_preview/docs/CampaignReportResource.md b/sdks/marketingsolutions_2023-10/docs/AdWriteResource.md similarity index 73% rename from sdks/retailmedia_preview/docs/CampaignReportResource.md rename to sdks/marketingsolutions_2023-10/docs/AdWriteResource.md index c294a9f3..df8ba8c6 100644 --- a/sdks/retailmedia_preview/docs/CampaignReportResource.md +++ b/sdks/marketingsolutions_2023-10/docs/AdWriteResource.md @@ -1,12 +1,13 @@ -# CampaignReportResource +# AdWriteResource -A top-level object that encapsulates a Criteo API response for a single value +Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**AdWrite**](AdWrite.md) | | [optional] +**id** | **str, none_type** | | [optional] **type** | **str, none_type** | | [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/marketingsolutions_2023-10/docs/AdaptiveAttributes.md b/sdks/marketingsolutions_2023-10/docs/AdaptiveAttributes.md new file mode 100644 index 00000000..17d5da16 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](ImageSet.md) | Multiple image sets, each image set consists of multiple images and a headline text. | [optional] +**image_display** | **str, none_type** | 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], none_type**](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-10/docs/AdaptiveColors.md b/sdks/marketingsolutions_2023-10/docs/AdaptiveColors.md new file mode 100644 index 00000000..1d5d2f8e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AdaptiveWriteAttributes.md b/sdks/marketingsolutions_2023-10/docs/AdaptiveWriteAttributes.md new file mode 100644 index 00000000..04a98b9c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](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, none_type** | 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], none_type** | 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_2022-10/docs/AdvertiserApi.md b/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md similarity index 80% rename from sdks/marketingsolutions_2022-10/docs/AdvertiserApi.md rename to sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md index c1c0a32d..72f87a39 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AdvertiserApi.md @@ -1,10 +1,10 @@ -# criteo_api_marketingsolutions_v2022_10.AdvertiserApi +# criteo_api_marketingsolutions_v2023_10.AdvertiserApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**api_portfolio_get**](AdvertiserApi.md#api_portfolio_get) | **GET** /2022-10/advertisers/me | +[**api_portfolio_get**](AdvertiserApi.md#api_portfolio_get) | **GET** /2023-10/advertisers/me | # **api_portfolio_get** @@ -21,13 +21,13 @@ Fetch the portfolio of Advertisers for this account ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import advertiser_api -from criteo_api_marketingsolutions_v2022_10.model.get_portfolio_response import GetPortfolioResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import advertiser_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -37,19 +37,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = advertiser_api.AdvertiserApi(api_client) @@ -57,7 +57,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.api_portfolio_get() pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AdvertiserApi->api_portfolio_get: %s\n" % e) ``` diff --git a/sdks/marketingsolutions_2022-10/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-10/docs/AlgebraNodeV1.md similarity index 58% rename from sdks/marketingsolutions_2022-10/docs/AdSetSearchFilter.md rename to sdks/marketingsolutions_2023-10/docs/AlgebraNodeV1.md index b01910bd..3c3cd88c 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_2023-10/docs/AlgebraNodeV1.md @@ -1,13 +1,14 @@ -# AdSetSearchFilter +# AlgebraNodeV1 -filter on ad set ids +Node in the audience algebra definition. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**_and** | [**[AlgebraNodeV1], none_type**](AlgebraNodeV1.md) | | [optional] +**_or** | [**[AlgebraNodeV1], none_type**](AlgebraNodeV1.md) | | [optional] +**_not** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] +**audience_segment_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/marketingsolutions_2022-10/docs/AnalyticsApi.md b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md similarity index 84% rename from sdks/marketingsolutions_2022-10/docs/AnalyticsApi.md rename to sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md index 4d3c6d13..17645ce0 100644 --- a/sdks/marketingsolutions_2022-10/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md @@ -1,13 +1,13 @@ -# criteo_api_marketingsolutions_v2022_10.AnalyticsApi +# criteo_api_marketingsolutions_v2023_10.AnalyticsApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_adset_report**](AnalyticsApi.md#get_adset_report) | **POST** /2022-10/statistics/report | -[**get_placements_report**](AnalyticsApi.md#get_placements_report) | **POST** /2022-10/placements/report | -[**get_transactions_report**](AnalyticsApi.md#get_transactions_report) | **POST** /2022-10/transactions/report | -[**get_transparency_report**](AnalyticsApi.md#get_transparency_report) | **POST** /2022-10/log-level/advertisers/{advertiser-id}/report | +[**get_adset_report**](AnalyticsApi.md#get_adset_report) | **POST** /2023-10/statistics/report | +[**get_placements_report**](AnalyticsApi.md#get_placements_report) | **POST** /2023-10/placements/report | +[**get_transactions_report**](AnalyticsApi.md#get_transactions_report) | **POST** /2023-10/transactions/report | +[**get_transparency_report**](AnalyticsApi.md#get_transparency_report) | **POST** /2023-10/log-level/advertisers/{advertiser-id}/report | # **get_adset_report** @@ -24,14 +24,14 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import analytics_api -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.statistics_report_query_message import StatisticsReportQueryMessage +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import analytics_api +from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -41,19 +41,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) statistics_report_query_message = StatisticsReportQueryMessage( @@ -85,7 +85,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_adset_report(statistics_report_query_message=statistics_report_query_message) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_adset_report: %s\n" % e) ``` @@ -134,14 +134,14 @@ Your ads are placed in different domains (publishers) and environments (websites ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import analytics_api -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import analytics_api +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -151,19 +151,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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( @@ -198,7 +198,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie 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_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) ``` @@ -247,14 +247,14 @@ This Transactions endpoint provides transactions id related data. ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import analytics_api -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import analytics_api +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -264,19 +264,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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( @@ -301,7 +301,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie 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_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) ``` @@ -350,15 +350,15 @@ This Statistics endpoint provides publisher data. ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import analytics_api -from criteo_api_marketingsolutions_v2022_10.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2022_10.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2022_10.model.transparency_query_message import TransparencyQueryMessage +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import analytics_api +from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -368,19 +368,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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. @@ -394,7 +394,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_transparency_report(advertiser_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.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 @@ -402,7 +402,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_transparency_report(advertiser_id, transparency_query_message=transparency_query_message) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_transparency_report: %s\n" % e) ``` diff --git a/sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModel.md b/sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModel.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModel.md rename to sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModel.md diff --git a/sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModelResource.md b/sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModelResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModelResource.md rename to sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModelResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModelResponse.md b/sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModelResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ApplicationSummaryModelResponse.md rename to sdks/marketingsolutions_2023-10/docs/ApplicationSummaryModelResponse.md diff --git a/sdks/marketingsolutions_2023-10/docs/AudienceApi.md b/sdks/marketingsolutions_2023-10/docs/AudienceApi.md new file mode 100644 index 00000000..e7f8e687 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceApi.md @@ -0,0 +1,1826 @@ +# criteo_api_marketingsolutions_v2023_10.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-10/marketing-solutions/audience-segments/create | +[**bulk_create_audiences**](AudienceApi.md#bulk_create_audiences) | **POST** /2023-10/marketing-solutions/audiences/create | +[**bulk_delete_audience_segments**](AudienceApi.md#bulk_delete_audience_segments) | **POST** /2023-10/marketing-solutions/audience-segments/delete | +[**bulk_delete_audiences**](AudienceApi.md#bulk_delete_audiences) | **POST** /2023-10/marketing-solutions/audiences/delete | +[**bulk_update_audience_segments**](AudienceApi.md#bulk_update_audience_segments) | **PATCH** /2023-10/marketing-solutions/audience-segments | +[**bulk_update_audiences**](AudienceApi.md#bulk_update_audiences) | **PATCH** /2023-10/marketing-solutions/audiences | +[**compute_audience_segments_sizes**](AudienceApi.md#compute_audience_segments_sizes) | **POST** /2023-10/marketing-solutions/audience-segments/compute-sizes | +[**compute_audiences_sizes**](AudienceApi.md#compute_audiences_sizes) | **POST** /2023-10/marketing-solutions/audiences/compute-sizes | +[**delete_contact_list_identifiers**](AudienceApi.md#delete_contact_list_identifiers) | **DELETE** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +[**estimate_audience_segment_size**](AudienceApi.md#estimate_audience_segment_size) | **POST** /2023-10/marketing-solutions/audience-segments/estimate-size | +[**estimate_audience_size**](AudienceApi.md#estimate_audience_size) | **POST** /2023-10/marketing-solutions/audiences/estimate-size | +[**get_audience_segment_contact_list_statistics**](AudienceApi.md#get_audience_segment_contact_list_statistics) | **GET** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list/statistics | +[**get_audience_segments_in_market_brands**](AudienceApi.md#get_audience_segments_in_market_brands) | **GET** /2023-10/marketing-solutions/audience-segments/in-market-brands | +[**get_audience_segments_in_market_interests**](AudienceApi.md#get_audience_segments_in_market_interests) | **GET** /2023-10/marketing-solutions/audience-segments/in-market-interests | +[**search_audience_segments**](AudienceApi.md#search_audience_segments) | **POST** /2023-10/marketing-solutions/audience-segments/search | +[**search_audiences**](AudienceApi.md#search_audiences) | **POST** /2023-10/marketing-solutions/audiences/search | +[**update_contact_list_identifiers**](AudienceApi.md#update_contact_list_identifiers) | **PATCH** /2023-10/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | + + +# **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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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) + +# **delete_contact_list_identifiers** +> DeleteAudienceContactListResponse delete_contact_list_identifiers(audience_segment_id) + + + +Delete all identifiers from a contact list audience-segment. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_id = "audience-segment-id_example" # str | The id of the contact list audience-segment to amend + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.delete_contact_list_identifiers(audience_segment_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_10.ApiException as e: + print("Exception when calling AudienceApi->delete_contact_list_identifiers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_id** | **str**| The id of the contact list audience-segment 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 Contact List was emptied | - | +**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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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) + +# **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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_10.model.audience_search_input_v1 import AudienceSearchInputV1 +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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) + +# **update_contact_list_identifiers** +> ModifyAudienceResponse update_contact_list_identifiers(audience_segment_id, contactlist_amendment_request) + + + +Add/remove identifiers to or from a contact list audience-segment. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import audience_api +from criteo_api_marketingsolutions_v2023_10.model.contactlist_amendment_request import ContactlistAmendmentRequest +from criteo_api_marketingsolutions_v2023_10.model.modify_audience_response import ModifyAudienceResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_id = "audience-segment-id_example" # str | The id of the contact list audience-segment 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.update_contact_list_identifiers(audience_segment_id, contactlist_amendment_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_10.ApiException as e: + print("Exception when calling AudienceApi->update_contact_list_identifiers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_id** | **str**| The id of the contact list audience-segment 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) + diff --git a/sdks/marketingsolutions_2023-10/docs/AudienceBulkCreateInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceBulkCreateInputV1.md new file mode 100644 index 00000000..c3989836 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceBulkCreateInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkCreateInputV1 + +Input to create one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceCreateEntityV1Resource], none_type**](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-10/docs/AudienceBulkDeleteInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceBulkDeleteInputV1.md new file mode 100644 index 00000000..303732ba --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceBulkDeleteInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkDeleteInputV1 + +Input to delete one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceDeleteEntityV1Resource], none_type**](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-10/docs/AudienceBulkUpdateInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceBulkUpdateInputV1.md new file mode 100644 index 00000000..5074de91 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceBulkUpdateInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkUpdateInputV1 + +Input to update one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceUpdateEntityV1Resource], none_type**](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-10/docs/AudienceComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceComputeSizeEntityV1Resource.md new file mode 100644 index 00000000..a0521016 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceComputeSizesInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceComputeSizesInputV1.md new file mode 100644 index 00000000..40dc3f6e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](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-10/docs/AudienceCreateEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceCreateEntityV1.md new file mode 100644 index 00000000..3d8a5506 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/AudienceCreateEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceCreateEntityV1Resource.md new file mode 100644 index 00000000..1cfab9d2 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceDeleteEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceDeleteEntityV1Resource.md new file mode 100644 index 00000000..1cdd252d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1.md new file mode 100644 index 00000000..f577cbc3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1.md @@ -0,0 +1,19 @@ +# AudienceEntityV1 + +Audience of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | Name of the audience | [optional] +**description** | **str, none_type** | Description of the audience | [optional] +**created_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of audience creation (read-only) | [optional] +**updated_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of audience update (read-only) | [optional] +**advertiser_id** | **str, none_type** | Advertiser associated to the audience | [optional] +**ad_set_ids** | **[str], none_type** | 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-10/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..da7db24b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1ListResponse.md similarity index 56% rename from sdks/marketingsolutions_2022-10/docs/CampaignResponse.md rename to sdks/marketingsolutions_2023-10/docs/AudienceEntityV1ListResponse.md index d298761f..9667d386 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1ListResponse.md @@ -1,13 +1,13 @@ -# CampaignResponse +# AudienceEntityV1ListResponse -output resource +A top-level object that encapsulates a Criteo API response for several entities ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**[AudienceEntityV1Resource], none_type**](AudienceEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/WriteModelAdSetId.md b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1Resource.md similarity index 70% rename from sdks/marketingsolutions_2022-10/docs/WriteModelAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/AudienceEntityV1Resource.md index ab5eb815..8c8c43c8 100644 --- a/sdks/marketingsolutions_2022-10/docs/WriteModelAdSetId.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceEntityV1Resource.md @@ -1,12 +1,13 @@ -# WriteModelAdSetId +# AudienceEntityV1Resource -write model data for resources +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceEntityV1**](AudienceEntityV1.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] +**type** | **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/marketingsolutions_2022-07/docs/AudienceError.md b/sdks/marketingsolutions_2023-10/docs/AudienceError.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AudienceError.md rename to sdks/marketingsolutions_2023-10/docs/AudienceError.md diff --git a/sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeEntityV1.md new file mode 100644 index 00000000..282016b3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AudienceEstimateSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeEntityV1Resource.md new file mode 100644 index 00000000..a182d917 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceEstimateSizeInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceEstimateSizeInputV1.md new file mode 100644 index 00000000..a9538f78 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AudienceIdEntityV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceIdEntityV1ListResponse.md new file mode 100644 index 00000000..54a34e50 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceIdEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/ResourceOfBalanceCampaign202110.md b/sdks/marketingsolutions_2023-10/docs/AudienceIdEntityV1Resource.md similarity index 71% rename from sdks/retailmedia_2022-10/docs/ResourceOfBalanceCampaign202110.md rename to sdks/marketingsolutions_2023-10/docs/AudienceIdEntityV1Resource.md index 715762e9..14a40e59 100644 --- a/sdks/retailmedia_2022-10/docs/ResourceOfBalanceCampaign202110.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceIdEntityV1Resource.md @@ -1,13 +1,13 @@ -# ResourceOfBalanceCampaign202110 +# AudienceIdEntityV1Resource -A class that represents an entity in a guild compliant way +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, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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] +**type** | **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/marketingsolutions_2022-07/docs/AudienceNameDescription.md b/sdks/marketingsolutions_2023-10/docs/AudienceNameDescription.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AudienceNameDescription.md rename to sdks/marketingsolutions_2023-10/docs/AudienceNameDescription.md diff --git a/sdks/marketingsolutions_2023-10/docs/AudienceSearchEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSearchEntityV1.md new file mode 100644 index 00000000..8de17b10 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type** | List of audience ids | [optional] +**advertiser_ids** | **[str], none_type** | List of advertiser ids | [optional] +**audience_segment_ids** | **[str], none_type** | List of segment ids (linked to the result audiences) | [optional] +**ad_set_ids** | **[str], none_type** | 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-10/docs/AudienceSearchEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSearchEntityV1Resource.md new file mode 100644 index 00000000..c2d8cd3d --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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_2022-10/docs/CampaignSearchRequest.md b/sdks/marketingsolutions_2023-10/docs/AudienceSearchInputV1.md similarity index 74% rename from sdks/marketingsolutions_2022-10/docs/CampaignSearchRequest.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSearchInputV1.md index 1f980099..1efd5e65 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignSearchRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSearchInputV1.md @@ -1,11 +1,11 @@ -# CampaignSearchRequest +# AudienceSearchInputV1 -request payload of the search endpoint +Audience search parameter ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filters** | [**CampaignSearchFilters**](CampaignSearchFilters.md) | | [optional] +**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_2022-10/docs/PatchAdSetBidding.md b/sdks/marketingsolutions_2023-10/docs/AudienceSearchMetadataV1.md similarity index 62% rename from sdks/marketingsolutions_2022-10/docs/PatchAdSetBidding.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSearchMetadataV1.md index 9c9deec3..605b30cc 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetBidding.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSearchMetadataV1.md @@ -1,11 +1,13 @@ -# PatchAdSetBidding +# AudienceSearchMetadataV1 -ad set bidding patch model +Metadata for the audience search response. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bid_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**total_items** | **int, none_type** | Total number of items | [optional] +**limit** | **int, none_type** | Max item of the current page | [optional] +**offset** | **int, none_type** | 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_2022-07/docs/NewAudience.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkCreateInputV1.md similarity index 68% rename from sdks/marketingsolutions_2022-07/docs/NewAudience.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkCreateInputV1.md index a0e97880..986a70c2 100644 --- a/sdks/marketingsolutions_2022-07/docs/NewAudience.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkCreateInputV1.md @@ -1,12 +1,11 @@ -# NewAudience +# AudienceSegmentBulkCreateInputV1 -Body for the creation of a new audience (name, advertiserId, etc) +Input to create one or more audience segments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | the name of the entity type | -**attributes** | [**NewAudienceAttributes**](NewAudienceAttributes.md) | | +**data** | [**[AudienceSegmentCreateEntityV1Resource], none_type**](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-10/docs/AudienceSegmentBulkDeleteInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkDeleteInputV1.md new file mode 100644 index 00000000..3995c83c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkDeleteInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentBulkDeleteInputV1 + +Input to delete one or more segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentDeleteEntityV1Resource], none_type**](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-10/docs/AudienceSegmentBulkUpdateInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkUpdateInputV1.md new file mode 100644 index 00000000..cc69dc10 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentBulkUpdateInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentBulkUpdateInputV1 + +Input to update one or more segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentUpdateEntityV1Resource], none_type**](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-10/docs/AudienceSegmentComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentComputeSizeEntityV1Resource.md new file mode 100644 index 00000000..cd4019d2 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2022-07/docs/Audience.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentComputeSizesInputV1.md similarity index 66% rename from sdks/marketingsolutions_2022-07/docs/Audience.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentComputeSizesInputV1.md index 24156138..1a5b1e1c 100644 --- a/sdks/marketingsolutions_2022-07/docs/Audience.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentComputeSizesInputV1.md @@ -1,13 +1,11 @@ -# Audience +# AudienceSegmentComputeSizesInputV1 -Definition of an audience and all its information +Input to retrieve the size of one or more segments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | the name of the entity type | -**id** | **str** | id of the Audience | -**attributes** | [**AudienceAttributes**](AudienceAttributes.md) | | +**data** | [**[AudienceSegmentComputeSizeEntityV1Resource], none_type**](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-10/docs/AudienceSegmentCreateEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentCreateEntityV1.md new file mode 100644 index 00000000..7cfc05a2 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/AudienceSegmentCreateEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentCreateEntityV1Resource.md new file mode 100644 index 00000000..c0e92640 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceSegmentDeleteEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentDeleteEntityV1Resource.md new file mode 100644 index 00000000..8d43794c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1.md new file mode 100644 index 00000000..e0b95914 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1.md @@ -0,0 +1,25 @@ +# AudienceSegmentEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | Name of the segment | [optional] +**description** | **str, none_type** | Description of the segment | [optional] +**type** | **str, none_type** | Type of segment (read-only) | [optional] +**created_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of segment creation (read-only) | [optional] +**updated_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] +**advertiser_id** | **str, none_type** | 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-10/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..31313ca1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceSegmentEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1ListResponse.md similarity index 62% rename from sdks/marketingsolutions_2022-10/docs/ResponsesAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1ListResponse.md index 8c7a568c..bd3081d1 100644 --- a/sdks/marketingsolutions_2022-10/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1ListResponse.md @@ -1,13 +1,13 @@ -# ResponsesAdSetId +# AudienceSegmentEntityV1ListResponse -List of output resources +A top-level object that encapsulates a Criteo API response for several entities ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**[AudienceSegmentEntityV1Resource], none_type**](AudienceSegmentEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/AdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1Resource.md similarity index 68% rename from sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplierResource.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1Resource.md index 5e5279d8..33944af5 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetDisplayMultiplierResource.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEntityV1Resource.md @@ -1,13 +1,13 @@ -# AdSetDisplayMultiplierResource +# AudienceSegmentEntityV1Resource -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**AdSetDisplayMultiplier**](AdSetDisplayMultiplier.md) | | [optional] +**attributes** | [**AudienceSegmentEntityV1**](AudienceSegmentEntityV1.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceSegmentEstimateSizeInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentEstimateSizeInputV1.md new file mode 100644 index 00000000..8ed365ca --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AudienceSegmentIdEntityV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentIdEntityV1ListResponse.md new file mode 100644 index 00000000..70c0d7f3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceSegmentIdEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/AudienceSegmentIdEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentIdEntityV1Resource.md new file mode 100644 index 00000000..1d040e2b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceSegmentSearchEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchEntityV1.md new file mode 100644 index 00000000..ccde7c1c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type** | List of segment ids | [optional] +**advertiser_ids** | **[str], none_type** | List of advertiser ids | [optional] +**audience_segment_types** | **[str], none_type** | 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-10/docs/AudienceSegmentSearchEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchEntityV1Resource.md new file mode 100644 index 00000000..4f2a089c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceSegmentSearchInputV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchInputV1.md new file mode 100644 index 00000000..7a12b4c0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AudienceSegmentSearchMetadataV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchMetadataV1.md new file mode 100644 index 00000000..fc9517e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSearchMetadataV1.md @@ -0,0 +1,15 @@ +# AudienceSegmentSearchMetadataV1 + +Metadata for the audience segment search response. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int, none_type** | Total number of items | [optional] +**limit** | **int, none_type** | Max item of the current page | [optional] +**offset** | **int, none_type** | 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_2022-10/docs/NewAudienceRequest.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1.md similarity index 77% rename from sdks/marketingsolutions_2022-10/docs/NewAudienceRequest.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1.md index 865562e7..44ba6951 100644 --- a/sdks/marketingsolutions_2022-10/docs/NewAudienceRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1.md @@ -1,11 +1,11 @@ -# NewAudienceRequest +# AudienceSegmentSizeEntityV1 -Body of creation of a new audience +Set of rules that defines specific people to target. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**NewAudience**](NewAudience.md) | | [optional] +**size** | **int, 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/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1ListResponse.md new file mode 100644 index 00000000..67e85a32 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceSegmentSizeEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/AudienceSegmentSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEntityV1Resource.md new file mode 100644 index 00000000..06074cdf --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationEntityV1.md new file mode 100644 index 00000000..ee1208fd --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/AudienceSegmentSizeEstimationEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationEntityV1Resource.md new file mode 100644 index 00000000..2f9ddce1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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_2022-07/docs/EnvelopeReportStatus.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1.md similarity index 80% rename from sdks/retailmedia_2022-07/docs/EnvelopeReportStatus.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1.md index 6bb4f128..323f6f84 100644 --- a/sdks/retailmedia_2022-07/docs/EnvelopeReportStatus.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1.md @@ -1,11 +1,11 @@ -# EnvelopeReportStatus +# AudienceSegmentSizeEstimationV1 -Standard response envelope +Segment size estimation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReportStatus**](ReportStatus.md) | | +**size** | **int, 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/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1Resource.md new file mode 100644 index 00000000..156261e5 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceSegmentSizeEstimationV1Response.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentSizeEstimationV1Response.md new file mode 100644 index 00000000..660e5c61 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/AudienceSegmentUpdateEntityV1.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentUpdateEntityV1.md new file mode 100644 index 00000000..aa33ad71 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentUpdateEntityV1.md @@ -0,0 +1,19 @@ +# AudienceSegmentUpdateEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | 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-10/docs/AudienceSegmentUpdateEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSegmentUpdateEntityV1Resource.md new file mode 100644 index 00000000..59c6489e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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-01/docs/EnvelopeReportStatus.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1.md similarity index 80% rename from sdks/retailmedia_2023-01/docs/EnvelopeReportStatus.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1.md index 6bb4f128..8f860143 100644 --- a/sdks/retailmedia_2023-01/docs/EnvelopeReportStatus.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1.md @@ -1,11 +1,11 @@ -# EnvelopeReportStatus +# AudienceSizeEntityV1 -Standard response envelope +Audience entity only with its size ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReportStatus**](ReportStatus.md) | | +**size** | **int, 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/marketingsolutions_2023-10/docs/AudienceSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1ListResponse.md new file mode 100644 index 00000000..cd7b5474 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](AudienceSizeEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/PatchCampaignWriteResource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1Resource.md similarity index 69% rename from sdks/marketingsolutions_2022-10/docs/PatchCampaignWriteResource.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1Resource.md index 127868ef..336db2bc 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchCampaignWriteResource.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEntityV1Resource.md @@ -1,13 +1,13 @@ -# PatchCampaignWriteResource +# AudienceSizeEntityV1Resource -write model data for resources +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceSizeEntityV1**](AudienceSizeEntityV1.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] -**attributes** | [**PatchCampaign**](PatchCampaign.md) | | [optional] +**type** | **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_2022-10/docs/TextVariableValue.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1.md similarity index 81% rename from sdks/retailmedia_2022-10/docs/TextVariableValue.md rename to sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1.md index 76d1425b..9e847b4f 100644 --- a/sdks/retailmedia_2022-10/docs/TextVariableValue.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1.md @@ -1,11 +1,11 @@ -# TextVariableValue +# AudienceSizeEstimationV1 -A value of a template text variable +Audience size estimation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**text** | **str** | The displayed text | +**size** | **int, 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/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1Resource.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1Resource.md new file mode 100644 index 00000000..6e19d9a8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [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-10/docs/AudienceSizeEstimationV1Response.md b/sdks/marketingsolutions_2023-10/docs/AudienceSizeEstimationV1Response.md new file mode 100644 index 00000000..370918d7 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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_2022-10/docs/BadRequest.md b/sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1.md similarity index 62% rename from sdks/retailmedia_2022-10/docs/BadRequest.md rename to sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1.md index 5467d5db..f542b4f7 100644 --- a/sdks/retailmedia_2022-10/docs/BadRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1.md @@ -1,11 +1,13 @@ -# BadRequest +# AudienceUpdateEntityV1 -Bad request errors +Audience of people of interest for a marketer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[Error], none_type**](Error.md) | The errors | [optional] +**name** | **str, none_type** | 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_2022-10/docs/PatchAdSetCategoryBidResource.md b/sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1Resource.md similarity index 68% rename from sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResource.md rename to sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1Resource.md index 3b46ad4c..8e2dde99 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResource.md +++ b/sdks/marketingsolutions_2023-10/docs/AudienceUpdateEntityV1Resource.md @@ -1,13 +1,13 @@ -# PatchAdSetCategoryBidResource +# AudienceUpdateEntityV1Resource -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**PatchAdSetCategoryBid**](PatchAdSetCategoryBid.md) | | [optional] +**attributes** | [**AudienceUpdateEntityV1**](AudienceUpdateEntityV1.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] +**type** | **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/marketingsolutions_2022-07/docs/AudienceWarning.md b/sdks/marketingsolutions_2023-10/docs/AudienceWarning.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/AudienceWarning.md rename to sdks/marketingsolutions_2023-10/docs/AudienceWarning.md diff --git a/sdks/marketingsolutions_2022-07/docs/BasicAudienceDefinition.md b/sdks/marketingsolutions_2023-10/docs/BasicAudienceDefinition.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/BasicAudienceDefinition.md rename to sdks/marketingsolutions_2023-10/docs/BasicAudienceDefinition.md diff --git a/sdks/marketingsolutions_2023-10/docs/BehavioralV1.md b/sdks/marketingsolutions_2023-10/docs/BehavioralV1.md new file mode 100644 index 00000000..c87ed819 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The users' country | [optional] +**start_date** | **datetime, none_type** | Desired date when the behavioral will start | [optional] +**end_date** | **datetime, none_type** | 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_2022-07/docs/Campaign.md b/sdks/marketingsolutions_2023-10/docs/Campaign.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/Campaign.md rename to sdks/marketingsolutions_2023-10/docs/Campaign.md diff --git a/sdks/marketingsolutions_2022-10/docs/CampaignApi.md b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md similarity index 64% rename from sdks/marketingsolutions_2022-10/docs/CampaignApi.md rename to sdks/marketingsolutions_2023-10/docs/CampaignApi.md index bfa393a1..82fe2b1d 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md @@ -1,23 +1,278 @@ -# criteo_api_marketingsolutions_v2022_10.CampaignApi +# criteo_api_marketingsolutions_v2023_10.CampaignApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_ad_set**](CampaignApi.md#get_ad_set) | **GET** /2022-10/marketing-solutions/ad-sets/{adSetId} | -[**get_campaign**](CampaignApi.md#get_campaign) | **GET** /2022-10/marketing-solutions/campaigns/{campaign-id} | -[**get_category_bid_list**](CampaignApi.md#get_category_bid_list) | **GET** /2022-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -[**get_display_multipliers**](CampaignApi.md#get_display_multipliers) | **GET** /2022-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -[**patch_ad_sets**](CampaignApi.md#patch_ad_sets) | **PATCH** /2022-10/marketing-solutions/ad-sets | -[**patch_campaigns**](CampaignApi.md#patch_campaigns) | **PATCH** /2022-10/marketing-solutions/campaigns | -[**patch_category_bid_list**](CampaignApi.md#patch_category_bid_list) | **PATCH** /2022-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | -[**patch_display_multipliers**](CampaignApi.md#patch_display_multipliers) | **PATCH** /2022-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | -[**search_ad_sets**](CampaignApi.md#search_ad_sets) | **POST** /2022-10/marketing-solutions/ad-sets/search | -[**search_campaigns**](CampaignApi.md#search_campaigns) | **POST** /2022-10/marketing-solutions/campaigns/search | -[**start_ad_sets**](CampaignApi.md#start_ad_sets) | **POST** /2022-10/marketing-solutions/ad-sets/start | -[**stop_ad_sets**](CampaignApi.md#stop_ad_sets) | **POST** /2022-10/marketing-solutions/ad-sets/stop | +[**create_ad_set**](CampaignApi.md#create_ad_set) | **POST** /2023-10/marketing-solutions/ad-sets | +[**create_campaign**](CampaignApi.md#create_campaign) | **POST** /2023-10/marketing-solutions/campaigns | +[**get_ad_set**](CampaignApi.md#get_ad_set) | **GET** /2023-10/marketing-solutions/ad-sets/{adSetId} | +[**get_campaign**](CampaignApi.md#get_campaign) | **GET** /2023-10/marketing-solutions/campaigns/{campaign-id} | +[**get_category_bid_list**](CampaignApi.md#get_category_bid_list) | **GET** /2023-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +[**get_display_multipliers**](CampaignApi.md#get_display_multipliers) | **GET** /2023-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +[**patch_ad_sets**](CampaignApi.md#patch_ad_sets) | **PATCH** /2023-10/marketing-solutions/ad-sets | +[**patch_campaigns**](CampaignApi.md#patch_campaigns) | **PATCH** /2023-10/marketing-solutions/campaigns | +[**patch_category_bid_list**](CampaignApi.md#patch_category_bid_list) | **PATCH** /2023-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +[**patch_display_multipliers**](CampaignApi.md#patch_display_multipliers) | **PATCH** /2023-10/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +[**search_ad_sets**](CampaignApi.md#search_ad_sets) | **POST** /2023-10/marketing-solutions/ad-sets/search | +[**search_campaigns**](CampaignApi.md#search_campaigns) | **POST** /2023-10/marketing-solutions/campaigns/search | +[**start_ad_sets**](CampaignApi.md#start_ad_sets) | **POST** /2023-10/marketing-solutions/ad-sets/start | +[**stop_ad_sets**](CampaignApi.md#stop_ad_sets) | **POST** /2023-10/marketing-solutions/ad-sets/stop | +[**update_ad_set_audience**](CampaignApi.md#update_ad_set_audience) | **PUT** /2023-10/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_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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) @@ -32,13 +287,13 @@ Get the data for the specified ad set ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.response_read_ad_set import ResponseReadAdSet +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -48,19 +303,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -69,7 +324,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_ad_set(ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_ad_set: %s\n" % e) ``` @@ -118,13 +373,13 @@ Get the data for the specified campaign ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.campaign_response import CampaignResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -134,19 +389,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -155,7 +410,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_campaign(campaign_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_campaign: %s\n" % e) ``` @@ -204,13 +459,13 @@ Get the Category Bids for all valid Categories associated to an Ad Set ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -220,19 +475,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -241,7 +496,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_category_bid_list(ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_category_bid_list: %s\n" % e) ``` @@ -291,13 +546,13 @@ Get the Display Multipliers for all valid Categories associated to an Ad Set ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -307,19 +562,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -328,7 +583,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_display_multipliers(ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_display_multipliers: %s\n" % e) ``` @@ -378,14 +633,14 @@ Patch a list of AdSets. ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.response_ad_set_id import ResponseAdSetId -from criteo_api_marketingsolutions_v2022_10.model.requests_patch_ad_set import RequestsPatchAdSet +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -395,19 +650,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) requests_patch_ad_set = RequestsPatchAdSet( @@ -477,7 +732,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.patch_ad_sets(requests_patch_ad_set=requests_patch_ad_set) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->patch_ad_sets: %s\n" % e) ``` @@ -526,14 +781,14 @@ Patch a list of Campaigns. ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.patch_campaign_list_request import PatchCampaignListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_list_request import PatchCampaignListRequest 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -543,19 +798,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) patch_campaign_list_request = PatchCampaignListRequest( @@ -581,7 +836,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.patch_campaigns(patch_campaign_list_request=patch_campaign_list_request) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->patch_campaigns: %s\n" % e) ``` @@ -630,14 +885,14 @@ Patch Category Bids for one or more Categories in a single request. Partial succ ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -647,19 +902,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -679,7 +934,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.patch_category_bid_list(ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.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 @@ -687,7 +942,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie 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_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->patch_category_bid_list: %s\n" % e) ``` @@ -738,14 +993,14 @@ Patch Display Multipliers for one or more Categories in a single request. Partia ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest -from criteo_api_marketingsolutions_v2022_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -755,19 +1010,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.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 @@ -787,7 +1042,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.patch_display_multipliers(ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.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 @@ -795,7 +1050,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie 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_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->patch_display_multipliers: %s\n" % e) ``` @@ -846,14 +1101,14 @@ Search for ad sets ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.responses_read_ad_set import ResponsesReadAdSet -from criteo_api_marketingsolutions_v2022_10.model.request_ad_set_search import RequestAdSetSearch +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.responses_read_ad_set import ResponsesReadAdSet +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -863,19 +1118,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) request_ad_set_search = RequestAdSetSearch( @@ -897,7 +1152,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.search_ad_sets(request_ad_set_search=request_ad_set_search) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->search_ad_sets: %s\n" % e) ``` @@ -947,14 +1202,14 @@ Search for campaigns ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.campaign_list_response import CampaignListResponse -from criteo_api_marketingsolutions_v2022_10.model.campaign_search_request import CampaignSearchRequest +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.campaign_search_request import CampaignSearchRequest +from criteo_api_marketingsolutions_v2023_10.model.campaign_list_response import CampaignListResponse 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -964,19 +1219,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) campaign_search_request = CampaignSearchRequest( @@ -995,7 +1250,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.search_campaigns(campaign_search_request=campaign_search_request) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->search_campaigns: %s\n" % e) ``` @@ -1045,14 +1300,14 @@ Start the specified list of ad sets ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_10.model.requests_ad_set_id import RequestsAdSetId +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1062,19 +1317,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) requests_ad_set_id = RequestsAdSetId( @@ -1091,7 +1346,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.start_ad_sets(requests_ad_set_id=requests_ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->start_ad_sets: %s\n" % e) ``` @@ -1140,14 +1395,14 @@ Stop the specified list of ad sets ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import campaign_api -from criteo_api_marketingsolutions_v2022_10.model.responses_ad_set_id import ResponsesAdSetId -from criteo_api_marketingsolutions_v2022_10.model.requests_ad_set_id import RequestsAdSetId +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId 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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1157,19 +1412,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) requests_ad_set_id = RequestsAdSetId( @@ -1186,7 +1441,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.stop_ad_sets(requests_ad_set_id=requests_ad_set_id) pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling CampaignApi->stop_ad_sets: %s\n" % e) ``` @@ -1221,3 +1476,101 @@ 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, 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_10 +from criteo_api_marketingsolutions_v2023_10.api import campaign_api +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from criteo_api_marketingsolutions_v2023_10.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_2022-07/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignListResponse.md rename to sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/CampaignReadResource.md b/sdks/marketingsolutions_2023-10/docs/CampaignReadResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignReadResource.md rename to sdks/marketingsolutions_2023-10/docs/CampaignReadResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-10/docs/CampaignResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignResponse.md rename to sdks/marketingsolutions_2023-10/docs/CampaignResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignSearchFilters.md rename to sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md diff --git a/sdks/marketingsolutions_2022-07/docs/CampaignSearchRequest.md b/sdks/marketingsolutions_2023-10/docs/CampaignSearchRequest.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignSearchRequest.md rename to sdks/marketingsolutions_2023-10/docs/CampaignSearchRequest.md diff --git a/sdks/marketingsolutions_2022-07/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CampaignSpendLimit.md rename to sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md diff --git a/sdks/marketingsolutions_2022-10/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md similarity index 96% rename from sdks/marketingsolutions_2022-10/docs/CampaignSpendLimit.md rename to sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md index b33a2493..54e8c993 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md @@ -1,4 +1,4 @@ -# CampaignSpendLimit +# CampaignSpendLimitV23Q1 campaign spend limit model diff --git a/sdks/marketingsolutions_2022-10/docs/Campaign.md b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md similarity index 79% rename from sdks/marketingsolutions_2022-10/docs/Campaign.md rename to sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md index ccefcdfb..e91791d8 100644 --- a/sdks/marketingsolutions_2022-10/docs/Campaign.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md @@ -1,4 +1,4 @@ -# Campaign +# CampaignV23Q1 campaign read model @@ -7,8 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str, none_type** | Name of the campaign | [optional] **advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] -**objective** | **str, none_type** | Campaign's marketing objective | [optional] -**spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] +**spend_limit** | [**CampaignSpendLimitV23Q1**](CampaignSpendLimitV23Q1.md) | | [optional] **goal** | **str, none_type** | 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] diff --git a/sdks/retailmedia_2022-10/docs/ResourceOfTemplate.md b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Resource.md similarity index 86% rename from sdks/retailmedia_2022-10/docs/ResourceOfTemplate.md rename to sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Resource.md index 8584916d..e359503f 100644 --- a/sdks/retailmedia_2022-10/docs/ResourceOfTemplate.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Resource.md @@ -1,11 +1,11 @@ -# ResourceOfTemplate +# CampaignV23Q1Resource Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**Template**](Template.md) | | [optional] +**attributes** | [**CampaignV23Q1**](CampaignV23Q1.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | 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] diff --git a/sdks/marketingsolutions_2022-10/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md similarity index 82% rename from sdks/marketingsolutions_2022-10/docs/ResponseReadAdSet.md rename to sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md index ad4a09da..1933b523 100644 --- a/sdks/marketingsolutions_2022-10/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md @@ -1,11 +1,11 @@ -# ResponseReadAdSet +# CampaignV23Q1Response -output resource +Data model for response resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] +**data** | [**CampaignV23Q1Resource**](CampaignV23Q1Resource.md) | | [optional] **warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] **errors** | [**[ProblemDetails], none_type**](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] diff --git a/sdks/marketingsolutions_2022-07/docs/CommonProblem.md b/sdks/marketingsolutions_2023-10/docs/CommonProblem.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CommonProblem.md rename to sdks/marketingsolutions_2023-10/docs/CommonProblem.md diff --git a/sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1.md b/sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1.md new file mode 100644 index 00000000..ce5217a7 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1.md @@ -0,0 +1,15 @@ +# ContactListStatisticsEntityV1 + +Contact list statistics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number_of_identifiers** | **int, none_type** | Number of identifiers in the contact list. | [optional] +**number_of_matches** | **int, none_type** | Number of matched identifiers in the contact list. | [optional] +**match_rate** | **float, none_type** | 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-10/docs/ContactListStatisticsEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1Resource.md new file mode 100644 index 00000000..4f888887 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1Response.md b/sdks/marketingsolutions_2023-10/docs/ContactListStatisticsEntityV1Response.md new file mode 100644 index 00000000..839c9d02 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/ContactListV1.md b/sdks/marketingsolutions_2023-10/docs/ContactListV1.md new file mode 100644 index 00000000..2b17e8ac --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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_2022-07/docs/ContactlistAmendment.md b/sdks/marketingsolutions_2023-10/docs/ContactlistAmendment.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ContactlistAmendment.md rename to sdks/marketingsolutions_2023-10/docs/ContactlistAmendment.md diff --git a/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md rename to sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentAttributes.md diff --git a/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentRequest.md b/sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentRequest.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentRequest.md rename to sdks/marketingsolutions_2023-10/docs/ContactlistAmendmentRequest.md diff --git a/sdks/marketingsolutions_2022-07/docs/ContactlistOperation.md b/sdks/marketingsolutions_2023-10/docs/ContactlistOperation.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ContactlistOperation.md rename to sdks/marketingsolutions_2023-10/docs/ContactlistOperation.md diff --git a/sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2023-10/docs/ContactlistOperationAttributes.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md rename to sdks/marketingsolutions_2023-10/docs/ContactlistOperationAttributes.md diff --git a/sdks/marketingsolutions_2023-10/docs/Coupon.md b/sdks/marketingsolutions_2023-10/docs/Coupon.md new file mode 100644 index 00000000..e0ba2bee --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The name of the Coupon | [optional] +**description** | **str, none_type** | The description of the Coupon | [optional] +**author** | **str, none_type** | The login of the person who created this Coupon | [optional] +**advertiser_id** | **str, none_type** | Advertiser linked to the Coupon | [optional] +**ad_set_id** | **str, none_type** | The id of the Ad Set on which the Coupon is applied to | [optional] +**landing_page_url** | **str, none_type** | Web redirection of the landing page url | [optional] +**start_date** | **str, none_type** | The date when the Coupon will be launched String must be in ISO8601 format | [optional] +**end_date** | **str, none_type** | 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, none_type** | Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\" | [optional] +**status** | **str, none_type** | The status of the Coupon | [optional] +**images** | [**[ImageSlide], none_type**](ImageSlide.md) | List of slides containing the image URLs | [optional] +**show_every** | **int, none_type** | Show the Coupon every N seconds (between 1 and 10) | [optional] +**show_duration** | **int, none_type** | Show Coupon for a duration of N seconds (between 1 and 5) | [optional] +**rotations_number** | **int, none_type** | 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/retailmedia_2022-10/docs/AssetResponse.md b/sdks/marketingsolutions_2023-10/docs/CouponListResponse.md similarity index 75% rename from sdks/retailmedia_2022-10/docs/AssetResponse.md rename to sdks/marketingsolutions_2023-10/docs/CouponListResponse.md index a6166ade..33636917 100644 --- a/sdks/retailmedia_2022-10/docs/AssetResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/CouponListResponse.md @@ -1,11 +1,11 @@ -# AssetResponse +# CouponListResponse -A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body +Data model for a list of response resources ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**AssetResource**](AssetResource.md) | | [optional] +**data** | [**[CouponResource], none_type**](CouponResource.md) | | [optional] **warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem], none_type**](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] diff --git a/sdks/retailmedia_preview/docs/LineItemReportResource.md b/sdks/marketingsolutions_2023-10/docs/CouponResource.md similarity index 73% rename from sdks/retailmedia_preview/docs/LineItemReportResource.md rename to sdks/marketingsolutions_2023-10/docs/CouponResource.md index ed4775c6..bd0e592d 100644 --- a/sdks/retailmedia_preview/docs/LineItemReportResource.md +++ b/sdks/marketingsolutions_2023-10/docs/CouponResource.md @@ -1,12 +1,13 @@ -# LineItemReportResource +# CouponResource -A top-level object that encapsulates a Criteo API response for a single value +Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**Coupon**](Coupon.md) | | [optional] +**id** | **str, none_type** | | [optional] **type** | **str, none_type** | | [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_2022-10/docs/TemplateResponse.md b/sdks/marketingsolutions_2023-10/docs/CouponResponse.md similarity index 63% rename from sdks/retailmedia_2022-10/docs/TemplateResponse.md rename to sdks/marketingsolutions_2023-10/docs/CouponResponse.md index 6d48cf2f..cf82954e 100644 --- a/sdks/retailmedia_2022-10/docs/TemplateResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/CouponResponse.md @@ -1,13 +1,13 @@ -# TemplateResponse +# CouponResponse 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] +**data** | [**CouponResource**](CouponResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/CouponSupportedSizes.md b/sdks/marketingsolutions_2023-10/docs/CouponSupportedSizes.md new file mode 100644 index 00000000..52ae04d5 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/CouponSupportedSizes.md @@ -0,0 +1,14 @@ +# CouponSupportedSizes + +Entity containing the list of Coupon supported sizes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logo_zone** | **[str], none_type** | Array of LogoZone sizes as string in width x height format | [optional] +**full_frame** | **[str], none_type** | 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/retailmedia_2022-07/docs/ApplicationSummaryModelResource.md b/sdks/marketingsolutions_2023-10/docs/CouponSupportedSizesResource.md similarity index 72% rename from sdks/retailmedia_2022-07/docs/ApplicationSummaryModelResource.md rename to sdks/marketingsolutions_2023-10/docs/CouponSupportedSizesResource.md index ecf9ac23..24e26c2f 100644 --- a/sdks/retailmedia_2022-07/docs/ApplicationSummaryModelResource.md +++ b/sdks/marketingsolutions_2023-10/docs/CouponSupportedSizesResource.md @@ -1,12 +1,13 @@ -# ApplicationSummaryModelResource +# CouponSupportedSizesResource -A class that represents a ValueType in a guild compliant way +Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**CouponSupportedSizes**](CouponSupportedSizes.md) | | [optional] +**id** | **str, none_type** | | [optional] **type** | **str, none_type** | | [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-10/docs/CouponSupportedSizesResponse.md b/sdks/marketingsolutions_2023-10/docs/CouponSupportedSizesResponse.md new file mode 100644 index 00000000..dbc5e0c8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/CreateAdSet.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSet.md new file mode 100644 index 00000000..ada33fdb --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/CreateAdSetBidding.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetBidding.md new file mode 100644 index 00000000..3594ba2e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/CreateAdSetBudget.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetBudget.md new file mode 100644 index 00000000..cf5fd312 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSetBudget.md @@ -0,0 +1,17 @@ +# CreateAdSetBudget + +ad set budget create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**budget_strategy** | **str** | | +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] +**budget_amount** | **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/marketingsolutions_2023-10/docs/CreateAdSetGeoLocation.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetGeoLocation.md new file mode 100644 index 00000000..c2fde1f0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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/retailmedia_2022-10/docs/ExternalRetailerPages202110.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetRequest.md similarity index 77% rename from sdks/retailmedia_2022-10/docs/ExternalRetailerPages202110.md rename to sdks/marketingsolutions_2023-10/docs/CreateAdSetRequest.md index 4ddf601d..13bee9cc 100644 --- a/sdks/retailmedia_2022-10/docs/ExternalRetailerPages202110.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSetRequest.md @@ -1,11 +1,11 @@ -# ExternalRetailerPages202110 +# CreateAdSetRequest -Wraps a list of valid pages for a retailer +Data model for an input resources ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page_types** | **[str]** | List of valid pages for a retailer | [optional] +**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_2022-10/docs/PatchAdSetCategoryBidResultResource.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetResource.md similarity index 84% rename from sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultResource.md rename to sdks/marketingsolutions_2023-10/docs/CreateAdSetResource.md index e79ccd1f..a09e6d9b 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetCategoryBidResultResource.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSetResource.md @@ -1,11 +1,11 @@ -# PatchAdSetCategoryBidResultResource +# CreateAdSetResource Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] +**attributes** | [**CreateAdSet**](CreateAdSet.md) | | [optional] **type** | **str, none_type** | 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] diff --git a/sdks/marketingsolutions_2023-10/docs/CreateAdSetSchedule.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetSchedule.md new file mode 100644 index 00000000..c4e8be2a --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSetSchedule.md @@ -0,0 +1,14 @@ +# CreateAdSetSchedule + +ad set schedule create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | | +**end_date** | **datetime, 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/marketingsolutions_2022-10/docs/AdSetTargeting.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSetTargeting.md similarity index 77% rename from sdks/marketingsolutions_2022-10/docs/AdSetTargeting.md rename to sdks/marketingsolutions_2023-10/docs/CreateAdSetTargeting.md index c1cc45e7..835a9743 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetTargeting.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSetTargeting.md @@ -1,13 +1,13 @@ -# AdSetTargeting +# CreateAdSetTargeting -ad set targeting model +Targeting configuration of the ad set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | **delivery_limitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] -**geo_location** | [**AdSetGeoLocation**](AdSetGeoLocation.md) | | [optional] -**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.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-10/docs/CreateCampaign.md b/sdks/marketingsolutions_2023-10/docs/CreateCampaign.md new file mode 100644 index 00000000..b42dd734 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/CreateCampaignRequest.md b/sdks/marketingsolutions_2023-10/docs/CreateCampaignRequest.md new file mode 100644 index 00000000..06d9d1e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-10/docs/PatchAdSetDisplayMultiplierResultResource.md b/sdks/marketingsolutions_2023-10/docs/CreateCampaignResource.md similarity index 83% rename from sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultResource.md rename to sdks/marketingsolutions_2023-10/docs/CreateCampaignResource.md index 31e3b6ab..2bedb65a 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetDisplayMultiplierResultResource.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateCampaignResource.md @@ -1,11 +1,11 @@ -# PatchAdSetDisplayMultiplierResultResource +# CreateCampaignResource Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] +**attributes** | [**CreateCampaign**](CreateCampaign.md) | | [optional] **type** | **str, none_type** | 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] diff --git a/sdks/marketingsolutions_2022-10/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/CreateCampaignSpendLimit.md similarity index 66% rename from sdks/marketingsolutions_2022-10/docs/PatchCampaignSpendLimit.md rename to sdks/marketingsolutions_2023-10/docs/CreateCampaignSpendLimit.md index 4f035462..d5e80d11 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateCampaignSpendLimit.md @@ -1,13 +1,13 @@ -# PatchCampaignSpendLimit +# CreateCampaignSpendLimit -campaign spend limit model +campaign spend limit create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | 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, none_type** | The pace of the spend limit renewal | [optional] -**spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**spend_limit_amount** | **float, none_type** | 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-10/docs/CreateCoupon.md b/sdks/marketingsolutions_2023-10/docs/CreateCoupon.md new file mode 100644 index 00000000..f36eabd4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The description of the Coupon | [optional] +**end_date** | **str, none_type** | 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_2022-07/docs/NewAudienceRequest.md b/sdks/marketingsolutions_2023-10/docs/CreateCouponRequest.md similarity index 77% rename from sdks/marketingsolutions_2022-07/docs/NewAudienceRequest.md rename to sdks/marketingsolutions_2023-10/docs/CreateCouponRequest.md index 865562e7..612272cc 100644 --- a/sdks/marketingsolutions_2022-07/docs/NewAudienceRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateCouponRequest.md @@ -1,11 +1,11 @@ -# NewAudienceRequest +# CreateCouponRequest -Body of creation of a new audience +Data model for input resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**NewAudience**](NewAudience.md) | | [optional] +**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/retailmedia_2022-10/docs/ApplicationSummaryModelResource.md b/sdks/marketingsolutions_2023-10/docs/CreateCouponResource.md similarity index 72% rename from sdks/retailmedia_2022-10/docs/ApplicationSummaryModelResource.md rename to sdks/marketingsolutions_2023-10/docs/CreateCouponResource.md index ecf9ac23..ff19b759 100644 --- a/sdks/retailmedia_2022-10/docs/ApplicationSummaryModelResource.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateCouponResource.md @@ -1,12 +1,13 @@ -# ApplicationSummaryModelResource +# CreateCouponResource -A class that represents a ValueType in a guild compliant way +Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**CreateCoupon**](CreateCoupon.md) | | [optional] +**id** | **str, none_type** | | [optional] **type** | **str, none_type** | | [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-04/docs/BadRequest.md b/sdks/marketingsolutions_2023-10/docs/CreateImageSlide.md similarity index 56% rename from sdks/retailmedia_2023-04/docs/BadRequest.md rename to sdks/marketingsolutions_2023-10/docs/CreateImageSlide.md index 5467d5db..a7cd3839 100644 --- a/sdks/retailmedia_2023-04/docs/BadRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateImageSlide.md @@ -1,11 +1,13 @@ -# BadRequest +# CreateImageSlide -Bad request errors +Slide containing the images of the same size as a base-64 encoded string ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[Error], none_type**](Error.md) | The errors | [optional] +**width** | **int, none_type** | Width of the Coupon slide | [optional] +**height** | **int, none_type** | Height of the Coupon slide | [optional] +**slide_base64_strings** | **[str], none_type** | 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-10/docs/Creative.md b/sdks/marketingsolutions_2023-10/docs/Creative.md new file mode 100644 index 00000000..670e1fd9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | The description of the creative | [optional] +**format** | **str, none_type** | The format of the creative | [optional] +**dataset_id** | **str, none_type** | 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-10/docs/CreativeApi.md b/sdks/marketingsolutions_2023-10/docs/CreativeApi.md new file mode 100644 index 00000000..8b8d8ce4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/CreativeApi.md @@ -0,0 +1,1775 @@ +# criteo_api_marketingsolutions_v2023_10.CreativeApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_advertiser_ad**](CreativeApi.md#create_advertiser_ad) | **POST** /2023-10/marketing-solutions/advertisers/{advertiser-id}/ads | +[**create_advertiser_coupon**](CreativeApi.md#create_advertiser_coupon) | **POST** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons | +[**create_advertiser_creative**](CreativeApi.md#create_advertiser_creative) | **POST** /2023-10/marketing-solutions/advertisers/{advertiser-id}/creatives | +[**delete_ad**](CreativeApi.md#delete_ad) | **DELETE** /2023-10/marketing-solutions/ads/{id} | +[**delete_advertiser_coupon**](CreativeApi.md#delete_advertiser_coupon) | **DELETE** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**delete_creative**](CreativeApi.md#delete_creative) | **DELETE** /2023-10/marketing-solutions/creatives/{id} | +[**edit_advertiser_coupon**](CreativeApi.md#edit_advertiser_coupon) | **PUT** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**edit_creative**](CreativeApi.md#edit_creative) | **PUT** /2023-10/marketing-solutions/creatives/{id} | +[**generate_creative_preview**](CreativeApi.md#generate_creative_preview) | **POST** /2023-10/marketing-solutions/creatives/{id}/preview | +[**get_ad**](CreativeApi.md#get_ad) | **GET** /2023-10/marketing-solutions/ads/{id} | +[**get_advertiser_ads**](CreativeApi.md#get_advertiser_ads) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/ads | +[**get_advertiser_coupon**](CreativeApi.md#get_advertiser_coupon) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**get_advertiser_coupon_preview**](CreativeApi.md#get_advertiser_coupon_preview) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | +[**get_advertiser_coupon_supported_sizes**](CreativeApi.md#get_advertiser_coupon_supported_sizes) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | +[**get_advertiser_coupons**](CreativeApi.md#get_advertiser_coupons) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/coupons | +[**get_advertiser_creatives**](CreativeApi.md#get_advertiser_creatives) | **GET** /2023-10/marketing-solutions/advertisers/{advertiser-id}/creatives | +[**get_creative**](CreativeApi.md#get_creative) | **GET** /2023-10/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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.model.ad_write_request import AdWriteRequest +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_marketingsolutions_v2023_10.api import creative_api +from criteo_api_marketingsolutions_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_10.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_10.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_10.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_2022-10/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-10/docs/CreativeListResponse.md similarity index 63% rename from sdks/marketingsolutions_2022-10/docs/AdSetCategoryBidListResponse.md rename to sdks/marketingsolutions_2023-10/docs/CreativeListResponse.md index c06eb7bc..0a139287 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/CreativeListResponse.md @@ -1,13 +1,13 @@ -# AdSetCategoryBidListResponse +# CreativeListResponse Data model for a list of response resources ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**[CreativeResource], none_type**](CreativeResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/CreativeResource.md b/sdks/marketingsolutions_2023-10/docs/CreativeResource.md new file mode 100644 index 00000000..e624bce0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [optional] +**type** | **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/marketingsolutions_2022-10/docs/ResponseAdSetId.md b/sdks/marketingsolutions_2023-10/docs/CreativeResponse.md similarity index 63% rename from sdks/marketingsolutions_2022-10/docs/ResponseAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/CreativeResponse.md index 3ee4e009..ba07bb3a 100644 --- a/sdks/marketingsolutions_2022-10/docs/ResponseAdSetId.md +++ b/sdks/marketingsolutions_2023-10/docs/CreativeResponse.md @@ -1,13 +1,13 @@ -# ResponseAdSetId +# CreativeResponse -output resource +Data model for response resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**CreativeResource**](CreativeResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/CreativeWrite.md b/sdks/marketingsolutions_2023-10/docs/CreativeWrite.md new file mode 100644 index 00000000..63531757 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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_2022-10/docs/ContactlistAmendmentRequest.md b/sdks/marketingsolutions_2023-10/docs/CreativeWriteRequest.md similarity index 76% rename from sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentRequest.md rename to sdks/marketingsolutions_2023-10/docs/CreativeWriteRequest.md index ced34a88..953806a2 100644 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/CreativeWriteRequest.md @@ -1,11 +1,11 @@ -# ContactlistAmendmentRequest +# CreativeWriteRequest -Request for a contactlist amendment +Data model for input resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ContactlistAmendment**](ContactlistAmendment.md) | | +**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-10/docs/CreativeWriteResource.md b/sdks/marketingsolutions_2023-10/docs/CreativeWriteResource.md new file mode 100644 index 00000000..5b3ac01b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [optional] +**type** | **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/marketingsolutions_2022-07/docs/CriteoApiError.md b/sdks/marketingsolutions_2023-10/docs/CriteoApiError.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CriteoApiError.md rename to sdks/marketingsolutions_2023-10/docs/CriteoApiError.md diff --git a/sdks/marketingsolutions_2022-07/docs/CriteoApiWarning.md b/sdks/marketingsolutions_2023-10/docs/CriteoApiWarning.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/CriteoApiWarning.md rename to sdks/marketingsolutions_2023-10/docs/CriteoApiWarning.md diff --git a/sdks/marketingsolutions_2022-07/docs/DeleteAudienceContactListResponse.md b/sdks/marketingsolutions_2023-10/docs/DeleteAudienceContactListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/DeleteAudienceContactListResponse.md rename to sdks/marketingsolutions_2023-10/docs/DeleteAudienceContactListResponse.md diff --git a/sdks/marketingsolutions_2023-10/docs/DynamicAttributes.md b/sdks/marketingsolutions_2023-10/docs/DynamicAttributes.md new file mode 100644 index 00000000..c6181983 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/DynamicAttributes.md @@ -0,0 +1,19 @@ +# DynamicAttributes + +The attributes specific to Dynamic creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logos** | [**[ImageShape], none_type**](ImageShape.md) | Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net | [optional] +**creative_background_color** | **str, none_type** | Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**body_text_color** | **str, none_type** | Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**prices_color** | **str, none_type** | Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**primary_font** | **str, none_type** | Font of the primary font Valid supported font like \"Arial\" | [optional] +**calls_to_action** | **[str], none_type** | 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, none_type** | 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-10/docs/DynamicWriteAttributes.md b/sdks/marketingsolutions_2023-10/docs/DynamicWriteAttributes.md new file mode 100644 index 00000000..662ee44c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\") | [optional] +**primary_font** | **str, none_type** | 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_2022-07/docs/EntityOfPortfolioMessage.md b/sdks/marketingsolutions_2023-10/docs/EntityOfPortfolioMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/EntityOfPortfolioMessage.md rename to sdks/marketingsolutions_2023-10/docs/EntityOfPortfolioMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/ErrorCodeResponse.md b/sdks/marketingsolutions_2023-10/docs/ErrorCodeResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ErrorCodeResponse.md rename to sdks/marketingsolutions_2023-10/docs/ErrorCodeResponse.md diff --git a/sdks/marketingsolutions_2022-10/docs/GatewayApi.md b/sdks/marketingsolutions_2023-10/docs/GatewayApi.md similarity index 80% rename from sdks/marketingsolutions_2022-10/docs/GatewayApi.md rename to sdks/marketingsolutions_2023-10/docs/GatewayApi.md index 070f94a8..05d18cee 100644 --- a/sdks/marketingsolutions_2022-10/docs/GatewayApi.md +++ b/sdks/marketingsolutions_2023-10/docs/GatewayApi.md @@ -1,10 +1,10 @@ -# criteo_api_marketingsolutions_v2022_10.GatewayApi +# criteo_api_marketingsolutions_v2023_10.GatewayApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2022-10/marketing-solutions/me | +[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2023-10/marketing-solutions/me | # **get_current_application** @@ -21,13 +21,13 @@ Get information about the currently logged application ```python import time -import criteo_api_marketingsolutions_v2022_10 -from criteo_api_marketingsolutions_v2022_10.api import gateway_api -from criteo_api_marketingsolutions_v2022_10.model.application_summary_model_response import ApplicationSummaryModelResponse +import criteo_api_marketingsolutions_v2023_10 +from criteo_api_marketingsolutions_v2023_10.api import gateway_api +from criteo_api_marketingsolutions_v2023_10.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_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -37,19 +37,19 @@ configuration = criteo_api_marketingsolutions_v2022_10.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_v2022_10.Configuration( +configuration = criteo_api_marketingsolutions_v2023_10.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_v2022_10.ApiClient(configuration) as api_client: +with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = gateway_api.GatewayApi(api_client) @@ -57,7 +57,7 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie try: api_response = api_instance.get_current_application() pprint(api_response) - except criteo_api_marketingsolutions_v2022_10.ApiException as e: + except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling GatewayApi->get_current_application: %s\n" % e) ``` diff --git a/sdks/marketingsolutions_2022-07/docs/GetPortfolioResponse.md b/sdks/marketingsolutions_2023-10/docs/GetPortfolioResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/GetPortfolioResponse.md rename to sdks/marketingsolutions_2023-10/docs/GetPortfolioResponse.md diff --git a/sdks/marketingsolutions_2023-10/docs/HtmlTagAttributes.md b/sdks/marketingsolutions_2023-10/docs/HtmlTagAttributes.md new file mode 100644 index 00000000..f1c7844f --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/HtmlTagAttributes.md @@ -0,0 +1,13 @@ +# HtmlTagAttributes + +The attributes specific to HtmlTag creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [**[Tag], none_type**](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-10/docs/HtmlTagWriteAttributes.md b/sdks/marketingsolutions_2023-10/docs/HtmlTagWriteAttributes.md new file mode 100644 index 00000000..10662ff4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-10/docs/ReadAdSetBidding.md b/sdks/marketingsolutions_2023-10/docs/ImageAttributes.md similarity index 61% rename from sdks/marketingsolutions_2022-10/docs/ReadAdSetBidding.md rename to sdks/marketingsolutions_2023-10/docs/ImageAttributes.md index 2e916176..9789cdf2 100644 --- a/sdks/marketingsolutions_2022-10/docs/ReadAdSetBidding.md +++ b/sdks/marketingsolutions_2023-10/docs/ImageAttributes.md @@ -1,13 +1,12 @@ -# ReadAdSetBidding +# ImageAttributes -ad set bidding read model +The attributes specific to Image creatives ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bid_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] -**bid_strategy** | **str, none_type** | The intended optimization for the Ad Set | [optional] -**cost_controller** | **str, none_type** | How spend is controlled | [optional] +**urls** | **[str], none_type** | Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net | [optional] +**landing_page_url** | **str, none_type** | 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-10/docs/ImageSet.md b/sdks/marketingsolutions_2023-10/docs/ImageSet.md new file mode 100644 index 00000000..6b74f74e --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/ImageSetBase64.md b/sdks/marketingsolutions_2023-10/docs/ImageSetBase64.md new file mode 100644 index 00000000..f9e887d8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/ImageShape.md b/sdks/marketingsolutions_2023-10/docs/ImageShape.md new file mode 100644 index 00000000..364b34e4 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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/retailmedia_2023-01/docs/BadRequest.md b/sdks/marketingsolutions_2023-10/docs/ImageSlide.md similarity index 56% rename from sdks/retailmedia_2023-01/docs/BadRequest.md rename to sdks/marketingsolutions_2023-10/docs/ImageSlide.md index 5467d5db..30e53186 100644 --- a/sdks/retailmedia_2023-01/docs/BadRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/ImageSlide.md @@ -1,11 +1,13 @@ -# BadRequest +# ImageSlide -Bad request errors +Slide containing the image URLs ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[Error], none_type**](Error.md) | The errors | [optional] +**width** | **int, none_type** | Width of the Coupon slide | [optional] +**height** | **int, none_type** | Height of the Coupon slide | [optional] +**slide_urls** | **[str], none_type** | 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-10/docs/ImageWriteAttributes.md b/sdks/marketingsolutions_2023-10/docs/ImageWriteAttributes.md new file mode 100644 index 00000000..9d73bfe1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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-10/docs/InMarketAudienceSegmentBrandEntityV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1.md new file mode 100644 index 00000000..12cc002b --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1.md @@ -0,0 +1,14 @@ +# InMarketAudienceSegmentBrandEntityV1 + +In-market segment brand entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | Name of the in-market segment brand | [optional] +**size** | **int, none_type** | 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-10/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md new file mode 100644 index 00000000..b11192ad --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](InMarketAudienceSegmentBrandEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/InMarketAudienceSegmentBrandEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentBrandEntityV1Resource.md new file mode 100644 index 00000000..0df820cd --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1.md new file mode 100644 index 00000000..b9bfac80 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1.md @@ -0,0 +1,13 @@ +# InMarketAudienceSegmentInterestEntityV1 + +In-market segment interest entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parent_id** | **str, none_type** | 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_2022-10/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md similarity index 52% rename from sdks/marketingsolutions_2022-10/docs/CampaignListResponse.md rename to sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md index 248348b8..7703756f 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md @@ -1,13 +1,13 @@ -# CampaignListResponse +# InMarketAudienceSegmentInterestEntityV1ListResponse -List of output resources +A top-level object that encapsulates a Criteo API response for several entities ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[CampaignReadResource], none_type**](CampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**[InMarketAudienceSegmentInterestEntityV1Resource], none_type**](InMarketAudienceSegmentInterestEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/InMarketAudienceSegmentInterestEntityV1Resource.md b/sdks/marketingsolutions_2023-10/docs/InMarketAudienceSegmentInterestEntityV1Resource.md new file mode 100644 index 00000000..6d3d8d0c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Id of the entity | [optional] +**type** | **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/marketingsolutions_2023-10/docs/InMarketCreateV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketCreateV1.md new file mode 100644 index 00000000..a0fedaec --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | **str, none_type** | Reach people who’ve shown interest in products made for a specific gender | [optional] +**interest_ids** | **[str], none_type** | Reach new people based on their interests | [optional] +**brand_ids** | **[str], none_type** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str], none_type** | 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-10/docs/InMarketSizeEstimationV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketSizeEstimationV1.md new file mode 100644 index 00000000..a71b3dc3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type** | | [optional] +**gender** | **str, none_type** | | [optional] +**interest_ids** | **[str], none_type** | | [optional] +**brand_ids** | **[str], none_type** | | [optional] +**price_range** | **[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/marketingsolutions_2023-10/docs/InMarketUpdateV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketUpdateV1.md new file mode 100644 index 00000000..2cc3ccd8 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Reach people of a specific country | [optional] +**buying_power** | **[str], none_type** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | [**NillableGenderV1**](NillableGenderV1.md) | | [optional] +**interest_ids** | **[str], none_type** | Reach new people based on their interests | [optional] +**brand_ids** | **[str], none_type** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str], none_type** | 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-10/docs/InMarketV1.md b/sdks/marketingsolutions_2023-10/docs/InMarketV1.md new file mode 100644 index 00000000..b4c03bc1 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Reach people of a specific country | [optional] +**buying_power** | **[str], none_type** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | **str, none_type** | Reach people who’ve shown interest in products made for a specific gender | [optional] +**interest_ids** | **[str], none_type** | Reach new people based on their interests | [optional] +**brand_ids** | **[str], none_type** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str], none_type** | 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-10/docs/LocationCreateV1.md b/sdks/marketingsolutions_2023-10/docs/LocationCreateV1.md new file mode 100644 index 00000000..eb6d9ac9 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-07/docs/ReplaceAudience.md b/sdks/marketingsolutions_2023-10/docs/LocationSizeEstimationV1.md similarity index 69% rename from sdks/marketingsolutions_2022-07/docs/ReplaceAudience.md rename to sdks/marketingsolutions_2023-10/docs/LocationSizeEstimationV1.md index 87863984..c9fe8594 100644 --- a/sdks/marketingsolutions_2022-07/docs/ReplaceAudience.md +++ b/sdks/marketingsolutions_2023-10/docs/LocationSizeEstimationV1.md @@ -1,12 +1,12 @@ -# ReplaceAudience +# LocationSizeEstimationV1 -Parameters required to replace an audience +Settings to define your audience based on their location. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | the name of the entity type | -**attributes** | [**AudienceNameDescription**](AudienceNameDescription.md) | | +**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-10/docs/LocationUpdateV1.md b/sdks/marketingsolutions_2023-10/docs/LocationUpdateV1.md new file mode 100644 index 00000000..e305609f --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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], none_type**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | [optional] +**radius_in_km** | **int, none_type** | Radius in kilometers | [optional] +**registry_type** | **str, none_type** | 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_2022-07/docs/NewAudienceAttributes.md b/sdks/marketingsolutions_2023-10/docs/LocationV1.md similarity index 51% rename from sdks/marketingsolutions_2022-07/docs/NewAudienceAttributes.md rename to sdks/marketingsolutions_2023-10/docs/LocationV1.md index 083b3d66..f39a70b3 100644 --- a/sdks/marketingsolutions_2022-07/docs/NewAudienceAttributes.md +++ b/sdks/marketingsolutions_2023-10/docs/LocationV1.md @@ -1,12 +1,13 @@ -# NewAudienceAttributes +# LocationV1 +Settings to target users based on their location. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the new audience | -**advertiser_id** | **str, none_type** | The advertiser id to create the audience for | [optional] -**description** | **str, none_type** | The description of the audience | [optional] +**points_of_interest** | [**[PointOfInterestV1], none_type**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | [optional] +**radius_in_km** | **int, none_type** | The expected maximum distance in kilometers between a user and a point of interest | [optional] +**registry_type** | **str, none_type** | 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-10/docs/LookalikeCreateV1.md b/sdks/marketingsolutions_2023-10/docs/LookalikeCreateV1.md new file mode 100644 index 00000000..14bafe1c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/LookalikeUpdateV1.md b/sdks/marketingsolutions_2023-10/docs/LookalikeUpdateV1.md new file mode 100644 index 00000000..a7fa6d61 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/LookalikeV1.md b/sdks/marketingsolutions_2023-10/docs/LookalikeV1.md new file mode 100644 index 00000000..0f93adba --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | Segment from which the Lookalike segment will be generated | [optional] +**target_size** | **int, none_type** | 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_2022-07/docs/ModifyAudienceResponse.md b/sdks/marketingsolutions_2023-10/docs/ModifyAudienceResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ModifyAudienceResponse.md rename to sdks/marketingsolutions_2023-10/docs/ModifyAudienceResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md rename to sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md diff --git a/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRuleValue.md rename to sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md diff --git a/sdks/marketingsolutions_2022-07/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-10/docs/NillableDateTime.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/NillableDateTime.md rename to sdks/marketingsolutions_2023-10/docs/NillableDateTime.md diff --git a/sdks/marketingsolutions_2022-07/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-10/docs/NillableDecimal.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/NillableDecimal.md rename to sdks/marketingsolutions_2023-10/docs/NillableDecimal.md diff --git a/sdks/marketingsolutions_2023-10/docs/NillableGenderV1.md b/sdks/marketingsolutions_2023-10/docs/NillableGenderV1.md new file mode 100644 index 00000000..e57256fa --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/NillableInt32.md b/sdks/marketingsolutions_2023-10/docs/NillableInt32.md new file mode 100644 index 00000000..5cde3505 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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_2022-10/docs/PatchAdSetScheduling.md b/sdks/marketingsolutions_2023-10/docs/NillableString.md similarity index 66% rename from sdks/marketingsolutions_2022-10/docs/PatchAdSetScheduling.md rename to sdks/marketingsolutions_2023-10/docs/NillableString.md index d381a19d..d43aca99 100644 --- a/sdks/marketingsolutions_2022-10/docs/PatchAdSetScheduling.md +++ b/sdks/marketingsolutions_2023-10/docs/NillableString.md @@ -1,12 +1,11 @@ -# PatchAdSetScheduling +# NillableString -ad set schedule patch model +Placeholder object for string value for which \"null\" is a valid business value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] +**value** | **str, none_type** | 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_2022-07/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSet.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSet.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetBidding.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetBidding.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetBidding.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetBidding.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetBudget.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBid.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBid.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBid.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBid.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidListRequest.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidListRequest.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidListRequest.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidListRequest.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResource.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResultListResponse.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResultResource.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetCategoryBidResultResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplier.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplier.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplier.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplier.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierListRequest.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierListRequest.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierListRequest.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierListRequest.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResultResource.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetDisplayMultiplierResultResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchAdSetScheduling.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetScheduling.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchAdSetScheduling.md rename to sdks/marketingsolutions_2023-10/docs/PatchAdSetScheduling.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchCampaign.md b/sdks/marketingsolutions_2023-10/docs/PatchCampaign.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchCampaign.md rename to sdks/marketingsolutions_2023-10/docs/PatchCampaign.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchCampaignListRequest.md b/sdks/marketingsolutions_2023-10/docs/PatchCampaignListRequest.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchCampaignListRequest.md rename to sdks/marketingsolutions_2023-10/docs/PatchCampaignListRequest.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchCampaignSpendLimit.md rename to sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchCampaignWriteResource.md b/sdks/marketingsolutions_2023-10/docs/PatchCampaignWriteResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchCampaignWriteResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchCampaignWriteResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchResultCampaignListResponse.md rename to sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md diff --git a/sdks/marketingsolutions_2022-07/docs/PatchResultCampaignReadResource.md b/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignReadResource.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PatchResultCampaignReadResource.md rename to sdks/marketingsolutions_2023-10/docs/PatchResultCampaignReadResource.md diff --git a/sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryDataMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryDataMessage.md rename to sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryDataMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryEntityMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryEntityMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PlacementsReportQueryMessage.md rename to sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2022-10/docs/RequestsPatchAdSet.md b/sdks/marketingsolutions_2023-10/docs/PointOfInterestV1.md similarity index 56% rename from sdks/marketingsolutions_2022-10/docs/RequestsPatchAdSet.md rename to sdks/marketingsolutions_2023-10/docs/PointOfInterestV1.md index 829a789a..dfaf21ca 100644 --- a/sdks/marketingsolutions_2022-10/docs/RequestsPatchAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/PointOfInterestV1.md @@ -1,11 +1,13 @@ -# RequestsPatchAdSet +# PointOfInterestV1 -List of input resources +Named coordinate defined by its latitude and longitude. Latitude and Longitude are rounded at 5 decimals. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[WriteModelPatchAdSet], none_type**](WriteModelPatchAdSet.md) | | [optional] +**name** | **str, none_type** | Name of the point of interest | [optional] +**latitude** | **float, none_type** | ISO-6709 latitude (rounded at 5 decimals) | [optional] +**longitude** | **float, none_type** | 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_2022-07/docs/PortfolioMessage.md b/sdks/marketingsolutions_2023-10/docs/PortfolioMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/PortfolioMessage.md rename to sdks/marketingsolutions_2023-10/docs/PortfolioMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ProblemDetails.md rename to sdks/marketingsolutions_2023-10/docs/ProblemDetails.md diff --git a/sdks/marketingsolutions_2022-07/docs/ProblemsDetails.md b/sdks/marketingsolutions_2023-10/docs/ProblemsDetails.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ProblemsDetails.md rename to sdks/marketingsolutions_2023-10/docs/ProblemsDetails.md diff --git a/sdks/marketingsolutions_2023-10/docs/ProspectingCreateV1.md b/sdks/marketingsolutions_2023-10/docs/ProspectingCreateV1.md new file mode 100644 index 00000000..1e799cd7 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int, none_type** | 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-10/docs/ProspectingUpdateV1.md b/sdks/marketingsolutions_2023-10/docs/ProspectingUpdateV1.md new file mode 100644 index 00000000..d9919276 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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-10/docs/ProspectingV1.md b/sdks/marketingsolutions_2023-10/docs/ProspectingV1.md new file mode 100644 index 00000000..157c249f --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int, none_type** | When non buyers are included, include users who visited your website after this number of days | [optional] +**users_type** | **str, none_type** | 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_2022-07/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadAdSet.md rename to sdks/marketingsolutions_2023-10/docs/ReadAdSet.md diff --git a/sdks/marketingsolutions_2022-07/docs/ReadAdSetBidding.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSetBidding.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadAdSetBidding.md rename to sdks/marketingsolutions_2023-10/docs/ReadAdSetBidding.md diff --git a/sdks/marketingsolutions_2022-07/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadAdSetBudget.md rename to sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md diff --git a/sdks/marketingsolutions_2022-07/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadAdSetSchedule.md rename to sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md diff --git a/sdks/marketingsolutions_2022-07/docs/ReadModelAdSetId.md b/sdks/marketingsolutions_2023-10/docs/ReadModelAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadModelAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/ReadModelAdSetId.md diff --git a/sdks/marketingsolutions_2022-07/docs/ReadModelReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ReadModelReadAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ReadModelReadAdSet.md rename to sdks/marketingsolutions_2023-10/docs/ReadModelReadAdSet.md diff --git a/sdks/marketingsolutions_2022-07/docs/RequestAdSetSearch.md b/sdks/marketingsolutions_2023-10/docs/RequestAdSetSearch.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/RequestAdSetSearch.md rename to sdks/marketingsolutions_2023-10/docs/RequestAdSetSearch.md diff --git a/sdks/marketingsolutions_2022-07/docs/RequestsAdSetId.md b/sdks/marketingsolutions_2023-10/docs/RequestsAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/RequestsAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/RequestsAdSetId.md diff --git a/sdks/marketingsolutions_2022-07/docs/RequestsPatchAdSet.md b/sdks/marketingsolutions_2023-10/docs/RequestsPatchAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/RequestsPatchAdSet.md rename to sdks/marketingsolutions_2023-10/docs/RequestsPatchAdSet.md diff --git a/sdks/marketingsolutions_2022-07/docs/ResponseAdSetId.md b/sdks/marketingsolutions_2023-10/docs/ResponseAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ResponseAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/ResponseAdSetId.md diff --git a/sdks/marketingsolutions_2022-07/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ResponseReadAdSet.md rename to sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md diff --git a/sdks/marketingsolutions_2022-07/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ResponsesAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md diff --git a/sdks/marketingsolutions_2022-07/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/ResponsesReadAdSet.md rename to sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md diff --git a/sdks/marketingsolutions_2023-10/docs/RetargetingCreateV1.md b/sdks/marketingsolutions_2023-10/docs/RetargetingCreateV1.md new file mode 100644 index 00000000..ea88876c --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-10/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-10/docs/RetargetingUpdateV1.md similarity index 53% rename from sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRuleValue.md rename to sdks/marketingsolutions_2023-10/docs/RetargetingUpdateV1.md index e034d5e8..86ef6056 100644 --- a/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_2023-10/docs/RetargetingUpdateV1.md @@ -1,11 +1,13 @@ -# NillableAdSetTargetingRuleValue +# RetargetingUpdateV1 +Settings to target users based on its type and days since last visit. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**visitors_type** | **str, none_type** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int, none_type** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int, none_type** | 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_2022-10/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-10/docs/RetargetingV1.md similarity index 53% rename from sdks/marketingsolutions_2022-10/docs/AdSetTargetingRule.md rename to sdks/marketingsolutions_2023-10/docs/RetargetingV1.md index 1496580d..b8dae8aa 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-10/docs/RetargetingV1.md @@ -1,12 +1,13 @@ -# AdSetTargetingRule +# RetargetingV1 -ad set targeting rule model +Settings to target users based on its type and days since last visit. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**visitors_type** | **str, none_type** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int, none_type** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int, none_type** | 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-10/docs/Size.md b/sdks/marketingsolutions_2023-10/docs/Size.md new file mode 100644 index 00000000..1ce2da81 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/Size.md @@ -0,0 +1,14 @@ +# Size + +Size entity containing width and height of the creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**width** | **int, none_type** | | [optional] +**height** | **int, 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/marketingsolutions_2022-07/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/StatisticsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/StatisticsReportQueryMessage.md rename to sdks/marketingsolutions_2023-10/docs/StatisticsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2023-10/docs/Tag.md b/sdks/marketingsolutions_2023-10/docs/Tag.md new file mode 100644 index 00000000..0b607ce3 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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_2022-07/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryDataMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransactionsReportQueryDataMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryDataMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryEntityMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransactionsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryEntityMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransactionsReportQueryMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransparencyQueryMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportAttributes.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransparencyReportAttributes.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyReportAttributes.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportDataMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransparencyReportDataMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyReportDataMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportEntityMessage.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransparencyReportEntityMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyReportEntityMessage.md diff --git a/sdks/marketingsolutions_2022-07/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportFile.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/TransparencyReportFile.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyReportFile.md diff --git a/sdks/marketingsolutions_2023-10/docs/UpdateCoupon.md b/sdks/marketingsolutions_2023-10/docs/UpdateCoupon.md new file mode 100644 index 00000000..e43b9b73 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | 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_2022-07/docs/ReplaceAudienceRequest.md b/sdks/marketingsolutions_2023-10/docs/UpdateCouponRequest.md similarity index 77% rename from sdks/marketingsolutions_2022-07/docs/ReplaceAudienceRequest.md rename to sdks/marketingsolutions_2023-10/docs/UpdateCouponRequest.md index 36739af4..cba2bc6e 100644 --- a/sdks/marketingsolutions_2022-07/docs/ReplaceAudienceRequest.md +++ b/sdks/marketingsolutions_2023-10/docs/UpdateCouponRequest.md @@ -1,11 +1,11 @@ -# ReplaceAudienceRequest +# UpdateCouponRequest -Request to replace an audience +Data model for input resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReplaceAudience**](ReplaceAudience.md) | | +**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-10/docs/UpdateCouponResource.md b/sdks/marketingsolutions_2023-10/docs/UpdateCouponResource.md new file mode 100644 index 00000000..e9d339b6 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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, none_type** | | [optional] +**type** | **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/marketingsolutions_2023-10/docs/VideoDetail.md b/sdks/marketingsolutions_2023-10/docs/VideoDetail.md new file mode 100644 index 00000000..3ac2d4b0 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/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_2022-07/docs/WriteModelAdSetId.md b/sdks/marketingsolutions_2023-10/docs/WriteModelAdSetId.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/WriteModelAdSetId.md rename to sdks/marketingsolutions_2023-10/docs/WriteModelAdSetId.md diff --git a/sdks/marketingsolutions_2022-07/docs/WriteModelPatchAdSet.md b/sdks/marketingsolutions_2023-10/docs/WriteModelPatchAdSet.md similarity index 100% rename from sdks/marketingsolutions_2022-07/docs/WriteModelPatchAdSet.md rename to sdks/marketingsolutions_2023-10/docs/WriteModelPatchAdSet.md diff --git a/sdks/marketingsolutions_2022-07/requirements.txt b/sdks/marketingsolutions_2023-10/requirements.txt similarity index 100% rename from sdks/marketingsolutions_2022-07/requirements.txt rename to sdks/marketingsolutions_2023-10/requirements.txt diff --git a/sdks/marketingsolutions_2022-07/setup.cfg b/sdks/marketingsolutions_2023-10/setup.cfg similarity index 100% rename from sdks/marketingsolutions_2022-07/setup.cfg rename to sdks/marketingsolutions_2023-10/setup.cfg diff --git a/sdks/marketingsolutions_2022-10/setup.py b/sdks/marketingsolutions_2023-10/setup.py similarity index 91% rename from sdks/marketingsolutions_2022-10/setup.py rename to sdks/marketingsolutions_2023-10/setup.py index 530d30f4..12b29db9 100644 --- a/sdks/marketingsolutions_2022-10/setup.py +++ b/sdks/marketingsolutions_2023-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2022.10.0.230831" +VERSION = "2023.10.0.231113" # To install the library, run the following # # python setup.py install @@ -24,13 +24,13 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2022.10.0.230831 +pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113`) Then import the package: ```python -import criteo_api_marketingsolutions_v2022_10 +import criteo_api_marketingsolutions_v2023_10 ``` Full documentation on [Github](https://github.com/criteo/criteo-api-python-sdk). diff --git a/sdks/marketingsolutions_2022-07/test-requirements.txt b/sdks/marketingsolutions_2023-10/test-requirements.txt similarity index 100% rename from sdks/marketingsolutions_2022-07/test-requirements.txt rename to sdks/marketingsolutions_2023-10/test-requirements.txt diff --git a/sdks/marketingsolutions_2022-10/test/example_application_with_auth_code.py b/sdks/marketingsolutions_2023-10/test/example_application_with_auth_code.py similarity index 92% rename from sdks/marketingsolutions_2022-10/test/example_application_with_auth_code.py rename to sdks/marketingsolutions_2023-10/test/example_application_with_auth_code.py index 7d315cd1..d9e695b7 100644 --- a/sdks/marketingsolutions_2022-10/test/example_application_with_auth_code.py +++ b/sdks/marketingsolutions_2023-10/test/example_application_with_auth_code.py @@ -1,5 +1,5 @@ -from criteo_api_marketingsolutions_v2022_10.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_10 import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_10.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/marketingsolutions_2022-10/test/example_application_with_client_credentials.py b/sdks/marketingsolutions_2023-10/test/example_application_with_client_credentials.py similarity index 90% rename from sdks/marketingsolutions_2022-10/test/example_application_with_client_credentials.py rename to sdks/marketingsolutions_2023-10/test/example_application_with_client_credentials.py index 92580801..40288b37 100644 --- a/sdks/marketingsolutions_2022-10/test/example_application_with_client_credentials.py +++ b/sdks/marketingsolutions_2023-10/test/example_application_with_client_credentials.py @@ -1,5 +1,5 @@ -from criteo_api_marketingsolutions_v2022_10.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_10 import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_10.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/marketingsolutions_2022-10/test/example_application_with_refresh_token.py b/sdks/marketingsolutions_2023-10/test/example_application_with_refresh_token.py similarity index 91% rename from sdks/marketingsolutions_2022-10/test/example_application_with_refresh_token.py rename to sdks/marketingsolutions_2023-10/test/example_application_with_refresh_token.py index 48149830..b8489393 100644 --- a/sdks/marketingsolutions_2022-10/test/example_application_with_refresh_token.py +++ b/sdks/marketingsolutions_2023-10/test/example_application_with_refresh_token.py @@ -1,5 +1,5 @@ -from criteo_api_marketingsolutions_v2022_10.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_10 import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_10.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/marketingsolutions_2022-07/test/test_gateway_api.py b/sdks/marketingsolutions_2023-10/test/test_gateway_api.py similarity index 91% rename from sdks/marketingsolutions_2022-07/test/test_gateway_api.py rename to sdks/marketingsolutions_2023-10/test/test_gateway_api.py index 635f753d..60b662de 100644 --- a/sdks/marketingsolutions_2022-07/test/test_gateway_api.py +++ b/sdks/marketingsolutions_2023-10/test/test_gateway_api.py @@ -1,9 +1,9 @@ import pytest import os -from criteo_api_marketingsolutions_v2022_07.api.gateway_api import GatewayApi -from criteo_api_marketingsolutions_v2022_07.api_client_builder import ApiClientBuilder -from criteo_api_marketingsolutions_v2022_07.rest import ApiException +from criteo_api_marketingsolutions_v2023_10.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_10.api_client_builder import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_10.rest import ApiException from example_application_with_client_credentials import ExampleApplication class TestGatewayApi: diff --git a/sdks/marketingsolutions_2022-07/tox.ini b/sdks/marketingsolutions_2023-10/tox.ini similarity index 68% rename from sdks/marketingsolutions_2022-07/tox.ini rename to sdks/marketingsolutions_2023-10/tox.ini index 63dafca3..2345095b 100644 --- a/sdks/marketingsolutions_2022-07/tox.ini +++ b/sdks/marketingsolutions_2023-10/tox.ini @@ -6,4 +6,4 @@ deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= - pytest --cov=criteo_api_marketingsolutions_v2022_07 + pytest --cov=criteo_api_marketingsolutions_v2023_10 diff --git a/sdks/marketingsolutions_preview/.openapi-generator/FILES b/sdks/marketingsolutions_preview/.openapi-generator/FILES index 24e2e664..47f94efb 100644 --- a/sdks/marketingsolutions_preview/.openapi-generator/FILES +++ b/sdks/marketingsolutions_preview/.openapi-generator/FILES @@ -286,7 +286,6 @@ criteo_api_marketingsolutions_preview/model/oci_targeting_node.py criteo_api_marketingsolutions_preview/model/oci_targeting_response.py criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py -criteo_api_marketingsolutions_preview/model/ok_response.py criteo_api_marketingsolutions_preview/model/on_site_reco_request.py criteo_api_marketingsolutions_preview/model/on_site_reco_response.py criteo_api_marketingsolutions_preview/model/outcome.py @@ -315,9 +314,6 @@ criteo_api_marketingsolutions_preview/model/placements_report_query_entity_messa criteo_api_marketingsolutions_preview/model/placements_report_query_message.py criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py criteo_api_marketingsolutions_preview/model/portfolio_message.py -criteo_api_marketingsolutions_preview/model/preview_error.py -criteo_api_marketingsolutions_preview/model/preview_fail_response.py -criteo_api_marketingsolutions_preview/model/preview_warning.py criteo_api_marketingsolutions_preview/model/price.py criteo_api_marketingsolutions_preview/model/problem_details.py criteo_api_marketingsolutions_preview/model/problems_details.py @@ -325,10 +321,7 @@ criteo_api_marketingsolutions_preview/model/product.py criteo_api_marketingsolutions_preview/model/product_importer_error.py criteo_api_marketingsolutions_preview/model/product_importer_warning.py criteo_api_marketingsolutions_preview/model/product_set.py -criteo_api_marketingsolutions_preview/model/product_set_preview.py criteo_api_marketingsolutions_preview/model/product_set_rule.py -criteo_api_marketingsolutions_preview/model/product_set_statistics.py -criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py criteo_api_marketingsolutions_preview/model/product_shipping.py criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py criteo_api_marketingsolutions_preview/model/product_shipping_weight.py @@ -370,7 +363,6 @@ criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py criteo_api_marketingsolutions_preview/model/retargeting_v1.py -criteo_api_marketingsolutions_preview/model/rules.py criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py @@ -407,7 +399,6 @@ criteo_api_marketingsolutions_preview/model/update_coupon.py criteo_api_marketingsolutions_preview/model/update_coupon_request.py criteo_api_marketingsolutions_preview/model/update_coupon_resource.py criteo_api_marketingsolutions_preview/model/user_def.py -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 @@ -688,7 +679,6 @@ docs/OciTargetingNode.md docs/OciTargetingResponse.md docs/OciTargetingResponseData.md docs/OciTargetingRule.md -docs/OkResponse.md docs/OnSiteRecoRequest.md docs/OnSiteRecoResponse.md docs/OnSiteRecommendationApi.md @@ -718,9 +708,6 @@ docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/PreviewError.md -docs/PreviewFailResponse.md -docs/PreviewWarning.md docs/Price.md docs/ProblemDetails.md docs/ProblemsDetails.md @@ -728,10 +715,7 @@ docs/Product.md docs/ProductImporterError.md docs/ProductImporterWarning.md docs/ProductSet.md -docs/ProductSetPreview.md docs/ProductSetRule.md -docs/ProductSetStatistics.md -docs/ProductSetStatisticsQuery.md docs/ProductShipping.md docs/ProductShippingDimension.md docs/ProductShippingWeight.md @@ -774,7 +758,6 @@ docs/ResponsesReadAdSetV23Q1.md docs/RetargetingCreateV1.md docs/RetargetingUpdateV1.md docs/RetargetingV1.md -docs/Rules.md docs/SetAdSetTargetingDealIds.md docs/SetAdSetTargetingDealIdsRequest.md docs/SetAdSetTargetingDealIdsResource.md @@ -811,7 +794,6 @@ docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md docs/UserDef.md -docs/UserEvent.md docs/UserProfileAttributeModel.md docs/UserProfileIdentifierModel.md docs/ValueResourceInputOfCreateProductSetRequest.md diff --git a/sdks/marketingsolutions_preview/README.md b/sdks/marketingsolutions_preview/README.md index 9b00146c..d2423fa0 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.230831 +- Package version: 0.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.230831 +pip install criteo-api-marketingsolutions-sdk==0.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.231113`) Then import the package: ```python @@ -322,7 +322,6 @@ Class | Method | HTTP request | Description - [OciTargetingResponse](docs/OciTargetingResponse.md) - [OciTargetingResponseData](docs/OciTargetingResponseData.md) - [OciTargetingRule](docs/OciTargetingRule.md) - - [OkResponse](docs/OkResponse.md) - [OnSiteRecoRequest](docs/OnSiteRecoRequest.md) - [OnSiteRecoResponse](docs/OnSiteRecoResponse.md) - [Outcome](docs/Outcome.md) @@ -351,9 +350,6 @@ Class | Method | HTTP request | Description - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [PreviewError](docs/PreviewError.md) - - [PreviewFailResponse](docs/PreviewFailResponse.md) - - [PreviewWarning](docs/PreviewWarning.md) - [Price](docs/Price.md) - [ProblemDetails](docs/ProblemDetails.md) - [ProblemsDetails](docs/ProblemsDetails.md) @@ -361,10 +357,7 @@ Class | Method | HTTP request | Description - [ProductImporterError](docs/ProductImporterError.md) - [ProductImporterWarning](docs/ProductImporterWarning.md) - [ProductSet](docs/ProductSet.md) - - [ProductSetPreview](docs/ProductSetPreview.md) - [ProductSetRule](docs/ProductSetRule.md) - - [ProductSetStatistics](docs/ProductSetStatistics.md) - - [ProductSetStatisticsQuery](docs/ProductSetStatisticsQuery.md) - [ProductShipping](docs/ProductShipping.md) - [ProductShippingDimension](docs/ProductShippingDimension.md) - [ProductShippingWeight](docs/ProductShippingWeight.md) @@ -406,7 +399,6 @@ Class | Method | HTTP request | Description - [RetargetingCreateV1](docs/RetargetingCreateV1.md) - [RetargetingUpdateV1](docs/RetargetingUpdateV1.md) - [RetargetingV1](docs/RetargetingV1.md) - - [Rules](docs/Rules.md) - [SetAdSetTargetingDealIds](docs/SetAdSetTargetingDealIds.md) - [SetAdSetTargetingDealIdsRequest](docs/SetAdSetTargetingDealIdsRequest.md) - [SetAdSetTargetingDealIdsResource](docs/SetAdSetTargetingDealIdsResource.md) @@ -443,7 +435,6 @@ Class | Method | HTTP request | Description - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.md) - [UserDef](docs/UserDef.md) - - [UserEvent](docs/UserEvent.md) - [UserProfileAttributeModel](docs/UserProfileAttributeModel.md) - [UserProfileIdentifierModel](docs/UserProfileIdentifierModel.md) - [ValueResourceInputOfCreateProductSetRequest](docs/ValueResourceInputOfCreateProductSetRequest.md) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py index 4f722d52..66084393 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "0.0.230831" +__version__ = "0.0.231113" # import ApiClient from criteo_api_marketingsolutions_preview.api_client import ApiClient 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 2af304a5..68477545 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 @@ -1932,7 +1932,7 @@ def delete_contact_list_identifiers( ): """delete_contact_list_identifiers # noqa: E501 - Delete all identifiers from a Contact List Audience Segment # noqa: E501 + Delete all identifiers from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1940,7 +1940,7 @@ def delete_contact_list_identifiers( >>> result = thread.get() Args: - audience_segment_id (str): The ID of the Audience Segment to amend + audience_segment_id (str): The id of the contact list audience-segment to amend Keyword Args: _return_http_data_only (bool): response data without head status @@ -2523,7 +2523,7 @@ def modify_audience_users_with_attributes( ): """modify_audience_users_with_attributes # noqa: E501 - Add/remove users to or from an audience # noqa: E501 + Add/remove identifiers to or from a contact list. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -2531,7 +2531,7 @@ def modify_audience_users_with_attributes( >>> result = thread.get() Args: - audience_id (str): The id of the audience to amend + audience_id (str): The id of the contact list audience-segment to amend contactlist_with_attributes_amendment_request (ContactlistWithAttributesAmendmentRequest): Keyword Args: @@ -2864,7 +2864,7 @@ def update_contact_list_identifiers( ): """update_contact_list_identifiers # noqa: E501 - Add/remove identifiers to or from an Contact List Audience Segment # noqa: E501 + Add/remove identifiers to or from a contact list audience-segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -2872,7 +2872,7 @@ def update_contact_list_identifiers( >>> result = thread.get() Args: - audience_segment_id (str): The ID of the Audience Segment to amend + audience_segment_id (str): The id of the contact list audience-segment to amend contactlist_amendment_request (ContactlistAmendmentRequest): Keyword Args: 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 590f08fe..d8261e0a 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 @@ -21,10 +21,7 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_preview.model.ok_response import OkResponse from criteo_api_marketingsolutions_preview.model.outcome import Outcome -from criteo_api_marketingsolutions_preview.model.preview_fail_response import PreviewFailResponse -from criteo_api_marketingsolutions_preview.model.product_set_statistics_query import ProductSetStatisticsQuery from criteo_api_marketingsolutions_preview.model.resource_collection_outcome_of_product_set import ResourceCollectionOutcomeOfProductSet from criteo_api_marketingsolutions_preview.model.resource_outcome_of_product_set import ResourceOutcomeOfProductSet from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_set_request import ValueResourceInputOfCreateProductSetRequest @@ -205,59 +202,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.preview_product_sets_preview_post_endpoint = _Endpoint( - settings={ - 'response_type': (OkResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/preview/product-sets/preview', - 'operation_id': 'preview_product_sets_preview_post', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'product_set_statistics_query', - ], - 'required': [ - 'product_set_statistics_query', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'product_set_statistics_query': - (ProductSetStatisticsQuery,), - }, - 'attribute_map': { - }, - 'location_map': { - 'product_set_statistics_query': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) self.remove_product_set_endpoint = _Endpoint( settings={ 'response_type': (Outcome,), @@ -558,89 +502,6 @@ def fetch_product_sets( dataset_id return self.fetch_product_sets_endpoint.call_with_http_info(**kwargs) - def preview_product_sets_preview_post( - self, - product_set_statistics_query, - **kwargs - ): - """preview_product_sets_preview_post # noqa: E501 - - Display a preview of product set rules # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.preview_product_sets_preview_post(product_set_statistics_query, async_req=True) - >>> result = thread.get() - - Args: - product_set_statistics_query (ProductSetStatisticsQuery): - - 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: - OkResponse - 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['product_set_statistics_query'] = \ - product_set_statistics_query - return self.preview_product_sets_preview_post_endpoint.call_with_http_info(**kwargs) - def remove_product_set( self, product_set_id, 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 7a678859..eada444e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/0.0.231113/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 e3c87be8..8758fe76 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py @@ -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.230831".\ + "SDK Package Version: 0.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): 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 deleted file mode 100644 index 793af3e5..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - 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.preview_warning import PreviewWarning - from criteo_api_marketingsolutions_preview.model.product_set_statistics import ProductSetStatistics - globals()['PreviewWarning'] = PreviewWarning - globals()['ProductSetStatistics'] = ProductSetStatistics - - -class OkResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ProductSetStatistics,), # noqa: E501 - 'warnings': ([PreviewWarning],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, warnings, *args, **kwargs): # noqa: E501 - """OkResponse - a model defined in OpenAPI - - Args: - data (ProductSetStatistics): - warnings ([PreviewWarning]): List of warnings - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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, warnings, *args, **kwargs): # noqa: E501 - """OkResponse - a model defined in OpenAPI - - Args: - data (ProductSetStatistics): - warnings ([PreviewWarning]): List of warnings - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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_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 20ba25a6..923915ea 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 @@ -29,10 +29,6 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_marketingsolutions_preview.model.user_event import UserEvent - globals()['UserEvent'] = UserEvent - class OnSiteRecoRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -76,7 +72,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 @@ -91,13 +86,11 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { 'nb_requested_products': (int,), # noqa: E501 'partner_id': (int,), # noqa: E501 'user_id': (str, none_type,), # noqa: E501 'identity_type': (str, none_type,), # noqa: E501 - 'user_events': ([UserEvent], none_type,), # noqa: E501 'ad_set_id': (int, none_type,), # noqa: E501 'ad_id': (int, none_type,), # noqa: E501 } @@ -112,7 +105,6 @@ def discriminator(): '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 'ad_id': 'adId', # noqa: E501 } @@ -162,9 +154,8 @@ def _from_openapi_data(cls, nb_requested_products, partner_id, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - user_id (str, none_type): Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed.. [optional] # noqa: E501 - identity_type (str, none_type): 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], none_type): Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed.. [optional] # noqa: E501 + user_id (str, none_type): Used to retrieve user events from Criteo trackers.. [optional] # noqa: E501 + identity_type (str, none_type): Type of the user identifier (CtoBundle, Idfa, Gaid...) Optional if its type is CtoBundle. [optional] # noqa: E501 ad_set_id (int, none_type): Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured.. [optional] # noqa: E501 ad_id (int, none_type): Id of the Ad. This field is optional, it allows to setup Reco controls at Ad level.. [optional] # noqa: E501 """ @@ -258,9 +249,8 @@ def __init__(self, nb_requested_products, partner_id, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - user_id (str, none_type): Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed.. [optional] # noqa: E501 - identity_type (str, none_type): 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], none_type): Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed.. [optional] # noqa: E501 + user_id (str, none_type): Used to retrieve user events from Criteo trackers.. [optional] # noqa: E501 + identity_type (str, none_type): Type of the user identifier (CtoBundle, Idfa, Gaid...) Optional if its type is CtoBundle. [optional] # noqa: E501 ad_set_id (int, none_type): Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured.. [optional] # noqa: E501 ad_id (int, none_type): Id of the Ad. This field is optional, it allows to setup Reco controls at Ad level.. [optional] # noqa: E501 """ 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 deleted file mode 100644 index c39711a5..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - 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 PreviewError(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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, trace_id, type, code, instance, title, detail, *args, **kwargs): # noqa: E501 - """PreviewError - a model defined in OpenAPI - - Args: - trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway - type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. - code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo - instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. - title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. - detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.trace_id = trace_id - self.type = type - self.code = code - self.instance = instance - self.title = title - 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, trace_id, type, code, instance, title, detail, *args, **kwargs): # noqa: E501 - """PreviewError - a model defined in OpenAPI - - Args: - trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway - type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. - code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo - instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. - title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. - detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.trace_id = trace_id - self.type = type - self.code = code - self.instance = instance - self.title = title - 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_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py deleted file mode 100644 index 18f520ae..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - 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.preview_error import PreviewError - from criteo_api_marketingsolutions_preview.model.preview_warning import PreviewWarning - globals()['PreviewError'] = PreviewError - globals()['PreviewWarning'] = PreviewWarning - - -class PreviewFailResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': ([PreviewError],), # noqa: E501 - 'warnings': ([PreviewWarning],), # 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, warnings, *args, **kwargs): # noqa: E501 - """PreviewFailResponse - a model defined in OpenAPI - - Args: - errors ([PreviewError]): List of errors - warnings ([PreviewWarning]): List of warnings - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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, errors, warnings, *args, **kwargs): # noqa: E501 - """PreviewFailResponse - a model defined in OpenAPI - - Args: - errors ([PreviewError]): List of errors - warnings ([PreviewWarning]): List of warnings - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py deleted file mode 100644 index 0a219746..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - 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 PreviewWarning(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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, trace_id, type, code, instance, title, detail, *args, **kwargs): # noqa: E501 - """PreviewWarning - a model defined in OpenAPI - - Args: - trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway - type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. - code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo - instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. - title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. - detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.trace_id = trace_id - self.type = type - self.code = code - self.instance = instance - self.title = title - 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, trace_id, type, code, instance, title, detail, *args, **kwargs): # noqa: E501 - """PreviewWarning - a model defined in OpenAPI - - Args: - trace_id (str): The MACHINE-READABLE correlation ID provided by the gateway - type (str): A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. - code (str): A MACHINE-READABLE error code string in kebab-case. Unique across Criteo - instance (str): A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. - title (str): A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. - detail (str): A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.trace_id = trace_id - self.type = type - self.code = code - self.instance = instance - self.title = title - 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_preview/criteo_api_marketingsolutions_preview/model/product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py index b49c5a5e..6fa2a0f2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py @@ -184,6 +184,10 @@ def openapi_types(): 'tax_category': (str, none_type,), # noqa: E501 'transit_time_label': (str, none_type,), # noqa: E501 'seller_id': (str, none_type,), # noqa: E501 + 'external_seller_id': (str, none_type,), # noqa: E501 + 'external_seller_name': (str, none_type,), # noqa: E501 + 'number_of_reviews': (int, none_type,), # noqa: E501 + 'product_rating': (str, none_type,), # noqa: E501 } @cached_property @@ -268,6 +272,10 @@ def discriminator(): 'tax_category': 'taxCategory', # noqa: E501 'transit_time_label': 'transitTimeLabel', # noqa: E501 'seller_id': 'sellerId', # noqa: E501 + 'external_seller_id': 'externalSellerId', # noqa: E501 + 'external_seller_name': 'externalSellerName', # noqa: E501 + 'number_of_reviews': 'numberOfReviews', # noqa: E501 + 'product_rating': 'productRating', # noqa: E501 } read_only_vars = { @@ -388,7 +396,11 @@ def _from_openapi_data(cls, id, title, link, image_link, *args, **kwargs): # no max_energy_efficiency_class (str, none_type): The energy efficiency class as defined in EU directive 2010/30/EU.. [optional] # noqa: E501 tax_category (str, none_type): The tax category of the product, used to configure detailed tax nexus in account-level tax settings.. [optional] # noqa: E501 transit_time_label (str, none_type): The transit time label of the product, used to group product in account-level transit time tables.. [optional] # noqa: E501 - seller_id (str, none_type): The ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + seller_id (str, none_type): Deprecated field. It should be replaced by externalSellerId. The external ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + external_seller_id (str, none_type): The external id of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + external_seller_name (str, none_type): The external name of the seller (case sensitive and 750 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + number_of_reviews (int, none_type): The number of reviews for the product. This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + product_rating (str, none_type): The rating of the product. This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 """ channel = kwargs.get('channel', "online") @@ -557,7 +569,11 @@ def __init__(self, id, title, link, image_link, *args, **kwargs): # noqa: E501 max_energy_efficiency_class (str, none_type): The energy efficiency class as defined in EU directive 2010/30/EU.. [optional] # noqa: E501 tax_category (str, none_type): The tax category of the product, used to configure detailed tax nexus in account-level tax settings.. [optional] # noqa: E501 transit_time_label (str, none_type): The transit time label of the product, used to group product in account-level transit time tables.. [optional] # noqa: E501 - seller_id (str, none_type): The ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + seller_id (str, none_type): Deprecated field. It should be replaced by externalSellerId. The external ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + external_seller_id (str, none_type): The external id of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + external_seller_name (str, none_type): The external name of the seller (case sensitive and 750 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + number_of_reviews (int, none_type): The number of reviews for the product. This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 + product_rating (str, none_type): The rating of the product. This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501 """ channel = kwargs.get('channel', "online") 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 deleted file mode 100644 index 1d847567..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.rules import Rules - globals()['Rules'] = Rules - - -class ProductSetPreview(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'partner_id': (int,), # noqa: E501 - 'rules': ([Rules],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'partner_id': 'partnerId', # noqa: E501 - 'rules': 'rules', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, partner_id, rules, *args, **kwargs): # noqa: E501 - """ProductSetPreview - a model defined in OpenAPI - - Args: - partner_id (int): PartnerId - rules ([Rules]): ProductSet rules - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.partner_id = partner_id - self.rules = rules - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, partner_id, rules, *args, **kwargs): # noqa: E501 - """ProductSetPreview - a model defined in OpenAPI - - Args: - partner_id (int): PartnerId - rules ([Rules]): ProductSet rules - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.partner_id = partner_id - self.rules = rules - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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/product_set_statistics.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py deleted file mode 100644 index 99e69de8..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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 ProductSetStatistics(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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_count': (int,), # noqa: E501 - 'total_product_count': (int,), # noqa: E501 - 'sample_products': ([str],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'product_count': 'productCount', # noqa: E501 - 'total_product_count': 'totalProductCount', # noqa: E501 - 'sample_products': 'sampleProducts', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, product_count, total_product_count, sample_products, *args, **kwargs): # noqa: E501 - """ProductSetStatistics - a model defined in OpenAPI - - Args: - product_count (int): Number of products in the product set - total_product_count (int): Number of products in the partner's catalog - sample_products ([str]): A sample of products (hashed external id) contained in the product 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.product_count = product_count - self.total_product_count = total_product_count - self.sample_products = sample_products - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, product_count, total_product_count, sample_products, *args, **kwargs): # noqa: E501 - """ProductSetStatistics - a model defined in OpenAPI - - Args: - product_count (int): Number of products in the product set - total_product_count (int): Number of products in the partner's catalog - sample_products ([str]): A sample of products (hashed external id) contained in the product 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.product_count = product_count - self.total_product_count = total_product_count - self.sample_products = sample_products - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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/product_set_statistics_query.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py deleted file mode 100644 index fb42b3d1..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.product_set_preview import ProductSetPreview - globals()['ProductSetPreview'] = ProductSetPreview - - -class ProductSetStatisticsQuery(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'product_set': (ProductSetPreview,), # noqa: E501 - 'product_sample_count': (int,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'product_set': 'productSet', # noqa: E501 - 'product_sample_count': 'productSampleCount', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, product_set, product_sample_count, *args, **kwargs): # noqa: E501 - """ProductSetStatisticsQuery - a model defined in OpenAPI - - Args: - product_set (ProductSetPreview): - product_sample_count (int): The size of the products sample - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.product_set = product_set - self.product_sample_count = product_sample_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, product_set, product_sample_count, *args, **kwargs): # noqa: E501 - """ProductSetStatisticsQuery - a model defined in OpenAPI - - Args: - product_set (ProductSetPreview): - product_sample_count (int): The size of the products sample - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.product_set = product_set - self.product_sample_count = product_sample_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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py index 052c7ebd..7d1e9b9d 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 @@ -87,6 +87,7 @@ def openapi_types(): 'name': (str, none_type,), # noqa: E501 'description': (str, none_type,), # noqa: E501 'price': (float, none_type,), # noqa: E501 + 'retailprice': (float, none_type,), # noqa: E501 'google_category': (str, none_type,), # noqa: E501 } @@ -102,6 +103,7 @@ def discriminator(): 'name': 'name', # noqa: E501 'description': 'description', # noqa: E501 'price': 'price', # noqa: E501 + 'retailprice': 'retailprice', # noqa: E501 'google_category': 'googleCategory', # noqa: E501 } @@ -152,6 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 name (str, none_type): Product name.. [optional] # noqa: E501 description (str, none_type): Product description.. [optional] # noqa: E501 price (float, none_type): Product price.. [optional] # noqa: E501 + retailprice (float, none_type): Product retail price.. [optional] # noqa: E501 google_category (str, none_type): Product google category.. [optional] # noqa: E501 """ @@ -244,6 +247,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 name (str, none_type): Product name.. [optional] # noqa: E501 description (str, none_type): Product description.. [optional] # noqa: E501 price (float, none_type): Product price.. [optional] # noqa: E501 + retailprice (float, none_type): Product retail price.. [optional] # noqa: E501 google_category (str, none_type): Product google category.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py deleted file mode 100644 index 3b425521..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - 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 Rules(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('field',): { - 'BRAND': "Brand", - 'CATEGORY1': "Category1", - 'CATEGORY2': "Category2", - 'CATEGORY3': "Category3", - 'CUSTOMLABEL0': "CustomLabel0", - 'CUSTOMLABEL1': "CustomLabel1", - 'CUSTOMLABEL2': "CustomLabel2", - 'CUSTOMLABEL3': "CustomLabel3", - 'CUSTOMLABEL4': "CustomLabel4", - 'EXTERNALITEMID': "ExternalItemId", - 'RETAILPRICE': "RetailPrice", - 'SALEPRICE': "SalePrice", - }, - ('operator',): { - 'BETWEEN': "Between", - 'EQUALTO': "EqualTo", - 'GREATERTHAN': "GreaterThan", - 'ISIN': "IsIn", - 'ISNOTIN': "IsNotIn", - 'LESSTHAN': "LessThan", - 'NOTBETWEEN': "NotBetween", - 'NOTEQUALTO': "NotEqualTo", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 { - 'field': (str,), # noqa: E501 - 'operator': (str,), # noqa: E501 - 'values': ([str], none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'field': 'field', # noqa: E501 - 'operator': 'operator', # noqa: E501 - 'values': 'values', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, field, operator, *args, **kwargs): # noqa: E501 - """Rules - a model defined in OpenAPI - - Args: - field (str): - operator (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,) - values ([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.field = field - self.operator = operator - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, field, operator, *args, **kwargs): # noqa: E501 - """Rules - a model defined in OpenAPI - - Args: - field (str): - operator (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,) - values ([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.field = field - self.operator = operator - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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/user_event.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py deleted file mode 100644 index 3e3e85ea..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py +++ /dev/null @@ -1,288 +0,0 @@ -""" - 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 UserEvent(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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',): { - '0': 0, - '1': 1, - '2': 2, - '3': 3, - '4': 4, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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_external_id': (str,), # noqa: E501 - 'type': (int,), # noqa: E501 - 'date_time': (datetime,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'product_external_id': 'productExternalId', # noqa: E501 - 'type': 'type', # noqa: E501 - 'date_time': 'dateTime', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, product_external_id, type, date_time, *args, **kwargs): # noqa: E501 - """UserEvent - a model defined in OpenAPI - - Args: - product_external_id (str): Product external id. - type (int): Event type e.g. page view, sale... - date_time (datetime): Event date (format : 2012-04-23T18:25:43.511Z) - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.product_external_id = product_external_id - self.type = type - self.date_time = date_time - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, product_external_id, type, date_time, *args, **kwargs): # noqa: E501 - """UserEvent - a model defined in OpenAPI - - Args: - product_external_id (str): Product external id. - type (int): Event type e.g. page view, sale... - date_time (datetime): Event date (format : 2012-04-23T18:25:43.511Z) - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.product_external_id = product_external_id - self.type = type - self.date_time = date_time - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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/models/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py index cfc7d9e1..5b19cc72 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py @@ -271,7 +271,6 @@ from criteo_api_marketingsolutions_preview.model.oci_targeting_response import OciTargetingResponse from criteo_api_marketingsolutions_preview.model.oci_targeting_response_data import OciTargetingResponseData from criteo_api_marketingsolutions_preview.model.oci_targeting_rule import OciTargetingRule -from criteo_api_marketingsolutions_preview.model.ok_response import OkResponse from criteo_api_marketingsolutions_preview.model.on_site_reco_request import OnSiteRecoRequest from criteo_api_marketingsolutions_preview.model.on_site_reco_response import OnSiteRecoResponse from criteo_api_marketingsolutions_preview.model.outcome import Outcome @@ -300,9 +299,6 @@ from criteo_api_marketingsolutions_preview.model.placements_report_query_message import PlacementsReportQueryMessage from criteo_api_marketingsolutions_preview.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_preview.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_preview.model.preview_error import PreviewError -from criteo_api_marketingsolutions_preview.model.preview_fail_response import PreviewFailResponse -from criteo_api_marketingsolutions_preview.model.preview_warning import PreviewWarning from criteo_api_marketingsolutions_preview.model.price import Price from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails @@ -310,10 +306,7 @@ from criteo_api_marketingsolutions_preview.model.product_importer_error import ProductImporterError from criteo_api_marketingsolutions_preview.model.product_importer_warning import ProductImporterWarning from criteo_api_marketingsolutions_preview.model.product_set import ProductSet -from criteo_api_marketingsolutions_preview.model.product_set_preview import ProductSetPreview from criteo_api_marketingsolutions_preview.model.product_set_rule import ProductSetRule -from criteo_api_marketingsolutions_preview.model.product_set_statistics import ProductSetStatistics -from criteo_api_marketingsolutions_preview.model.product_set_statistics_query import ProductSetStatisticsQuery from criteo_api_marketingsolutions_preview.model.product_shipping import ProductShipping from criteo_api_marketingsolutions_preview.model.product_shipping_dimension import ProductShippingDimension from criteo_api_marketingsolutions_preview.model.product_shipping_weight import ProductShippingWeight @@ -355,7 +348,6 @@ from criteo_api_marketingsolutions_preview.model.retargeting_create_v1 import RetargetingCreateV1 from criteo_api_marketingsolutions_preview.model.retargeting_update_v1 import RetargetingUpdateV1 from criteo_api_marketingsolutions_preview.model.retargeting_v1 import RetargetingV1 -from criteo_api_marketingsolutions_preview.model.rules import Rules from criteo_api_marketingsolutions_preview.model.set_ad_set_targeting_deal_ids import SetAdSetTargetingDealIds from criteo_api_marketingsolutions_preview.model.set_ad_set_targeting_deal_ids_request import SetAdSetTargetingDealIdsRequest from criteo_api_marketingsolutions_preview.model.set_ad_set_targeting_deal_ids_resource import SetAdSetTargetingDealIdsResource @@ -392,7 +384,6 @@ from criteo_api_marketingsolutions_preview.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_preview.model.update_coupon_resource import UpdateCouponResource from criteo_api_marketingsolutions_preview.model.user_def import UserDef -from criteo_api_marketingsolutions_preview.model.user_event import UserEvent 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 diff --git a/sdks/marketingsolutions_preview/docs/AudienceApi.md b/sdks/marketingsolutions_preview/docs/AudienceApi.md index c265953d..20e46b35 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceApi.md +++ b/sdks/marketingsolutions_preview/docs/AudienceApi.md @@ -923,7 +923,7 @@ Name | Type | Description | Notes -Delete all identifiers from a Contact List Audience Segment +Delete all identifiers from a contact list audience-segment. ### Example @@ -964,7 +964,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_segment_id = "audience-segment-id_example" # str | The ID of the Audience Segment to amend + audience_segment_id = "audience-segment-id_example" # str | The id of the contact list audience-segment to amend # example passing only required values which don't have defaults set try: @@ -979,7 +979,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_id** | **str**| The ID of the Audience Segment to amend | + **audience_segment_id** | **str**| The id of the contact list audience-segment to amend | ### Return type @@ -1600,7 +1600,7 @@ Name | Type | Description | Notes -Add/remove users to or from an audience +Add/remove identifiers to or from a contact list. ### Example @@ -1641,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 = "audience-id_example" # str | The id of the audience to amend + audience_id = "audience-id_example" # str | The id of the contact list audience-segment to amend contactlist_with_attributes_amendment_request = ContactlistWithAttributesAmendmentRequest( data=ContactlistWithAttributesAmendment( type="ContactlistWithUserAttributesAmendment", @@ -1676,7 +1676,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_id** | **str**| The id of the audience to amend | + **audience_id** | **str**| The id of the contact list audience-segment to amend | **contactlist_with_attributes_amendment_request** | [**ContactlistWithAttributesAmendmentRequest**](ContactlistWithAttributesAmendmentRequest.md)| | ### Return type @@ -2055,7 +2055,7 @@ void (empty response body) -Add/remove identifiers to or from an Contact List Audience Segment +Add/remove identifiers to or from a contact list audience-segment. ### Example @@ -2097,7 +2097,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_segment_id = "audience-segment-id_example" # str | The ID of the Audience Segment to amend + audience_segment_id = "audience-segment-id_example" # str | The id of the contact list audience-segment to amend contactlist_amendment_request = ContactlistAmendmentRequest( data=ContactlistAmendment( type="ContactlistAmendment", @@ -2125,7 +2125,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_id** | **str**| The ID of the Audience Segment to amend | + **audience_segment_id** | **str**| The id of the contact list audience-segment to amend | **contactlist_amendment_request** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | ### Return type diff --git a/sdks/marketingsolutions_preview/docs/CatalogApi.md b/sdks/marketingsolutions_preview/docs/CatalogApi.md index f8640de1..f6d96ab5 100644 --- a/sdks/marketingsolutions_preview/docs/CatalogApi.md +++ b/sdks/marketingsolutions_preview/docs/CatalogApi.md @@ -221,6 +221,10 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien tax_category="tax_category_example", transit_time_label="transit_time_label_example", seller_id="seller_id_example", + external_seller_id="external_seller_id_example", + external_seller_name="external_seller_name_example", + number_of_reviews=1, + product_rating="product_rating_example", ), feed_id="feed_id_example", ), diff --git a/sdks/marketingsolutions_preview/docs/OkResponse.md b/sdks/marketingsolutions_preview/docs/OkResponse.md deleted file mode 100644 index ec8a476b..00000000 --- a/sdks/marketingsolutions_preview/docs/OkResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# OkResponse - -Successful server response. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ProductSetStatistics**](ProductSetStatistics.md) | | -**warnings** | [**[PreviewWarning]**](PreviewWarning.md) | List of warnings | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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 4f854025..10d74ddf 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md @@ -7,9 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nb_requested_products** | **int** | Amount of products to recommend. | **partner_id** | **int** | Id of the partner. | -**user_id** | **str, none_type** | Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed. | [optional] -**identity_type** | **str, none_type** | 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], none_type**](UserEvent.md) | Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed. | [optional] +**user_id** | **str, none_type** | Used to retrieve user events from Criteo trackers. | [optional] +**identity_type** | **str, none_type** | Type of the user identifier (CtoBundle, Idfa, Gaid...) Optional if its type is CtoBundle | [optional] **ad_set_id** | **int, none_type** | Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured. | [optional] **ad_id** | **int, none_type** | Id of the Ad. This field is optional, it allows to setup Reco controls at Ad level. | [optional] **any string name** | **bool, 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 7d52b486..39fd6c1d 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md @@ -57,13 +57,6 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien nb_requested_products=1, user_id="user_id_example", identity_type="CtoBundle", - user_events=[ - UserEvent( - product_external_id="product_external_id_example", - type=0, - date_time=dateutil_parser('1970-01-01T00:00:00.00Z'), - ), - ], ad_set_id=1, ad_id=1, partner_id=1, diff --git a/sdks/marketingsolutions_preview/docs/PreviewError.md b/sdks/marketingsolutions_preview/docs/PreviewError.md deleted file mode 100644 index 59fc5ebd..00000000 --- a/sdks/marketingsolutions_preview/docs/PreviewError.md +++ /dev/null @@ -1,18 +0,0 @@ -# PreviewError - -Error descriptor. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str** | The MACHINE-READABLE correlation ID provided by the gateway | -**type** | **str** | A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. | -**code** | **str** | A MACHINE-READABLE error code string in kebab-case. Unique across Criteo | -**instance** | **str** | A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. | -**title** | **str** | A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. | -**detail** | **str** | A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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/PreviewFailResponse.md b/sdks/marketingsolutions_preview/docs/PreviewFailResponse.md deleted file mode 100644 index d4093e4b..00000000 --- a/sdks/marketingsolutions_preview/docs/PreviewFailResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# PreviewFailResponse - -Error server response. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**[PreviewError]**](PreviewError.md) | List of errors | -**warnings** | [**[PreviewWarning]**](PreviewWarning.md) | List of warnings | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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/PreviewWarning.md b/sdks/marketingsolutions_preview/docs/PreviewWarning.md deleted file mode 100644 index 8e80ef64..00000000 --- a/sdks/marketingsolutions_preview/docs/PreviewWarning.md +++ /dev/null @@ -1,18 +0,0 @@ -# PreviewWarning - -Warning descriptor. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str** | The MACHINE-READABLE correlation ID provided by the gateway | -**type** | **str** | A MACHINE-READABLE code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors. | -**code** | **str** | A MACHINE-READABLE error code string in kebab-case. Unique across Criteo | -**instance** | **str** | A MACHINE-READABLE URI reference that identifies the specific occurrence of the problem. This could be useful when we want to the return the API Endpoint identifying the exact resource related to the error. | -**title** | **str** | A short, HUMAN-READABLE summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. | -**detail** | **str** | A HUMAN-READABLE detailed explanation specific to this occurrence of the problem. This should not be more that 1 paragraph | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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/Product.md b/sdks/marketingsolutions_preview/docs/Product.md index 2ba92d21..11f080cf 100644 --- a/sdks/marketingsolutions_preview/docs/Product.md +++ b/sdks/marketingsolutions_preview/docs/Product.md @@ -80,7 +80,11 @@ Name | Type | Description | Notes **max_energy_efficiency_class** | **str, none_type** | The energy efficiency class as defined in EU directive 2010/30/EU. | [optional] **tax_category** | **str, none_type** | The tax category of the product, used to configure detailed tax nexus in account-level tax settings. | [optional] **transit_time_label** | **str, none_type** | The transit time label of the product, used to group product in account-level transit time tables. | [optional] -**seller_id** | **str, none_type** | The ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] +**seller_id** | **str, none_type** | Deprecated field. It should be replaced by externalSellerId. The external ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] +**external_seller_id** | **str, none_type** | The external id of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] +**external_seller_name** | **str, none_type** | The external name of the seller (case sensitive and 750 UTF8 characters max). This information is required by the Criteo Offsite Ads. | [optional] +**number_of_reviews** | **int, none_type** | The number of reviews for the product. This information is required by the Criteo Offsite Ads. | [optional] +**product_rating** | **str, none_type** | The rating of the product. This information is required by the Criteo Offsite Ads. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.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/ProductSetPreview.md b/sdks/marketingsolutions_preview/docs/ProductSetPreview.md deleted file mode 100644 index 3c232ad2..00000000 --- a/sdks/marketingsolutions_preview/docs/ProductSetPreview.md +++ /dev/null @@ -1,14 +0,0 @@ -# ProductSetPreview - -ProductSet preview schema - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**partner_id** | **int** | PartnerId | -**rules** | [**[Rules]**](Rules.md) | ProductSet rules | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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/ProductSetStatistics.md b/sdks/marketingsolutions_preview/docs/ProductSetStatistics.md deleted file mode 100644 index 333ee710..00000000 --- a/sdks/marketingsolutions_preview/docs/ProductSetStatistics.md +++ /dev/null @@ -1,15 +0,0 @@ -# ProductSetStatistics - -ProductSet statistics preview response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_count** | **int** | Number of products in the product set | -**total_product_count** | **int** | Number of products in the partner's catalog | -**sample_products** | **[str]** | A sample of products (hashed external id) contained in the product 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/ProductSetStatisticsQuery.md b/sdks/marketingsolutions_preview/docs/ProductSetStatisticsQuery.md deleted file mode 100644 index 46a69b68..00000000 --- a/sdks/marketingsolutions_preview/docs/ProductSetStatisticsQuery.md +++ /dev/null @@ -1,14 +0,0 @@ -# ProductSetStatisticsQuery - -ProductSet statistics preview request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_set** | [**ProductSetPreview**](ProductSetPreview.md) | | -**product_sample_count** | **int** | The size of the products sample | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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 5bfc91c4..d101fd5b 100644 --- a/sdks/marketingsolutions_preview/docs/RecoApi.md +++ b/sdks/marketingsolutions_preview/docs/RecoApi.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**create_product_set**](RecoApi.md#create_product_set) | **POST** /preview/product-sets | [**fetch_product_set**](RecoApi.md#fetch_product_set) | **GET** /preview/product-sets/{product-set-id} | [**fetch_product_sets**](RecoApi.md#fetch_product_sets) | **GET** /preview/product-sets/dataset/{dataset-id} | -[**preview_product_sets_preview_post**](RecoApi.md#preview_product_sets_preview_post) | **POST** /preview/product-sets/preview | [**remove_product_set**](RecoApi.md#remove_product_set) | **DELETE** /preview/product-sets/{product-set-id} | @@ -296,108 +295,6 @@ 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) -# **preview_product_sets_preview_post** -> OkResponse preview_product_sets_preview_post(product_set_statistics_query) - - - -Display a preview of product set rules - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_marketingsolutions_preview -from criteo_api_marketingsolutions_preview.api import reco_api -from criteo_api_marketingsolutions_preview.model.preview_fail_response import PreviewFailResponse -from criteo_api_marketingsolutions_preview.model.ok_response import OkResponse -from criteo_api_marketingsolutions_preview.model.product_set_statistics_query import ProductSetStatisticsQuery -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_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_marketingsolutions_preview.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_marketingsolutions_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_marketingsolutions_preview.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = reco_api.RecoApi(api_client) - product_set_statistics_query = ProductSetStatisticsQuery( - product_set=ProductSetPreview( - partner_id=123, - rules=[ - Rules( - field="Brand", - operator="IsIn", - values=[ - "values_example", - ], - ), - ], - ), - product_sample_count=5, - ) # ProductSetStatisticsQuery | - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.preview_product_sets_preview_post(product_set_statistics_query) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling RecoApi->preview_product_sets_preview_post: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **product_set_statistics_query** | [**ProductSetStatisticsQuery**](ProductSetStatisticsQuery.md)| | - -### Return type - -[**OkResponse**](OkResponse.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 | - | -**403** | Authorization Error | - | -**500** | Internal Error | - | - -[[Back to top]](#) [[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_product_set** > Outcome remove_product_set(product_set_id) diff --git a/sdks/marketingsolutions_preview/docs/RecommendedProduct.md b/sdks/marketingsolutions_preview/docs/RecommendedProduct.md index 3aa47628..d22854c4 100644 --- a/sdks/marketingsolutions_preview/docs/RecommendedProduct.md +++ b/sdks/marketingsolutions_preview/docs/RecommendedProduct.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **name** | **str, none_type** | Product name. | [optional] **description** | **str, none_type** | Product description. | [optional] **price** | **float, none_type** | Product price. | [optional] +**retailprice** | **float, none_type** | Product retail price. | [optional] **google_category** | **str, none_type** | Product google category. | [optional] **any string name** | **bool, 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/Rules.md b/sdks/marketingsolutions_preview/docs/Rules.md deleted file mode 100644 index ffb5a5e0..00000000 --- a/sdks/marketingsolutions_preview/docs/Rules.md +++ /dev/null @@ -1,15 +0,0 @@ -# Rules - -ProductSet rule - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **str** | | -**operator** | **str** | | -**values** | **[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/marketingsolutions_preview/docs/UserEvent.md b/sdks/marketingsolutions_preview/docs/UserEvent.md deleted file mode 100644 index 20d7b81a..00000000 --- a/sdks/marketingsolutions_preview/docs/UserEvent.md +++ /dev/null @@ -1,15 +0,0 @@ -# UserEvent - -Represents an event where user has interacted with a product. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_external_id** | **str** | Product external id. | -**type** | **int** | Event type e.g. page view, sale... | -**date_time** | **datetime** | Event date (format : 2012-04-23T18:25:43.511Z) | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.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 37655e87..413e0594 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.230831" +VERSION = "0.0.231113" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.230831 +pip install criteo-api-marketingsolutions-sdk==0.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.231113`) Then import the package: ```python diff --git a/sdks/retailmedia_2022-07/.gitignore b/sdks/retailmedia_2022-07/.gitignore deleted file mode 100644 index 43995bd4..00000000 --- a/sdks/retailmedia_2022-07/.gitignore +++ /dev/null @@ -1,66 +0,0 @@ -# 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_2022-07/.openapi-generator/FILES b/sdks/retailmedia_2022-07/.openapi-generator/FILES deleted file mode 100644 index d7bf32b5..00000000 --- a/sdks/retailmedia_2022-07/.openapi-generator/FILES +++ /dev/null @@ -1,328 +0,0 @@ -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -criteo_api_retailmedia_v2022_07/__init__.py -criteo_api_retailmedia_v2022_07/api/__init__.py -criteo_api_retailmedia_v2022_07/api/analytics_api.py -criteo_api_retailmedia_v2022_07/api/audience_api.py -criteo_api_retailmedia_v2022_07/api/campaign_api.py -criteo_api_retailmedia_v2022_07/api/gateway_api.py -criteo_api_retailmedia_v2022_07/api_client.py -criteo_api_retailmedia_v2022_07/api_client_builder.py -criteo_api_retailmedia_v2022_07/apis/__init__.py -criteo_api_retailmedia_v2022_07/configuration.py -criteo_api_retailmedia_v2022_07/criteo_api_client.py -criteo_api_retailmedia_v2022_07/criteo_auth.py -criteo_api_retailmedia_v2022_07/criteo_rest.py -criteo_api_retailmedia_v2022_07/exceptions.py -criteo_api_retailmedia_v2022_07/flow_constants.py -criteo_api_retailmedia_v2022_07/model/__init__.py -criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py -criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py -criteo_api_retailmedia_v2022_07/model/application_summary_model.py -criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py -criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py -criteo_api_retailmedia_v2022_07/model/asset.py -criteo_api_retailmedia_v2022_07/model/asset_resource.py -criteo_api_retailmedia_v2022_07/model/asset_response.py -criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py -criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py -criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py -criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py -criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py -criteo_api_retailmedia_v2022_07/model/bad_request.py -criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py -criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/category202204.py -criteo_api_retailmedia_v2022_07/model/category202204_list_response.py -criteo_api_retailmedia_v2022_07/model/choice_option.py -criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py -criteo_api_retailmedia_v2022_07/model/choice_variable_value.py -criteo_api_retailmedia_v2022_07/model/color_variable_value.py -criteo_api_retailmedia_v2022_07/model/common_error.py -criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/common_line_item_response.py -criteo_api_retailmedia_v2022_07/model/common_problem.py -criteo_api_retailmedia_v2022_07/model/common_warning.py -criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py -criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py -criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py -criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py -criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py -criteo_api_retailmedia_v2022_07/model/creative202110.py -criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py -criteo_api_retailmedia_v2022_07/model/creative202207.py -criteo_api_retailmedia_v2022_07/model/creative202207_response.py -criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py -criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py -criteo_api_retailmedia_v2022_07/model/customer_list_details.py -criteo_api_retailmedia_v2022_07/model/envelope_report_request.py -criteo_api_retailmedia_v2022_07/model/envelope_report_status.py -criteo_api_retailmedia_v2022_07/model/error.py -criteo_api_retailmedia_v2022_07/model/external_account.py -criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py -criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py -criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py -criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py -criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py -criteo_api_retailmedia_v2022_07/model/external_balance202110.py -criteo_api_retailmedia_v2022_07/model/external_brand.py -criteo_api_retailmedia_v2022_07/model/external_campaign.py -criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py -criteo_api_retailmedia_v2022_07/model/external_catalog_request.py -criteo_api_retailmedia_v2022_07/model/external_catalog_status.py -criteo_api_retailmedia_v2022_07/model/external_common_line_item.py -criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py -criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py -criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py -criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py -criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py -criteo_api_retailmedia_v2022_07/model/external_post_campaign.py -criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py -criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py -criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py -criteo_api_retailmedia_v2022_07/model/external_put_campaign.py -criteo_api_retailmedia_v2022_07/model/external_retailer.py -criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py -criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/external_store_target202110.py -criteo_api_retailmedia_v2022_07/model/files_variable_value.py -criteo_api_retailmedia_v2022_07/model/files_variables_specification.py -criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py -criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py -criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py -criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py -criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py -criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py -criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py -criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py -criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py -criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py -criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py -criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py -criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py -criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py -criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py -criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py -criteo_api_retailmedia_v2022_07/model/map_string.py -criteo_api_retailmedia_v2022_07/model/page_metadata.py -criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py -criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py -criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py -criteo_api_retailmedia_v2022_07/model/problem_details.py -criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py -criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py -criteo_api_retailmedia_v2022_07/model/report_request.py -criteo_api_retailmedia_v2022_07/model/report_request_attributes.py -criteo_api_retailmedia_v2022_07/model/report_status.py -criteo_api_retailmedia_v2022_07/model/report_status_attributes.py -criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py -criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py -criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py -criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py -criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py -criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py -criteo_api_retailmedia_v2022_07/model/resource_of_template.py -criteo_api_retailmedia_v2022_07/model/retail_media_audience.py -criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py -criteo_api_retailmedia_v2022_07/model/section.py -criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_07/model/store_target202110_request.py -criteo_api_retailmedia_v2022_07/model/store_target202110_response.py -criteo_api_retailmedia_v2022_07/model/template.py -criteo_api_retailmedia_v2022_07/model/template_list_response.py -criteo_api_retailmedia_v2022_07/model/template_response.py -criteo_api_retailmedia_v2022_07/model/template_variable.py -criteo_api_retailmedia_v2022_07/model/template_variable_value.py -criteo_api_retailmedia_v2022_07/model/text_variable_specification.py -criteo_api_retailmedia_v2022_07/model/text_variable_value.py -criteo_api_retailmedia_v2022_07/model/user_behavior_details.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py -criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py -criteo_api_retailmedia_v2022_07/model_utils.py -criteo_api_retailmedia_v2022_07/models/__init__.py -criteo_api_retailmedia_v2022_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/AuctionLineItemCreateModelRequest.md -docs/AuctionLineItemPagedListResponse.md -docs/AuctionLineItemResponse.md -docs/AuctionLineItemUpdateModelRequest.md -docs/AudienceApi.md -docs/AudienceIdsUpdateModel202110Request.md -docs/AudienceTarget202110Request.md -docs/AudienceTarget202110Response.md -docs/BadRequest.md -docs/Balance202110PagedListResponse.md -docs/BalanceCampaign202110ListRequest.md -docs/BalanceCampaign202110PagedListResponse.md -docs/CampaignApi.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/CommonWarning.md -docs/CreateRetailMediaAudience.md -docs/CreateRetailMediaAudienceAttributes.md -docs/CreateRetailMediaAudienceBody.md -docs/CreateRetailMediaAudienceRequest.md -docs/CreateRetailMediaAudienceResponse.md -docs/Creative202110.md -docs/Creative202110ListResponse.md -docs/Creative202207.md -docs/Creative202207Response.md -docs/CreativeCreateModel202207.md -docs/CreativeUpdateModel202207.md -docs/CustomerListDetails.md -docs/EnvelopeReportRequest.md -docs/EnvelopeReportStatus.md -docs/Error.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/ExternalCampaign.md -docs/ExternalCampaignAttributes.md -docs/ExternalCatalogRequest.md -docs/ExternalCatalogStatus.md -docs/ExternalCommonLineItem.md -docs/ExternalEditableCampaignAttributes.md -docs/ExternalKeywordTarget202110.md -docs/ExternalLineItemCapping202110.md -docs/ExternalLineItemPage202110.md -docs/ExternalLineItemPageCategory202110.md -docs/ExternalPostCampaign.md -docs/ExternalPreferredLineItem202110.md -docs/ExternalPreferredLineItemCreateModel202110.md -docs/ExternalPreferredLineItemUpdateModel202110.md -docs/ExternalPromotedProduct202110.md -docs/ExternalPutCampaign.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/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md -docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md -docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md -docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md -docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md -docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md -docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md -docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md -docs/JsonApiPageResponseOfAccount.md -docs/JsonApiPageResponseOfBrand.md -docs/JsonApiPageResponseOfCampaign.md -docs/JsonApiPageResponseOfRetailer.md -docs/JsonApiRequestOfCatalogRequest.md -docs/JsonApiSingleResponseOfCampaign.md -docs/JsonApiSingleResponseOfCatalogStatus.md -docs/KeywordTarget202110Request.md -docs/KeywordTarget202110Response.md -docs/MapString.md -docs/PageMetadata.md -docs/PreferredLineItem202110PagedListResponse.md -docs/PreferredLineItem202110Response.md -docs/PreferredLineItemCreateModel202110Request.md -docs/PreferredLineItemUpdateModel202110Request.md -docs/ProblemDetails.md -docs/PromotedProduct202110ListRequest.md -docs/PromotedProduct202110PagedListResponse.md -docs/ReportRequest.md -docs/ReportRequestAttributes.md -docs/ReportStatus.md -docs/ReportStatusAttributes.md -docs/ResourceOfAuctionLineItem.md -docs/ResourceOfAuctionLineItemUpdateModel.md -docs/ResourceOfBalance202110.md -docs/ResourceOfBalanceCampaign202110.md -docs/ResourceOfCategory202204.md -docs/ResourceOfCommonLineItem.md -docs/ResourceOfCreative202110.md -docs/ResourceOfCreative202207.md -docs/ResourceOfPreferredLineItem202110.md -docs/ResourceOfPreferredLineItemUpdateModel202110.md -docs/ResourceOfPromotedProduct202110.md -docs/ResourceOfTemplate.md -docs/RetailMediaAudience.md -docs/RetailMediaAudienceAttributes.md -docs/Section.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/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_2022-07/.openapi-generator/VERSION b/sdks/retailmedia_2022-07/.openapi-generator/VERSION deleted file mode 100644 index e7e42a4b..00000000 --- a/sdks/retailmedia_2022-07/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.3.0 \ No newline at end of file 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 deleted file mode 100644 index b34b70da..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -__version__ = "2022.07.0.230831" - -# import ApiClient -from criteo_api_retailmedia_v2022_07.api_client import ApiClient -from criteo_api_retailmedia_v2022_07.criteo_api_client import CriteoApiClient -from criteo_api_retailmedia_v2022_07.api_client_builder import ApiClientBuilder -from criteo_api_retailmedia_v2022_07 import flow_constants - -# import Configuration -from criteo_api_retailmedia_v2022_07.configuration import Configuration - -# import exceptions -from criteo_api_retailmedia_v2022_07.exceptions import OpenApiException -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError -from criteo_api_retailmedia_v2022_07.exceptions import ApiTypeError -from criteo_api_retailmedia_v2022_07.exceptions import ApiValueError -from criteo_api_retailmedia_v2022_07.exceptions import ApiKeyError -from criteo_api_retailmedia_v2022_07.exceptions import ApiException - - - 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 deleted file mode 100644 index ca5516a4..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py +++ /dev/null @@ -1,340 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_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_v2022_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse - - -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': '/2022-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.get_audiences_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (GetPageOfAudiencesByAccountIdResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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 - ) - - 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 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) - 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 deleted file mode 100644 index 521911ac..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py +++ /dev/null @@ -1,7807 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_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_v2022_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_07.model.asset_response import AssetResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest -from criteo_api_retailmedia_v2022_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -from criteo_api_retailmedia_v2022_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_07.model.balance202110_paged_list_response import Balance202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.category202204 import Category202204 -from criteo_api_retailmedia_v2022_07.model.category202204_list_response import Category202204ListResponse -from criteo_api_retailmedia_v2022_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse -from criteo_api_retailmedia_v2022_07.model.common_line_item_response import CommonLineItemResponse -from criteo_api_retailmedia_v2022_07.model.creative202110_list_response import Creative202110ListResponse -from criteo_api_retailmedia_v2022_07.model.creative202207_response import Creative202207Response -from criteo_api_retailmedia_v2022_07.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_07.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_07.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_07.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer -from criteo_api_retailmedia_v2022_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_response import KeywordTarget202110Response -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.store_target202110_request import StoreTarget202110Request -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_07.model.template_list_response import TemplateListResponse -from criteo_api_retailmedia_v2022_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.create_asset_endpoint = _Endpoint( - settings={ - 'response_type': (AssetResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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.get_api202110_external_account_balances_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (Balance202110PagedListResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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_account_by_account_id_creativescreative_id_endpoint = _Endpoint( - settings={ - 'response_type': (Creative202207Response,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/accounts/{account-id}/creatives/{creative-id}', - 'operation_id': 'get_api202207_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_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint = _Endpoint( - settings={ - 'response_type': (TemplateResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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_api_v1_external_account_brands_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiPageResponseOfBrand,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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_campaigns_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiPageResponseOfCampaign,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/accounts/{accountId}/campaigns', - 'operation_id': 'get_api_v1_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_api_v1_external_account_retailers_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiPageResponseOfRetailer,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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_campaign_by_campaign_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/campaigns/{campaignId}', - 'operation_id': 'get_api_v1_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_api_v1_external_catalog_output_by_catalog_id_endpoint = _Endpoint( - settings={ - 'response_type': None, - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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_api202207_external_account_creatives_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (Creative202207Response,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/accounts/{account-id}/creatives', - 'operation_id': 'post_api202207_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_api_v1_external_account_campaigns_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/accounts/{accountId}/campaigns', - 'operation_id': 'post_api_v1_external_account_campaigns_by_account_id', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'account_id', - 'external_post_campaign', - ], - 'required': [ - 'account_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'account_id': - (str,), - 'external_post_campaign': - (ExternalPostCampaign,), - }, - 'attribute_map': { - 'account_id': 'accountId', - }, - 'location_map': { - 'account_id': 'path', - 'external_post_campaign': '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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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': '/2022-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_api202207_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( - settings={ - 'response_type': (Creative202207Response,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/accounts/{account-id}/creatives/{creative-id}', - 'operation_id': 'put_api202207_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_api_v1_external_campaign_by_campaign_id_endpoint = _Endpoint( - settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-07/retail-media/campaigns/{campaignId}', - 'operation_id': 'put_api_v1_external_campaign_by_campaign_id', - 'http_method': 'PUT', - 'servers': None, - }, - params_map={ - 'all': [ - 'campaign_id', - 'external_put_campaign', - ], - 'required': [ - 'campaign_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'campaign_id': - (str,), - 'external_put_campaign': - (ExternalPutCampaign,), - }, - 'attribute_map': { - 'campaign_id': 'campaignId', - }, - 'location_map': { - 'campaign_id': 'path', - 'external_put_campaign': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/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': '/2022-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 - ) - - 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 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_account_by_account_id_creativescreative_id( - self, - account_id, - creative_id, - **kwargs - ): - """get_api202207_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_api202207_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: - Creative202207Response - 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_api202207_external_account_by_account_id_creativescreative_id_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_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_campaigns_by_account_id( - self, - account_id, - **kwargs - ): - """get_api_v1_external_account_campaigns_by_account_id # noqa: E501 - - Gets page of campaign 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_v1_external_account_campaigns_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: - JsonApiPageResponseOfCampaign - 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_campaigns_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_campaign_by_campaign_id( - self, - campaign_id, - **kwargs - ): - """get_api_v1_external_campaign_by_campaign_id # noqa: E501 - - Gets the campaign 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_v1_external_campaign_by_campaign_id(campaign_id, async_req=True) - >>> result = thread.get() - - Args: - campaign_id (str): The given campaign 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: - JsonApiSingleResponseOfCampaign - 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_v1_external_campaign_by_campaign_id_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_api202207_external_account_creatives_by_account_id( - self, - account_id, - **kwargs - ): - """post_api202207_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_api202207_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: - Creative202207Response - 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_api202207_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) - - def post_api_v1_external_account_campaigns_by_account_id( - self, - account_id, - **kwargs - ): - """post_api_v1_external_account_campaigns_by_account_id # noqa: E501 - - Creates a new campaign 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_v1_external_account_campaigns_by_account_id(account_id, async_req=True) - >>> result = thread.get() - - Args: - account_id (str): The given account id - - Keyword Args: - external_post_campaign (ExternalPostCampaign): The campaign settings to create a campaign 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: - JsonApiSingleResponseOfCampaign - 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_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_api202207_external_account_by_account_id_creativescreative_id( - self, - account_id, - creative_id, - **kwargs - ): - """put_api202207_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_api202207_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: - Creative202207Response - 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_api202207_external_account_by_account_id_creativescreative_id_endpoint.call_with_http_info(**kwargs) - - def put_api_v1_external_campaign_by_campaign_id( - self, - campaign_id, - **kwargs - ): - """put_api_v1_external_campaign_by_campaign_id # noqa: E501 - - Updates the campaign 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.put_api_v1_external_campaign_by_campaign_id(campaign_id, async_req=True) - >>> result = thread.get() - - Args: - campaign_id (str): The given campaign id - - Keyword Args: - external_put_campaign (ExternalPutCampaign): The campaign settings to update that campaign 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: - JsonApiSingleResponseOfCampaign - 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_api_v1_external_campaign_by_campaign_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) - 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 deleted file mode 100644 index 8ea9972f..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py +++ /dev/null @@ -1,898 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-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_v2022_07 import rest -from criteo_api_retailmedia_v2022_07.configuration import Configuration -from criteo_api_retailmedia_v2022_07.exceptions import ApiTypeError, ApiValueError, ApiException -from criteo_api_retailmedia_v2022_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/2022.07.0.230831/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.get_report_output # this is an instance of the class Endpoint - api_instance.get_report_output() # this invokes api_instance.get_report_output.__call__() - which then invokes the callable functions stored in that endpoint at - api_instance.get_report_output.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_2022-07/criteo_api_retailmedia_v2022_07/api_client_builder.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client_builder.py deleted file mode 100644 index a6a52b67..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client_builder.py +++ /dev/null @@ -1,37 +0,0 @@ -from criteo_api_retailmedia_v2022_07.configuration import Configuration -from criteo_api_retailmedia_v2022_07.criteo_api_client import CriteoApiClient -from criteo_api_retailmedia_v2022_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_2022-07/criteo_api_retailmedia_v2022_07/criteo_rest.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_rest.py deleted file mode 100644 index 3b1d30c4..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_rest.py +++ /dev/null @@ -1,75 +0,0 @@ -from criteo_api_retailmedia_v2022_07.rest import RESTClientObject -from criteo_api_retailmedia_v2022_07.criteo_auth import * -from criteo_api_retailmedia_v2022_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_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py deleted file mode 100644 index c383e444..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py +++ /dev/null @@ -1,158 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-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_2022-07/criteo_api_retailmedia_v2022_07/flow_constants.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/flow_constants.py deleted file mode 100644 index 496d87c3..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/flow_constants.py +++ /dev/null @@ -1,5 +0,0 @@ -"""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_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 deleted file mode 100644 index 7e8f5c1d..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index dd86c2c7..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.error import Error - globals()['Error'] = Error - - -class BadRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': ([Error], none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'errors': 'errors', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 ([Error], none_type): The errors. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 ([Error], none_type): The errors. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py deleted file mode 100644 index 8ae90c80..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index edcef67c..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index bfb85614..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index d29b3a32..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py +++ /dev/null @@ -1,274 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index afbfba62..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_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], none_type,), # noqa: E501 - 'warnings': ([CommonWarning], none_type,), # 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], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): 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], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): 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_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 deleted file mode 100644 index 9a7cb00d..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index a2faed9a..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 7d4beacf..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.report_request import ReportRequest - globals()['ReportRequest'] = ReportRequest - - -class EnvelopeReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequest,), # 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 - """EnvelopeReportRequest - a model defined in OpenAPI - - Args: - data (ReportRequest): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportRequest - a model defined in OpenAPI - - Args: - data (ReportRequest): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_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 deleted file mode 100644 index 797a257d..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.report_status import ReportStatus - globals()['ReportStatus'] = ReportStatus - - -class EnvelopeReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatus,), # 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_2022-07/criteo_api_retailmedia_v2022_07/model/error.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py deleted file mode 100644 index ab73ab22..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.map_string import MapString - globals()['MapString'] = MapString - - -class Error(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - 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, none_type,), # noqa: E501 - 'source': (MapString,), # noqa: E501 - 'stack_trace': ([str], none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'trace_id': 'traceId', # noqa: E501 - 'type': 'type', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - 'title': 'title', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index c1616e19..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 9cf60300..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 34c60b6b..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py +++ /dev/null @@ -1,280 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 55d9c3c0..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py +++ /dev/null @@ -1,335 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 969f50f3..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - - -class ExternalBrand(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - ('name',): { - 'max_length': 120, - '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 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - 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 - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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 - """ExternalBrand - 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,) - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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_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 deleted file mode 100644 index 0094b81c..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py +++ /dev/null @@ -1,312 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 7dd5fb5e..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.json_api_body_without_id_of_campaign_attributes_and_campaign import JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - globals()['JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign'] = JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - - -class ExternalPostCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign,), # 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 - """ExternalPostCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ExternalPostCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index a7b7aa49..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py +++ /dev/null @@ -1,335 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 8cb2b521..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py +++ /dev/null @@ -1,280 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 8d2817a5..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 2d1c49eb..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_editable_campaign_attributes import ExternalEditableCampaignAttributes - globals()['ExternalEditableCampaignAttributes'] = ExternalEditableCampaignAttributes - - -class JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ExternalEditableCampaignAttributes,), # 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 - """JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - 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 (ExternalEditableCampaignAttributes): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - """JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - 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 (ExternalEditableCampaignAttributes): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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_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 deleted file mode 100644 index 80160d5a..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 02299b78..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 7afdb23d..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 0020effd..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py +++ /dev/null @@ -1,259 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - - -class MapString(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type 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 { - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index f91da6d2..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py +++ /dev/null @@ -1,291 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 094161d7..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index e9a3229f..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index e353cec1..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py +++ /dev/null @@ -1,305 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # 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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): 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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): 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_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 deleted file mode 100644 index 33184f50..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.report_request_attributes import ReportRequestAttributes - globals()['ReportRequestAttributes'] = ReportRequestAttributes - - -class ReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequestAttributes,), # 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, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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_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 deleted file mode 100644 index ccbd038e..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - - -class ReportRequestAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - 'KEYWORD': "keyword", - 'PAGETYPE': "pageType", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - ('format',): { - 'None': None, - 'CSV': "csv", - 'JSON': "json", - 'JSON-COMPACT': "json-compact", - 'JSON-NEWLINE': "json-newline", - }, - ('view_attribution_window',): { - 'None': None, - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 { - 'end_date': (date,), # noqa: E501 - 'report_type': (str,), # noqa: E501 - 'start_date': (date,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'format': (str, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'ids': ([str], none_type,), # noqa: E501 - 'revenue_type': (str, none_type,), # noqa: E501 - 'time_zone': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'end_date': 'endDate', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 - '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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index f87d23be..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.report_status_attributes import ReportStatusAttributes - globals()['ReportStatusAttributes'] = ReportStatusAttributes - - -class ReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatusAttributes,), # 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.attributes = attributes - 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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_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 deleted file mode 100644 index d11f0dbf..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - - -class ReportStatusAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - 'created_at': (datetime, none_type,), # noqa: E501 - 'expires_at': (datetime, none_type,), # noqa: E501 - 'file_size_bytes': (int, none_type,), # noqa: E501 - 'md5_checksum': (str, none_type,), # noqa: E501 - 'message': (str, none_type,), # noqa: E501 - 'row_count': (int, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'status': 'status', # 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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - created_at (datetime, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - created_at (datetime, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 3385ee3e..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index 662715f0..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index 13350314..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.creative202207 import Creative202207 - globals()['Creative202207'] = Creative202207 - - -class ResourceOfCreative202207(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (Creative202207,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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 - """ResourceOfCreative202207 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (Creative202207): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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 - """ResourceOfCreative202207 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (Creative202207): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index 5f74c1be..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index f2d9fcce..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 96fcdcf6..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py +++ /dev/null @@ -1,263 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index a6983a05..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_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_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 deleted file mode 100644 index 611de590..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 1fed2f68..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_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 deleted file mode 100644 index 68298376..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_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_2022-07/criteo_api_retailmedia_v2022_07/models/__init__.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/models/__init__.py deleted file mode 100644 index b2de8591..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/models/__init__.py +++ /dev/null @@ -1,156 +0,0 @@ -# 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_v2022_07.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from criteo_api_retailmedia_v2022_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_07.model.application_summary_model import ApplicationSummaryModel -from criteo_api_retailmedia_v2022_07.model.application_summary_model_resource import ApplicationSummaryModelResource -from criteo_api_retailmedia_v2022_07.model.application_summary_model_response import ApplicationSummaryModelResponse -from criteo_api_retailmedia_v2022_07.model.asset import Asset -from criteo_api_retailmedia_v2022_07.model.asset_resource import AssetResource -from criteo_api_retailmedia_v2022_07.model.asset_response import AssetResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest -from criteo_api_retailmedia_v2022_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -from criteo_api_retailmedia_v2022_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_07.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_07.model.balance202110_paged_list_response import Balance202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.category202204 import Category202204 -from criteo_api_retailmedia_v2022_07.model.category202204_list_response import Category202204ListResponse -from criteo_api_retailmedia_v2022_07.model.choice_option import ChoiceOption -from criteo_api_retailmedia_v2022_07.model.choice_variable_specification import ChoiceVariableSpecification -from criteo_api_retailmedia_v2022_07.model.choice_variable_value import ChoiceVariableValue -from criteo_api_retailmedia_v2022_07.model.color_variable_value import ColorVariableValue -from criteo_api_retailmedia_v2022_07.model.common_error import CommonError -from criteo_api_retailmedia_v2022_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse -from criteo_api_retailmedia_v2022_07.model.common_line_item_response import CommonLineItemResponse -from criteo_api_retailmedia_v2022_07.model.common_problem import CommonProblem -from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience import CreateRetailMediaAudience -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_07.model.creative202110 import Creative202110 -from criteo_api_retailmedia_v2022_07.model.creative202110_list_response import Creative202110ListResponse -from criteo_api_retailmedia_v2022_07.model.creative202207 import Creative202207 -from criteo_api_retailmedia_v2022_07.model.creative202207_response import Creative202207Response -from criteo_api_retailmedia_v2022_07.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_07.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_07.model.customer_list_details import CustomerListDetails -from criteo_api_retailmedia_v2022_07.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_07.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2022_07.model.error import Error -from criteo_api_retailmedia_v2022_07.model.external_account import ExternalAccount -from criteo_api_retailmedia_v2022_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 -from criteo_api_retailmedia_v2022_07.model.external_auction_line_item import ExternalAuctionLineItem -from criteo_api_retailmedia_v2022_07.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel -from criteo_api_retailmedia_v2022_07.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel -from criteo_api_retailmedia_v2022_07.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.external_audience_target202110 import ExternalAudienceTarget202110 -from criteo_api_retailmedia_v2022_07.model.external_balance202110 import ExternalBalance202110 -from criteo_api_retailmedia_v2022_07.model.external_brand import ExternalBrand -from criteo_api_retailmedia_v2022_07.model.external_campaign import ExternalCampaign -from criteo_api_retailmedia_v2022_07.model.external_campaign_attributes import ExternalCampaignAttributes -from criteo_api_retailmedia_v2022_07.model.external_catalog_request import ExternalCatalogRequest -from criteo_api_retailmedia_v2022_07.model.external_catalog_status import ExternalCatalogStatus -from criteo_api_retailmedia_v2022_07.model.external_common_line_item import ExternalCommonLineItem -from criteo_api_retailmedia_v2022_07.model.external_editable_campaign_attributes import ExternalEditableCampaignAttributes -from criteo_api_retailmedia_v2022_07.model.external_keyword_target202110 import ExternalKeywordTarget202110 -from criteo_api_retailmedia_v2022_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 -from criteo_api_retailmedia_v2022_07.model.external_line_item_page202110 import ExternalLineItemPage202110 -from criteo_api_retailmedia_v2022_07.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 -from criteo_api_retailmedia_v2022_07.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 -from criteo_api_retailmedia_v2022_07.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 -from criteo_api_retailmedia_v2022_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 -from criteo_api_retailmedia_v2022_07.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_07.model.external_retailer import ExternalRetailer -from criteo_api_retailmedia_v2022_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 -from criteo_api_retailmedia_v2022_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.external_store_target202110 import ExternalStoreTarget202110 -from criteo_api_retailmedia_v2022_07.model.files_variable_value import FilesVariableValue -from criteo_api_retailmedia_v2022_07.model.files_variables_specification import FilesVariablesSpecification -from criteo_api_retailmedia_v2022_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse -from criteo_api_retailmedia_v2022_07.model.hyperlink_variable_value import HyperlinkVariableValue -from criteo_api_retailmedia_v2022_07.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel -from criteo_api_retailmedia_v2022_07.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign import JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus -from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer -from criteo_api_retailmedia_v2022_07.model.json_api_body_without_id_of_campaign_attributes_and_campaign import JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer -from criteo_api_retailmedia_v2022_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_response import KeywordTarget202110Response -from criteo_api_retailmedia_v2022_07.model.map_string import MapString -from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.report_request import ReportRequest -from criteo_api_retailmedia_v2022_07.model.report_request_attributes import ReportRequestAttributes -from criteo_api_retailmedia_v2022_07.model.report_status import ReportStatus -from criteo_api_retailmedia_v2022_07.model.report_status_attributes import ReportStatusAttributes -from criteo_api_retailmedia_v2022_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem -from criteo_api_retailmedia_v2022_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel -from criteo_api_retailmedia_v2022_07.model.resource_of_balance202110 import ResourceOfBalance202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_category202204 import ResourceOfCategory202204 -from criteo_api_retailmedia_v2022_07.model.resource_of_common_line_item import ResourceOfCommonLineItem -from criteo_api_retailmedia_v2022_07.model.resource_of_creative202110 import ResourceOfCreative202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_creative202207 import ResourceOfCreative202207 -from criteo_api_retailmedia_v2022_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 -from criteo_api_retailmedia_v2022_07.model.resource_of_template import ResourceOfTemplate -from criteo_api_retailmedia_v2022_07.model.retail_media_audience import RetailMediaAudience -from criteo_api_retailmedia_v2022_07.model.retail_media_audience_attributes import RetailMediaAudienceAttributes -from criteo_api_retailmedia_v2022_07.model.section import Section -from criteo_api_retailmedia_v2022_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.store_target202110_request import StoreTarget202110Request -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_07.model.template import Template -from criteo_api_retailmedia_v2022_07.model.template_list_response import TemplateListResponse -from criteo_api_retailmedia_v2022_07.model.template_response import TemplateResponse -from criteo_api_retailmedia_v2022_07.model.template_variable import TemplateVariable -from criteo_api_retailmedia_v2022_07.model.template_variable_value import TemplateVariableValue -from criteo_api_retailmedia_v2022_07.model.text_variable_specification import TextVariableSpecification -from criteo_api_retailmedia_v2022_07.model.text_variable_value import TextVariableValue -from criteo_api_retailmedia_v2022_07.model.user_behavior_details import UserBehaviorDetails -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 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 deleted file mode 100644 index 67eb7ae7..00000000 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py +++ /dev/null @@ -1,352 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-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_v2022_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_2022-07/docs/AnalyticsApi.md b/sdks/retailmedia_2022-07/docs/AnalyticsApi.md deleted file mode 100644 index 6aaf66b3..00000000 --- a/sdks/retailmedia_2022-07/docs/AnalyticsApi.md +++ /dev/null @@ -1,399 +0,0 @@ -# criteo_api_retailmedia_v2022_07.AnalyticsApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_report_output**](AnalyticsApi.md#get_report_output) | **GET** /2022-07/retail-media/reports/{reportId}/output | -[**get_report_status**](AnalyticsApi.md#get_report_status) | **GET** /2022-07/retail-media/reports/{reportId}/status | -[**request_campaign_report**](AnalyticsApi.md#request_campaign_report) | **POST** /2022-07/retail-media/reports/campaigns | -[**request_line_item_report**](AnalyticsApi.md#request_line_item_report) | **POST** /2022-07/retail-media/reports/line-items | - - -# **get_report_output** -> str get_report_output(report_id) - - - -Request the report output - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import analytics_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_v2022_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 | report id - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_report_output(report_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_output: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | - -### Return type - -**str** - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - - -### 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 | - | - -[[Back to top]](#) [[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) - - - -Get the status of the report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import analytics_api -from criteo_api_retailmedia_v2022_07.model.envelope_report_status import EnvelopeReportStatus -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_v2022_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 | report id - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_report_status(report_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_status: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | -**404** | ReportId 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) - -# **request_campaign_report** -> EnvelopeReportStatus request_campaign_report(envelope_report_request) - - - -Request a campaign report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import analytics_api -from criteo_api_retailmedia_v2022_07.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2022_07.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_07.model.bad_request import BadRequest -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_v2022_07.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", - ], - 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 | Envelope of the request - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.request_campaign_report(envelope_report_request) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling AnalyticsApi->request_campaign_report: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | - -[[Back to top]](#) [[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) - - - -Request a line item report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import analytics_api -from criteo_api_retailmedia_v2022_07.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2022_07.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_07.model.bad_request import BadRequest -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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_v2022_07.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", - ], - 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 | Envelope of the request - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.request_line_item_report(envelope_report_request) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling AnalyticsApi->request_line_item_report: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | - -[[Back to top]](#) [[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_2022-07/docs/ApplicationSummaryModel.md b/sdks/retailmedia_2022-07/docs/ApplicationSummaryModel.md deleted file mode 100644 index 0a49cec3..00000000 --- a/sdks/retailmedia_2022-07/docs/ApplicationSummaryModel.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApplicationSummaryModel - -Model of ApplicationSummary - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**application_id** | **int, none_type** | | [optional] -**name** | **str, none_type** | | [optional] -**organization_id** | **int, none_type** | | [optional] -**description** | **str, none_type** | | [optional] -**criteo_service** | **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_2022-07/docs/AudienceApi.md b/sdks/retailmedia_2022-07/docs/AudienceApi.md deleted file mode 100644 index 61cf70bb..00000000 --- a/sdks/retailmedia_2022-07/docs/AudienceApi.md +++ /dev/null @@ -1,222 +0,0 @@ -# criteo_api_retailmedia_v2022_07.AudienceApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_audience**](AudienceApi.md#create_audience) | **POST** /2022-07/retail-media/accounts/{accountId}/audiences | -[**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /2022-07/retail-media/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_v2022_07 -from criteo_api_retailmedia_v2022_07.api import audience_api -from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_v2022_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_v2022_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) - -# **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_v2022_07 -from criteo_api_retailmedia_v2022_07.api import audience_api -from criteo_api_retailmedia_v2022_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_v2022_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_v2022_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_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_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 | 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_v2022_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_v2022_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) - diff --git a/sdks/retailmedia_2022-07/docs/CommonProblem.md b/sdks/retailmedia_2022-07/docs/CommonProblem.md deleted file mode 100644 index 5b689dd4..00000000 --- a/sdks/retailmedia_2022-07/docs/CommonProblem.md +++ /dev/null @@ -1,21 +0,0 @@ -# CommonProblem - -Common problem object. Can be specialized as needed. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] -**trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | The problem's category. | [optional] -**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] -**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] -**title** | **str, none_type** | A short human-readable description of the problem type | [optional] -**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] -**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] -**stack_trace** | **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_2022-07/docs/Error.md b/sdks/retailmedia_2022-07/docs/Error.md deleted file mode 100644 index 01e79f5a..00000000 --- a/sdks/retailmedia_2022-07/docs/Error.md +++ /dev/null @@ -1,20 +0,0 @@ -# Error - -Error - -## 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, none_type** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | [**MapString**](MapString.md) | | [optional] -**stack_trace** | **[str], none_type** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem 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_2022-07/docs/ExternalCampaign.md b/sdks/retailmedia_2022-07/docs/ExternalCampaign.md deleted file mode 100644 index 15ad7d23..00000000 --- a/sdks/retailmedia_2022-07/docs/ExternalCampaign.md +++ /dev/null @@ -1,27 +0,0 @@ -# ExternalCampaign - -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** | | -**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] -**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_2022-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md b/sdks/retailmedia_2022-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md deleted file mode 100644 index bb591bc0..00000000 --- a/sdks/retailmedia_2022-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md +++ /dev/null @@ -1,15 +0,0 @@ -# JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - -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** | [**ExternalEditableCampaignAttributes**](ExternalEditableCampaignAttributes.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_2022-07/docs/JsonApiPageResponseOfCampaign.md b/sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfCampaign.md deleted file mode 100644 index 08884464..00000000 --- a/sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfCampaign.md +++ /dev/null @@ -1,16 +0,0 @@ -# JsonApiPageResponseOfCampaign - -A wrapper class to return a single page of with metadata - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]**](JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.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_2022-07/docs/MapString.md b/sdks/retailmedia_2022-07/docs/MapString.md deleted file mode 100644 index c73c2ae8..00000000 --- a/sdks/retailmedia_2022-07/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_2022-07/docs/ReportRequest.md b/sdks/retailmedia_2022-07/docs/ReportRequest.md deleted file mode 100644 index 8ad71920..00000000 --- a/sdks/retailmedia_2022-07/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_2022-07/docs/ReportRequestAttributes.md b/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md deleted file mode 100644 index 50c12529..00000000 --- a/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md +++ /dev/null @@ -1,22 +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, none_type** | Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified | [optional] -**format** | **str, none_type** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" -**id** | **str, none_type** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] -**ids** | **[str], none_type** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] -**revenue_type** | **str, none_type** | | [optional] -**time_zone** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | 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_2022-07/docs/ReportStatus.md b/sdks/retailmedia_2022-07/docs/ReportStatus.md deleted file mode 100644 index 888d4c93..00000000 --- a/sdks/retailmedia_2022-07/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_2022-07/docs/ReportStatusAttributes.md b/sdks/retailmedia_2022-07/docs/ReportStatusAttributes.md deleted file mode 100644 index 70fcf412..00000000 --- a/sdks/retailmedia_2022-07/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, none_type** | Timestamp when the report started to execute | [optional] -**expires_at** | **datetime, none_type** | Timestamp when the cached report will expire | [optional] -**file_size_bytes** | **int, none_type** | Total size of file, only populated on success | [optional] -**md5_checksum** | **str, none_type** | The MD5 checksum of the content, only populated on success | [optional] -**message** | **str, none_type** | Failure message, only populated on failure | [optional] -**row_count** | **int, none_type** | 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_2022-07/docs/ResourceOfCreative202207.md b/sdks/retailmedia_2022-07/docs/ResourceOfCreative202207.md deleted file mode 100644 index cf1e2734..00000000 --- a/sdks/retailmedia_2022-07/docs/ResourceOfCreative202207.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfCreative202207 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**Creative202207**](Creative202207.md) | | [optional] -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-07/requirements.txt b/sdks/retailmedia_2022-07/requirements.txt deleted file mode 100644 index 96947f60..00000000 --- a/sdks/retailmedia_2022-07/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.25.3 diff --git a/sdks/retailmedia_2022-07/setup.cfg b/sdks/retailmedia_2022-07/setup.cfg deleted file mode 100644 index 11433ee8..00000000 --- a/sdks/retailmedia_2022-07/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/sdks/retailmedia_2022-07/test-requirements.txt b/sdks/retailmedia_2022-07/test-requirements.txt deleted file mode 100644 index bb4f22bb..00000000 --- a/sdks/retailmedia_2022-07/test-requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pytest-cov>=2.8.1 diff --git a/sdks/retailmedia_2022-07/test/example_application_with_client_credentials.py b/sdks/retailmedia_2022-07/test/example_application_with_client_credentials.py deleted file mode 100644 index fab88077..00000000 --- a/sdks/retailmedia_2022-07/test/example_application_with_client_credentials.py +++ /dev/null @@ -1,22 +0,0 @@ -from criteo_api_retailmedia_v2022_07.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_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_2022-07/test/example_application_with_refresh_token.py b/sdks/retailmedia_2022-07/test/example_application_with_refresh_token.py deleted file mode 100644 index 1cf8fed9..00000000 --- a/sdks/retailmedia_2022-07/test/example_application_with_refresh_token.py +++ /dev/null @@ -1,27 +0,0 @@ -from criteo_api_retailmedia_v2022_07.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_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_2022-07/test/test_gateway_api.py b/sdks/retailmedia_2022-07/test/test_gateway_api.py deleted file mode 100644 index 9c69a48a..00000000 --- a/sdks/retailmedia_2022-07/test/test_gateway_api.py +++ /dev/null @@ -1,62 +0,0 @@ -import pytest -import os - -from criteo_api_retailmedia_v2022_07.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_07.api_client_builder import ApiClientBuilder -from criteo_api_retailmedia_v2022_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_2022-07/tox.ini b/sdks/retailmedia_2022-07/tox.ini deleted file mode 100644 index f763ffe1..00000000 --- a/sdks/retailmedia_2022-07/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=criteo_api_retailmedia_v2022_07 diff --git a/sdks/retailmedia_2022-10/.gitignore b/sdks/retailmedia_2022-10/.gitignore deleted file mode 100644 index 43995bd4..00000000 --- a/sdks/retailmedia_2022-10/.gitignore +++ /dev/null @@ -1,66 +0,0 @@ -# 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_2022-10/.gitlab-ci.yml b/sdks/retailmedia_2022-10/.gitlab-ci.yml deleted file mode 100644 index 1aea0492..00000000 --- a/sdks/retailmedia_2022-10/.gitlab-ci.yml +++ /dev/null @@ -1,24 +0,0 @@ -# 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_v2022_10 - -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_2022-10/.openapi-generator/FILES b/sdks/retailmedia_2022-10/.openapi-generator/FILES deleted file mode 100644 index 37bcc3d8..00000000 --- a/sdks/retailmedia_2022-10/.openapi-generator/FILES +++ /dev/null @@ -1,328 +0,0 @@ -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -criteo_api_retailmedia_v2022_10/__init__.py -criteo_api_retailmedia_v2022_10/api/__init__.py -criteo_api_retailmedia_v2022_10/api/analytics_api.py -criteo_api_retailmedia_v2022_10/api/audience_api.py -criteo_api_retailmedia_v2022_10/api/campaign_api.py -criteo_api_retailmedia_v2022_10/api/gateway_api.py -criteo_api_retailmedia_v2022_10/api_client.py -criteo_api_retailmedia_v2022_10/api_client_builder.py -criteo_api_retailmedia_v2022_10/apis/__init__.py -criteo_api_retailmedia_v2022_10/configuration.py -criteo_api_retailmedia_v2022_10/criteo_api_client.py -criteo_api_retailmedia_v2022_10/criteo_auth.py -criteo_api_retailmedia_v2022_10/criteo_rest.py -criteo_api_retailmedia_v2022_10/exceptions.py -criteo_api_retailmedia_v2022_10/flow_constants.py -criteo_api_retailmedia_v2022_10/model/__init__.py -criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py -criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py -criteo_api_retailmedia_v2022_10/model/application_summary_model.py -criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py -criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py -criteo_api_retailmedia_v2022_10/model/asset.py -criteo_api_retailmedia_v2022_10/model/asset_resource.py -criteo_api_retailmedia_v2022_10/model/asset_response.py -criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py -criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py -criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py -criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py -criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py -criteo_api_retailmedia_v2022_10/model/bad_request.py -criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py -criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/category202204.py -criteo_api_retailmedia_v2022_10/model/category202204_list_response.py -criteo_api_retailmedia_v2022_10/model/choice_option.py -criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py -criteo_api_retailmedia_v2022_10/model/choice_variable_value.py -criteo_api_retailmedia_v2022_10/model/color_variable_value.py -criteo_api_retailmedia_v2022_10/model/common_error.py -criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/common_line_item_response.py -criteo_api_retailmedia_v2022_10/model/common_problem.py -criteo_api_retailmedia_v2022_10/model/common_warning.py -criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py -criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py -criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py -criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py -criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py -criteo_api_retailmedia_v2022_10/model/creative202110.py -criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py -criteo_api_retailmedia_v2022_10/model/creative202207.py -criteo_api_retailmedia_v2022_10/model/creative202207_response.py -criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py -criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py -criteo_api_retailmedia_v2022_10/model/customer_list_details.py -criteo_api_retailmedia_v2022_10/model/envelope_report_request.py -criteo_api_retailmedia_v2022_10/model/envelope_report_status.py -criteo_api_retailmedia_v2022_10/model/error.py -criteo_api_retailmedia_v2022_10/model/external_account.py -criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py -criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py -criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py -criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py -criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py -criteo_api_retailmedia_v2022_10/model/external_balance202110.py -criteo_api_retailmedia_v2022_10/model/external_brand.py -criteo_api_retailmedia_v2022_10/model/external_campaign.py -criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py -criteo_api_retailmedia_v2022_10/model/external_catalog_request.py -criteo_api_retailmedia_v2022_10/model/external_catalog_status.py -criteo_api_retailmedia_v2022_10/model/external_common_line_item.py -criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py -criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py -criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py -criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py -criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py -criteo_api_retailmedia_v2022_10/model/external_post_campaign.py -criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py -criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py -criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py -criteo_api_retailmedia_v2022_10/model/external_put_campaign.py -criteo_api_retailmedia_v2022_10/model/external_retailer.py -criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py -criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/external_store_target202110.py -criteo_api_retailmedia_v2022_10/model/files_variable_value.py -criteo_api_retailmedia_v2022_10/model/files_variables_specification.py -criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py -criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py -criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py -criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py -criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py -criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py -criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py -criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py -criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py -criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py -criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py -criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py -criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py -criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py -criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py -criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py -criteo_api_retailmedia_v2022_10/model/map_string.py -criteo_api_retailmedia_v2022_10/model/page_metadata.py -criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py -criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py -criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py -criteo_api_retailmedia_v2022_10/model/problem_details.py -criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py -criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py -criteo_api_retailmedia_v2022_10/model/report_request.py -criteo_api_retailmedia_v2022_10/model/report_request_attributes.py -criteo_api_retailmedia_v2022_10/model/report_status.py -criteo_api_retailmedia_v2022_10/model/report_status_attributes.py -criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py -criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py -criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py -criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py -criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py -criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py -criteo_api_retailmedia_v2022_10/model/resource_of_template.py -criteo_api_retailmedia_v2022_10/model/retail_media_audience.py -criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py -criteo_api_retailmedia_v2022_10/model/section.py -criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py -criteo_api_retailmedia_v2022_10/model/store_target202110_request.py -criteo_api_retailmedia_v2022_10/model/store_target202110_response.py -criteo_api_retailmedia_v2022_10/model/template.py -criteo_api_retailmedia_v2022_10/model/template_list_response.py -criteo_api_retailmedia_v2022_10/model/template_response.py -criteo_api_retailmedia_v2022_10/model/template_variable.py -criteo_api_retailmedia_v2022_10/model/template_variable_value.py -criteo_api_retailmedia_v2022_10/model/text_variable_specification.py -criteo_api_retailmedia_v2022_10/model/text_variable_value.py -criteo_api_retailmedia_v2022_10/model/user_behavior_details.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py -criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py -criteo_api_retailmedia_v2022_10/model_utils.py -criteo_api_retailmedia_v2022_10/models/__init__.py -criteo_api_retailmedia_v2022_10/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/AuctionLineItemCreateModelRequest.md -docs/AuctionLineItemPagedListResponse.md -docs/AuctionLineItemResponse.md -docs/AuctionLineItemUpdateModelRequest.md -docs/AudienceApi.md -docs/AudienceIdsUpdateModel202110Request.md -docs/AudienceTarget202110Request.md -docs/AudienceTarget202110Response.md -docs/BadRequest.md -docs/Balance202110PagedListResponse.md -docs/BalanceCampaign202110ListRequest.md -docs/BalanceCampaign202110PagedListResponse.md -docs/CampaignApi.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/CommonWarning.md -docs/CreateRetailMediaAudience.md -docs/CreateRetailMediaAudienceAttributes.md -docs/CreateRetailMediaAudienceBody.md -docs/CreateRetailMediaAudienceRequest.md -docs/CreateRetailMediaAudienceResponse.md -docs/Creative202110.md -docs/Creative202110ListResponse.md -docs/Creative202207.md -docs/Creative202207Response.md -docs/CreativeCreateModel202207.md -docs/CreativeUpdateModel202207.md -docs/CustomerListDetails.md -docs/EnvelopeReportRequest.md -docs/EnvelopeReportStatus.md -docs/Error.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/ExternalCampaign.md -docs/ExternalCampaignAttributes.md -docs/ExternalCatalogRequest.md -docs/ExternalCatalogStatus.md -docs/ExternalCommonLineItem.md -docs/ExternalEditableCampaignAttributes.md -docs/ExternalKeywordTarget202110.md -docs/ExternalLineItemCapping202110.md -docs/ExternalLineItemPage202110.md -docs/ExternalLineItemPageCategory202110.md -docs/ExternalPostCampaign.md -docs/ExternalPreferredLineItem202110.md -docs/ExternalPreferredLineItemCreateModel202110.md -docs/ExternalPreferredLineItemUpdateModel202110.md -docs/ExternalPromotedProduct202110.md -docs/ExternalPutCampaign.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/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md -docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md -docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md -docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md -docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md -docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md -docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md -docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md -docs/JsonApiPageResponseOfAccount.md -docs/JsonApiPageResponseOfBrand.md -docs/JsonApiPageResponseOfCampaign.md -docs/JsonApiPageResponseOfRetailer.md -docs/JsonApiRequestOfCatalogRequest.md -docs/JsonApiSingleResponseOfCampaign.md -docs/JsonApiSingleResponseOfCatalogStatus.md -docs/KeywordTarget202110Request.md -docs/KeywordTarget202110Response.md -docs/MapString.md -docs/PageMetadata.md -docs/PreferredLineItem202110PagedListResponse.md -docs/PreferredLineItem202110Response.md -docs/PreferredLineItemCreateModel202110Request.md -docs/PreferredLineItemUpdateModel202110Request.md -docs/ProblemDetails.md -docs/PromotedProduct202110ListRequest.md -docs/PromotedProduct202110PagedListResponse.md -docs/ReportRequest.md -docs/ReportRequestAttributes.md -docs/ReportStatus.md -docs/ReportStatusAttributes.md -docs/ResourceOfAuctionLineItem.md -docs/ResourceOfAuctionLineItemUpdateModel.md -docs/ResourceOfBalance202110.md -docs/ResourceOfBalanceCampaign202110.md -docs/ResourceOfCategory202204.md -docs/ResourceOfCommonLineItem.md -docs/ResourceOfCreative202110.md -docs/ResourceOfCreative202207.md -docs/ResourceOfPreferredLineItem202110.md -docs/ResourceOfPreferredLineItemUpdateModel202110.md -docs/ResourceOfPromotedProduct202110.md -docs/ResourceOfTemplate.md -docs/RetailMediaAudience.md -docs/RetailMediaAudienceAttributes.md -docs/Section.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/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_2022-10/.openapi-generator/VERSION b/sdks/retailmedia_2022-10/.openapi-generator/VERSION deleted file mode 100644 index e7e42a4b..00000000 --- a/sdks/retailmedia_2022-10/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.3.0 \ No newline at end of file diff --git a/sdks/retailmedia_2022-10/README.md b/sdks/retailmedia_2022-10/README.md deleted file mode 100644 index 861f0431..00000000 --- a/sdks/retailmedia_2022-10/README.md +++ /dev/null @@ -1,212 +0,0 @@ -# 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: 2022.10.0.230831 - -## Requirements - -Python 2.7 and 3.5+ - -## Installation & Usage -### pip install - -```sh -pip install criteo-api-retailmedia-sdk==2022.10.0.230831 -``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230831`) - -Then import the package: -```python -import criteo_api_retailmedia_v2022_10 -``` - -### 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_v2022_10 -``` - -## 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) - - [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) - - [BadRequest](docs/BadRequest.md) - - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.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) - - [CommonWarning](docs/CommonWarning.md) - - [CreateRetailMediaAudience](docs/CreateRetailMediaAudience.md) - - [CreateRetailMediaAudienceAttributes](docs/CreateRetailMediaAudienceAttributes.md) - - [CreateRetailMediaAudienceBody](docs/CreateRetailMediaAudienceBody.md) - - [CreateRetailMediaAudienceRequest](docs/CreateRetailMediaAudienceRequest.md) - - [CreateRetailMediaAudienceResponse](docs/CreateRetailMediaAudienceResponse.md) - - [Creative202110](docs/Creative202110.md) - - [Creative202110ListResponse](docs/Creative202110ListResponse.md) - - [Creative202207](docs/Creative202207.md) - - [Creative202207Response](docs/Creative202207Response.md) - - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) - - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - - [CustomerListDetails](docs/CustomerListDetails.md) - - [EnvelopeReportRequest](docs/EnvelopeReportRequest.md) - - [EnvelopeReportStatus](docs/EnvelopeReportStatus.md) - - [Error](docs/Error.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) - - [ExternalCampaign](docs/ExternalCampaign.md) - - [ExternalCampaignAttributes](docs/ExternalCampaignAttributes.md) - - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) - - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) - - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) - - [ExternalEditableCampaignAttributes](docs/ExternalEditableCampaignAttributes.md) - - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) - - [ExternalLineItemCapping202110](docs/ExternalLineItemCapping202110.md) - - [ExternalLineItemPage202110](docs/ExternalLineItemPage202110.md) - - [ExternalLineItemPageCategory202110](docs/ExternalLineItemPageCategory202110.md) - - [ExternalPostCampaign](docs/ExternalPostCampaign.md) - - [ExternalPreferredLineItem202110](docs/ExternalPreferredLineItem202110.md) - - [ExternalPreferredLineItemCreateModel202110](docs/ExternalPreferredLineItemCreateModel202110.md) - - [ExternalPreferredLineItemUpdateModel202110](docs/ExternalPreferredLineItemUpdateModel202110.md) - - [ExternalPromotedProduct202110](docs/ExternalPromotedProduct202110.md) - - [ExternalPutCampaign](docs/ExternalPutCampaign.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) - - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md) - - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) - - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) - - [JsonApiBodyWithIdOfInt64AndCampaignAndCampaign](docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md) - - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) - - [JsonApiBodyWithIdOfInt64AndRetailerAndRetailer](docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) - - [JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign](docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md) - - [JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest](docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) - - [JsonApiPageResponseOfAccount](docs/JsonApiPageResponseOfAccount.md) - - [JsonApiPageResponseOfBrand](docs/JsonApiPageResponseOfBrand.md) - - [JsonApiPageResponseOfCampaign](docs/JsonApiPageResponseOfCampaign.md) - - [JsonApiPageResponseOfRetailer](docs/JsonApiPageResponseOfRetailer.md) - - [JsonApiRequestOfCatalogRequest](docs/JsonApiRequestOfCatalogRequest.md) - - [JsonApiSingleResponseOfCampaign](docs/JsonApiSingleResponseOfCampaign.md) - - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) - - [KeywordTarget202110Request](docs/KeywordTarget202110Request.md) - - [KeywordTarget202110Response](docs/KeywordTarget202110Response.md) - - [MapString](docs/MapString.md) - - [PageMetadata](docs/PageMetadata.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) - - [ReportRequest](docs/ReportRequest.md) - - [ReportRequestAttributes](docs/ReportRequestAttributes.md) - - [ReportStatus](docs/ReportStatus.md) - - [ReportStatusAttributes](docs/ReportStatusAttributes.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) - - [ResourceOfCreative202207](docs/ResourceOfCreative202207.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) - - [Section](docs/Section.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) - - [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_2022-10/criteo_api_retailmedia_v2022_10/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py deleted file mode 100644 index 209e8217..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -__version__ = "2022.10.0.230831" - -# import ApiClient -from criteo_api_retailmedia_v2022_10.api_client import ApiClient -from criteo_api_retailmedia_v2022_10.criteo_api_client import CriteoApiClient -from criteo_api_retailmedia_v2022_10.api_client_builder import ApiClientBuilder -from criteo_api_retailmedia_v2022_10 import flow_constants - -# import Configuration -from criteo_api_retailmedia_v2022_10.configuration import Configuration - -# import exceptions -from criteo_api_retailmedia_v2022_10.exceptions import OpenApiException -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError -from criteo_api_retailmedia_v2022_10.exceptions import ApiTypeError -from criteo_api_retailmedia_v2022_10.exceptions import ApiValueError -from criteo_api_retailmedia_v2022_10.exceptions import ApiKeyError -from criteo_api_retailmedia_v2022_10.exceptions import ApiException - - - diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/__init__.py deleted file mode 100644 index a8180ae0..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# 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_v2022_10.apis import AnalyticsApi 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 deleted file mode 100644 index d411af1a..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py +++ /dev/null @@ -1,340 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_10.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse - - -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': '/2022-10/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.get_audiences_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (GetPageOfAudiencesByAccountIdResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2022-10/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 - ) - - 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 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) - 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 deleted file mode 100644 index 14686b8c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py +++ /dev/null @@ -1,161 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - check_allowed_values, - check_validations, - date, - datetime, - file_type, - none_type, - validate_and_convert_types -) -from criteo_api_retailmedia_v2022_10.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': '/2022-10/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_2022-10/criteo_api_retailmedia_v2022_10/apis/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/apis/__init__.py deleted file mode 100644 index 288615e2..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/apis/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ - -# 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_v2022_10.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_v2022_10.api.analytics_api import AnalyticsApi -from criteo_api_retailmedia_v2022_10.api.audience_api import AudienceApi -from criteo_api_retailmedia_v2022_10.api.campaign_api import CampaignApi -from criteo_api_retailmedia_v2022_10.api.gateway_api import GatewayApi 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 deleted file mode 100644 index 3052b5a0..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py +++ /dev/null @@ -1,461 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - 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_v2022_10.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_v2022_10") - 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: 2022-10\n"\ - "SDK Package Version: 2022.10.0.230831".\ - 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_2022-10/criteo_api_retailmedia_v2022_10/criteo_api_client.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_api_client.py deleted file mode 100644 index f39b5f37..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_api_client.py +++ /dev/null @@ -1,11 +0,0 @@ -from criteo_api_retailmedia_v2022_10.api_client import ApiClient -from criteo_api_retailmedia_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/criteo_auth.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_auth.py deleted file mode 100644 index 59905ddf..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_auth.py +++ /dev/null @@ -1,121 +0,0 @@ -import json -from datetime import datetime, timedelta -from criteo_api_retailmedia_v2022_10.exceptions import ApiException -from criteo_api_retailmedia_v2022_10.api_client import ApiClient -from criteo_api_retailmedia_v2022_10 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_2022-10/criteo_api_retailmedia_v2022_10/flow_constants.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/flow_constants.py deleted file mode 100644 index 496d87c3..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/flow_constants.py +++ /dev/null @@ -1,5 +0,0 @@ -"""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_2022-10/criteo_api_retailmedia_v2022_10/model/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/__init__.py deleted file mode 100644 index b5dd5694..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# 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_v2022_10.models import ModelA, ModelB 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 deleted file mode 100644 index 2770537f..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py +++ /dev/null @@ -1,279 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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, none_type,), # noqa: E501 - 'name': (str, none_type,), # noqa: E501 - 'organization_id': (int, none_type,), # noqa: E501 - 'description': (str, none_type,), # noqa: E501 - 'criteo_service': (str, none_type,), # 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, none_type): [optional] # noqa: E501 - name (str, none_type): [optional] # noqa: E501 - organization_id (int, none_type): [optional] # noqa: E501 - description (str, none_type): [optional] # noqa: E501 - criteo_service (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 - """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, none_type): [optional] # noqa: E501 - name (str, none_type): [optional] # noqa: E501 - organization_id (int, none_type): [optional] # noqa: E501 - description (str, none_type): [optional] # noqa: E501 - criteo_service (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_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py deleted file mode 100644 index d67e6e32..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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, none_type,), # noqa: E501 - 'id': (str, none_type,), # 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, none_type): A url pointing towards the static file the asset represents.. [optional] # noqa: E501 - 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.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, none_type): A url pointing towards the static file the asset represents.. [optional] # noqa: E501 - 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.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_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 deleted file mode 100644 index b812d7ab..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index e04443be..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index bfebc7b6..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 4d79b154..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.error import Error - globals()['Error'] = Error - - -class BadRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': ([Error], none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'errors': 'errors', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 ([Error], none_type): The errors. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 ([Error], none_type): The errors. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index b1d0b060..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 202f94ca..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 9bc51694..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 9d4f5f1f..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 1863d378..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py +++ /dev/null @@ -1,301 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class CommonError(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - """CommonError - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """CommonError - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_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 deleted file mode 100644 index 1a69509f..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 9c6e4f32..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 394f7ef2..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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',): { - 'None': None, - '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, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # 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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): The problem's category.. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 - instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 - title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace (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 - """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, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): The problem's category.. [optional] # noqa: E501 - code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 - instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 - title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 - detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 - source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 - stack_trace (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_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 deleted file mode 100644 index 91f51c29..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py +++ /dev/null @@ -1,301 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 403aa7c7..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 224366e5..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py deleted file mode 100644 index 581d17ce..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py +++ /dev/null @@ -1,340 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.template_variable_value import TemplateVariableValue - globals()['TemplateVariableValue'] = TemplateVariableValue - - -class Creative202207(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - }, - ('environments',): { - 'WEB': "Web", - 'MOBILE': "Mobile", - 'APP': "App", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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 - 'creative_format_type': (str,), # noqa: E501 - 'environments': ([str],), # 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 - '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, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 - """Creative202207 - a model defined in OpenAPI - - Args: - name (str): Name - status (str): Creative Status - retailer_id (int): Retailer Id - creative_format_type (str): Creative format type - environments ([str]): 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.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, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 - """Creative202207 - a model defined in OpenAPI - - Args: - name (str): Name - status (str): Creative Status - retailer_id (int): Retailer Id - creative_format_type (str): Creative format type - environments ([str]): 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.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_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 deleted file mode 100644 index 36207bd2..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_creative202207 import ResourceOfCreative202207 - globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfCreative202207'] = ResourceOfCreative202207 - - -class Creative202207Response(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ResourceOfCreative202207,), # 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 - """Creative202207Response - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (ResourceOfCreative202207): [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 - """Creative202207Response - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (ResourceOfCreative202207): [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_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 deleted file mode 100644 index 8fe19046..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py +++ /dev/null @@ -1,297 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 41cb521e..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py +++ /dev/null @@ -1,297 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index f8aba33c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.report_request import ReportRequest - globals()['ReportRequest'] = ReportRequest - - -class EnvelopeReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequest,), # 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 - """EnvelopeReportRequest - a model defined in OpenAPI - - Args: - data (ReportRequest): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportRequest - a model defined in OpenAPI - - Args: - data (ReportRequest): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_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 deleted file mode 100644 index d575cf10..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.report_status import ReportStatus - globals()['ReportStatus'] = ReportStatus - - -class EnvelopeReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatus,), # 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_2022-10/criteo_api_retailmedia_v2022_10/model/error.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py deleted file mode 100644 index b7e69053..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.map_string import MapString - globals()['MapString'] = MapString - - -class Error(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - 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, none_type,), # noqa: E501 - 'source': (MapString,), # noqa: E501 - 'stack_trace': ([str], none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'trace_id': 'traceId', # noqa: E501 - 'type': 'type', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - 'title': 'title', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 206b6802..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py +++ /dev/null @@ -1,322 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index d7e8d7b0..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py +++ /dev/null @@ -1,267 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 6873be4e..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py +++ /dev/null @@ -1,282 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index af41b978..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py +++ /dev/null @@ -1,366 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 7400524c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index d9ec7787..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py +++ /dev/null @@ -1,379 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class ExternalCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - }, - ('type',): { - 'UNKNOWN': "unknown", - 'AUCTION': "auction", - 'PREFERRED': "preferred", - }, - ('click_attribution_window',): { - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", - }, - ('view_attribution_window',): { - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", - }, - ('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 - '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 - '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 - '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 - '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, *args, **kwargs): # noqa: E501 - """ExternalCampaign - 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): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, *args, **kwargs): # noqa: E501 - """ExternalCampaign - 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): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index a61a117d..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py +++ /dev/null @@ -1,334 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class ExternalCampaignAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", - }, - ('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 - '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 - '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 - '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 - '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, *args, **kwargs): # noqa: E501 - """ExternalCampaignAttributes - 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,) - 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 - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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 - """ExternalCampaignAttributes - 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,) - 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 - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 2a0beca4..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py +++ /dev/null @@ -1,270 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 954efb5a..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py +++ /dev/null @@ -1,347 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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, none_type,), # 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, none_type): 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, none_type): 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_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 deleted file mode 100644 index 890c0a91..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py +++ /dev/null @@ -1,325 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class ExternalEditableCampaignAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", - }, - ('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 - 'click_attribution_window': (str,), # noqa: E501 - 'view_attribution_window': (str,), # noqa: E501 - 'budget': (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 - 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 - 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 - 'budget': 'budget', # 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, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 - """ExternalEditableCampaignAttributes - a model defined in OpenAPI - - Args: - name (str): - 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 - 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.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, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 - """ExternalEditableCampaignAttributes - a model defined in OpenAPI - - Args: - name (str): - 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 - 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.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_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 deleted file mode 100644 index d7fbe36a..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py +++ /dev/null @@ -1,274 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 8f9d9ead..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py +++ /dev/null @@ -1,280 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 3c33775f..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 70f87a8d..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index e65c8087..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.json_api_body_without_id_of_campaign_attributes_and_campaign import JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - globals()['JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign'] = JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - - -class ExternalPostCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign,), # 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 - """ExternalPostCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ExternalPostCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index c64367cc..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py +++ /dev/null @@ -1,373 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index bc8994eb..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign import JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - globals()['JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign'] = JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - - -class ExternalPutCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign,), # 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 - """ExternalPutCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ExternalPutCampaign - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index cba64265..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index d71311cc..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py +++ /dev/null @@ -1,263 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index c4b94e13..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 7dd5ad3b..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py +++ /dev/null @@ -1,271 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 8a4ccc8d..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py +++ /dev/null @@ -1,290 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 956fea49..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_campaign import ExternalCampaign - globals()['ExternalCampaign'] = ExternalCampaign - - -class JsonApiBodyWithIdOfInt64AndCampaignAndCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ExternalCampaign,), # 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 - """JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - 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 (ExternalCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - """JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - 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 (ExternalCampaign): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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_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 deleted file mode 100644 index fa56394a..00000000 --- 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 +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index f37c9cf6..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ /dev/null @@ -1,285 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 161fc36c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index a0aa0ae0..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - globals()['CommonError'] = CommonError - globals()['CommonWarning'] = CommonWarning - globals()['JsonApiBodyWithIdOfInt64AndCampaignAndCampaign'] = JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - globals()['PageMetadata'] = PageMetadata - - -class JsonApiPageResponseOfCampaign(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign],), # 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 - """JsonApiPageResponseOfCampaign - a model defined in OpenAPI - - Args: - data ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """JsonApiPageResponseOfCampaign - a model defined in OpenAPI - - Args: - data ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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_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 deleted file mode 100644 index db31ebb6..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py +++ /dev/null @@ -1,293 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index fdb8f155..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 95282ddd..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 2592c69a..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py +++ /dev/null @@ -1,259 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class MapString(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type 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 { - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 71edbf18..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index fae6e444..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 3bdf02d1..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 5d38519c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.report_request_attributes import ReportRequestAttributes - globals()['ReportRequestAttributes'] = ReportRequestAttributes - - -class ReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequestAttributes,), # 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, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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_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 deleted file mode 100644 index 176d691e..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class ReportRequestAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - 'KEYWORD': "keyword", - 'PAGETYPE': "pageType", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - ('format',): { - 'None': None, - 'CSV': "csv", - 'JSON': "json", - 'JSON-COMPACT': "json-compact", - 'JSON-NEWLINE': "json-newline", - }, - ('view_attribution_window',): { - 'None': None, - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 { - 'end_date': (date,), # noqa: E501 - 'report_type': (str,), # noqa: E501 - 'start_date': (date,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'format': (str, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'ids': ([str], none_type,), # noqa: E501 - 'revenue_type': (str, none_type,), # noqa: E501 - 'time_zone': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'end_date': 'endDate', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 - '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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index cf857814..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.report_status_attributes import ReportStatusAttributes - globals()['ReportStatusAttributes'] = ReportStatusAttributes - - -class ReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatusAttributes,), # 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.attributes = attributes - 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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_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 deleted file mode 100644 index b1ce28ef..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py +++ /dev/null @@ -1,299 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - - -class ReportStatusAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - 'created_at': (datetime, none_type,), # noqa: E501 - 'expires_at': (datetime, none_type,), # noqa: E501 - 'file_size_bytes': (int, none_type,), # noqa: E501 - 'md5_checksum': (str, none_type,), # noqa: E501 - 'message': (str, none_type,), # noqa: E501 - 'row_count': (int, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'status': 'status', # 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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - created_at (datetime, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - created_at (datetime, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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_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 deleted file mode 100644 index 1cf1eb7c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.creative202207 import Creative202207 - globals()['Creative202207'] = Creative202207 - - -class ResourceOfCreative202207(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (Creative202207,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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 - """ResourceOfCreative202207 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (Creative202207): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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 - """ResourceOfCreative202207 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (Creative202207): [optional] # noqa: E501 - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index 07b817a6..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index d87a759b..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index d7ba2c49..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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, none_type,), # noqa: E501 - 'type': (str, none_type,), # 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): 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_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 deleted file mode 100644 index 19311460..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py +++ /dev/null @@ -1,297 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/model/section.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py deleted file mode 100644 index a4864356..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 13ef4def..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index deb8b441..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/model/template.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py deleted file mode 100644 index a32cd14c..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py +++ /dev/null @@ -1,345 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index c5afdcca..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index c1f2e93b..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py +++ /dev/null @@ -1,310 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.choice_variable_specification import ChoiceVariableSpecification - from criteo_api_retailmedia_v2022_10.model.files_variables_specification import FilesVariablesSpecification - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 2b61aed5..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py +++ /dev/null @@ -1,303 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.choice_variable_value import ChoiceVariableValue - from criteo_api_retailmedia_v2022_10.model.color_variable_value import ColorVariableValue - from criteo_api_retailmedia_v2022_10.model.files_variable_value import FilesVariableValue - from criteo_api_retailmedia_v2022_10.model.hyperlink_variable_value import HyperlinkVariableValue - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index d345ab8f..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py +++ /dev/null @@ -1,269 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.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_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 deleted file mode 100644 index 94122fe6..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_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 deleted file mode 100644 index 82c039bd..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_v2022_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py deleted file mode 100644 index 94d11dee..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py +++ /dev/null @@ -1,2058 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2022-10 - 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_v2022_10.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_2022-10/criteo_api_retailmedia_v2022_10/models/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/models/__init__.py deleted file mode 100644 index 6783e54e..00000000 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/models/__init__.py +++ /dev/null @@ -1,156 +0,0 @@ -# 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_v2022_10.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) - -from criteo_api_retailmedia_v2022_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_10.model.application_summary_model import ApplicationSummaryModel -from criteo_api_retailmedia_v2022_10.model.application_summary_model_resource import ApplicationSummaryModelResource -from criteo_api_retailmedia_v2022_10.model.application_summary_model_response import ApplicationSummaryModelResponse -from criteo_api_retailmedia_v2022_10.model.asset import Asset -from criteo_api_retailmedia_v2022_10.model.asset_resource import AssetResource -from criteo_api_retailmedia_v2022_10.model.asset_response import AssetResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest -from criteo_api_retailmedia_v2022_10.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -from criteo_api_retailmedia_v2022_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_10.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_10.model.balance202110_paged_list_response import Balance202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.category202204 import Category202204 -from criteo_api_retailmedia_v2022_10.model.category202204_list_response import Category202204ListResponse -from criteo_api_retailmedia_v2022_10.model.choice_option import ChoiceOption -from criteo_api_retailmedia_v2022_10.model.choice_variable_specification import ChoiceVariableSpecification -from criteo_api_retailmedia_v2022_10.model.choice_variable_value import ChoiceVariableValue -from criteo_api_retailmedia_v2022_10.model.color_variable_value import ColorVariableValue -from criteo_api_retailmedia_v2022_10.model.common_error import CommonError -from criteo_api_retailmedia_v2022_10.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse -from criteo_api_retailmedia_v2022_10.model.common_line_item_response import CommonLineItemResponse -from criteo_api_retailmedia_v2022_10.model.common_problem import CommonProblem -from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience import CreateRetailMediaAudience -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_10.model.creative202110 import Creative202110 -from criteo_api_retailmedia_v2022_10.model.creative202110_list_response import Creative202110ListResponse -from criteo_api_retailmedia_v2022_10.model.creative202207 import Creative202207 -from criteo_api_retailmedia_v2022_10.model.creative202207_response import Creative202207Response -from criteo_api_retailmedia_v2022_10.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_10.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_10.model.customer_list_details import CustomerListDetails -from criteo_api_retailmedia_v2022_10.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2022_10.model.error import Error -from criteo_api_retailmedia_v2022_10.model.external_account import ExternalAccount -from criteo_api_retailmedia_v2022_10.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 -from criteo_api_retailmedia_v2022_10.model.external_auction_line_item import ExternalAuctionLineItem -from criteo_api_retailmedia_v2022_10.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel -from criteo_api_retailmedia_v2022_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel -from criteo_api_retailmedia_v2022_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.external_audience_target202110 import ExternalAudienceTarget202110 -from criteo_api_retailmedia_v2022_10.model.external_balance202110 import ExternalBalance202110 -from criteo_api_retailmedia_v2022_10.model.external_brand import ExternalBrand -from criteo_api_retailmedia_v2022_10.model.external_campaign import ExternalCampaign -from criteo_api_retailmedia_v2022_10.model.external_campaign_attributes import ExternalCampaignAttributes -from criteo_api_retailmedia_v2022_10.model.external_catalog_request import ExternalCatalogRequest -from criteo_api_retailmedia_v2022_10.model.external_catalog_status import ExternalCatalogStatus -from criteo_api_retailmedia_v2022_10.model.external_common_line_item import ExternalCommonLineItem -from criteo_api_retailmedia_v2022_10.model.external_editable_campaign_attributes import ExternalEditableCampaignAttributes -from criteo_api_retailmedia_v2022_10.model.external_keyword_target202110 import ExternalKeywordTarget202110 -from criteo_api_retailmedia_v2022_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 -from criteo_api_retailmedia_v2022_10.model.external_line_item_page202110 import ExternalLineItemPage202110 -from criteo_api_retailmedia_v2022_10.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 -from criteo_api_retailmedia_v2022_10.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_10.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 -from criteo_api_retailmedia_v2022_10.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 -from criteo_api_retailmedia_v2022_10.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.external_promoted_product202110 import ExternalPromotedProduct202110 -from criteo_api_retailmedia_v2022_10.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_10.model.external_retailer import ExternalRetailer -from criteo_api_retailmedia_v2022_10.model.external_retailer_pages202110 import ExternalRetailerPages202110 -from criteo_api_retailmedia_v2022_10.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.external_store_target202110 import ExternalStoreTarget202110 -from criteo_api_retailmedia_v2022_10.model.files_variable_value import FilesVariableValue -from criteo_api_retailmedia_v2022_10.model.files_variables_specification import FilesVariablesSpecification -from criteo_api_retailmedia_v2022_10.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse -from criteo_api_retailmedia_v2022_10.model.hyperlink_variable_value import HyperlinkVariableValue -from criteo_api_retailmedia_v2022_10.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel -from criteo_api_retailmedia_v2022_10.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign import JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus -from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer -from criteo_api_retailmedia_v2022_10.model.json_api_body_without_id_of_campaign_attributes_and_campaign import JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer -from criteo_api_retailmedia_v2022_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_response import KeywordTarget202110Response -from criteo_api_retailmedia_v2022_10.model.map_string import MapString -from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.report_request import ReportRequest -from criteo_api_retailmedia_v2022_10.model.report_request_attributes import ReportRequestAttributes -from criteo_api_retailmedia_v2022_10.model.report_status import ReportStatus -from criteo_api_retailmedia_v2022_10.model.report_status_attributes import ReportStatusAttributes -from criteo_api_retailmedia_v2022_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem -from criteo_api_retailmedia_v2022_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel -from criteo_api_retailmedia_v2022_10.model.resource_of_balance202110 import ResourceOfBalance202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_category202204 import ResourceOfCategory202204 -from criteo_api_retailmedia_v2022_10.model.resource_of_common_line_item import ResourceOfCommonLineItem -from criteo_api_retailmedia_v2022_10.model.resource_of_creative202110 import ResourceOfCreative202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_creative202207 import ResourceOfCreative202207 -from criteo_api_retailmedia_v2022_10.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 -from criteo_api_retailmedia_v2022_10.model.resource_of_template import ResourceOfTemplate -from criteo_api_retailmedia_v2022_10.model.retail_media_audience import RetailMediaAudience -from criteo_api_retailmedia_v2022_10.model.retail_media_audience_attributes import RetailMediaAudienceAttributes -from criteo_api_retailmedia_v2022_10.model.section import Section -from criteo_api_retailmedia_v2022_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.store_target202110_request import StoreTarget202110Request -from criteo_api_retailmedia_v2022_10.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_10.model.template import Template -from criteo_api_retailmedia_v2022_10.model.template_list_response import TemplateListResponse -from criteo_api_retailmedia_v2022_10.model.template_response import TemplateResponse -from criteo_api_retailmedia_v2022_10.model.template_variable import TemplateVariable -from criteo_api_retailmedia_v2022_10.model.template_variable_value import TemplateVariableValue -from criteo_api_retailmedia_v2022_10.model.text_variable_specification import TextVariableSpecification -from criteo_api_retailmedia_v2022_10.model.text_variable_value import TextVariableValue -from criteo_api_retailmedia_v2022_10.model.user_behavior_details import UserBehaviorDetails -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 -from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 diff --git a/sdks/retailmedia_2022-10/docs/AddToBasketIdsUpdateModel202110Request.md b/sdks/retailmedia_2022-10/docs/AddToBasketIdsUpdateModel202110Request.md deleted file mode 100644 index bda7e641..00000000 --- a/sdks/retailmedia_2022-10/docs/AddToBasketIdsUpdateModel202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/AddToBasketTarget202110Request.md b/sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Request.md deleted file mode 100644 index a3e68f2a..00000000 --- a/sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/AddToBasketTarget202110Response.md b/sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Response.md deleted file mode 100644 index e8853087..00000000 --- a/sdks/retailmedia_2022-10/docs/AddToBasketTarget202110Response.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/AnalyticsApi.md b/sdks/retailmedia_2022-10/docs/AnalyticsApi.md deleted file mode 100644 index 09962684..00000000 --- a/sdks/retailmedia_2022-10/docs/AnalyticsApi.md +++ /dev/null @@ -1,399 +0,0 @@ -# criteo_api_retailmedia_v2022_10.AnalyticsApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_report_output**](AnalyticsApi.md#get_report_output) | **GET** /2022-10/retail-media/reports/{reportId}/output | -[**get_report_status**](AnalyticsApi.md#get_report_status) | **GET** /2022-10/retail-media/reports/{reportId}/status | -[**request_campaign_report**](AnalyticsApi.md#request_campaign_report) | **POST** /2022-10/retail-media/reports/campaigns | -[**request_line_item_report**](AnalyticsApi.md#request_line_item_report) | **POST** /2022-10/retail-media/reports/line-items | - - -# **get_report_output** -> str get_report_output(report_id) - - - -Request the report output - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import analytics_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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "reportId_example" # str | report id - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_report_output(report_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_output: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | - -### Return type - -**str** - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - - -### 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 | - | - -[[Back to top]](#) [[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) - - - -Get the status of the report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import analytics_api -from criteo_api_retailmedia_v2022_10.model.envelope_report_status import EnvelopeReportStatus -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "reportId_example" # str | report id - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_report_status(report_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_status: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | -**404** | ReportId 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) - -# **request_campaign_report** -> EnvelopeReportStatus request_campaign_report(envelope_report_request) - - - -Request a campaign report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import analytics_api -from criteo_api_retailmedia_v2022_10.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_status import EnvelopeReportStatus -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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", - ], - 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 | Envelope of the request - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.request_campaign_report(envelope_report_request) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling AnalyticsApi->request_campaign_report: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | - -[[Back to top]](#) [[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) - - - -Request a line item report - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import analytics_api -from criteo_api_retailmedia_v2022_10.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_status import EnvelopeReportStatus -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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", - ], - 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 | Envelope of the request - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.request_line_item_report(envelope_report_request) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling AnalyticsApi->request_line_item_report: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | - -### Return type - -[**EnvelopeReportStatus**](EnvelopeReportStatus.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** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | - -[[Back to top]](#) [[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_2022-10/docs/ApplicationSummaryModel.md b/sdks/retailmedia_2022-10/docs/ApplicationSummaryModel.md deleted file mode 100644 index 0a49cec3..00000000 --- a/sdks/retailmedia_2022-10/docs/ApplicationSummaryModel.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApplicationSummaryModel - -Model of ApplicationSummary - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**application_id** | **int, none_type** | | [optional] -**name** | **str, none_type** | | [optional] -**organization_id** | **int, none_type** | | [optional] -**description** | **str, none_type** | | [optional] -**criteo_service** | **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_2022-10/docs/AuctionLineItemCreateModelRequest.md b/sdks/retailmedia_2022-10/docs/AuctionLineItemCreateModelRequest.md deleted file mode 100644 index 76a6ec3f..00000000 --- a/sdks/retailmedia_2022-10/docs/AuctionLineItemCreateModelRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/AuctionLineItemPagedListResponse.md b/sdks/retailmedia_2022-10/docs/AuctionLineItemPagedListResponse.md deleted file mode 100644 index ee2fe577..00000000 --- a/sdks/retailmedia_2022-10/docs/AuctionLineItemPagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/AuctionLineItemResponse.md b/sdks/retailmedia_2022-10/docs/AuctionLineItemResponse.md deleted file mode 100644 index b2df751f..00000000 --- a/sdks/retailmedia_2022-10/docs/AuctionLineItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/AudienceApi.md b/sdks/retailmedia_2022-10/docs/AudienceApi.md deleted file mode 100644 index 3263f576..00000000 --- a/sdks/retailmedia_2022-10/docs/AudienceApi.md +++ /dev/null @@ -1,222 +0,0 @@ -# criteo_api_retailmedia_v2022_10.AudienceApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_audience**](AudienceApi.md#create_audience) | **POST** /2022-10/retail-media/accounts/{accountId}/audiences | -[**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /2022-10/retail-media/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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import audience_api -from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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) - -# **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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import audience_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_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 | 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_v2022_10.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_v2022_10.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) - diff --git a/sdks/retailmedia_2022-10/docs/AudienceIdsUpdateModel202110Request.md b/sdks/retailmedia_2022-10/docs/AudienceIdsUpdateModel202110Request.md deleted file mode 100644 index d39c5830..00000000 --- a/sdks/retailmedia_2022-10/docs/AudienceIdsUpdateModel202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/AudienceTarget202110Request.md b/sdks/retailmedia_2022-10/docs/AudienceTarget202110Request.md deleted file mode 100644 index 26a5230f..00000000 --- a/sdks/retailmedia_2022-10/docs/AudienceTarget202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/AudienceTarget202110Response.md b/sdks/retailmedia_2022-10/docs/AudienceTarget202110Response.md deleted file mode 100644 index 06a1dea2..00000000 --- a/sdks/retailmedia_2022-10/docs/AudienceTarget202110Response.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/Balance202110PagedListResponse.md b/sdks/retailmedia_2022-10/docs/Balance202110PagedListResponse.md deleted file mode 100644 index 880c26b5..00000000 --- a/sdks/retailmedia_2022-10/docs/Balance202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/BalanceCampaign202110ListRequest.md b/sdks/retailmedia_2022-10/docs/BalanceCampaign202110ListRequest.md deleted file mode 100644 index 9f2ae1aa..00000000 --- a/sdks/retailmedia_2022-10/docs/BalanceCampaign202110ListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/BalanceCampaign202110PagedListResponse.md b/sdks/retailmedia_2022-10/docs/BalanceCampaign202110PagedListResponse.md deleted file mode 100644 index a8574f99..00000000 --- a/sdks/retailmedia_2022-10/docs/BalanceCampaign202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/CampaignApi.md b/sdks/retailmedia_2022-10/docs/CampaignApi.md deleted file mode 100644 index 0cc57dd4..00000000 --- a/sdks/retailmedia_2022-10/docs/CampaignApi.md +++ /dev/null @@ -1,5434 +0,0 @@ -# criteo_api_retailmedia_v2022_10.CampaignApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_asset**](CampaignApi.md#create_asset) | **POST** /2022-10/retail-media/assets | -[**get_api202110_external_account_balances_by_account_id**](CampaignApi.md#get_api202110_external_account_balances_by_account_id) | **GET** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/retail-media/retailers/{retailerId}/pages | -[**get_api202204_external_categorie_by_category_id**](CampaignApi.md#get_api202204_external_categorie_by_category_id) | **GET** /2022-10/retail-media/categories/{categoryId} | -[**get_api202204_external_categories**](CampaignApi.md#get_api202204_external_categories) | **GET** /2022-10/retail-media/categories | -[**get_api202207_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202207_external_account_by_account_id_creativescreative_id) | **GET** /2022-10/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2022-10/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** /2022-10/retail-media/retailers/{retailer-id}/templates | -[**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2022-10/retail-media/accounts/{accountId}/brands | -[**get_api_v1_external_account_campaigns_by_account_id**](CampaignApi.md#get_api_v1_external_account_campaigns_by_account_id) | **GET** /2022-10/retail-media/accounts/{accountId}/campaigns | -[**get_api_v1_external_account_retailers_by_account_id**](CampaignApi.md#get_api_v1_external_account_retailers_by_account_id) | **GET** /2022-10/retail-media/accounts/{accountId}/retailers | -[**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /2022-10/retail-media/accounts | -[**get_api_v1_external_campaign_by_campaign_id**](CampaignApi.md#get_api_v1_external_campaign_by_campaign_id) | **GET** /2022-10/retail-media/campaigns/{campaignId} | -[**get_api_v1_external_catalog_output_by_catalog_id**](CampaignApi.md#get_api_v1_external_catalog_output_by_catalog_id) | **GET** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | -[**post_api202207_external_account_creatives_by_account_id**](CampaignApi.md#post_api202207_external_account_creatives_by_account_id) | **POST** /2022-10/retail-media/accounts/{account-id}/creatives | -[**post_api_v1_external_account_campaigns_by_account_id**](CampaignApi.md#post_api_v1_external_account_campaigns_by_account_id) | **POST** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/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** /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores | -[**put_api202207_external_account_by_account_id_creativescreative_id**](CampaignApi.md#put_api202207_external_account_by_account_id_creativescreative_id) | **PUT** /2022-10/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**put_api_v1_external_campaign_by_campaign_id**](CampaignApi.md#put_api_v1_external_campaign_by_campaign_id) | **PUT** /2022-10/retail-media/campaigns/{campaignId} | -[**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** /2022-10/retail-media/auction-line-items/{line-item-id} | - - -# **create_asset** -> AssetResponse create_asset(asset_file) - - - -Creates an asset - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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) - -# **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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_account_by_account_id_creativescreative_id** -> Creative202207Response get_api202207_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.creative202207_response import Creative202207Response -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->get_api202207_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 - -[**Creative202207Response**](Creative202207Response.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_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_campaigns_by_account_id** -> JsonApiPageResponseOfCampaign get_api_v1_external_account_campaigns_by_account_id(account_id) - - - -Gets page of campaign objects for the given account id - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_campaigns_by_account_id(account_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_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_api_v1_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_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_campaigns_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 - -[**JsonApiPageResponseOfCampaign**](JsonApiPageResponseOfCampaign.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_campaign_by_campaign_id** -> JsonApiSingleResponseOfCampaign get_api_v1_external_campaign_by_campaign_id(campaign_id) - - - -Gets the campaign for the given campaign id - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaignId_example" # str | The given campaign id - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_api_v1_external_campaign_by_campaign_id(campaign_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_campaign_by_campaign_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | - -### Return type - -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.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_v2022_10 -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_api202207_external_account_creatives_by_account_id** -> Creative202207Response post_api202207_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_10.model.creative202207_response import Creative202207Response -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_api202207_external_account_creatives_by_account_id(account_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->post_api202207_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_api202207_external_account_creatives_by_account_id(account_id, creative_create_model202207=creative_create_model202207) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->post_api202207_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 - -[**Creative202207Response**](Creative202207Response.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_api_v1_external_account_campaigns_by_account_id** -> JsonApiSingleResponseOfCampaign post_api_v1_external_account_campaigns_by_account_id(account_id) - - - -Creates a new campaign with the specified settings - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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 - external_post_campaign = ExternalPostCampaign( - data=JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign( - type="type_example", - attributes=ExternalCampaignAttributes( - type="auction", - drawable_balance_ids=[ - "drawable_balance_ids_example", - ], - click_attribution_window="30D", - view_attribution_window="none", - name="name_example", - budget=3.14, - click_attribution_scope="unknown", - view_attribution_scope="unknown", - ), - ), - ) # ExternalPostCampaign | The campaign settings to create a campaign with (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api_v1_external_account_campaigns_by_account_id(account_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_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_api_v1_external_account_campaigns_by_account_id(account_id, external_post_campaign=external_post_campaign) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_external_account_campaigns_by_account_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The given account id | - **external_post_campaign** | [**ExternalPostCampaign**](ExternalPostCampaign.md)| The campaign settings to create a campaign with | [optional] - -### Return type - -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.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 | - | -**200** | OK | - | - -[[Back to top]](#) [[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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.store_target202110_request import StoreTarget202110Request -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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_api202207_external_account_by_account_id_creativescreative_id** -> Creative202207Response put_api202207_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_10.model.creative202207_response import Creative202207Response -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->put_api202207_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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id, creative_update_model202207=creative_update_model202207) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->put_api202207_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 - -[**Creative202207Response**](Creative202207Response.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_api_v1_external_campaign_by_campaign_id** -> JsonApiSingleResponseOfCampaign put_api_v1_external_campaign_by_campaign_id(campaign_id) - - - -Updates the campaign for the given campaign id - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaignId_example" # str | The given campaign id - external_put_campaign = ExternalPutCampaign( - data=JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign( - id="id_example", - type="type_example", - attributes=ExternalEditableCampaignAttributes( - name="name_example", - budget=3.14, - click_attribution_window="7D", - view_attribution_window="none", - click_attribution_scope="unknown", - view_attribution_scope="unknown", - ), - ), - ) # ExternalPutCampaign | The campaign settings to update that campaign with (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.put_api_v1_external_campaign_by_campaign_id(campaign_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->put_api_v1_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_api_v1_external_campaign_by_campaign_id(campaign_id, external_put_campaign=external_put_campaign) - pprint(api_response) - except criteo_api_retailmedia_v2022_10.ApiException as e: - print("Exception when calling CampaignApi->put_api_v1_external_campaign_by_campaign_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | - **external_put_campaign** | [**ExternalPutCampaign**](ExternalPutCampaign.md)| The campaign settings to update that campaign with | [optional] - -### Return type - -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.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_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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import campaign_api -from criteo_api_retailmedia_v2022_10.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_v2022_10.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) - diff --git a/sdks/retailmedia_2022-10/docs/Category202204.md b/sdks/retailmedia_2022-10/docs/Category202204.md deleted file mode 100644 index b0bb5b4a..00000000 --- a/sdks/retailmedia_2022-10/docs/Category202204.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/Category202204ListResponse.md b/sdks/retailmedia_2022-10/docs/Category202204ListResponse.md deleted file mode 100644 index 08b924d5..00000000 --- a/sdks/retailmedia_2022-10/docs/Category202204ListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/ChoiceOption.md b/sdks/retailmedia_2022-10/docs/ChoiceOption.md deleted file mode 100644 index 82b0e020..00000000 --- a/sdks/retailmedia_2022-10/docs/ChoiceOption.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ChoiceVariableSpecification.md b/sdks/retailmedia_2022-10/docs/ChoiceVariableSpecification.md deleted file mode 100644 index f0e876f8..00000000 --- a/sdks/retailmedia_2022-10/docs/ChoiceVariableSpecification.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/ChoiceVariableValue.md b/sdks/retailmedia_2022-10/docs/ChoiceVariableValue.md deleted file mode 100644 index 182abe3e..00000000 --- a/sdks/retailmedia_2022-10/docs/ChoiceVariableValue.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ColorVariableValue.md b/sdks/retailmedia_2022-10/docs/ColorVariableValue.md deleted file mode 100644 index b8eb6e74..00000000 --- a/sdks/retailmedia_2022-10/docs/ColorVariableValue.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/CommonError.md b/sdks/retailmedia_2022-10/docs/CommonError.md deleted file mode 100644 index 2d60f5b2..00000000 --- a/sdks/retailmedia_2022-10/docs/CommonError.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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_2022-10/docs/CommonLineItemPagedListResponse.md b/sdks/retailmedia_2022-10/docs/CommonLineItemPagedListResponse.md deleted file mode 100644 index 799bc1f8..00000000 --- a/sdks/retailmedia_2022-10/docs/CommonLineItemPagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/CommonLineItemResponse.md b/sdks/retailmedia_2022-10/docs/CommonLineItemResponse.md deleted file mode 100644 index 8eeca190..00000000 --- a/sdks/retailmedia_2022-10/docs/CommonLineItemResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/CommonProblem.md b/sdks/retailmedia_2022-10/docs/CommonProblem.md deleted file mode 100644 index 5b689dd4..00000000 --- a/sdks/retailmedia_2022-10/docs/CommonProblem.md +++ /dev/null @@ -1,21 +0,0 @@ -# CommonProblem - -Common problem object. Can be specialized as needed. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] -**trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | The problem's category. | [optional] -**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] -**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] -**title** | **str, none_type** | A short human-readable description of the problem type | [optional] -**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] -**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] -**stack_trace** | **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_2022-10/docs/CommonWarning.md b/sdks/retailmedia_2022-10/docs/CommonWarning.md deleted file mode 100644 index dfe9eb21..00000000 --- a/sdks/retailmedia_2022-10/docs/CommonWarning.md +++ /dev/null @@ -1,20 +0,0 @@ -# CommonWarning - -A JSON:API Base common warning - -## 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_2022-10/docs/CreateRetailMediaAudience.md b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudience.md deleted file mode 100644 index b7c5ada9..00000000 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudience.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/CreateRetailMediaAudienceBody.md b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceBody.md deleted file mode 100644 index bab4473a..00000000 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceBody.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/CreateRetailMediaAudienceRequest.md b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceRequest.md deleted file mode 100644 index 8afcf915..00000000 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/CreateRetailMediaAudienceResponse.md b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceResponse.md deleted file mode 100644 index 66346fd7..00000000 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateRetailMediaAudienceResponse - -Response of CreateAudienceRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CreateRetailMediaAudience**](CreateRetailMediaAudience.md) | | [optional] -**errors** | [**[CommonError], none_type**](CommonError.md) | errors | [optional] [readonly] -**warnings** | [**[CommonWarning], none_type**](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_2022-10/docs/Creative202110.md b/sdks/retailmedia_2022-10/docs/Creative202110.md deleted file mode 100644 index 8517959b..00000000 --- a/sdks/retailmedia_2022-10/docs/Creative202110.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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_2022-10/docs/Creative202207.md b/sdks/retailmedia_2022-10/docs/Creative202207.md deleted file mode 100644 index 013a42d3..00000000 --- a/sdks/retailmedia_2022-10/docs/Creative202207.md +++ /dev/null @@ -1,21 +0,0 @@ -# Creative202207 - -A creative entity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name | -**status** | **str** | Creative Status | -**retailer_id** | **int** | Retailer Id | -**creative_format_type** | **str** | Creative format type | -**environments** | **[str]** | 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_2022-10/docs/CreativeCreateModel202207.md b/sdks/retailmedia_2022-10/docs/CreativeCreateModel202207.md deleted file mode 100644 index 09881dc5..00000000 --- a/sdks/retailmedia_2022-10/docs/CreativeCreateModel202207.md +++ /dev/null @@ -1,17 +0,0 @@ -# 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_2022-10/docs/CreativeUpdateModel202207.md b/sdks/retailmedia_2022-10/docs/CreativeUpdateModel202207.md deleted file mode 100644 index bcee4a2f..00000000 --- a/sdks/retailmedia_2022-10/docs/CreativeUpdateModel202207.md +++ /dev/null @@ -1,17 +0,0 @@ -# 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_2022-10/docs/CustomerListDetails.md b/sdks/retailmedia_2022-10/docs/CustomerListDetails.md deleted file mode 100644 index bbd5318f..00000000 --- a/sdks/retailmedia_2022-10/docs/CustomerListDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/EnvelopeReportRequest.md b/sdks/retailmedia_2022-10/docs/EnvelopeReportRequest.md deleted file mode 100644 index 1c864080..00000000 --- a/sdks/retailmedia_2022-10/docs/EnvelopeReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# EnvelopeReportRequest - -Standard response envelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReportRequest**](ReportRequest.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_2022-10/docs/EnvelopeReportStatus.md b/sdks/retailmedia_2022-10/docs/EnvelopeReportStatus.md deleted file mode 100644 index 6bb4f128..00000000 --- a/sdks/retailmedia_2022-10/docs/EnvelopeReportStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# EnvelopeReportStatus - -Standard response envelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReportStatus**](ReportStatus.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_2022-10/docs/Error.md b/sdks/retailmedia_2022-10/docs/Error.md deleted file mode 100644 index 01e79f5a..00000000 --- a/sdks/retailmedia_2022-10/docs/Error.md +++ /dev/null @@ -1,20 +0,0 @@ -# Error - -Error - -## 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, none_type** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | [**MapString**](MapString.md) | | [optional] -**stack_trace** | **[str], none_type** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem 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_2022-10/docs/ExternalAccount.md b/sdks/retailmedia_2022-10/docs/ExternalAccount.md deleted file mode 100644 index fafe7da3..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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_2022-10/docs/ExternalAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ExternalAddToBasketIdsUpdateModel202110.md deleted file mode 100644 index f66b04db..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAddToBasketIdsUpdateModel202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ExternalAddToBasketTarget202110.md b/sdks/retailmedia_2022-10/docs/ExternalAddToBasketTarget202110.md deleted file mode 100644 index 60760ecd..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAddToBasketTarget202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/ExternalAuctionLineItem.md b/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItem.md deleted file mode 100644 index 5b162b00..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItem.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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, none_type** | 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_2022-10/docs/ExternalAuctionLineItemCreateModel.md b/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemCreateModel.md deleted file mode 100644 index 8ef7cb09..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemCreateModel.md +++ /dev/null @@ -1,24 +0,0 @@ -# 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, none_type** | 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_2022-10/docs/ExternalAuctionLineItemUpdateModel.md b/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemUpdateModel.md deleted file mode 100644 index ed5c2204..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAuctionLineItemUpdateModel.md +++ /dev/null @@ -1,23 +0,0 @@ -# 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, none_type** | 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_2022-10/docs/ExternalAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ExternalAudienceIdsUpdateModel202110.md deleted file mode 100644 index 07de155f..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAudienceIdsUpdateModel202110.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ExternalAudienceTarget202110.md b/sdks/retailmedia_2022-10/docs/ExternalAudienceTarget202110.md deleted file mode 100644 index 8d3374e2..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalAudienceTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ExternalBalance202110.md b/sdks/retailmedia_2022-10/docs/ExternalBalance202110.md deleted file mode 100644 index 77ad10c5..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalBalance202110.md +++ /dev/null @@ -1,23 +0,0 @@ -# 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_2022-10/docs/ExternalBrand.md b/sdks/retailmedia_2022-10/docs/ExternalBrand.md deleted file mode 100644 index 633053c9..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalBrand.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ExternalCampaignAttributes.md b/sdks/retailmedia_2022-10/docs/ExternalCampaignAttributes.md deleted file mode 100644 index fccc0b24..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalCampaignAttributes.md +++ /dev/null @@ -1,20 +0,0 @@ -# ExternalCampaignAttributes - -An object that represents the available options to set when creating a Retail Media Campaign - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**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] -**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_2022-10/docs/ExternalCatalogRequest.md b/sdks/retailmedia_2022-10/docs/ExternalCatalogRequest.md deleted file mode 100644 index ac2a5b4f..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalCatalogRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ExternalCatalogStatus.md b/sdks/retailmedia_2022-10/docs/ExternalCatalogStatus.md deleted file mode 100644 index ba111d84..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalCatalogStatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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_2022-10/docs/ExternalCommonLineItem.md b/sdks/retailmedia_2022-10/docs/ExternalCommonLineItem.md deleted file mode 100644 index 22051881..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalCommonLineItem.md +++ /dev/null @@ -1,24 +0,0 @@ -# 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, none_type** | 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_2022-10/docs/ExternalEditableCampaignAttributes.md b/sdks/retailmedia_2022-10/docs/ExternalEditableCampaignAttributes.md deleted file mode 100644 index 348b89ee..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalEditableCampaignAttributes.md +++ /dev/null @@ -1,18 +0,0 @@ -# ExternalEditableCampaignAttributes - -An object that represents the available options to set when editing a Retail Media Campaign - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**click_attribution_window** | **str** | | -**view_attribution_window** | **str** | | -**budget** | **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_2022-10/docs/ExternalKeywordTarget202110.md b/sdks/retailmedia_2022-10/docs/ExternalKeywordTarget202110.md deleted file mode 100644 index 73407912..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalKeywordTarget202110.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ExternalLineItemPage202110.md b/sdks/retailmedia_2022-10/docs/ExternalLineItemPage202110.md deleted file mode 100644 index e984d215..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalLineItemPage202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/ExternalLineItemPageCategory202110.md b/sdks/retailmedia_2022-10/docs/ExternalLineItemPageCategory202110.md deleted file mode 100644 index a45a3c75..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalLineItemPageCategory202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ExternalPreferredLineItem202110.md b/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItem202110.md deleted file mode 100644 index b87bb5d2..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItem202110.md +++ /dev/null @@ -1,27 +0,0 @@ -# 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_2022-10/docs/ExternalPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemCreateModel202110.md deleted file mode 100644 index f814c7d9..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemCreateModel202110.md +++ /dev/null @@ -1,22 +0,0 @@ -# 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_2022-10/docs/ExternalPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemUpdateModel202110.md deleted file mode 100644 index 79e0a6bc..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalPreferredLineItemUpdateModel202110.md +++ /dev/null @@ -1,21 +0,0 @@ -# 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_2022-10/docs/ExternalPromotedProduct202110.md b/sdks/retailmedia_2022-10/docs/ExternalPromotedProduct202110.md deleted file mode 100644 index 60819fac..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalPromotedProduct202110.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ExternalPutCampaign.md b/sdks/retailmedia_2022-10/docs/ExternalPutCampaign.md deleted file mode 100644 index e9cc5c51..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalPutCampaign.md +++ /dev/null @@ -1,13 +0,0 @@ -# ExternalPutCampaign - -An object that represents the available options to set when editing a Retail Media Campaign - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign**](JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.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_2022-10/docs/ExternalRetailer.md b/sdks/retailmedia_2022-10/docs/ExternalRetailer.md deleted file mode 100644 index 992d7ff9..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalRetailer.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ExternalStoreIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ExternalStoreIdsUpdateModel202110.md deleted file mode 100644 index 12c3279d..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalStoreIdsUpdateModel202110.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ExternalStoreTarget202110.md b/sdks/retailmedia_2022-10/docs/ExternalStoreTarget202110.md deleted file mode 100644 index ea6d4bfd..00000000 --- a/sdks/retailmedia_2022-10/docs/ExternalStoreTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/FilesVariableValue.md b/sdks/retailmedia_2022-10/docs/FilesVariableValue.md deleted file mode 100644 index ed5ebecb..00000000 --- a/sdks/retailmedia_2022-10/docs/FilesVariableValue.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/FilesVariablesSpecification.md b/sdks/retailmedia_2022-10/docs/FilesVariablesSpecification.md deleted file mode 100644 index 9c879487..00000000 --- a/sdks/retailmedia_2022-10/docs/FilesVariablesSpecification.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/GatewayApi.md b/sdks/retailmedia_2022-10/docs/GatewayApi.md deleted file mode 100644 index 7ae6fbd1..00000000 --- a/sdks/retailmedia_2022-10/docs/GatewayApi.md +++ /dev/null @@ -1,90 +0,0 @@ -# criteo_api_retailmedia_v2022_10.GatewayApi - -All URIs are relative to *https://api.criteo.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2022-10/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_v2022_10 -from criteo_api_retailmedia_v2022_10.api import gateway_api -from criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_10.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_v2022_10.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_v2022_10.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_2022-10/docs/HyperlinkVariableValue.md b/sdks/retailmedia_2022-10/docs/HyperlinkVariableValue.md deleted file mode 100644 index a2f66734..00000000 --- a/sdks/retailmedia_2022-10/docs/HyperlinkVariableValue.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/InputResourceOfAuctionLineItemCreateModel.md b/sdks/retailmedia_2022-10/docs/InputResourceOfAuctionLineItemCreateModel.md deleted file mode 100644 index de9022b7..00000000 --- a/sdks/retailmedia_2022-10/docs/InputResourceOfAuctionLineItemCreateModel.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2022-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md deleted file mode 100644 index 0d79549a..00000000 --- a/sdks/retailmedia_2022-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md b/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md deleted file mode 100644 index d3c04ec5..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md +++ /dev/null @@ -1,15 +0,0 @@ -# JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - -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** | [**ExternalCampaign**](ExternalCampaign.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_2022-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md b/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md deleted file mode 100644 index 1e9fab40..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md b/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md deleted file mode 100644 index 8c950172..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md b/sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md deleted file mode 100644 index f7e20d9d..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md +++ /dev/null @@ -1,14 +0,0 @@ -# JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - -A JSON:API wrapper class to format a with Type, and Attributes properties - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**ExternalCampaignAttributes**](ExternalCampaignAttributes.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_2022-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md b/sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md deleted file mode 100644 index ad0394fa..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/JsonApiPageResponseOfAccount.md b/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfAccount.md deleted file mode 100644 index 25de04ad..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfAccount.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/JsonApiPageResponseOfCampaign.md b/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfCampaign.md deleted file mode 100644 index 08884464..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfCampaign.md +++ /dev/null @@ -1,16 +0,0 @@ -# JsonApiPageResponseOfCampaign - -A wrapper class to return a single page of with metadata - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]**](JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.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_2022-10/docs/JsonApiPageResponseOfRetailer.md b/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfRetailer.md deleted file mode 100644 index 21a0916d..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfRetailer.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/JsonApiRequestOfCatalogRequest.md b/sdks/retailmedia_2022-10/docs/JsonApiRequestOfCatalogRequest.md deleted file mode 100644 index 494288aa..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiRequestOfCatalogRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/JsonApiSingleResponseOfCampaign.md b/sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCampaign.md deleted file mode 100644 index f8e26ee2..00000000 --- a/sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCampaign.md +++ /dev/null @@ -1,15 +0,0 @@ -# JsonApiSingleResponseOfCampaign - -A JSON:API wrapper class to add one JSON:API within a data property - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithIdOfInt64AndCampaignAndCampaign**](JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.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_2022-10/docs/KeywordTarget202110Request.md b/sdks/retailmedia_2022-10/docs/KeywordTarget202110Request.md deleted file mode 100644 index b263c3bd..00000000 --- a/sdks/retailmedia_2022-10/docs/KeywordTarget202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/KeywordTarget202110Response.md b/sdks/retailmedia_2022-10/docs/KeywordTarget202110Response.md deleted file mode 100644 index 64e93302..00000000 --- a/sdks/retailmedia_2022-10/docs/KeywordTarget202110Response.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/MapString.md b/sdks/retailmedia_2022-10/docs/MapString.md deleted file mode 100644 index c73c2ae8..00000000 --- a/sdks/retailmedia_2022-10/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_2022-10/docs/PageMetadata.md b/sdks/retailmedia_2022-10/docs/PageMetadata.md deleted file mode 100644 index 2967c18a..00000000 --- a/sdks/retailmedia_2022-10/docs/PageMetadata.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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_2022-10/docs/PreferredLineItem202110PagedListResponse.md b/sdks/retailmedia_2022-10/docs/PreferredLineItem202110PagedListResponse.md deleted file mode 100644 index ed58a293..00000000 --- a/sdks/retailmedia_2022-10/docs/PreferredLineItem202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/PreferredLineItem202110Response.md b/sdks/retailmedia_2022-10/docs/PreferredLineItem202110Response.md deleted file mode 100644 index 0046cd8c..00000000 --- a/sdks/retailmedia_2022-10/docs/PreferredLineItem202110Response.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/PreferredLineItemCreateModel202110Request.md b/sdks/retailmedia_2022-10/docs/PreferredLineItemCreateModel202110Request.md deleted file mode 100644 index f4f861cc..00000000 --- a/sdks/retailmedia_2022-10/docs/PreferredLineItemCreateModel202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/PreferredLineItemUpdateModel202110Request.md b/sdks/retailmedia_2022-10/docs/PreferredLineItemUpdateModel202110Request.md deleted file mode 100644 index 2970a908..00000000 --- a/sdks/retailmedia_2022-10/docs/PreferredLineItemUpdateModel202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ProblemDetails.md b/sdks/retailmedia_2022-10/docs/ProblemDetails.md deleted file mode 100644 index b0a1d786..00000000 --- a/sdks/retailmedia_2022-10/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -Data model for common error or warning - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] -**trace_identifier** | **str, none_type** | 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_2022-10/docs/PromotedProduct202110ListRequest.md b/sdks/retailmedia_2022-10/docs/PromotedProduct202110ListRequest.md deleted file mode 100644 index 126d6533..00000000 --- a/sdks/retailmedia_2022-10/docs/PromotedProduct202110ListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/PromotedProduct202110PagedListResponse.md b/sdks/retailmedia_2022-10/docs/PromotedProduct202110PagedListResponse.md deleted file mode 100644 index 8eb0f6c1..00000000 --- a/sdks/retailmedia_2022-10/docs/PromotedProduct202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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_2022-10/docs/ReportRequest.md b/sdks/retailmedia_2022-10/docs/ReportRequest.md deleted file mode 100644 index 8ad71920..00000000 --- a/sdks/retailmedia_2022-10/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_2022-10/docs/ReportRequestAttributes.md b/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md deleted file mode 100644 index 50c12529..00000000 --- a/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md +++ /dev/null @@ -1,22 +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, none_type** | Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified | [optional] -**format** | **str, none_type** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" -**id** | **str, none_type** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] -**ids** | **[str], none_type** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] -**revenue_type** | **str, none_type** | | [optional] -**time_zone** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | 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_2022-10/docs/ReportStatus.md b/sdks/retailmedia_2022-10/docs/ReportStatus.md deleted file mode 100644 index 888d4c93..00000000 --- a/sdks/retailmedia_2022-10/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_2022-10/docs/ReportStatusAttributes.md b/sdks/retailmedia_2022-10/docs/ReportStatusAttributes.md deleted file mode 100644 index 70fcf412..00000000 --- a/sdks/retailmedia_2022-10/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, none_type** | Timestamp when the report started to execute | [optional] -**expires_at** | **datetime, none_type** | Timestamp when the cached report will expire | [optional] -**file_size_bytes** | **int, none_type** | Total size of file, only populated on success | [optional] -**md5_checksum** | **str, none_type** | The MD5 checksum of the content, only populated on success | [optional] -**message** | **str, none_type** | Failure message, only populated on failure | [optional] -**row_count** | **int, none_type** | 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_2022-10/docs/ResourceOfAuctionLineItem.md b/sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItem.md deleted file mode 100644 index 761199ed..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItem.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfAuctionLineItem - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfAuctionLineItemUpdateModel.md b/sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItemUpdateModel.md deleted file mode 100644 index a9829d67..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfAuctionLineItemUpdateModel.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfAuctionLineItemUpdateModel - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfBalance202110.md b/sdks/retailmedia_2022-10/docs/ResourceOfBalance202110.md deleted file mode 100644 index 247f0f68..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfBalance202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfBalance202110 - -A class that represents an entity in a guild compliant way - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfCommonLineItem.md b/sdks/retailmedia_2022-10/docs/ResourceOfCommonLineItem.md deleted file mode 100644 index 675a7d8e..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfCommonLineItem.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfCommonLineItem - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfCreative202110.md b/sdks/retailmedia_2022-10/docs/ResourceOfCreative202110.md deleted file mode 100644 index 70b75256..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfCreative202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfCreative202110 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfCreative202207.md b/sdks/retailmedia_2022-10/docs/ResourceOfCreative202207.md deleted file mode 100644 index cf1e2734..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfCreative202207.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfCreative202207 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**Creative202207**](Creative202207.md) | | [optional] -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfPreferredLineItem202110.md b/sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItem202110.md deleted file mode 100644 index f4728c8a..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItem202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfPreferredLineItem202110 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md deleted file mode 100644 index 746400eb..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfPreferredLineItemUpdateModel202110 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/ResourceOfPromotedProduct202110.md b/sdks/retailmedia_2022-10/docs/ResourceOfPromotedProduct202110.md deleted file mode 100644 index f9afec3d..00000000 --- a/sdks/retailmedia_2022-10/docs/ResourceOfPromotedProduct202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfPromotedProduct202110 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | 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_2022-10/docs/Section.md b/sdks/retailmedia_2022-10/docs/Section.md deleted file mode 100644 index 09186289..00000000 --- a/sdks/retailmedia_2022-10/docs/Section.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/StoreIdsUpdateModel202110Request.md b/sdks/retailmedia_2022-10/docs/StoreIdsUpdateModel202110Request.md deleted file mode 100644 index a12351c6..00000000 --- a/sdks/retailmedia_2022-10/docs/StoreIdsUpdateModel202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/StoreTarget202110Request.md b/sdks/retailmedia_2022-10/docs/StoreTarget202110Request.md deleted file mode 100644 index 62f9e41a..00000000 --- a/sdks/retailmedia_2022-10/docs/StoreTarget202110Request.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/StoreTarget202110Response.md b/sdks/retailmedia_2022-10/docs/StoreTarget202110Response.md deleted file mode 100644 index f509113e..00000000 --- a/sdks/retailmedia_2022-10/docs/StoreTarget202110Response.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/Template.md b/sdks/retailmedia_2022-10/docs/Template.md deleted file mode 100644 index 5fdc579f..00000000 --- a/sdks/retailmedia_2022-10/docs/Template.md +++ /dev/null @@ -1,24 +0,0 @@ -# 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_2022-10/docs/TemplateListResponse.md b/sdks/retailmedia_2022-10/docs/TemplateListResponse.md deleted file mode 100644 index 9276b044..00000000 --- a/sdks/retailmedia_2022-10/docs/TemplateListResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_2022-10/docs/TemplateVariable.md b/sdks/retailmedia_2022-10/docs/TemplateVariable.md deleted file mode 100644 index 2bab7da3..00000000 --- a/sdks/retailmedia_2022-10/docs/TemplateVariable.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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_2022-10/docs/TemplateVariableValue.md b/sdks/retailmedia_2022-10/docs/TemplateVariableValue.md deleted file mode 100644 index 117bd4dc..00000000 --- a/sdks/retailmedia_2022-10/docs/TemplateVariableValue.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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_2022-10/docs/TextVariableSpecification.md b/sdks/retailmedia_2022-10/docs/TextVariableSpecification.md deleted file mode 100644 index 94193172..00000000 --- a/sdks/retailmedia_2022-10/docs/TextVariableSpecification.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md deleted file mode 100644 index ddaaca23..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md deleted file mode 100644 index 02483da2..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md deleted file mode 100644 index 6e93983d..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfAudienceTarget202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceTarget202110.md deleted file mode 100644 index a1319c44..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfAudienceTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfKeywordTarget202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfKeywordTarget202110.md deleted file mode 100644 index c80903ca..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfKeywordTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md deleted file mode 100644 index efc4891b..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/docs/ValueTypeResourceOfStoreTarget202110.md b/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreTarget202110.md deleted file mode 100644 index 2c2be8b4..00000000 --- a/sdks/retailmedia_2022-10/docs/ValueTypeResourceOfStoreTarget202110.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_2022-10/requirements.txt b/sdks/retailmedia_2022-10/requirements.txt deleted file mode 100644 index 96947f60..00000000 --- a/sdks/retailmedia_2022-10/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.25.3 diff --git a/sdks/retailmedia_2022-10/setup.cfg b/sdks/retailmedia_2022-10/setup.cfg deleted file mode 100644 index 11433ee8..00000000 --- a/sdks/retailmedia_2022-10/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/sdks/retailmedia_2022-10/setup.py b/sdks/retailmedia_2022-10/setup.py deleted file mode 100644 index d64fcac7..00000000 --- a/sdks/retailmedia_2022-10/setup.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "criteo-api-retailmedia-sdk" -VERSION = "2022.10.0.230831" -# 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==2022.10.0.230831 -``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230831`) - -Then import the package: -```python -import criteo_api_retailmedia_v2022_10 -``` - -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_2022-10/test-requirements.txt b/sdks/retailmedia_2022-10/test-requirements.txt deleted file mode 100644 index bb4f22bb..00000000 --- a/sdks/retailmedia_2022-10/test-requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pytest-cov>=2.8.1 diff --git a/sdks/retailmedia_2022-10/test/example_application_with_auth_code.py b/sdks/retailmedia_2022-10/test/example_application_with_auth_code.py deleted file mode 100644 index 85c6694e..00000000 --- a/sdks/retailmedia_2022-10/test/example_application_with_auth_code.py +++ /dev/null @@ -1,27 +0,0 @@ -from criteo_api_retailmedia_v2022_10.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_10 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-01/.openapi-generator/FILES b/sdks/retailmedia_2023-01/.openapi-generator/FILES index 6fd5ccab..6ce3fb3e 100644 --- a/sdks/retailmedia_2023-01/.openapi-generator/FILES +++ b/sdks/retailmedia_2023-01/.openapi-generator/FILES @@ -28,6 +28,13 @@ criteo_api_retailmedia_v2023_01/model/application_summary_model_response.py criteo_api_retailmedia_v2023_01/model/asset.py criteo_api_retailmedia_v2023_01/model/asset_resource.py criteo_api_retailmedia_v2023_01/model/asset_response.py +criteo_api_retailmedia_v2023_01/model/async_campaigns_report.py +criteo_api_retailmedia_v2023_01/model/async_campaigns_report_request.py +criteo_api_retailmedia_v2023_01/model/async_campaigns_report_resource.py +criteo_api_retailmedia_v2023_01/model/async_line_items_report.py +criteo_api_retailmedia_v2023_01/model/async_line_items_report_request.py +criteo_api_retailmedia_v2023_01/model/async_line_items_report_resource.py +criteo_api_retailmedia_v2023_01/model/async_report_response.py criteo_api_retailmedia_v2023_01/model/auction_line_item_create_model_request.py criteo_api_retailmedia_v2023_01/model/auction_line_item_paged_list_response.py criteo_api_retailmedia_v2023_01/model/auction_line_item_response.py @@ -35,7 +42,6 @@ criteo_api_retailmedia_v2023_01/model/auction_line_item_update_model_request.py criteo_api_retailmedia_v2023_01/model/audience_ids_update_model202110_request.py criteo_api_retailmedia_v2023_01/model/audience_target202110_request.py criteo_api_retailmedia_v2023_01/model/audience_target202110_response.py -criteo_api_retailmedia_v2023_01/model/bad_request.py criteo_api_retailmedia_v2023_01/model/balance202110_paged_list_response.py criteo_api_retailmedia_v2023_01/model/balance_campaign202110_list_request.py criteo_api_retailmedia_v2023_01/model/balance_campaign202110_paged_list_response.py @@ -71,9 +77,6 @@ criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py criteo_api_retailmedia_v2023_01/model/customer_list_details.py criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py -criteo_api_retailmedia_v2023_01/model/envelope_report_request.py -criteo_api_retailmedia_v2023_01/model/envelope_report_status.py -criteo_api_retailmedia_v2023_01/model/error.py criteo_api_retailmedia_v2023_01/model/external_account.py criteo_api_retailmedia_v2023_01/model/external_add_to_basket_ids_update_model202110.py criteo_api_retailmedia_v2023_01/model/external_add_to_basket_target202110.py @@ -127,7 +130,6 @@ criteo_api_retailmedia_v2023_01/model/keyword_target202110_response.py criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers.py criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_request.py criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_response.py -criteo_api_retailmedia_v2023_01/model/map_string.py criteo_api_retailmedia_v2023_01/model/page_metadata.py criteo_api_retailmedia_v2023_01/model/post_campaign_v202301.py criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_paged_list_response.py @@ -138,10 +140,7 @@ criteo_api_retailmedia_v2023_01/model/problem_details.py criteo_api_retailmedia_v2023_01/model/promoted_product202110_list_request.py criteo_api_retailmedia_v2023_01/model/promoted_product202110_paged_list_response.py criteo_api_retailmedia_v2023_01/model/put_campaign_v202301.py -criteo_api_retailmedia_v2023_01/model/report_request.py -criteo_api_retailmedia_v2023_01/model/report_request_attributes.py -criteo_api_retailmedia_v2023_01/model/report_status.py -criteo_api_retailmedia_v2023_01/model/report_status_attributes.py +criteo_api_retailmedia_v2023_01/model/report_outcome.py criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item.py criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item_update_model.py criteo_api_retailmedia_v2023_01/model/resource_of_balance202110.py @@ -162,6 +161,8 @@ criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_attributes.py criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_response.py criteo_api_retailmedia_v2023_01/model/section.py +criteo_api_retailmedia_v2023_01/model/status_response.py +criteo_api_retailmedia_v2023_01/model/status_response_resource.py criteo_api_retailmedia_v2023_01/model/store_ids_update_model202110_request.py criteo_api_retailmedia_v2023_01/model/store_target202110_request.py criteo_api_retailmedia_v2023_01/model/store_target202110_response.py @@ -194,6 +195,13 @@ docs/ApplicationSummaryModelResponse.md docs/Asset.md docs/AssetResource.md docs/AssetResponse.md +docs/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.md +docs/AsyncReportResponse.md docs/AuctionLineItemCreateModelRequest.md docs/AuctionLineItemPagedListResponse.md docs/AuctionLineItemResponse.md @@ -202,7 +210,6 @@ docs/AudienceApi.md docs/AudienceIdsUpdateModel202110Request.md docs/AudienceTarget202110Request.md docs/AudienceTarget202110Response.md -docs/BadRequest.md docs/Balance202110PagedListResponse.md docs/BalanceCampaign202110ListRequest.md docs/BalanceCampaign202110PagedListResponse.md @@ -239,9 +246,6 @@ docs/CreativeCreateModel202207.md docs/CreativeUpdateModel202207.md docs/CustomerListDetails.md docs/EditableCampaignAttributesV202301.md -docs/EnvelopeReportRequest.md -docs/EnvelopeReportStatus.md -docs/Error.md docs/ExternalAccount.md docs/ExternalAddToBasketIdsUpdateModel202110.md docs/ExternalAddToBasketTarget202110.md @@ -296,7 +300,6 @@ docs/KeywordTarget202110Response.md docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md -docs/MapString.md docs/PageMetadata.md docs/PostCampaignV202301.md docs/PreferredLineItem202110PagedListResponse.md @@ -307,10 +310,7 @@ docs/ProblemDetails.md docs/PromotedProduct202110ListRequest.md docs/PromotedProduct202110PagedListResponse.md docs/PutCampaignV202301.md -docs/ReportRequest.md -docs/ReportRequestAttributes.md -docs/ReportStatus.md -docs/ReportStatusAttributes.md +docs/ReportOutcome.md docs/ResourceOfAuctionLineItem.md docs/ResourceOfAuctionLineItemUpdateModel.md docs/ResourceOfBalance202110.md @@ -331,6 +331,8 @@ docs/RetailMediaAudienceV2Attributes.md docs/RetailMediaAudienceV2ListResponse.md docs/RetailMediaAudienceV2Response.md docs/Section.md +docs/StatusResponse.md +docs/StatusResponseResource.md docs/StoreIdsUpdateModel202110Request.md docs/StoreTarget202110Request.md docs/StoreTarget202110Response.md diff --git a/sdks/retailmedia_2023-01/README.md b/sdks/retailmedia_2023-01/README.md index 4af26773..3ccf9490 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.230831 +- Package version: 2023.01.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.01.0.230831 +pip install criteo-api-retailmedia-sdk==2023.01.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.231113`) Then import the package: ```python @@ -69,6 +69,13 @@ Class | Method | HTTP request | Description - [Asset](docs/Asset.md) - [AssetResource](docs/AssetResource.md) - [AssetResponse](docs/AssetResponse.md) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) @@ -76,7 +83,6 @@ Class | Method | HTTP request | Description - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) - - [BadRequest](docs/BadRequest.md) - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) @@ -112,9 +118,6 @@ Class | Method | HTTP request | Description - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - [CustomerListDetails](docs/CustomerListDetails.md) - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - - [EnvelopeReportRequest](docs/EnvelopeReportRequest.md) - - [EnvelopeReportStatus](docs/EnvelopeReportStatus.md) - - [Error](docs/Error.md) - [ExternalAccount](docs/ExternalAccount.md) - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) @@ -168,7 +171,6 @@ Class | Method | HTTP request | Description - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - - [MapString](docs/MapString.md) - [PageMetadata](docs/PageMetadata.md) - [PostCampaignV202301](docs/PostCampaignV202301.md) - [PreferredLineItem202110PagedListResponse](docs/PreferredLineItem202110PagedListResponse.md) @@ -179,10 +181,7 @@ Class | Method | HTTP request | Description - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) - [PutCampaignV202301](docs/PutCampaignV202301.md) - - [ReportRequest](docs/ReportRequest.md) - - [ReportRequestAttributes](docs/ReportRequestAttributes.md) - - [ReportStatus](docs/ReportStatus.md) - - [ReportStatusAttributes](docs/ReportStatusAttributes.md) + - [ReportOutcome](docs/ReportOutcome.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) @@ -203,6 +202,8 @@ Class | Method | HTTP request | Description - [RetailMediaAudienceV2ListResponse](docs/RetailMediaAudienceV2ListResponse.md) - [RetailMediaAudienceV2Response](docs/RetailMediaAudienceV2Response.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) 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 c0ef072e..3850bf66 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 @@ -8,7 +8,7 @@ """ -__version__ = "2023.01.0.230831" +__version__ = "2023.01.0.231113" # 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 82c7e05a..2102aefa 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 @@ -21,9 +21,10 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2023_01.model.bad_request import BadRequest -from criteo_api_retailmedia_v2023_01.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_01.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_01.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_01.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_01.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_01.model.report_outcome import ReportOutcome class AnalyticsApi(object): @@ -37,24 +38,24 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_report_output_endpoint = _Endpoint( + self.generate_async_campaigns_report_endpoint = _Endpoint( settings={ - 'response_type': (str,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/reports/{reportId}/output', - 'operation_id': 'get_report_output', - 'http_method': 'GET', + 'endpoint_path': '/2023-01/retail-media/reports/campaigns', + 'operation_id': 'generate_async_campaigns_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_campaigns_report_request', ], 'required': [ - 'report_id', + 'async_campaigns_report_request', ], 'nullable': [ ], @@ -69,44 +70,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_campaigns_report_request': + (AsyncCampaignsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_campaigns_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_async_line_items_report_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/reports/{reportId}/status', - 'operation_id': 'get_report_status', - 'http_method': 'GET', + 'endpoint_path': '/2023-01/retail-media/reports/line-items', + 'operation_id': 'generate_async_line_items_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_line_items_report_request', ], 'required': [ - 'report_id', + 'async_line_items_report_request', ], 'nullable': [ ], @@ -121,44 +128,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_line_items_report_request': + (AsyncLineItemsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_line_items_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + '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.request_campaign_report_endpoint = _Endpoint( + self.get_async_export_output_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/reports/campaigns', - 'operation_id': 'request_campaign_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-01/retail-media/reports/{reportId}/output', + 'operation_id': 'get_async_export_output', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'report_id', ], 'required': [ - 'envelope_report_request', + 'report_id', ], 'nullable': [ ], @@ -173,45 +186,46 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'report_id': + (str,), }, 'attribute_map': { + 'report_id': 'reportId', }, 'location_map': { - 'envelope_report_request': 'body', + 'report_id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.request_line_item_report_endpoint = _Endpoint( + self.get_async_export_status_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/reports/line-items', - 'operation_id': 'request_line_item_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-01/retail-media/reports/{reportId}/status', + 'operation_id': 'get_async_export_status', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'report_id', ], 'required': [ - 'envelope_report_request', + 'report_id', ], 'nullable': [ ], @@ -226,44 +240,45 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'report_id': + (str,), }, 'attribute_map': { + 'report_id': 'reportId', }, 'location_map': { - 'envelope_report_request': 'body', + 'report_id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - def get_report_output( + def generate_async_campaigns_report( self, - report_id, + async_campaigns_report_request, **kwargs ): - """get_report_output # noqa: E501 + """generate_async_campaigns_report # noqa: E501 - Request the report output # noqa: E501 + Return an asynchronous Campaigns 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_async_campaigns_report(async_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_campaigns_report_request (AsyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -298,7 +313,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - str + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -327,26 +342,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['async_campaigns_report_request'] = \ + async_campaigns_report_request + return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs) - def get_report_status( + def generate_async_line_items_report( self, - report_id, + async_line_items_report_request, **kwargs ): - """get_report_status # noqa: E501 + """generate_async_line_items_report # noqa: E501 - Get the status of the report # noqa: E501 + Returns an asynchronous Line Items 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_async_line_items_report(async_line_items_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_line_items_report_request (AsyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -381,7 +396,7 @@ def get_report_status( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -410,26 +425,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['async_line_items_report_request'] = \ + async_line_items_report_request + return self.generate_async_line_items_report_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 + Returns 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): Envelope of the request + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -464,7 +479,7 @@ def request_campaign_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + str If the method is called asynchronously, returns the request thread. """ @@ -493,26 +508,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 + Returns 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): Envelope of the request + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -547,7 +562,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. """ @@ -576,7 +591,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_2023-01/criteo_api_retailmedia_v2023_01/api_client.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py index 44b4537e..d215e2b5 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 @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.231113/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - api_instance.get_report_output # this is an instance of the class Endpoint - api_instance.get_report_output() # this invokes api_instance.get_report_output.__call__() + api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint + api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.get_report_output.callable or self.callable in this class + api_instance.generate_async_campaigns_report.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) 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 4c4f8ac8..3cd979b6 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 @@ -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.230831".\ + "SDK Package Version: 2023.01.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report.py new file mode 100644 index 00000000..00cba04b --- /dev/null +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report.py @@ -0,0 +1,399 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_01.exceptions import ApiAttributeError + + + +class AsyncCampaignsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", + }, + ('dimensions',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", + 'KEYWORD': "keyword", + 'SALESCHANNEL': "salesChannel", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-01/criteo_api_retailmedia_v2023_01/model/bad_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_request.py similarity index 94% rename from sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/bad_request.py rename to sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_request.py index 6f9be540..3af276dd 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/async_campaigns_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.error import Error - globals()['Error'] = Error + from criteo_api_retailmedia_v2023_01.model.async_campaigns_report_resource import AsyncCampaignsReportResource + globals()['AsyncCampaignsReportResource'] = AsyncCampaignsReportResource -class BadRequest(ModelNormal): +class AsyncCampaignsReportRequest(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], none_type,), # noqa: E501 + 'data': (AsyncCampaignsReportResource,), # 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 + """AsyncCampaignsReportRequest - 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], none_type): The errors. [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [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 + """AsyncCampaignsReportRequest - 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], none_type): The errors. [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_resource.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_resource.py new file mode 100644 index 00000000..2772df00 --- /dev/null +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_campaigns_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_01.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_01.model.async_campaigns_report import AsyncCampaignsReport + globals()['AsyncCampaignsReport'] = AsyncCampaignsReport + + +class AsyncCampaignsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncCampaignsReport,), # 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 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report.py new file mode 100644 index 00000000..3a2c1fb3 --- /dev/null +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report.py @@ -0,0 +1,400 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_01.exceptions import ApiAttributeError + + + +class AsyncLineItemsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + '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", + 'ENVIRONMENT': "environment", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_request.py similarity index 93% rename from sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py rename to sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_request.py index 62c2cd40..bacc0f01 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/async_line_items_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.report_request import ReportRequest - globals()['ReportRequest'] = ReportRequest + from criteo_api_retailmedia_v2023_01.model.async_line_items_report_resource import AsyncLineItemsReportResource + globals()['AsyncLineItemsReportResource'] = AsyncLineItemsReportResource -class EnvelopeReportRequest(ModelNormal): +class AsyncLineItemsReportRequest(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': (AsyncLineItemsReportResource,), # noqa: E501 } @cached_property @@ -106,11 +106,8 @@ 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 - - Args: - data (ReportRequest): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +140,7 @@ def _from_openapi_data(cls, data, *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 (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 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 \ @@ -195,11 +192,8 @@ 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 - - Args: - data (ReportRequest): + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +226,7 @@ def __init__(self, data, *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 (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_resource.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_resource.py new file mode 100644 index 00000000..f076d82a --- /dev/null +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_line_items_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_01.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_01.model.async_line_items_report import AsyncLineItemsReport + globals()['AsyncLineItemsReport'] = AsyncLineItemsReport + + +class AsyncLineItemsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncLineItemsReport,), # 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 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_report_response.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py rename to sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_report_response.py index b4b02a83..044082ea 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/async_report_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_01.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.asset_resource import AssetResource - from criteo_api_retailmedia_v2022_07.model.common_problem import CommonProblem - globals()['AssetResource'] = AssetResource + from criteo_api_retailmedia_v2023_01.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_01.model.status_response_resource import StatusResponseResource globals()['CommonProblem'] = CommonProblem + globals()['StatusResponseResource'] = StatusResponseResource -class AssetResponse(ModelNormal): +class AsyncReportResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +64,6 @@ class AssetResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (AssetResource,), # noqa: E501 + 'data': (StatusResponseResource,), # noqa: E501 'warnings': ([CommonProblem], none_type,), # noqa: E501 'errors': ([CommonProblem], none_type,), # noqa: E501 } @@ -119,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AssetResponse - a model defined in OpenAPI + """AsyncReportResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +148,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,) - data (AssetResource): [optional] # noqa: E501 + data (StatusResponseResource): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ @@ -207,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AssetResponse - a model defined in OpenAPI + """AsyncReportResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +236,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,) - data (AssetResource): [optional] # noqa: E501 + data (StatusResponseResource): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ 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 deleted file mode 100644 index c983aabb..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.report_status import ReportStatus - globals()['ReportStatus'] = ReportStatus - - -class EnvelopeReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatus,), # 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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-01/criteo_api_retailmedia_v2023_01/model/error.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py deleted file mode 100644 index 3584873d..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.map_string import MapString - globals()['MapString'] = MapString - - -class Error(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - 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, none_type,), # noqa: E501 - 'source': (MapString,), # noqa: E501 - 'stack_trace': ([str], none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'trace_id': 'traceId', # noqa: E501 - 'type': 'type', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - 'title': 'title', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-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 eb2207d2..434f4579 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 @@ -94,10 +94,10 @@ def openapi_types(): '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 + 'end_date': (date, none_type,), # noqa: E501 } @cached_property @@ -113,10 +113,10 @@ def discriminator(): '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 + 'end_date': 'endDate', # noqa: E501 } read_only_vars = { @@ -126,7 +126,7 @@ def discriminator(): @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 + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -137,7 +137,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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): @@ -173,6 +172,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -211,7 +211,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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 @@ -235,7 +234,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, ]) @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 + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -246,7 +245,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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): @@ -282,6 +280,7 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -318,7 +317,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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 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 deleted file mode 100644 index 90bcca6e..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py +++ /dev/null @@ -1,259 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - - -class MapString(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type 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 { - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-01/criteo_api_retailmedia_v2023_01/model/report_outcome.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_outcome.py new file mode 100644 index 00000000..d84c2aa2 --- /dev/null +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_outcome.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_01.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_01.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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-01/criteo_api_retailmedia_v2023_01/model/report_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py deleted file mode 100644 index 59f1f9f0..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.report_request_attributes import ReportRequestAttributes - globals()['ReportRequestAttributes'] = ReportRequestAttributes - - -class ReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequestAttributes,), # 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, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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-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 deleted file mode 100644 index 83901dab..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - - -class ReportRequestAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - 'KEYWORD': "keyword", - 'PAGETYPE': "pageType", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - ('format',): { - 'None': None, - 'CSV': "csv", - 'JSON': "json", - 'JSON-COMPACT': "json-compact", - 'JSON-NEWLINE': "json-newline", - }, - ('view_attribution_window',): { - 'None': None, - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 { - 'end_date': (date,), # noqa: E501 - 'report_type': (str,), # noqa: E501 - 'start_date': (date,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'format': (str, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'ids': ([str], none_type,), # noqa: E501 - 'revenue_type': (str, none_type,), # noqa: E501 - 'time_zone': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'end_date': 'endDate', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 - '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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-01/criteo_api_retailmedia_v2023_01/model/report_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py deleted file mode 100644 index 26a48805..00000000 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_01.model.report_status_attributes import ReportStatusAttributes - globals()['ReportStatusAttributes'] = ReportStatusAttributes - - -class ReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatusAttributes,), # 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.attributes = attributes - 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response.py similarity index 83% rename from sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py rename to sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response.py index dc6fd3b4..190d8ecc 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/status_response.py @@ -30,7 +30,7 @@ -class ReportStatusAttributes(ModelNormal): +class StatusResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,6 +56,7 @@ class ReportStatusAttributes(ModelNormal): allowed_values = { ('status',): { + 'None': None, 'PENDING': "pending", 'SUCCESS': "success", 'FAILURE': "failure", @@ -87,13 +88,14 @@ def openapi_types(): and the value is attribute type. """ return { - 'status': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'expires_at': (datetime, none_type,), # noqa: E501 + 'status': (str, none_type,), # noqa: E501 + 'row_count': (int, none_type,), # noqa: E501 'file_size_bytes': (int, none_type,), # noqa: E501 - 'md5_checksum': (str, none_type,), # noqa: E501 + 'md5_check_sum': (str, none_type,), # noqa: E501 + 'created_at': (str, none_type,), # noqa: E501 + 'expires_at': (str, none_type,), # noqa: E501 'message': (str, none_type,), # noqa: E501 - 'row_count': (int, none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 } @cached_property @@ -103,12 +105,13 @@ def discriminator(): 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 - 'file_size_bytes': 'fileSizeBytes', # noqa: E501 - 'md5_checksum': 'md5Checksum', # noqa: E501 'message': 'message', # noqa: E501 - 'row_count': 'rowCount', # noqa: E501 + 'id': 'id', # noqa: E501 } read_only_vars = { @@ -118,11 +121,8 @@ 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 - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + 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 @@ -155,12 +155,14 @@ 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, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -192,7 +194,6 @@ 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 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 +214,8 @@ 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 - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + 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 @@ -250,12 +248,14 @@ 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, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -285,7 +285,6 @@ def __init__(self, status, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - 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 \ diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response_resource.py similarity index 92% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py rename to sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response_resource.py index 99180510..ff313ebd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/status_response_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_01.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_01.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.application_summary_model import ApplicationSummaryModel - globals()['ApplicationSummaryModel'] = ApplicationSummaryModel + from criteo_api_retailmedia_v2023_01.model.status_response import StatusResponse + globals()['StatusResponse'] = StatusResponse -class ApplicationSummaryModelResource(ModelNormal): +class StatusResponseResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,8 +87,9 @@ def openapi_types(): """ lazy_import() return { + 'attributes': (StatusResponse,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (ApplicationSummaryModel,), # noqa: E501 } @cached_property @@ -97,8 +98,9 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 } read_only_vars = { @@ -109,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResource - a model defined in OpenAPI + """StatusResponseResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,8 +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,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (ApplicationSummaryModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResource - a model defined in OpenAPI + """StatusResponseResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,8 +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,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 type (str, none_type): [optional] # noqa: E501 - attributes (ApplicationSummaryModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/models/__init__.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/models/__init__.py index 826f4c96..4e346521 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/models/__init__.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/models/__init__.py @@ -18,6 +18,13 @@ from criteo_api_retailmedia_v2023_01.model.asset import Asset from criteo_api_retailmedia_v2023_01.model.asset_resource import AssetResource from criteo_api_retailmedia_v2023_01.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_01.model.async_campaigns_report import AsyncCampaignsReport +from criteo_api_retailmedia_v2023_01.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_01.model.async_campaigns_report_resource import AsyncCampaignsReportResource +from criteo_api_retailmedia_v2023_01.model.async_line_items_report import AsyncLineItemsReport +from criteo_api_retailmedia_v2023_01.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_01.model.async_line_items_report_resource import AsyncLineItemsReportResource +from criteo_api_retailmedia_v2023_01.model.async_report_response import AsyncReportResponse from criteo_api_retailmedia_v2023_01.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest from criteo_api_retailmedia_v2023_01.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse from criteo_api_retailmedia_v2023_01.model.auction_line_item_response import AuctionLineItemResponse @@ -25,7 +32,6 @@ from criteo_api_retailmedia_v2023_01.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_01.model.audience_target202110_request import AudienceTarget202110Request from criteo_api_retailmedia_v2023_01.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2023_01.model.bad_request import BadRequest from criteo_api_retailmedia_v2023_01.model.balance202110_paged_list_response import Balance202110PagedListResponse from criteo_api_retailmedia_v2023_01.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest from criteo_api_retailmedia_v2023_01.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse @@ -61,9 +67,6 @@ from criteo_api_retailmedia_v2023_01.model.creative_update_model202207 import CreativeUpdateModel202207 from criteo_api_retailmedia_v2023_01.model.customer_list_details import CustomerListDetails from criteo_api_retailmedia_v2023_01.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 -from criteo_api_retailmedia_v2023_01.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_01.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_01.model.error import Error from criteo_api_retailmedia_v2023_01.model.external_account import ExternalAccount from criteo_api_retailmedia_v2023_01.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 from criteo_api_retailmedia_v2023_01.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 @@ -117,7 +120,6 @@ from criteo_api_retailmedia_v2023_01.model.line_item_bid_multipliers import LineItemBidMultipliers from criteo_api_retailmedia_v2023_01.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest from criteo_api_retailmedia_v2023_01.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse -from criteo_api_retailmedia_v2023_01.model.map_string import MapString from criteo_api_retailmedia_v2023_01.model.page_metadata import PageMetadata from criteo_api_retailmedia_v2023_01.model.post_campaign_v202301 import PostCampaignV202301 from criteo_api_retailmedia_v2023_01.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse @@ -128,10 +130,7 @@ from criteo_api_retailmedia_v2023_01.model.promoted_product202110_list_request import PromotedProduct202110ListRequest from criteo_api_retailmedia_v2023_01.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse from criteo_api_retailmedia_v2023_01.model.put_campaign_v202301 import PutCampaignV202301 -from criteo_api_retailmedia_v2023_01.model.report_request import ReportRequest -from criteo_api_retailmedia_v2023_01.model.report_request_attributes import ReportRequestAttributes -from criteo_api_retailmedia_v2023_01.model.report_status import ReportStatus -from criteo_api_retailmedia_v2023_01.model.report_status_attributes import ReportStatusAttributes +from criteo_api_retailmedia_v2023_01.model.report_outcome import ReportOutcome from criteo_api_retailmedia_v2023_01.model.resource_of_auction_line_item import ResourceOfAuctionLineItem from criteo_api_retailmedia_v2023_01.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel from criteo_api_retailmedia_v2023_01.model.resource_of_balance202110 import ResourceOfBalance202110 @@ -152,6 +151,8 @@ from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response from criteo_api_retailmedia_v2023_01.model.section import Section +from criteo_api_retailmedia_v2023_01.model.status_response import StatusResponse +from criteo_api_retailmedia_v2023_01.model.status_response_resource import StatusResponseResource from criteo_api_retailmedia_v2023_01.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_01.model.store_target202110_request import StoreTarget202110Request from criteo_api_retailmedia_v2023_01.model.store_target202110_response import StoreTarget202110Response diff --git a/sdks/retailmedia_2023-01/docs/AnalyticsApi.md b/sdks/retailmedia_2023-01/docs/AnalyticsApi.md index 032e55f5..f63fd0ff 100644 --- a/sdks/retailmedia_2023-01/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-01/docs/AnalyticsApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_report_output**](AnalyticsApi.md#get_report_output) | **GET** /2023-01/retail-media/reports/{reportId}/output | -[**get_report_status**](AnalyticsApi.md#get_report_status) | **GET** /2023-01/retail-media/reports/{reportId}/status | -[**request_campaign_report**](AnalyticsApi.md#request_campaign_report) | **POST** /2023-01/retail-media/reports/campaigns | -[**request_line_item_report**](AnalyticsApi.md#request_line_item_report) | **POST** /2023-01/retail-media/reports/line-items | +[**generate_async_campaigns_report**](AnalyticsApi.md#generate_async_campaigns_report) | **POST** /2023-01/retail-media/reports/campaigns | +[**generate_async_line_items_report**](AnalyticsApi.md#generate_async_line_items_report) | **POST** /2023-01/retail-media/reports/line-items | +[**get_async_export_output**](AnalyticsApi.md#get_async_export_output) | **GET** /2023-01/retail-media/reports/{reportId}/output | +[**get_async_export_status**](AnalyticsApi.md#get_async_export_status) | **GET** /2023-01/retail-media/reports/{reportId}/status | -# **get_report_output** -> str get_report_output(report_id) +# **generate_async_campaigns_report** +> AsyncReportResponse generate_async_campaigns_report(async_campaigns_report_request) -Request the report output +Return an asynchronous Campaigns Report ### Example @@ -26,6 +26,9 @@ Request the report output import time import criteo_api_retailmedia_v2023_01 from criteo_api_retailmedia_v2023_01.api import analytics_api +from criteo_api_retailmedia_v2023_01.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_01.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_01.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. @@ -54,14 +57,39 @@ 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 = "reportId_example" # str | report id + async_campaigns_report_request = AsyncCampaignsReportRequest( + data=AsyncCampaignsReportResource( + type="type_example", + attributes=AsyncCampaignsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncCampaignsReportRequest | # 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_campaigns_report(async_campaigns_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_01.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_output: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_campaigns_report: %s\n" % e) ``` @@ -69,11 +97,11 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **async_campaigns_report_request** | [**AsyncCampaignsReportRequest**](AsyncCampaignsReportRequest.md)| | ### Return type -**str** +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -81,27 +109,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_async_line_items_report** +> AsyncReportResponse generate_async_line_items_report(async_line_items_report_request) -Get the status of the report +Returns an asynchronous Line Items Report ### Example @@ -112,7 +139,9 @@ Get the status of the report import time import criteo_api_retailmedia_v2023_01 from criteo_api_retailmedia_v2023_01.api import analytics_api -from criteo_api_retailmedia_v2023_01.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_01.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_01.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_01.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. @@ -141,14 +170,39 @@ 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 = "reportId_example" # str | report id + async_line_items_report_request = AsyncLineItemsReportRequest( + data=AsyncLineItemsReportResource( + type="type_example", + attributes=AsyncLineItemsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncLineItemsReportRequest | # 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_async_line_items_report(async_line_items_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_01.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_status: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) ``` @@ -156,11 +210,11 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **async_line_items_report_request** | [**AsyncLineItemsReportRequest**](AsyncLineItemsReportRequest.md)| | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -168,27 +222,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **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** | 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) +# **get_async_export_output** +> str get_async_export_output(report_id) -Request a campaign report +Returns the output of an async report ### Example @@ -199,9 +252,7 @@ Request a campaign report import time import criteo_api_retailmedia_v2023_01 from criteo_api_retailmedia_v2023_01.api import analytics_api -from criteo_api_retailmedia_v2023_01.model.bad_request import BadRequest -from criteo_api_retailmedia_v2023_01.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_01.model.envelope_report_request import EnvelopeReportRequest +from criteo_api_retailmedia_v2023_01.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. @@ -230,32 +281,14 @@ 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) - 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", - ], - 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 | Envelope of the request + 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.request_campaign_report(envelope_report_request) + api_response = api_instance.get_async_export_output(report_id) pprint(api_response) except criteo_api_retailmedia_v2023_01.ApiException as e: - print("Exception when calling AnalyticsApi->request_campaign_report: %s\n" % e) + print("Exception when calling AnalyticsApi->get_async_export_output: %s\n" % e) ``` @@ -263,11 +296,11 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | + **report_id** | **str**| The ID of the report to retrieve | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +**str** ### Authorization @@ -275,27 +308,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **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) +# **get_async_export_status** +> AsyncReportResponse get_async_export_status(report_id) -Request a line item report +Returns the status of an async report ### Example @@ -306,9 +338,8 @@ Request a line item report import time import criteo_api_retailmedia_v2023_01 from criteo_api_retailmedia_v2023_01.api import analytics_api -from criteo_api_retailmedia_v2023_01.model.bad_request import BadRequest -from criteo_api_retailmedia_v2023_01.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_01.model.envelope_report_request import EnvelopeReportRequest +from criteo_api_retailmedia_v2023_01.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_01.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. @@ -337,32 +368,14 @@ 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) - 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", - ], - 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 | Envelope of the request + 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.request_line_item_report(envelope_report_request) + api_response = api_instance.get_async_export_status(report_id) pprint(api_response) except criteo_api_retailmedia_v2023_01.ApiException as e: - print("Exception when calling AnalyticsApi->request_line_item_report: %s\n" % e) + print("Exception when calling AnalyticsApi->get_async_export_status: %s\n" % e) ``` @@ -370,11 +383,11 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | + **report_id** | **str**| The ID of the report to retrieve | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -382,18 +395,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **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) diff --git a/sdks/retailmedia_2023-01/docs/AsyncCampaignsReport.md b/sdks/retailmedia_2023-01/docs/AsyncCampaignsReport.md new file mode 100644 index 00000000..04625e77 --- /dev/null +++ b/sdks/retailmedia_2023-01/docs/AsyncCampaignsReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignsReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_preview/docs/AsyncCampaignReportRequest.md b/sdks/retailmedia_2023-01/docs/AsyncCampaignsReportRequest.md similarity index 80% rename from sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md rename to sdks/retailmedia_2023-01/docs/AsyncCampaignsReportRequest.md index b89dea58..a81e24db 100644 --- a/sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md +++ b/sdks/retailmedia_2023-01/docs/AsyncCampaignsReportRequest.md @@ -1,11 +1,11 @@ -# AsyncCampaignReportRequest +# AsyncCampaignsReportRequest A top-level object that encapsulates a Criteo API request for a single value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**AsyncCampaignReportResource**](AsyncCampaignReportResource.md) | | [optional] +**data** | [**AsyncCampaignsReportResource**](AsyncCampaignsReportResource.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_2023-01/docs/AsyncCampaignsReportResource.md similarity index 82% rename from sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md rename to sdks/retailmedia_2023-01/docs/AsyncCampaignsReportResource.md index 1eda515d..946c021f 100644 --- a/sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md +++ b/sdks/retailmedia_2023-01/docs/AsyncCampaignsReportResource.md @@ -1,4 +1,4 @@ -# AsyncLineItemReportResource +# AsyncCampaignsReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str, none_type** | | [optional] -**attributes** | [**AsyncLineItemReport**](AsyncLineItemReport.md) | | [optional] +**attributes** | [**AsyncCampaignsReport**](AsyncCampaignsReport.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-01/docs/AsyncLineItemsReport.md b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReport.md new file mode 100644 index 00000000..223e1c26 --- /dev/null +++ b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemsReport + +Line Items report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_preview/docs/AsyncLineItemReportRequest.md b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReportRequest.md similarity index 80% rename from sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md rename to sdks/retailmedia_2023-01/docs/AsyncLineItemsReportRequest.md index 3f923cd9..0d20f088 100644 --- a/sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md +++ b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReportRequest.md @@ -1,11 +1,11 @@ -# AsyncLineItemReportRequest +# AsyncLineItemsReportRequest A top-level object that encapsulates a Criteo API request for a single value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**AsyncLineItemReportResource**](AsyncLineItemReportResource.md) | | [optional] +**data** | [**AsyncLineItemsReportResource**](AsyncLineItemsReportResource.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/AsyncCampaignReportResource.md b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReportResource.md similarity index 82% rename from sdks/retailmedia_2023-07/docs/AsyncCampaignReportResource.md rename to sdks/retailmedia_2023-01/docs/AsyncLineItemsReportResource.md index 3421ba06..464b8885 100644 --- a/sdks/retailmedia_2023-07/docs/AsyncCampaignReportResource.md +++ b/sdks/retailmedia_2023-01/docs/AsyncLineItemsReportResource.md @@ -1,4 +1,4 @@ -# AsyncCampaignReportResource +# AsyncLineItemsReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str, none_type** | | [optional] -**attributes** | [**AsyncCampaignReport**](AsyncCampaignReport.md) | | [optional] +**attributes** | [**AsyncLineItemsReport**](AsyncLineItemsReport.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-01/docs/AsyncReportResponse.md b/sdks/retailmedia_2023-01/docs/AsyncReportResponse.md new file mode 100644 index 00000000..938eb3a2 --- /dev/null +++ b/sdks/retailmedia_2023-01/docs/AsyncReportResponse.md @@ -0,0 +1,15 @@ +# AsyncReportResponse + +Async Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StatusResponseResource**](StatusResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-01/docs/EnvelopeReportRequest.md b/sdks/retailmedia_2023-01/docs/EnvelopeReportRequest.md deleted file mode 100644 index 1c864080..00000000 --- a/sdks/retailmedia_2023-01/docs/EnvelopeReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# EnvelopeReportRequest - -Standard response envelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReportRequest**](ReportRequest.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-01/docs/Error.md b/sdks/retailmedia_2023-01/docs/Error.md deleted file mode 100644 index 01e79f5a..00000000 --- a/sdks/retailmedia_2023-01/docs/Error.md +++ /dev/null @@ -1,20 +0,0 @@ -# Error - -Error - -## 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, none_type** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | [**MapString**](MapString.md) | | [optional] -**stack_trace** | **[str], none_type** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem 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-01/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-01/docs/ExternalBalance202110.md index 77ad10c5..e293b348 100644 --- a/sdks/retailmedia_2023-01/docs/ExternalBalance202110.md +++ b/sdks/retailmedia_2023-01/docs/ExternalBalance202110.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **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** | | +**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../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/MapString.md b/sdks/retailmedia_2023-01/docs/MapString.md deleted file mode 100644 index c73c2ae8..00000000 --- a/sdks/retailmedia_2023-01/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/marketingsolutions_2022-10/docs/ProblemsDetails.md b/sdks/retailmedia_2023-01/docs/ReportOutcome.md similarity index 70% rename from sdks/marketingsolutions_2022-10/docs/ProblemsDetails.md rename to sdks/retailmedia_2023-01/docs/ReportOutcome.md index 95ae8966..347c3ef5 100644 --- a/sdks/marketingsolutions_2022-10/docs/ProblemsDetails.md +++ b/sdks/retailmedia_2023-01/docs/ReportOutcome.md @@ -1,11 +1,12 @@ -# ProblemsDetails +# ReportOutcome -Common problems object +The outcome of an API call. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-01/docs/ReportRequest.md b/sdks/retailmedia_2023-01/docs/ReportRequest.md deleted file mode 100644 index 8ad71920..00000000 --- a/sdks/retailmedia_2023-01/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_2023-01/docs/ReportRequestAttributes.md b/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md deleted file mode 100644 index 50c12529..00000000 --- a/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md +++ /dev/null @@ -1,22 +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, none_type** | Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified | [optional] -**format** | **str, none_type** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" -**id** | **str, none_type** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] -**ids** | **[str], none_type** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] -**revenue_type** | **str, none_type** | | [optional] -**time_zone** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | 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_2023-01/docs/ReportStatus.md b/sdks/retailmedia_2023-01/docs/ReportStatus.md deleted file mode 100644 index 888d4c93..00000000 --- a/sdks/retailmedia_2023-01/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_2023-01/docs/ReportStatusAttributes.md b/sdks/retailmedia_2023-01/docs/ReportStatusAttributes.md deleted file mode 100644 index 70fcf412..00000000 --- a/sdks/retailmedia_2023-01/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, none_type** | Timestamp when the report started to execute | [optional] -**expires_at** | **datetime, none_type** | Timestamp when the cached report will expire | [optional] -**file_size_bytes** | **int, none_type** | Total size of file, only populated on success | [optional] -**md5_checksum** | **str, none_type** | The MD5 checksum of the content, only populated on success | [optional] -**message** | **str, none_type** | Failure message, only populated on failure | [optional] -**row_count** | **int, none_type** | 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_2022-10/docs/Asset.md b/sdks/retailmedia_2023-01/docs/StatusResponse.md similarity index 53% rename from sdks/retailmedia_2022-10/docs/Asset.md rename to sdks/retailmedia_2023-01/docs/StatusResponse.md index 8e824b6e..e5947f61 100644 --- a/sdks/retailmedia_2022-10/docs/Asset.md +++ b/sdks/retailmedia_2023-01/docs/StatusResponse.md @@ -1,12 +1,17 @@ -# Asset +# StatusResponse -Handles pointing towards binary content that advertisers can use later on, for example in their creatives. +Status of an async report request ## 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, none_type** | A url pointing towards the static file the asset represents. | [optional] +**status** | **str, none_type** | | [optional] +**row_count** | **int, none_type** | | [optional] +**file_size_bytes** | **int, none_type** | | [optional] +**md5_check_sum** | **str, none_type** | | [optional] +**created_at** | **str, none_type** | | [optional] +**expires_at** | **str, none_type** | | [optional] +**message** | **str, none_type** | | [optional] **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] diff --git a/sdks/retailmedia_2023-01/docs/StatusResponseResource.md b/sdks/retailmedia_2023-01/docs/StatusResponseResource.md new file mode 100644 index 00000000..5f28b4c3 --- /dev/null +++ b/sdks/retailmedia_2023-01/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, none_type** | | [optional] +**type** | **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-01/setup.py b/sdks/retailmedia_2023-01/setup.py index 66705899..a6e6c2b0 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.230831" +VERSION = "2023.01.0.231113" # 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.230831 +pip install criteo-api-retailmedia-sdk==2023.01.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.231113`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-04/.openapi-generator/FILES b/sdks/retailmedia_2023-04/.openapi-generator/FILES index b096da7a..a432e6ce 100644 --- a/sdks/retailmedia_2023-04/.openapi-generator/FILES +++ b/sdks/retailmedia_2023-04/.openapi-generator/FILES @@ -28,6 +28,13 @@ criteo_api_retailmedia_v2023_04/model/application_summary_model_response.py criteo_api_retailmedia_v2023_04/model/asset.py criteo_api_retailmedia_v2023_04/model/asset_resource.py criteo_api_retailmedia_v2023_04/model/asset_response.py +criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py +criteo_api_retailmedia_v2023_04/model/async_campaigns_report_request.py +criteo_api_retailmedia_v2023_04/model/async_campaigns_report_resource.py +criteo_api_retailmedia_v2023_04/model/async_line_items_report.py +criteo_api_retailmedia_v2023_04/model/async_line_items_report_request.py +criteo_api_retailmedia_v2023_04/model/async_line_items_report_resource.py +criteo_api_retailmedia_v2023_04/model/async_report_response.py criteo_api_retailmedia_v2023_04/model/auction_line_item_create_model_request.py criteo_api_retailmedia_v2023_04/model/auction_line_item_paged_list_response.py criteo_api_retailmedia_v2023_04/model/auction_line_item_response.py @@ -35,7 +42,6 @@ criteo_api_retailmedia_v2023_04/model/auction_line_item_update_model_request.py criteo_api_retailmedia_v2023_04/model/audience_ids_update_model202110_request.py criteo_api_retailmedia_v2023_04/model/audience_target202110_request.py criteo_api_retailmedia_v2023_04/model/audience_target202110_response.py -criteo_api_retailmedia_v2023_04/model/bad_request.py criteo_api_retailmedia_v2023_04/model/balance202110_paged_list_response.py criteo_api_retailmedia_v2023_04/model/balance_campaign202110_list_request.py criteo_api_retailmedia_v2023_04/model/balance_campaign202110_paged_list_response.py @@ -72,9 +78,6 @@ criteo_api_retailmedia_v2023_04/model/creative_create_model202207.py criteo_api_retailmedia_v2023_04/model/creative_update_model202207.py criteo_api_retailmedia_v2023_04/model/customer_list_details.py criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py -criteo_api_retailmedia_v2023_04/model/envelope_report_request.py -criteo_api_retailmedia_v2023_04/model/envelope_report_status.py -criteo_api_retailmedia_v2023_04/model/error.py criteo_api_retailmedia_v2023_04/model/external_account.py criteo_api_retailmedia_v2023_04/model/external_add_to_basket_ids_update_model202110.py criteo_api_retailmedia_v2023_04/model/external_add_to_basket_target202110.py @@ -128,7 +131,6 @@ criteo_api_retailmedia_v2023_04/model/keyword_target202110_response.py criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers.py criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_request.py criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_response.py -criteo_api_retailmedia_v2023_04/model/map_string.py criteo_api_retailmedia_v2023_04/model/page_metadata.py criteo_api_retailmedia_v2023_04/model/page_type_environment.py criteo_api_retailmedia_v2023_04/model/post_campaign_v202301.py @@ -140,10 +142,7 @@ criteo_api_retailmedia_v2023_04/model/problem_details.py criteo_api_retailmedia_v2023_04/model/promoted_product202110_list_request.py criteo_api_retailmedia_v2023_04/model/promoted_product202110_paged_list_response.py criteo_api_retailmedia_v2023_04/model/put_campaign_v202301.py -criteo_api_retailmedia_v2023_04/model/report_request.py -criteo_api_retailmedia_v2023_04/model/report_request_attributes.py -criteo_api_retailmedia_v2023_04/model/report_status.py -criteo_api_retailmedia_v2023_04/model/report_status_attributes.py +criteo_api_retailmedia_v2023_04/model/report_outcome.py criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item.py criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item_update_model.py criteo_api_retailmedia_v2023_04/model/resource_of_balance202110.py @@ -182,6 +181,8 @@ criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model.py criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_request.py criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_resource.py criteo_api_retailmedia_v2023_04/model/section.py +criteo_api_retailmedia_v2023_04/model/status_response.py +criteo_api_retailmedia_v2023_04/model/status_response_resource.py criteo_api_retailmedia_v2023_04/model/store_ids_update_model202110_request.py criteo_api_retailmedia_v2023_04/model/store_target202110_request.py criteo_api_retailmedia_v2023_04/model/store_target202110_response.py @@ -214,6 +215,13 @@ docs/ApplicationSummaryModelResponse.md docs/Asset.md docs/AssetResource.md docs/AssetResponse.md +docs/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.md +docs/AsyncReportResponse.md docs/AuctionLineItemCreateModelRequest.md docs/AuctionLineItemPagedListResponse.md docs/AuctionLineItemResponse.md @@ -222,7 +230,6 @@ docs/AudienceApi.md docs/AudienceIdsUpdateModel202110Request.md docs/AudienceTarget202110Request.md docs/AudienceTarget202110Response.md -docs/BadRequest.md docs/Balance202110PagedListResponse.md docs/BalanceCampaign202110ListRequest.md docs/BalanceCampaign202110PagedListResponse.md @@ -260,9 +267,6 @@ docs/CreativeCreateModel202207.md docs/CreativeUpdateModel202207.md docs/CustomerListDetails.md docs/EditableCampaignAttributesV202301.md -docs/EnvelopeReportRequest.md -docs/EnvelopeReportStatus.md -docs/Error.md docs/ExternalAccount.md docs/ExternalAddToBasketIdsUpdateModel202110.md docs/ExternalAddToBasketTarget202110.md @@ -317,7 +321,6 @@ docs/KeywordTarget202110Response.md docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md -docs/MapString.md docs/PageMetadata.md docs/PageTypeEnvironment.md docs/PostCampaignV202301.md @@ -329,10 +332,7 @@ docs/ProblemDetails.md docs/PromotedProduct202110ListRequest.md docs/PromotedProduct202110PagedListResponse.md docs/PutCampaignV202301.md -docs/ReportRequest.md -docs/ReportRequestAttributes.md -docs/ReportStatus.md -docs/ReportStatusAttributes.md +docs/ReportOutcome.md docs/ResourceOfAuctionLineItem.md docs/ResourceOfAuctionLineItemUpdateModel.md docs/ResourceOfBalance202110.md @@ -371,6 +371,8 @@ 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 diff --git a/sdks/retailmedia_2023-04/README.md b/sdks/retailmedia_2023-04/README.md index 73b6fe33..b0b6c181 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.230831 +- Package version: 2023.04.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.04.0.230831 +pip install criteo-api-retailmedia-sdk==2023.04.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.231113`) Then import the package: ```python @@ -69,6 +69,13 @@ Class | Method | HTTP request | Description - [Asset](docs/Asset.md) - [AssetResource](docs/AssetResource.md) - [AssetResponse](docs/AssetResponse.md) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) @@ -76,7 +83,6 @@ Class | Method | HTTP request | Description - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) - - [BadRequest](docs/BadRequest.md) - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) @@ -113,9 +119,6 @@ Class | Method | HTTP request | Description - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - [CustomerListDetails](docs/CustomerListDetails.md) - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - - [EnvelopeReportRequest](docs/EnvelopeReportRequest.md) - - [EnvelopeReportStatus](docs/EnvelopeReportStatus.md) - - [Error](docs/Error.md) - [ExternalAccount](docs/ExternalAccount.md) - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) @@ -169,7 +172,6 @@ Class | Method | HTTP request | Description - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - - [MapString](docs/MapString.md) - [PageMetadata](docs/PageMetadata.md) - [PageTypeEnvironment](docs/PageTypeEnvironment.md) - [PostCampaignV202301](docs/PostCampaignV202301.md) @@ -181,10 +183,7 @@ Class | Method | HTTP request | Description - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) - [PutCampaignV202301](docs/PutCampaignV202301.md) - - [ReportRequest](docs/ReportRequest.md) - - [ReportRequestAttributes](docs/ReportRequestAttributes.md) - - [ReportStatus](docs/ReportStatus.md) - - [ReportStatusAttributes](docs/ReportStatusAttributes.md) + - [ReportOutcome](docs/ReportOutcome.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) @@ -223,6 +222,8 @@ Class | Method | HTTP request | Description - [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) 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 b00551bd..16aac90e 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 @@ -8,7 +8,7 @@ """ -__version__ = "2023.04.0.230831" +__version__ = "2023.04.0.231113" # 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 3af333f4..1ef25abb 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 @@ -21,9 +21,10 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2023_04.model.bad_request import BadRequest -from criteo_api_retailmedia_v2023_04.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_04.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_04.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_04.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_04.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_04.model.report_outcome import ReportOutcome class AnalyticsApi(object): @@ -37,24 +38,24 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_report_output_endpoint = _Endpoint( + self.generate_async_campaigns_report_endpoint = _Endpoint( settings={ - 'response_type': (str,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/reports/{reportId}/output', - 'operation_id': 'get_report_output', - 'http_method': 'GET', + 'endpoint_path': '/2023-04/retail-media/reports/campaigns', + 'operation_id': 'generate_async_campaigns_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_campaigns_report_request', ], 'required': [ - 'report_id', + 'async_campaigns_report_request', ], 'nullable': [ ], @@ -69,44 +70,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_campaigns_report_request': + (AsyncCampaignsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_campaigns_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_async_line_items_report_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/reports/{reportId}/status', - 'operation_id': 'get_report_status', - 'http_method': 'GET', + 'endpoint_path': '/2023-04/retail-media/reports/line-items', + 'operation_id': 'generate_async_line_items_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_line_items_report_request', ], 'required': [ - 'report_id', + 'async_line_items_report_request', ], 'nullable': [ ], @@ -121,44 +128,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_line_items_report_request': + (AsyncLineItemsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_line_items_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + '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.request_campaign_report_endpoint = _Endpoint( + self.get_async_export_output_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/reports/campaigns', - 'operation_id': 'request_campaign_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-04/retail-media/reports/{reportId}/output', + 'operation_id': 'get_async_export_output', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'report_id', ], 'required': [ - 'envelope_report_request', + 'report_id', ], 'nullable': [ ], @@ -173,45 +186,46 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'report_id': + (str,), }, 'attribute_map': { + 'report_id': 'reportId', }, 'location_map': { - 'envelope_report_request': 'body', + 'report_id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.request_line_item_report_endpoint = _Endpoint( + self.get_async_export_status_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/reports/line-items', - 'operation_id': 'request_line_item_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-04/retail-media/reports/{reportId}/status', + 'operation_id': 'get_async_export_status', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'report_id', ], 'required': [ - 'envelope_report_request', + 'report_id', ], 'nullable': [ ], @@ -226,44 +240,45 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'report_id': + (str,), }, 'attribute_map': { + 'report_id': 'reportId', }, 'location_map': { - 'envelope_report_request': 'body', + 'report_id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - def get_report_output( + def generate_async_campaigns_report( self, - report_id, + async_campaigns_report_request, **kwargs ): - """get_report_output # noqa: E501 + """generate_async_campaigns_report # noqa: E501 - Request the report output # noqa: E501 + Return an asynchronous Campaigns 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_async_campaigns_report(async_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_campaigns_report_request (AsyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -298,7 +313,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - str + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -327,26 +342,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['async_campaigns_report_request'] = \ + async_campaigns_report_request + return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs) - def get_report_status( + def generate_async_line_items_report( self, - report_id, + async_line_items_report_request, **kwargs ): - """get_report_status # noqa: E501 + """generate_async_line_items_report # noqa: E501 - Get the status of the report # noqa: E501 + Returns an asynchronous Line Items 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_async_line_items_report(async_line_items_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_line_items_report_request (AsyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -381,7 +396,7 @@ def get_report_status( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -410,26 +425,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['async_line_items_report_request'] = \ + async_line_items_report_request + return self.generate_async_line_items_report_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 + Returns 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): Envelope of the request + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -464,7 +479,7 @@ def request_campaign_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + str If the method is called asynchronously, returns the request thread. """ @@ -493,26 +508,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 + Returns 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): Envelope of the request + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -547,7 +562,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. """ @@ -576,7 +591,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_2023-04/criteo_api_retailmedia_v2023_04/api_client.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py index b52db6b3..39063178 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 @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.231113/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - api_instance.get_report_output # this is an instance of the class Endpoint - api_instance.get_report_output() # this invokes api_instance.get_report_output.__call__() + api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint + api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.get_report_output.callable or self.callable in this class + api_instance.generate_async_campaigns_report.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) 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 3ddb08ad..06030ef3 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 @@ -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.230831".\ + "SDK Package Version: 2023.04.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py new file mode 100644 index 00000000..638c56f7 --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report.py @@ -0,0 +1,399 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + + +class AsyncCampaignsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", + }, + ('dimensions',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", + 'KEYWORD': "keyword", + 'SALESCHANNEL': "salesChannel", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-04/criteo_api_retailmedia_v2023_04/model/bad_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_request.py similarity index 94% rename from sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/bad_request.py rename to sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_request.py index 8ff123f1..3caab9ff 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/async_campaigns_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.error import Error - globals()['Error'] = Error + from criteo_api_retailmedia_v2023_04.model.async_campaigns_report_resource import AsyncCampaignsReportResource + globals()['AsyncCampaignsReportResource'] = AsyncCampaignsReportResource -class BadRequest(ModelNormal): +class AsyncCampaignsReportRequest(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], none_type,), # noqa: E501 + 'data': (AsyncCampaignsReportResource,), # 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 + """AsyncCampaignsReportRequest - 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], none_type): The errors. [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [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 + """AsyncCampaignsReportRequest - 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], none_type): The errors. [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_resource.py new file mode 100644 index 00000000..2ae4ede1 --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_campaigns_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_04.model.async_campaigns_report import AsyncCampaignsReport + globals()['AsyncCampaignsReport'] = AsyncCampaignsReport + + +class AsyncCampaignsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncCampaignsReport,), # 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 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report.py new file mode 100644 index 00000000..3cb6d158 --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report.py @@ -0,0 +1,400 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + + +class AsyncLineItemsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + '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", + 'ENVIRONMENT': "environment", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_request.py similarity index 93% rename from sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py rename to sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_request.py index 055ce55b..767a375c 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/async_line_items_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.report_request import ReportRequest - globals()['ReportRequest'] = ReportRequest + from criteo_api_retailmedia_v2023_04.model.async_line_items_report_resource import AsyncLineItemsReportResource + globals()['AsyncLineItemsReportResource'] = AsyncLineItemsReportResource -class EnvelopeReportRequest(ModelNormal): +class AsyncLineItemsReportRequest(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': (AsyncLineItemsReportResource,), # noqa: E501 } @cached_property @@ -106,11 +106,8 @@ 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 - - Args: - data (ReportRequest): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +140,7 @@ def _from_openapi_data(cls, data, *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 (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 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 \ @@ -195,11 +192,8 @@ 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 - - Args: - data (ReportRequest): + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +226,7 @@ def __init__(self, data, *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 (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_resource.py new file mode 100644 index 00000000..39d8bb0b --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_line_items_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_04.model.async_line_items_report import AsyncLineItemsReport + globals()['AsyncLineItemsReport'] = AsyncLineItemsReport + + +class AsyncLineItemsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncLineItemsReport,), # 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 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_report_response.py similarity index 92% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py rename to sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_report_response.py index 46e0118b..822187b4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/async_report_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_04.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.application_summary_model_resource import ApplicationSummaryModelResource - from criteo_api_retailmedia_v2022_10.model.common_problem import CommonProblem - globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource + from criteo_api_retailmedia_v2023_04.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_04.model.status_response_resource import StatusResponseResource globals()['CommonProblem'] = CommonProblem + globals()['StatusResponseResource'] = StatusResponseResource -class ApplicationSummaryModelResponse(ModelNormal): +class AsyncReportResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +64,6 @@ class ApplicationSummaryModelResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ApplicationSummaryModelResource,), # noqa: E501 + 'data': (StatusResponseResource,), # noqa: E501 'warnings': ([CommonProblem], none_type,), # noqa: E501 'errors': ([CommonProblem], none_type,), # noqa: E501 } @@ -119,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResponse - a model defined in OpenAPI + """AsyncReportResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +148,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,) - data (ApplicationSummaryModelResource): [optional] # noqa: E501 + data (StatusResponseResource): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ @@ -207,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ApplicationSummaryModelResponse - a model defined in OpenAPI + """AsyncReportResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +236,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,) - data (ApplicationSummaryModelResource): [optional] # noqa: E501 + data (StatusResponseResource): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ 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 deleted file mode 100644 index 1c029289..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.report_status import ReportStatus - globals()['ReportStatus'] = ReportStatus - - -class EnvelopeReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatus,), # 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - """EnvelopeReportStatus - a model defined in OpenAPI - - Args: - data (ReportStatus): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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-04/criteo_api_retailmedia_v2023_04/model/error.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py deleted file mode 100644 index 35ee38a8..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.map_string import MapString - globals()['MapString'] = MapString - - -class Error(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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 - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - 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, none_type,), # noqa: E501 - 'source': (MapString,), # noqa: E501 - 'stack_trace': ([str], none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'trace_id': 'traceId', # noqa: E501 - 'type': 'type', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - 'title': 'title', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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\", ... - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - detail (str, none_type): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str], none_type): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 - title (str, none_type): (RECOMMENDED) A short, human-readable summary of the problem 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-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 84c9aa0d..ed5678cd 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 @@ -94,10 +94,10 @@ def openapi_types(): '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 + 'end_date': (date, none_type,), # noqa: E501 } @cached_property @@ -113,10 +113,10 @@ def discriminator(): '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 + 'end_date': 'endDate', # noqa: E501 } read_only_vars = { @@ -126,7 +126,7 @@ def discriminator(): @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 + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -137,7 +137,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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): @@ -173,6 +172,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -211,7 +211,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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 @@ -235,7 +234,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, ]) @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 + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -246,7 +245,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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): @@ -282,6 +280,7 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -318,7 +317,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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 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 deleted file mode 100644 index 8969f4ec..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py +++ /dev/null @@ -1,259 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - - -class MapString(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type 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 { - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-04/criteo_api_retailmedia_v2023_04/model/report_outcome.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_outcome.py new file mode 100644 index 00000000..9e167708 --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_outcome.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_04.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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-04/criteo_api_retailmedia_v2023_04/model/report_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py deleted file mode 100644 index 7c812c4d..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.report_request_attributes import ReportRequestAttributes - globals()['ReportRequestAttributes'] = ReportRequestAttributes - - -class ReportRequest(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportRequestAttributes,), # 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, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.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 \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = 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, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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-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 deleted file mode 100644 index effff602..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py +++ /dev/null @@ -1,338 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - - -class ReportRequestAttributes(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_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", - 'KEYWORD': "keyword", - 'PAGETYPE': "pageType", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - ('format',): { - 'None': None, - 'CSV': "csv", - 'JSON': "json", - 'JSON-COMPACT': "json-compact", - 'JSON-NEWLINE': "json-newline", - }, - ('view_attribution_window',): { - 'None': None, - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - 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 { - 'end_date': (date,), # noqa: E501 - 'report_type': (str,), # noqa: E501 - 'start_date': (date,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'format': (str, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 - 'ids': ([str], none_type,), # noqa: E501 - 'revenue_type': (str, none_type,), # noqa: E501 - 'time_zone': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'end_date': 'endDate', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 - '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 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @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 - - 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 - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - click_attribution_window (str, none_type): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str, none_type): 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, none_type): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str], none_type): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - time_zone (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): 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 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - 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 - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(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-04/criteo_api_retailmedia_v2023_04/model/report_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py deleted file mode 100644 index 0868fb1b..00000000 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_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_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2023_04.model.report_status_attributes import ReportStatusAttributes - globals()['ReportStatusAttributes'] = ReportStatusAttributes - - -class ReportStatus(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ReportStatusAttributes,), # 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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.attributes = attributes - 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, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI - - Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 - 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-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response.py similarity index 83% rename from sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py rename to sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response.py index 3b23e59c..8bec5c8f 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/status_response.py @@ -30,7 +30,7 @@ -class ReportStatusAttributes(ModelNormal): +class StatusResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,6 +56,7 @@ class ReportStatusAttributes(ModelNormal): allowed_values = { ('status',): { + 'None': None, 'PENDING': "pending", 'SUCCESS': "success", 'FAILURE': "failure", @@ -87,13 +88,14 @@ def openapi_types(): and the value is attribute type. """ return { - 'status': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'expires_at': (datetime, none_type,), # noqa: E501 + 'status': (str, none_type,), # noqa: E501 + 'row_count': (int, none_type,), # noqa: E501 'file_size_bytes': (int, none_type,), # noqa: E501 - 'md5_checksum': (str, none_type,), # noqa: E501 + 'md5_check_sum': (str, none_type,), # noqa: E501 + 'created_at': (str, none_type,), # noqa: E501 + 'expires_at': (str, none_type,), # noqa: E501 'message': (str, none_type,), # noqa: E501 - 'row_count': (int, none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 } @cached_property @@ -103,12 +105,13 @@ def discriminator(): 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 - 'file_size_bytes': 'fileSizeBytes', # noqa: E501 - 'md5_checksum': 'md5Checksum', # noqa: E501 'message': 'message', # noqa: E501 - 'row_count': 'rowCount', # noqa: E501 + 'id': 'id', # noqa: E501 } read_only_vars = { @@ -118,11 +121,8 @@ 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 - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + 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 @@ -155,12 +155,14 @@ 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, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -192,7 +194,6 @@ 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 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 +214,8 @@ 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 - - Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + 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 @@ -250,12 +248,14 @@ 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, none_type): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime, none_type): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int, none_type): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str, none_type): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str, none_type): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int, none_type): Rows of data in report, only populated on success. [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -285,7 +285,6 @@ def __init__(self, status, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - 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 \ diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response_resource.py new file mode 100644 index 00000000..ea9e79cd --- /dev/null +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/status_response_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_04.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_04.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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-04/criteo_api_retailmedia_v2023_04/models/__init__.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/models/__init__.py index c95c183c..6a163191 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/models/__init__.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/models/__init__.py @@ -18,6 +18,13 @@ from criteo_api_retailmedia_v2023_04.model.asset import Asset from criteo_api_retailmedia_v2023_04.model.asset_resource import AssetResource from criteo_api_retailmedia_v2023_04.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_04.model.async_campaigns_report import AsyncCampaignsReport +from criteo_api_retailmedia_v2023_04.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_04.model.async_campaigns_report_resource import AsyncCampaignsReportResource +from criteo_api_retailmedia_v2023_04.model.async_line_items_report import AsyncLineItemsReport +from criteo_api_retailmedia_v2023_04.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_04.model.async_line_items_report_resource import AsyncLineItemsReportResource +from criteo_api_retailmedia_v2023_04.model.async_report_response import AsyncReportResponse from criteo_api_retailmedia_v2023_04.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest from criteo_api_retailmedia_v2023_04.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse from criteo_api_retailmedia_v2023_04.model.auction_line_item_response import AuctionLineItemResponse @@ -25,7 +32,6 @@ from criteo_api_retailmedia_v2023_04.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_04.model.audience_target202110_request import AudienceTarget202110Request from criteo_api_retailmedia_v2023_04.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2023_04.model.bad_request import BadRequest from criteo_api_retailmedia_v2023_04.model.balance202110_paged_list_response import Balance202110PagedListResponse from criteo_api_retailmedia_v2023_04.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest from criteo_api_retailmedia_v2023_04.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse @@ -62,9 +68,6 @@ from criteo_api_retailmedia_v2023_04.model.creative_update_model202207 import CreativeUpdateModel202207 from criteo_api_retailmedia_v2023_04.model.customer_list_details import CustomerListDetails from criteo_api_retailmedia_v2023_04.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 -from criteo_api_retailmedia_v2023_04.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_04.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_04.model.error import Error from criteo_api_retailmedia_v2023_04.model.external_account import ExternalAccount from criteo_api_retailmedia_v2023_04.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 from criteo_api_retailmedia_v2023_04.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 @@ -118,7 +121,6 @@ from criteo_api_retailmedia_v2023_04.model.line_item_bid_multipliers import LineItemBidMultipliers from criteo_api_retailmedia_v2023_04.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest from criteo_api_retailmedia_v2023_04.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse -from criteo_api_retailmedia_v2023_04.model.map_string import MapString from criteo_api_retailmedia_v2023_04.model.page_metadata import PageMetadata from criteo_api_retailmedia_v2023_04.model.page_type_environment import PageTypeEnvironment from criteo_api_retailmedia_v2023_04.model.post_campaign_v202301 import PostCampaignV202301 @@ -130,10 +132,7 @@ from criteo_api_retailmedia_v2023_04.model.promoted_product202110_list_request import PromotedProduct202110ListRequest from criteo_api_retailmedia_v2023_04.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse from criteo_api_retailmedia_v2023_04.model.put_campaign_v202301 import PutCampaignV202301 -from criteo_api_retailmedia_v2023_04.model.report_request import ReportRequest -from criteo_api_retailmedia_v2023_04.model.report_request_attributes import ReportRequestAttributes -from criteo_api_retailmedia_v2023_04.model.report_status import ReportStatus -from criteo_api_retailmedia_v2023_04.model.report_status_attributes import ReportStatusAttributes +from criteo_api_retailmedia_v2023_04.model.report_outcome import ReportOutcome from criteo_api_retailmedia_v2023_04.model.resource_of_auction_line_item import ResourceOfAuctionLineItem from criteo_api_retailmedia_v2023_04.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel from criteo_api_retailmedia_v2023_04.model.resource_of_balance202110 import ResourceOfBalance202110 @@ -172,6 +171,8 @@ from criteo_api_retailmedia_v2023_04.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest from criteo_api_retailmedia_v2023_04.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource from criteo_api_retailmedia_v2023_04.model.section import Section +from criteo_api_retailmedia_v2023_04.model.status_response import StatusResponse +from criteo_api_retailmedia_v2023_04.model.status_response_resource import StatusResponseResource from criteo_api_retailmedia_v2023_04.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_04.model.store_target202110_request import StoreTarget202110Request from criteo_api_retailmedia_v2023_04.model.store_target202110_response import StoreTarget202110Response diff --git a/sdks/retailmedia_2023-04/docs/AnalyticsApi.md b/sdks/retailmedia_2023-04/docs/AnalyticsApi.md index a1b8c79b..96d9d412 100644 --- a/sdks/retailmedia_2023-04/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-04/docs/AnalyticsApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_report_output**](AnalyticsApi.md#get_report_output) | **GET** /2023-04/retail-media/reports/{reportId}/output | -[**get_report_status**](AnalyticsApi.md#get_report_status) | **GET** /2023-04/retail-media/reports/{reportId}/status | -[**request_campaign_report**](AnalyticsApi.md#request_campaign_report) | **POST** /2023-04/retail-media/reports/campaigns | -[**request_line_item_report**](AnalyticsApi.md#request_line_item_report) | **POST** /2023-04/retail-media/reports/line-items | +[**generate_async_campaigns_report**](AnalyticsApi.md#generate_async_campaigns_report) | **POST** /2023-04/retail-media/reports/campaigns | +[**generate_async_line_items_report**](AnalyticsApi.md#generate_async_line_items_report) | **POST** /2023-04/retail-media/reports/line-items | +[**get_async_export_output**](AnalyticsApi.md#get_async_export_output) | **GET** /2023-04/retail-media/reports/{reportId}/output | +[**get_async_export_status**](AnalyticsApi.md#get_async_export_status) | **GET** /2023-04/retail-media/reports/{reportId}/status | -# **get_report_output** -> str get_report_output(report_id) +# **generate_async_campaigns_report** +> AsyncReportResponse generate_async_campaigns_report(async_campaigns_report_request) -Request the report output +Return an asynchronous Campaigns Report ### Example @@ -26,6 +26,9 @@ Request the report output import time import criteo_api_retailmedia_v2023_04 from criteo_api_retailmedia_v2023_04.api import analytics_api +from criteo_api_retailmedia_v2023_04.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_04.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_04.model.async_campaigns_report_request import AsyncCampaignsReportRequest 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. @@ -54,14 +57,39 @@ 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 = "reportId_example" # str | report id + async_campaigns_report_request = AsyncCampaignsReportRequest( + data=AsyncCampaignsReportResource( + type="type_example", + attributes=AsyncCampaignsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncCampaignsReportRequest | # 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_campaigns_report(async_campaigns_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_04.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_output: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_campaigns_report: %s\n" % e) ``` @@ -69,11 +97,11 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **async_campaigns_report_request** | [**AsyncCampaignsReportRequest**](AsyncCampaignsReportRequest.md)| | ### Return type -**str** +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -81,27 +109,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_async_line_items_report** +> AsyncReportResponse generate_async_line_items_report(async_line_items_report_request) -Get the status of the report +Returns an asynchronous Line Items Report ### Example @@ -112,7 +139,9 @@ Get the status of the report import time import criteo_api_retailmedia_v2023_04 from criteo_api_retailmedia_v2023_04.api import analytics_api -from criteo_api_retailmedia_v2023_04.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_04.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_04.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_04.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. @@ -141,14 +170,39 @@ 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 = "reportId_example" # str | report id + async_line_items_report_request = AsyncLineItemsReportRequest( + data=AsyncLineItemsReportResource( + type="type_example", + attributes=AsyncLineItemsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncLineItemsReportRequest | # 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_async_line_items_report(async_line_items_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_04.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_status: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) ``` @@ -156,11 +210,11 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **async_line_items_report_request** | [**AsyncLineItemsReportRequest**](AsyncLineItemsReportRequest.md)| | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -168,27 +222,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **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** | 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) +# **get_async_export_output** +> str get_async_export_output(report_id) -Request a campaign report +Returns the output of an async report ### Example @@ -199,9 +252,7 @@ Request a campaign report import time import criteo_api_retailmedia_v2023_04 from criteo_api_retailmedia_v2023_04.api import analytics_api -from criteo_api_retailmedia_v2023_04.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_04.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_04.model.bad_request import BadRequest +from criteo_api_retailmedia_v2023_04.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. @@ -230,32 +281,14 @@ 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) - 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", - ], - 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 | Envelope of the request + 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.request_campaign_report(envelope_report_request) + api_response = api_instance.get_async_export_output(report_id) pprint(api_response) except criteo_api_retailmedia_v2023_04.ApiException as e: - print("Exception when calling AnalyticsApi->request_campaign_report: %s\n" % e) + print("Exception when calling AnalyticsApi->get_async_export_output: %s\n" % e) ``` @@ -263,11 +296,11 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | + **report_id** | **str**| The ID of the report to retrieve | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +**str** ### Authorization @@ -275,27 +308,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **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) +# **get_async_export_status** +> AsyncReportResponse get_async_export_status(report_id) -Request a line item report +Returns the status of an async report ### Example @@ -306,9 +338,8 @@ Request a line item report import time import criteo_api_retailmedia_v2023_04 from criteo_api_retailmedia_v2023_04.api import analytics_api -from criteo_api_retailmedia_v2023_04.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_v2023_04.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2023_04.model.bad_request import BadRequest +from criteo_api_retailmedia_v2023_04.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_04.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. @@ -337,32 +368,14 @@ 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) - 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", - ], - 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 | Envelope of the request + 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.request_line_item_report(envelope_report_request) + api_response = api_instance.get_async_export_status(report_id) pprint(api_response) except criteo_api_retailmedia_v2023_04.ApiException as e: - print("Exception when calling AnalyticsApi->request_line_item_report: %s\n" % e) + print("Exception when calling AnalyticsApi->get_async_export_status: %s\n" % e) ``` @@ -370,11 +383,11 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | + **report_id** | **str**| The ID of the report to retrieve | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -382,18 +395,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **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) diff --git a/sdks/retailmedia_2023-04/docs/AsyncCampaignsReport.md b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReport.md new file mode 100644 index 00000000..04625e77 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignsReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-04/docs/AsyncCampaignsReportRequest.md b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReportRequest.md new file mode 100644 index 00000000..a81e24db --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncCampaignsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncCampaignsReportResource**](AsyncCampaignsReportResource.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-04/docs/AsyncCampaignsReportResource.md b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReportResource.md new file mode 100644 index 00000000..946c021f --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncCampaignsReportResource.md @@ -0,0 +1,14 @@ +# AsyncCampaignsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncCampaignsReport**](AsyncCampaignsReport.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-04/docs/AsyncLineItemsReport.md b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReport.md new file mode 100644 index 00000000..223e1c26 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemsReport + +Line Items report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-04/docs/AsyncLineItemsReportRequest.md b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReportRequest.md new file mode 100644 index 00000000..0d20f088 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncLineItemsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncLineItemsReportResource**](AsyncLineItemsReportResource.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-04/docs/AsyncLineItemsReportResource.md b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReportResource.md new file mode 100644 index 00000000..464b8885 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncLineItemsReportResource.md @@ -0,0 +1,14 @@ +# AsyncLineItemsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncLineItemsReport**](AsyncLineItemsReport.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-04/docs/AsyncReportResponse.md b/sdks/retailmedia_2023-04/docs/AsyncReportResponse.md new file mode 100644 index 00000000..938eb3a2 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/AsyncReportResponse.md @@ -0,0 +1,15 @@ +# AsyncReportResponse + +Async Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StatusResponseResource**](StatusResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-04/docs/EnvelopeReportRequest.md b/sdks/retailmedia_2023-04/docs/EnvelopeReportRequest.md deleted file mode 100644 index 1c864080..00000000 --- a/sdks/retailmedia_2023-04/docs/EnvelopeReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# EnvelopeReportRequest - -Standard response envelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReportRequest**](ReportRequest.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-04/docs/EnvelopeReportStatus.md b/sdks/retailmedia_2023-04/docs/EnvelopeReportStatus.md deleted file mode 100644 index 6bb4f128..00000000 --- a/sdks/retailmedia_2023-04/docs/EnvelopeReportStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# EnvelopeReportStatus - -Standard response envelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReportStatus**](ReportStatus.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-04/docs/Error.md b/sdks/retailmedia_2023-04/docs/Error.md deleted file mode 100644 index 01e79f5a..00000000 --- a/sdks/retailmedia_2023-04/docs/Error.md +++ /dev/null @@ -1,20 +0,0 @@ -# Error - -Error - -## 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, none_type** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | [**MapString**](MapString.md) | | [optional] -**stack_trace** | **[str], none_type** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc | [optional] -**title** | **str, none_type** | (RECOMMENDED) A short, human-readable summary of the problem 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-04/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-04/docs/ExternalBalance202110.md index 77ad10c5..e293b348 100644 --- a/sdks/retailmedia_2023-04/docs/ExternalBalance202110.md +++ b/sdks/retailmedia_2023-04/docs/ExternalBalance202110.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **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** | | +**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../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/MapString.md b/sdks/retailmedia_2023-04/docs/MapString.md deleted file mode 100644 index c73c2ae8..00000000 --- a/sdks/retailmedia_2023-04/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_2023-04/docs/ReportOutcome.md b/sdks/retailmedia_2023-04/docs/ReportOutcome.md new file mode 100644 index 00000000..347c3ef5 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/ReportOutcome.md @@ -0,0 +1,14 @@ +# ReportOutcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-04/docs/ReportRequest.md b/sdks/retailmedia_2023-04/docs/ReportRequest.md deleted file mode 100644 index 8ad71920..00000000 --- a/sdks/retailmedia_2023-04/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_2023-04/docs/ReportRequestAttributes.md b/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md deleted file mode 100644 index 50c12529..00000000 --- a/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md +++ /dev/null @@ -1,22 +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, none_type** | Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified | [optional] -**format** | **str, none_type** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" -**id** | **str, none_type** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] -**ids** | **[str], none_type** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] -**revenue_type** | **str, none_type** | | [optional] -**time_zone** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | 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_2023-04/docs/ReportStatus.md b/sdks/retailmedia_2023-04/docs/ReportStatus.md deleted file mode 100644 index 888d4c93..00000000 --- a/sdks/retailmedia_2023-04/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_2023-04/docs/ReportStatusAttributes.md b/sdks/retailmedia_2023-04/docs/ReportStatusAttributes.md deleted file mode 100644 index 70fcf412..00000000 --- a/sdks/retailmedia_2023-04/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, none_type** | Timestamp when the report started to execute | [optional] -**expires_at** | **datetime, none_type** | Timestamp when the cached report will expire | [optional] -**file_size_bytes** | **int, none_type** | Total size of file, only populated on success | [optional] -**md5_checksum** | **str, none_type** | The MD5 checksum of the content, only populated on success | [optional] -**message** | **str, none_type** | Failure message, only populated on failure | [optional] -**row_count** | **int, none_type** | 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_2023-04/docs/StatusResponse.md b/sdks/retailmedia_2023-04/docs/StatusResponse.md new file mode 100644 index 00000000..e5947f61 --- /dev/null +++ b/sdks/retailmedia_2023-04/docs/StatusResponse.md @@ -0,0 +1,20 @@ +# StatusResponse + +Status of an async report request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str, none_type** | | [optional] +**row_count** | **int, none_type** | | [optional] +**file_size_bytes** | **int, none_type** | | [optional] +**md5_check_sum** | **str, none_type** | | [optional] +**created_at** | **str, none_type** | | [optional] +**expires_at** | **str, none_type** | | [optional] +**message** | **str, none_type** | | [optional] +**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-04/docs/StatusResponseResource.md b/sdks/retailmedia_2023-04/docs/StatusResponseResource.md new file mode 100644 index 00000000..5f28b4c3 --- /dev/null +++ b/sdks/retailmedia_2023-04/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, none_type** | | [optional] +**type** | **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-04/setup.py b/sdks/retailmedia_2023-04/setup.py index a610fdb4..c4321590 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.230831" +VERSION = "2023.04.0.231113" # 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.230831 +pip install criteo-api-retailmedia-sdk==2023.04.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.231113`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-07/.openapi-generator/FILES b/sdks/retailmedia_2023-07/.openapi-generator/FILES index 6177c3f5..109c9192 100644 --- a/sdks/retailmedia_2023-07/.openapi-generator/FILES +++ b/sdks/retailmedia_2023-07/.openapi-generator/FILES @@ -28,12 +28,12 @@ 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_campaign_report.py -criteo_api_retailmedia_v2023_07/model/async_campaign_report_request.py -criteo_api_retailmedia_v2023_07/model/async_campaign_report_resource.py -criteo_api_retailmedia_v2023_07/model/async_line_item_report.py -criteo_api_retailmedia_v2023_07/model/async_line_item_report_request.py -criteo_api_retailmedia_v2023_07/model/async_line_item_report_resource.py +criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py +criteo_api_retailmedia_v2023_07/model/async_campaigns_report_request.py +criteo_api_retailmedia_v2023_07/model/async_campaigns_report_resource.py +criteo_api_retailmedia_v2023_07/model/async_line_items_report.py +criteo_api_retailmedia_v2023_07/model/async_line_items_report_request.py +criteo_api_retailmedia_v2023_07/model/async_line_items_report_resource.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 @@ -215,12 +215,12 @@ docs/ApplicationSummaryModelResponse.md docs/Asset.md docs/AssetResource.md docs/AssetResponse.md -docs/AsyncCampaignReport.md -docs/AsyncCampaignReportRequest.md -docs/AsyncCampaignReportResource.md -docs/AsyncLineItemReport.md -docs/AsyncLineItemReportRequest.md -docs/AsyncLineItemReportResource.md +docs/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.md docs/AsyncReportResponse.md docs/AuctionLineItemCreateModelRequest.md docs/AuctionLineItemPagedListResponse.md diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md index eeb3417a..bbd4a1e2 100644 --- a/sdks/retailmedia_2023-07/README.md +++ b/sdks/retailmedia_2023-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: 2023.07.0.230831 +- Package version: 2023.07.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.07.0.230831 +pip install criteo-api-retailmedia-sdk==2023.07.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.231113`) Then import the package: ```python @@ -69,12 +69,12 @@ Class | Method | HTTP request | Description - [Asset](docs/Asset.md) - [AssetResource](docs/AssetResource.md) - [AssetResponse](docs/AssetResponse.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) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) - [AsyncReportResponse](docs/AsyncReportResponse.md) - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) 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 index fdf21b2c..b8608dd0 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.07.0.230831" +__version__ = "2023.07.0.231113" # import ApiClient from criteo_api_retailmedia_v2023_07.api_client import ApiClient 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 index b5001281..b9c5e140 100644 --- 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 @@ -21,8 +21,8 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2023_07.model.async_campaign_report_request import AsyncCampaignReportRequest -from criteo_api_retailmedia_v2023_07.model.async_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_v2023_07.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_07.model.async_line_items_report_request import AsyncLineItemsReportRequest from criteo_api_retailmedia_v2023_07.model.async_report_response import AsyncReportResponse from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome @@ -38,7 +38,7 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.generate_async_campaign_report_endpoint = _Endpoint( + self.generate_async_campaigns_report_endpoint = _Endpoint( settings={ 'response_type': (AsyncReportResponse,), 'auth': [ @@ -46,16 +46,16 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/2023-07/retail-media/reports/campaigns', - 'operation_id': 'generate_async_campaign_report', + 'operation_id': 'generate_async_campaigns_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'async_campaign_report_request', + 'async_campaigns_report_request', ], 'required': [ - 'async_campaign_report_request', + 'async_campaigns_report_request', ], 'nullable': [ ], @@ -70,13 +70,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'async_campaign_report_request': - (AsyncCampaignReportRequest,), + 'async_campaigns_report_request': + (AsyncCampaignsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'async_campaign_report_request': 'body', + 'async_campaigns_report_request': 'body', }, 'collection_format_map': { } @@ -110,10 +110,10 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'async_line_item_report_request', + 'async_line_items_report_request', ], 'required': [ - 'async_line_item_report_request', + 'async_line_items_report_request', ], 'nullable': [ ], @@ -128,13 +128,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'async_line_item_report_request': - (AsyncLineItemReportRequest,), + 'async_line_items_report_request': + (AsyncLineItemsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'async_line_item_report_request': 'body', + 'async_line_items_report_request': 'body', }, 'collection_format_map': { } @@ -263,22 +263,22 @@ def __init__(self, api_client=None): api_client=api_client ) - def generate_async_campaign_report( + def generate_async_campaigns_report( self, - async_campaign_report_request, + async_campaigns_report_request, **kwargs ): - """generate_async_campaign_report # noqa: E501 + """generate_async_campaigns_report # noqa: E501 - Return an async Campaign Report # noqa: E501 + Return an asynchronous Campaigns 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_campaign_report(async_campaign_report_request, async_req=True) + >>> thread = api.generate_async_campaigns_report(async_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - async_campaign_report_request (AsyncCampaignReportRequest): + async_campaigns_report_request (AsyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -342,26 +342,26 @@ def generate_async_campaign_report( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['async_campaign_report_request'] = \ - async_campaign_report_request - return self.generate_async_campaign_report_endpoint.call_with_http_info(**kwargs) + kwargs['async_campaigns_report_request'] = \ + async_campaigns_report_request + return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs) def generate_async_line_items_report( self, - async_line_item_report_request, + async_line_items_report_request, **kwargs ): """generate_async_line_items_report # noqa: E501 - Return an async Line Item Report # noqa: E501 + Returns an asynchronous Line Items 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) + >>> thread = api.generate_async_line_items_report(async_line_items_report_request, async_req=True) >>> result = thread.get() Args: - async_line_item_report_request (AsyncLineItemReportRequest): + async_line_items_report_request (AsyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -425,8 +425,8 @@ def generate_async_line_items_report( '_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 + kwargs['async_line_items_report_request'] = \ + async_line_items_report_request return self.generate_async_line_items_report_endpoint.call_with_http_info(**kwargs) def get_async_export_output( @@ -436,7 +436,7 @@ def get_async_export_output( ): """get_async_export_output # noqa: E501 - Return the output of an async report # noqa: E501 + Returns 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 @@ -519,7 +519,7 @@ def get_async_export_status( ): """get_async_export_status # noqa: E501 - Return the status of an async report # noqa: E501 + Returns 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 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 index 6f7f941f..0be690aa 100644 --- 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 @@ -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.07.0.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.231113/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - 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__() + api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint + api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.generate_async_campaign_report.callable or self.callable in this class + api_instance.generate_async_campaigns_report.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) 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 index 992729e0..9714d3ea 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-07\n"\ - "SDK Package Version: 2023.07.0.230831".\ + "SDK Package Version: 2023.07.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py similarity index 80% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py index 90c9760c..9f551cfb 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py @@ -30,7 +30,7 @@ -class AsyncCampaignReport(ModelNormal): +class AsyncCampaignsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,10 +70,13 @@ class AsyncCampaignReport(ModelNormal): 'ROAS': "roas", 'UNIQUEVISITORS': "uniqueVisitors", 'FREQUENCY': "frequency", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", }, ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -83,23 +86,11 @@ class AsyncCampaignReport(ModelNormal): 'BRANDID': "brandId", 'BRANDNAME': "brandName", 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", 'KEYWORD': "keyword", 'SALESCHANNEL': "salesChannel", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", - }, - ('view_attribution_window',): { - 'None': None, - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", }, ('campaign_type',): { 'None': None, @@ -126,6 +117,23 @@ class AsyncCampaignReport(ModelNormal): 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", }, } @@ -157,15 +165,15 @@ def openapi_types(): 'end_date': (datetime,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 'format': (str, none_type,), # noqa: E501 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 'ids': ([str], none_type,), # noqa: E501 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -178,15 +186,15 @@ def discriminator(): '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 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'ids': 'ids', # noqa: E501 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -197,11 +205,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncCampaignReport - a model defined in OpenAPI + """AsyncCampaignsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,17 +242,17 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -299,11 +307,11 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 @convert_js_args_to_python_args def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncCampaignReport - a model defined in OpenAPI + """AsyncCampaignsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -336,17 +344,17 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_request.py similarity index 94% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_request.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_request.py index a3c4ec94..bcfa7ce6 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_request.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_07.model.async_campaign_report_resource import AsyncCampaignReportResource - globals()['AsyncCampaignReportResource'] = AsyncCampaignReportResource + from criteo_api_retailmedia_v2023_07.model.async_campaigns_report_resource import AsyncCampaignsReportResource + globals()['AsyncCampaignsReportResource'] = AsyncCampaignsReportResource -class AsyncCampaignReportRequest(ModelNormal): +class AsyncCampaignsReportRequest(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': (AsyncCampaignReportResource,), # noqa: E501 + 'data': (AsyncCampaignsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportRequest - a model defined in OpenAPI + """AsyncCampaignsReportRequest - 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,) - data (AsyncCampaignReportResource): [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [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 - """AsyncCampaignReportRequest - a model defined in OpenAPI + """AsyncCampaignsReportRequest - 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,) - data (AsyncCampaignReportResource): [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_resource.py similarity index 95% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_resource.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_resource.py index 018b174e..46d3f3b7 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaign_report_resource.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_campaigns_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_07.model.async_campaign_report import AsyncCampaignReport - globals()['AsyncCampaignReport'] = AsyncCampaignReport + from criteo_api_retailmedia_v2023_07.model.async_campaigns_report import AsyncCampaignsReport + globals()['AsyncCampaignsReport'] = AsyncCampaignsReport -class AsyncCampaignReportResource(ModelNormal): +class AsyncCampaignsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (AsyncCampaignReport,), # noqa: E501 + 'attributes': (AsyncCampaignsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportResource - a model defined in OpenAPI + """AsyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncCampaignReport): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportResource - a model defined in OpenAPI + """AsyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncCampaignReport): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report.py similarity index 81% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report.py index 1db27dca..da33a5b3 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report.py @@ -30,7 +30,7 @@ -class AsyncLineItemReport(ModelNormal): +class AsyncLineItemsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -75,6 +75,7 @@ class AsyncLineItemReport(ModelNormal): ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -90,21 +91,7 @@ class AsyncLineItemReport(ModelNormal): 'KEYWORD': "keyword", 'PAGETYPENAME': "pageTypeName", 'SALESCHANNEL': "salesChannel", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", - }, - ('view_attribution_window',): { - 'None': None, - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", + 'ENVIRONMENT': "environment", }, ('campaign_type',): { 'None': None, @@ -131,6 +118,23 @@ class AsyncLineItemReport(ModelNormal): 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", }, } @@ -162,15 +166,15 @@ def openapi_types(): 'end_date': (datetime,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 'format': (str, none_type,), # noqa: E501 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 'ids': ([str], none_type,), # noqa: E501 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -183,15 +187,15 @@ def discriminator(): '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 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'ids': 'ids', # noqa: E501 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -202,11 +206,11 @@ def discriminator(): @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 + """AsyncLineItemsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -239,17 +243,17 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -304,11 +308,11 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 @convert_js_args_to_python_args def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncLineItemReport - a model defined in OpenAPI + """AsyncLineItemsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -341,17 +345,17 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_request.py similarity index 94% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_request.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_request.py index 9320f49f..1736a38e 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_request.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_07.model.async_line_item_report_resource import AsyncLineItemReportResource - globals()['AsyncLineItemReportResource'] = AsyncLineItemReportResource + from criteo_api_retailmedia_v2023_07.model.async_line_items_report_resource import AsyncLineItemsReportResource + globals()['AsyncLineItemsReportResource'] = AsyncLineItemsReportResource -class AsyncLineItemReportRequest(ModelNormal): +class AsyncLineItemsReportRequest(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': (AsyncLineItemReportResource,), # noqa: E501 + 'data': (AsyncLineItemsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportRequest - a model defined in OpenAPI + """AsyncLineItemsReportRequest - 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,) - data (AsyncLineItemReportResource): [optional] # noqa: E501 + data (AsyncLineItemsReportResource): [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 - """AsyncLineItemReportRequest - a model defined in OpenAPI + """AsyncLineItemsReportRequest - 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,) - data (AsyncLineItemReportResource): [optional] # noqa: E501 + data (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_resource.py similarity index 95% rename from sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_resource.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_resource.py index b54cb72b..348d475a 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_item_report_resource.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_line_items_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2023_07.model.async_line_item_report import AsyncLineItemReport - globals()['AsyncLineItemReport'] = AsyncLineItemReport + from criteo_api_retailmedia_v2023_07.model.async_line_items_report import AsyncLineItemsReport + globals()['AsyncLineItemsReport'] = AsyncLineItemsReport -class AsyncLineItemReportResource(ModelNormal): +class AsyncLineItemsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (AsyncLineItemReport,), # noqa: E501 + 'attributes': (AsyncLineItemsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportResource - a model defined in OpenAPI + """AsyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncLineItemReport): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportResource - a model defined in OpenAPI + """AsyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncLineItemReport): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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 index 41e052b8..3293bcba 100644 --- 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 @@ -94,10 +94,10 @@ def openapi_types(): '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 + 'end_date': (date, none_type,), # noqa: E501 } @cached_property @@ -113,10 +113,10 @@ def discriminator(): '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 + 'end_date': 'endDate', # noqa: E501 } read_only_vars = { @@ -126,7 +126,7 @@ def discriminator(): @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 + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -137,7 +137,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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): @@ -173,6 +172,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -211,7 +211,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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 @@ -235,7 +234,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, ]) @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 + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -246,7 +245,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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): @@ -282,6 +280,7 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -318,7 +317,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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 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 index bd3bf4ae..500aa79e 100644 --- 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 @@ -18,12 +18,12 @@ 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_campaign_report import AsyncCampaignReport -from criteo_api_retailmedia_v2023_07.model.async_campaign_report_request import AsyncCampaignReportRequest -from criteo_api_retailmedia_v2023_07.model.async_campaign_report_resource import AsyncCampaignReportResource -from criteo_api_retailmedia_v2023_07.model.async_line_item_report import AsyncLineItemReport -from criteo_api_retailmedia_v2023_07.model.async_line_item_report_request import AsyncLineItemReportRequest -from criteo_api_retailmedia_v2023_07.model.async_line_item_report_resource import AsyncLineItemReportResource +from criteo_api_retailmedia_v2023_07.model.async_campaigns_report import AsyncCampaignsReport +from criteo_api_retailmedia_v2023_07.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_07.model.async_campaigns_report_resource import AsyncCampaignsReportResource +from criteo_api_retailmedia_v2023_07.model.async_line_items_report import AsyncLineItemsReport +from criteo_api_retailmedia_v2023_07.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_07.model.async_line_items_report_resource import AsyncLineItemsReportResource 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 diff --git a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md index b329b291..2335b714 100644 --- a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**generate_async_campaign_report**](AnalyticsApi.md#generate_async_campaign_report) | **POST** /2023-07/retail-media/reports/campaigns | +[**generate_async_campaigns_report**](AnalyticsApi.md#generate_async_campaigns_report) | **POST** /2023-07/retail-media/reports/campaigns | [**generate_async_line_items_report**](AnalyticsApi.md#generate_async_line_items_report) | **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_async_campaign_report** -> AsyncReportResponse generate_async_campaign_report(async_campaign_report_request) +# **generate_async_campaigns_report** +> AsyncReportResponse generate_async_campaigns_report(async_campaigns_report_request) -Return an async Campaign Report +Return an asynchronous Campaigns Report ### Example @@ -28,7 +28,7 @@ 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 criteo_api_retailmedia_v2023_07.model.async_campaign_report_request import AsyncCampaignReportRequest +from criteo_api_retailmedia_v2023_07.model.async_campaigns_report_request import AsyncCampaignsReportRequest 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. @@ -57,39 +57,39 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' 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) - async_campaign_report_request = AsyncCampaignReportRequest( - data=AsyncCampaignReportResource( + async_campaigns_report_request = AsyncCampaignsReportRequest( + data=AsyncCampaignsReportResource( type="type_example", - attributes=AsyncCampaignReport( + attributes=AsyncCampaignsReport( metrics=[ "impressions", ], dimensions=[ "date", ], - 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="timezone_example", campaign_type="sponsoredProducts", sales_channel="offline", - format="json", + format="json-compact", report_type="summary", + click_attribution_window="none", + view_attribution_window="none", ids=[ "ids_example", ], id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", ), ), - ) # AsyncCampaignReportRequest | + ) # AsyncCampaignsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_async_campaign_report(async_campaign_report_request) + api_response = api_instance.generate_async_campaigns_report(async_campaigns_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_07.ApiException as e: - print("Exception when calling AnalyticsApi->generate_async_campaign_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_campaigns_report: %s\n" % e) ``` @@ -97,7 +97,7 @@ with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **async_campaign_report_request** | [**AsyncCampaignReportRequest**](AsyncCampaignReportRequest.md)| | + **async_campaigns_report_request** | [**AsyncCampaignsReportRequest**](AsyncCampaignsReportRequest.md)| | ### Return type @@ -124,11 +124,11 @@ 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) # **generate_async_line_items_report** -> AsyncReportResponse generate_async_line_items_report(async_line_item_report_request) +> AsyncReportResponse generate_async_line_items_report(async_line_items_report_request) -Return an async Line Item Report +Returns an asynchronous Line Items Report ### Example @@ -141,7 +141,7 @@ 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 criteo_api_retailmedia_v2023_07.model.async_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_v2023_07.model.async_line_items_report_request import AsyncLineItemsReportRequest 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. @@ -170,36 +170,36 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' 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) - async_line_item_report_request = AsyncLineItemReportRequest( - data=AsyncLineItemReportResource( + async_line_items_report_request = AsyncLineItemsReportRequest( + data=AsyncLineItemsReportResource( type="type_example", - attributes=AsyncLineItemReport( + attributes=AsyncLineItemsReport( metrics=[ "impressions", ], dimensions=[ "date", ], - 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="timezone_example", campaign_type="sponsoredProducts", sales_channel="offline", - format="json", + format="json-compact", report_type="summary", + click_attribution_window="none", + view_attribution_window="none", ids=[ "ids_example", ], id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", ), ), - ) # AsyncLineItemReportRequest | + ) # AsyncLineItemsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_async_line_items_report(async_line_item_report_request) + api_response = api_instance.generate_async_line_items_report(async_line_items_report_request) pprint(api_response) except criteo_api_retailmedia_v2023_07.ApiException as e: print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) @@ -210,7 +210,7 @@ with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **async_line_item_report_request** | [**AsyncLineItemReportRequest**](AsyncLineItemReportRequest.md)| | + **async_line_items_report_request** | [**AsyncLineItemsReportRequest**](AsyncLineItemsReportRequest.md)| | ### Return type @@ -241,7 +241,7 @@ Name | Type | Description | Notes -Return the output of an async report +Returns the output of an async report ### Example @@ -327,7 +327,7 @@ Name | Type | Description | Notes -Return the status of an async report +Returns the status of an async report ### Example diff --git a/sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md deleted file mode 100644 index af5adc33..00000000 --- a/sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md +++ /dev/null @@ -1,25 +0,0 @@ -# AsyncCampaignReport - -Campaign report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | | [optional] -**click_attribution_window** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | | [optional] -**timezone** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **str, none_type** | | [optional] -**format** | **str, none_type** | | [optional] -**report_type** | **str, none_type** | | [optional] -**ids** | **[str], none_type** | | [optional] -**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/AsyncCampaignsReport.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReport.md new file mode 100644 index 00000000..04625e77 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignsReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md new file mode 100644 index 00000000..a81e24db --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncCampaignsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncCampaignsReportResource**](AsyncCampaignsReportResource.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/AsyncCampaignsReportResource.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportResource.md new file mode 100644 index 00000000..946c021f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignsReportResource.md @@ -0,0 +1,14 @@ +# AsyncCampaignsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncCampaignsReport**](AsyncCampaignsReport.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/AsyncLineItemReport.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md deleted file mode 100644 index 1ba676e3..00000000 --- a/sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md +++ /dev/null @@ -1,25 +0,0 @@ -# AsyncLineItemReport - -Line Item report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | | [optional] -**click_attribution_window** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | | [optional] -**timezone** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **str, none_type** | | [optional] -**format** | **str, none_type** | | [optional] -**report_type** | **str, none_type** | | [optional] -**ids** | **[str], none_type** | | [optional] -**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/AsyncLineItemsReport.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReport.md new file mode 100644 index 00000000..223e1c26 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemsReport + +Line Items report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md new file mode 100644 index 00000000..0d20f088 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncLineItemsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncLineItemsReportResource**](AsyncLineItemsReportResource.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/AsyncLineItemsReportResource.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportResource.md new file mode 100644 index 00000000..464b8885 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemsReportResource.md @@ -0,0 +1,14 @@ +# AsyncLineItemsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncLineItemsReport**](AsyncLineItemsReport.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/ExternalBalance202110.md b/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md index 77ad10c5..e293b348 100644 --- a/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md +++ b/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **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** | | +**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../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/setup.py b/sdks/retailmedia_2023-07/setup.py index e4197092..117c2c34 100644 --- a/sdks/retailmedia_2023-07/setup.py +++ b/sdks/retailmedia_2023-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.07.0.230831" +VERSION = "2023.07.0.231113" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.07.0.230831 +pip install criteo-api-retailmedia-sdk==2023.07.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.231113`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2022-10/.gitignore b/sdks/retailmedia_2023-10/.gitignore similarity index 100% rename from sdks/marketingsolutions_2022-10/.gitignore rename to sdks/retailmedia_2023-10/.gitignore diff --git a/sdks/retailmedia_2022-07/.gitlab-ci.yml b/sdks/retailmedia_2023-10/.gitlab-ci.yml similarity index 88% rename from sdks/retailmedia_2022-07/.gitlab-ci.yml rename to sdks/retailmedia_2023-10/.gitlab-ci.yml index aeb362ee..ba640602 100644 --- a/sdks/retailmedia_2022-07/.gitlab-ci.yml +++ b/sdks/retailmedia_2023-10/.gitlab-ci.yml @@ -8,7 +8,7 @@ stages: script: - pip install -r requirements.txt - pip install -r test-requirements.txt - - pytest --cov=criteo_api_retailmedia_v2022_07 + - pytest --cov=criteo_api_retailmedia_v2023_10 test-3.6: extends: .tests diff --git a/sdks/retailmedia_2023-10/.openapi-generator/FILES b/sdks/retailmedia_2023-10/.openapi-generator/FILES new file mode 100644 index 00000000..102b5ce4 --- /dev/null +++ b/sdks/retailmedia_2023-10/.openapi-generator/FILES @@ -0,0 +1,442 @@ +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +criteo_api_retailmedia_v2023_10/__init__.py +criteo_api_retailmedia_v2023_10/api/__init__.py +criteo_api_retailmedia_v2023_10/api/analytics_api.py +criteo_api_retailmedia_v2023_10/api/audience_api.py +criteo_api_retailmedia_v2023_10/api/campaign_api.py +criteo_api_retailmedia_v2023_10/api/gateway_api.py +criteo_api_retailmedia_v2023_10/api_client.py +criteo_api_retailmedia_v2023_10/api_client_builder.py +criteo_api_retailmedia_v2023_10/apis/__init__.py +criteo_api_retailmedia_v2023_10/configuration.py +criteo_api_retailmedia_v2023_10/criteo_api_client.py +criteo_api_retailmedia_v2023_10/criteo_auth.py +criteo_api_retailmedia_v2023_10/criteo_rest.py +criteo_api_retailmedia_v2023_10/exceptions.py +criteo_api_retailmedia_v2023_10/flow_constants.py +criteo_api_retailmedia_v2023_10/model/__init__.py +criteo_api_retailmedia_v2023_10/model/add_funds_to_balance_request.py +criteo_api_retailmedia_v2023_10/model/add_to_basket_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_request.py +criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_response.py +criteo_api_retailmedia_v2023_10/model/application_summary_model.py +criteo_api_retailmedia_v2023_10/model/application_summary_model_resource.py +criteo_api_retailmedia_v2023_10/model/application_summary_model_response.py +criteo_api_retailmedia_v2023_10/model/asset.py +criteo_api_retailmedia_v2023_10/model/asset_resource.py +criteo_api_retailmedia_v2023_10/model/asset_response.py +criteo_api_retailmedia_v2023_10/model/async_campaigns_report.py +criteo_api_retailmedia_v2023_10/model/async_campaigns_report_request.py +criteo_api_retailmedia_v2023_10/model/async_campaigns_report_resource.py +criteo_api_retailmedia_v2023_10/model/async_line_items_report.py +criteo_api_retailmedia_v2023_10/model/async_line_items_report_request.py +criteo_api_retailmedia_v2023_10/model/async_line_items_report_resource.py +criteo_api_retailmedia_v2023_10/model/async_report_response.py +criteo_api_retailmedia_v2023_10/model/async_revenue_report.py +criteo_api_retailmedia_v2023_10/model/async_revenue_report_request.py +criteo_api_retailmedia_v2023_10/model/async_revenue_report_resource.py +criteo_api_retailmedia_v2023_10/model/auction_line_item_create_model_request.py +criteo_api_retailmedia_v2023_10/model/auction_line_item_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/auction_line_item_response.py +criteo_api_retailmedia_v2023_10/model/auction_line_item_update_model_request.py +criteo_api_retailmedia_v2023_10/model/audience_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_10/model/audience_target202110_request.py +criteo_api_retailmedia_v2023_10/model/audience_target202110_response.py +criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/balance_campaign202110_list_request.py +criteo_api_retailmedia_v2023_10/model/balance_campaign202110_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/balance_response.py +criteo_api_retailmedia_v2023_10/model/balance_response_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py +criteo_api_retailmedia_v2023_10/model/campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/category202204.py +criteo_api_retailmedia_v2023_10/model/category202204_list_response.py +criteo_api_retailmedia_v2023_10/model/change_dates_of_balance_request.py +criteo_api_retailmedia_v2023_10/model/choice_option.py +criteo_api_retailmedia_v2023_10/model/choice_variable_specification.py +criteo_api_retailmedia_v2023_10/model/choice_variable_value.py +criteo_api_retailmedia_v2023_10/model/color_variable_value.py +criteo_api_retailmedia_v2023_10/model/common_error.py +criteo_api_retailmedia_v2023_10/model/common_line_item_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/common_line_item_response.py +criteo_api_retailmedia_v2023_10/model/common_problem.py +criteo_api_retailmedia_v2023_10/model/common_status_code_response.py +criteo_api_retailmedia_v2023_10/model/common_warning.py +criteo_api_retailmedia_v2023_10/model/create_balance_request.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_attributes.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_body.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_request.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_response.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_attributes.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_data.py +criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_request.py +criteo_api_retailmedia_v2023_10/model/create_user_behavior_segment_v2.py +criteo_api_retailmedia_v2023_10/model/creative202110.py +criteo_api_retailmedia_v2023_10/model/creative202110_list_response.py +criteo_api_retailmedia_v2023_10/model/creative202210.py +criteo_api_retailmedia_v2023_10/model/creative202210_list_response.py +criteo_api_retailmedia_v2023_10/model/creative202210_response.py +criteo_api_retailmedia_v2023_10/model/creative_create_model202207.py +criteo_api_retailmedia_v2023_10/model/creative_update_model202207.py +criteo_api_retailmedia_v2023_10/model/customer_list_details.py +criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py +criteo_api_retailmedia_v2023_10/model/external_account.py +criteo_api_retailmedia_v2023_10/model/external_add_funds_to_balance.py +criteo_api_retailmedia_v2023_10/model/external_add_to_basket_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/external_add_to_basket_target202110.py +criteo_api_retailmedia_v2023_10/model/external_auction_line_item.py +criteo_api_retailmedia_v2023_10/model/external_auction_line_item_create_model.py +criteo_api_retailmedia_v2023_10/model/external_auction_line_item_update_model.py +criteo_api_retailmedia_v2023_10/model/external_audience_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/external_audience_target202110.py +criteo_api_retailmedia_v2023_10/model/external_balance202110.py +criteo_api_retailmedia_v2023_10/model/external_balance_response.py +criteo_api_retailmedia_v2023_10/model/external_brand.py +criteo_api_retailmedia_v2023_10/model/external_catalog_request.py +criteo_api_retailmedia_v2023_10/model/external_catalog_status.py +criteo_api_retailmedia_v2023_10/model/external_change_dates_of_balance.py +criteo_api_retailmedia_v2023_10/model/external_common_line_item.py +criteo_api_retailmedia_v2023_10/model/external_create_balance.py +criteo_api_retailmedia_v2023_10/model/external_keyword_target202110.py +criteo_api_retailmedia_v2023_10/model/external_line_item_capping202110.py +criteo_api_retailmedia_v2023_10/model/external_line_item_page202110.py +criteo_api_retailmedia_v2023_10/model/external_line_item_page_category202110.py +criteo_api_retailmedia_v2023_10/model/external_preferred_line_item202110.py +criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_create_model202110.py +criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_update_model202110.py +criteo_api_retailmedia_v2023_10/model/external_promoted_product202110.py +criteo_api_retailmedia_v2023_10/model/external_retailer.py +criteo_api_retailmedia_v2023_10/model/external_retailer_pages202110.py +criteo_api_retailmedia_v2023_10/model/external_store_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/external_store_target202110.py +criteo_api_retailmedia_v2023_10/model/external_update_balance_model.py +criteo_api_retailmedia_v2023_10/model/files_variable_value.py +criteo_api_retailmedia_v2023_10/model/files_variables_specification.py +criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py +criteo_api_retailmedia_v2023_10/model/hyperlink_variable_value.py +criteo_api_retailmedia_v2023_10/model/input_resource_of_auction_line_item_create_model.py +criteo_api_retailmedia_v2023_10/model/input_resource_of_preferred_line_item_create_model202110.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_account_and_account.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_account.py +criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_brand.py +criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_retailer.py +criteo_api_retailmedia_v2023_10/model/json_api_request_of_catalog_request.py +criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_catalog_status.py +criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_10/model/keyword_target202110_request.py +criteo_api_retailmedia_v2023_10/model/keyword_target202110_response.py +criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_request.py +criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_response.py +criteo_api_retailmedia_v2023_10/model/page_metadata.py +criteo_api_retailmedia_v2023_10/model/page_type_environment.py +criteo_api_retailmedia_v2023_10/model/post_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_response.py +criteo_api_retailmedia_v2023_10/model/preferred_line_item_create_model202110_request.py +criteo_api_retailmedia_v2023_10/model/preferred_line_item_update_model202110_request.py +criteo_api_retailmedia_v2023_10/model/problem_details.py +criteo_api_retailmedia_v2023_10/model/promoted_product202110_list_request.py +criteo_api_retailmedia_v2023_10/model/promoted_product202110_paged_list_response.py +criteo_api_retailmedia_v2023_10/model/put_campaign_v202301.py +criteo_api_retailmedia_v2023_10/model/report_outcome.py +criteo_api_retailmedia_v2023_10/model/resource_of_add_funds_to_balance.py +criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item.py +criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item_update_model.py +criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_balance_campaign202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_balance_response.py +criteo_api_retailmedia_v2023_10/model/resource_of_category202204.py +criteo_api_retailmedia_v2023_10/model/resource_of_change_dates_of_balance.py +criteo_api_retailmedia_v2023_10/model/resource_of_common_line_item.py +criteo_api_retailmedia_v2023_10/model/resource_of_create_balance.py +criteo_api_retailmedia_v2023_10/model/resource_of_creative202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_creative202210.py +criteo_api_retailmedia_v2023_10/model/resource_of_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item_update_model202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_promoted_product202110.py +criteo_api_retailmedia_v2023_10/model/resource_of_template.py +criteo_api_retailmedia_v2023_10/model/resource_of_update_balance_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience_attributes.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_attributes.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_list_response.py +criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_response.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keyword_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_request.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_resource.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_input_keywords_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keyword_data_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_resource.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_response.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_problem_details.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_resource.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_response.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_resource_outcome.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bid_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_request.py +criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_resource.py +criteo_api_retailmedia_v2023_10/model/section.py +criteo_api_retailmedia_v2023_10/model/status_response.py +criteo_api_retailmedia_v2023_10/model/status_response_resource.py +criteo_api_retailmedia_v2023_10/model/store_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_10/model/store_target202110_request.py +criteo_api_retailmedia_v2023_10/model/store_target202110_response.py +criteo_api_retailmedia_v2023_10/model/template.py +criteo_api_retailmedia_v2023_10/model/template_list_response.py +criteo_api_retailmedia_v2023_10/model/template_response.py +criteo_api_retailmedia_v2023_10/model/template_variable.py +criteo_api_retailmedia_v2023_10/model/template_variable_value.py +criteo_api_retailmedia_v2023_10/model/text_variable_specification.py +criteo_api_retailmedia_v2023_10/model/text_variable_value.py +criteo_api_retailmedia_v2023_10/model/update_balance_model_request.py +criteo_api_retailmedia_v2023_10/model/user_behavior_details.py +criteo_api_retailmedia_v2023_10/model/user_behavior_details_v2.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_target202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_target202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_keyword_target202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_ids_update_model202110.py +criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_target202110.py +criteo_api_retailmedia_v2023_10/model_utils.py +criteo_api_retailmedia_v2023_10/models/__init__.py +criteo_api_retailmedia_v2023_10/rest.py +docs/AddFundsToBalanceRequest.md +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/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.md +docs/AsyncReportResponse.md +docs/AsyncRevenueReport.md +docs/AsyncRevenueReportRequest.md +docs/AsyncRevenueReportResource.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/BalanceResponse.md +docs/BalanceResponsePagedListResponse.md +docs/CampaignApi.md +docs/CampaignAttributesV202301.md +docs/CampaignV202301.md +docs/Category202204.md +docs/Category202204ListResponse.md +docs/ChangeDatesOfBalanceRequest.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/CreateBalanceRequest.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/ExternalAccount.md +docs/ExternalAddFundsToBalance.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/ExternalBalanceResponse.md +docs/ExternalBrand.md +docs/ExternalCatalogRequest.md +docs/ExternalCatalogStatus.md +docs/ExternalChangeDatesOfBalance.md +docs/ExternalCommonLineItem.md +docs/ExternalCreateBalance.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/ExternalUpdateBalanceModel.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/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/ReportOutcome.md +docs/ResourceOfAddFundsToBalance.md +docs/ResourceOfAuctionLineItem.md +docs/ResourceOfAuctionLineItemUpdateModel.md +docs/ResourceOfBalance202110.md +docs/ResourceOfBalanceCampaign202110.md +docs/ResourceOfBalanceResponse.md +docs/ResourceOfCategory202204.md +docs/ResourceOfChangeDatesOfBalance.md +docs/ResourceOfCommonLineItem.md +docs/ResourceOfCreateBalance.md +docs/ResourceOfCreative202110.md +docs/ResourceOfCreative202210.md +docs/ResourceOfLineItemBidMultipliers.md +docs/ResourceOfPreferredLineItem202110.md +docs/ResourceOfPreferredLineItemUpdateModel202110.md +docs/ResourceOfPromotedProduct202110.md +docs/ResourceOfTemplate.md +docs/ResourceOfUpdateBalanceModel.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/UpdateBalanceModelRequest.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/marketingsolutions_2022-10/.openapi-generator/VERSION b/sdks/retailmedia_2023-10/.openapi-generator/VERSION similarity index 100% rename from sdks/marketingsolutions_2022-10/.openapi-generator/VERSION rename to sdks/retailmedia_2023-10/.openapi-generator/VERSION diff --git a/sdks/retailmedia_2022-07/README.md b/sdks/retailmedia_2023-10/README.md similarity index 64% rename from sdks/retailmedia_2022-07/README.md rename to sdks/retailmedia_2023-10/README.md index 28d4d3d3..90ad3405 100644 --- a/sdks/retailmedia_2022-07/README.md +++ b/sdks/retailmedia_2023-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.07.0.230831 +- Package version: 2023.10.0.231113 ## Requirements @@ -18,13 +18,13 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2022.07.0.230831 +pip install criteo-api-retailmedia-sdk==2023.10.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.231113`) Then import the package: ```python -import criteo_api_retailmedia_v2022_07 +import criteo_api_retailmedia_v2023_10 ``` ### Manual Installation using [Setuptools](http://pypi.python.org/pypi/setuptools) @@ -38,7 +38,7 @@ python setup.py install --user Then import the package: ```python -import criteo_api_retailmedia_v2022_07 +import criteo_api_retailmedia_v2023_10 ``` ## Example @@ -60,6 +60,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AddFundsToBalanceRequest](docs/AddFundsToBalanceRequest.md) - [AddToBasketIdsUpdateModel202110Request](docs/AddToBasketIdsUpdateModel202110Request.md) - [AddToBasketTarget202110Request](docs/AddToBasketTarget202110Request.md) - [AddToBasketTarget202110Response](docs/AddToBasketTarget202110Response.md) @@ -69,6 +70,16 @@ Class | Method | HTTP request | Description - [Asset](docs/Asset.md) - [AssetResource](docs/AssetResource.md) - [AssetResponse](docs/AssetResponse.md) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) + - [AsyncRevenueReport](docs/AsyncRevenueReport.md) + - [AsyncRevenueReportRequest](docs/AsyncRevenueReportRequest.md) + - [AsyncRevenueReportResource](docs/AsyncRevenueReportResource.md) - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) @@ -76,12 +87,16 @@ Class | Method | HTTP request | Description - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) - - [BadRequest](docs/BadRequest.md) - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) + - [BalanceResponse](docs/BalanceResponse.md) + - [BalanceResponsePagedListResponse](docs/BalanceResponsePagedListResponse.md) + - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) + - [CampaignV202301](docs/CampaignV202301.md) - [Category202204](docs/Category202204.md) - [Category202204ListResponse](docs/Category202204ListResponse.md) + - [ChangeDatesOfBalanceRequest](docs/ChangeDatesOfBalanceRequest.md) - [ChoiceOption](docs/ChoiceOption.md) - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) - [ChoiceVariableValue](docs/ChoiceVariableValue.md) @@ -90,23 +105,30 @@ Class | Method | HTTP request | Description - [CommonLineItemPagedListResponse](docs/CommonLineItemPagedListResponse.md) - [CommonLineItemResponse](docs/CommonLineItemResponse.md) - [CommonProblem](docs/CommonProblem.md) + - [CommonStatusCodeResponse](docs/CommonStatusCodeResponse.md) - [CommonWarning](docs/CommonWarning.md) + - [CreateBalanceRequest](docs/CreateBalanceRequest.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) - - [Creative202207](docs/Creative202207.md) - - [Creative202207Response](docs/Creative202207Response.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) - - [EnvelopeReportRequest](docs/EnvelopeReportRequest.md) - - [EnvelopeReportStatus](docs/EnvelopeReportStatus.md) - - [Error](docs/Error.md) + - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - [ExternalAccount](docs/ExternalAccount.md) + - [ExternalAddFundsToBalance](docs/ExternalAddFundsToBalance.md) - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) - [ExternalAuctionLineItem](docs/ExternalAuctionLineItem.md) @@ -115,52 +137,57 @@ Class | Method | HTTP request | Description - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) - [ExternalBalance202110](docs/ExternalBalance202110.md) + - [ExternalBalanceResponse](docs/ExternalBalanceResponse.md) - [ExternalBrand](docs/ExternalBrand.md) - - [ExternalCampaign](docs/ExternalCampaign.md) - - [ExternalCampaignAttributes](docs/ExternalCampaignAttributes.md) - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) + - [ExternalChangeDatesOfBalance](docs/ExternalChangeDatesOfBalance.md) - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) - - [ExternalEditableCampaignAttributes](docs/ExternalEditableCampaignAttributes.md) + - [ExternalCreateBalance](docs/ExternalCreateBalance.md) - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) - [ExternalLineItemCapping202110](docs/ExternalLineItemCapping202110.md) - [ExternalLineItemPage202110](docs/ExternalLineItemPage202110.md) - [ExternalLineItemPageCategory202110](docs/ExternalLineItemPageCategory202110.md) - - [ExternalPostCampaign](docs/ExternalPostCampaign.md) - [ExternalPreferredLineItem202110](docs/ExternalPreferredLineItem202110.md) - [ExternalPreferredLineItemCreateModel202110](docs/ExternalPreferredLineItemCreateModel202110.md) - [ExternalPreferredLineItemUpdateModel202110](docs/ExternalPreferredLineItemUpdateModel202110.md) - [ExternalPromotedProduct202110](docs/ExternalPromotedProduct202110.md) - - [ExternalPutCampaign](docs/ExternalPutCampaign.md) - [ExternalRetailer](docs/ExternalRetailer.md) - [ExternalRetailerPages202110](docs/ExternalRetailerPages202110.md) - [ExternalStoreIdsUpdateModel202110](docs/ExternalStoreIdsUpdateModel202110.md) - [ExternalStoreTarget202110](docs/ExternalStoreTarget202110.md) + - [ExternalUpdateBalanceModel](docs/ExternalUpdateBalanceModel.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) - - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md) + - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md) - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) - - [JsonApiBodyWithIdOfInt64AndCampaignAndCampaign](docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md) + - [JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301](docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) + - [JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers](docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md) - [JsonApiBodyWithIdOfInt64AndRetailerAndRetailer](docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) - - [JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign](docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md) + - [JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md) - [JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest](docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) - [JsonApiPageResponseOfAccount](docs/JsonApiPageResponseOfAccount.md) - [JsonApiPageResponseOfBrand](docs/JsonApiPageResponseOfBrand.md) - - [JsonApiPageResponseOfCampaign](docs/JsonApiPageResponseOfCampaign.md) + - [JsonApiPageResponseOfCampaignV202301](docs/JsonApiPageResponseOfCampaignV202301.md) - [JsonApiPageResponseOfRetailer](docs/JsonApiPageResponseOfRetailer.md) - [JsonApiRequestOfCatalogRequest](docs/JsonApiRequestOfCatalogRequest.md) - - [JsonApiSingleResponseOfCampaign](docs/JsonApiSingleResponseOfCampaign.md) + - [JsonApiSingleResponseOfCampaignV202301](docs/JsonApiSingleResponseOfCampaignV202301.md) - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) + - [JsonApiSingleResponseOfLineItemBidMultipliers](docs/JsonApiSingleResponseOfLineItemBidMultipliers.md) - [KeywordTarget202110Request](docs/KeywordTarget202110Request.md) - [KeywordTarget202110Response](docs/KeywordTarget202110Response.md) - - [MapString](docs/MapString.md) + - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) + - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) + - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.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) @@ -168,25 +195,53 @@ Class | Method | HTTP request | Description - [ProblemDetails](docs/ProblemDetails.md) - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) - - [ReportRequest](docs/ReportRequest.md) - - [ReportRequestAttributes](docs/ReportRequestAttributes.md) - - [ReportStatus](docs/ReportStatus.md) - - [ReportStatusAttributes](docs/ReportStatusAttributes.md) + - [PutCampaignV202301](docs/PutCampaignV202301.md) + - [ReportOutcome](docs/ReportOutcome.md) + - [ResourceOfAddFundsToBalance](docs/ResourceOfAddFundsToBalance.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) + - [ResourceOfBalanceResponse](docs/ResourceOfBalanceResponse.md) - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) + - [ResourceOfChangeDatesOfBalance](docs/ResourceOfChangeDatesOfBalance.md) - [ResourceOfCommonLineItem](docs/ResourceOfCommonLineItem.md) + - [ResourceOfCreateBalance](docs/ResourceOfCreateBalance.md) - [ResourceOfCreative202110](docs/ResourceOfCreative202110.md) - - [ResourceOfCreative202207](docs/ResourceOfCreative202207.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) + - [ResourceOfUpdateBalanceModel](docs/ResourceOfUpdateBalanceModel.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) @@ -197,7 +252,9 @@ 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) - [ValueTypeResourceOfAddToBasketIdsUpdateModel202110](docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md) - [ValueTypeResourceOfAddToBasketTarget202110](docs/ValueTypeResourceOfAddToBasketTarget202110.md) - [ValueTypeResourceOfAudienceIdsUpdateModel202110](docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py new file mode 100644 index 00000000..038549b9 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py @@ -0,0 +1,31 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +__version__ = "2023.10.0.231113" + +# import ApiClient +from criteo_api_retailmedia_v2023_10.api_client import ApiClient +from criteo_api_retailmedia_v2023_10.criteo_api_client import CriteoApiClient +from criteo_api_retailmedia_v2023_10.api_client_builder import ApiClientBuilder +from criteo_api_retailmedia_v2023_10 import flow_constants + +# import Configuration +from criteo_api_retailmedia_v2023_10.configuration import Configuration + +# import exceptions +from criteo_api_retailmedia_v2023_10.exceptions import OpenApiException +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiTypeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiValueError +from criteo_api_retailmedia_v2023_10.exceptions import ApiKeyError +from criteo_api_retailmedia_v2023_10.exceptions import ApiException + + + diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/__init__.py similarity index 72% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/__init__.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/__init__.py index 88340cc8..9851ca39 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/__init__.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/__init__.py @@ -1,3 +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_v2022_07.apis import AnalyticsApi +# from criteo_api_retailmedia_v2023_10.apis import AnalyticsApi diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/analytics_api.py similarity index 63% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/analytics_api.py index cb8c61ee..ddbafcae 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/analytics_api.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,9 +21,11 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2022_10.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_10.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_10.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_10.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_v2023_10.model.report_outcome import ReportOutcome class AnalyticsApi(object): @@ -37,24 +39,24 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_report_output_endpoint = _Endpoint( + self.generate_async_campaigns_report_endpoint = _Endpoint( settings={ - 'response_type': (str,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/reports/{reportId}/output', - 'operation_id': 'get_report_output', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/retail-media/reports/campaigns', + 'operation_id': 'generate_async_campaigns_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_campaigns_report_request', ], 'required': [ - 'report_id', + 'async_campaigns_report_request', ], 'nullable': [ ], @@ -69,44 +71,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_campaigns_report_request': + (AsyncCampaignsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_campaigns_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_async_line_items_report_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/reports/{reportId}/status', - 'operation_id': 'get_report_status', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/retail-media/reports/line-items', + 'operation_id': 'generate_async_line_items_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_line_items_report_request', ], 'required': [ - 'report_id', + 'async_line_items_report_request', ], 'nullable': [ ], @@ -121,44 +129,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_line_items_report_request': + (AsyncLineItemsReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_line_items_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + '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.request_campaign_report_endpoint = _Endpoint( + self.generate_async_revenue_report_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/reports/campaigns', - 'operation_id': 'request_campaign_report', + 'endpoint_path': '/2023-10/retail-media/reports/revenue', + 'operation_id': 'generate_async_revenue_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'async_revenue_report_request', ], 'required': [ - 'envelope_report_request', + 'async_revenue_report_request', ], 'nullable': [ ], @@ -173,45 +187,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'async_revenue_report_request': + (AsyncRevenueReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'envelope_report_request': 'body', + 'async_revenue_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ - 'application/json' + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' ] }, api_client=api_client ) - self.request_line_item_report_endpoint = _Endpoint( + self.get_async_export_output_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/reports/line-items', - 'operation_id': 'request_line_item_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-10/retail-media/reports/{reportId}/output', + 'operation_id': 'get_async_export_output', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'report_id', ], 'required': [ - 'envelope_report_request', + 'report_id', ], 'nullable': [ ], @@ -226,44 +245,99 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'report_id': + (str,), }, 'attribute_map': { + 'report_id': 'reportId', }, 'location_map': { - 'envelope_report_request': 'body', + 'report_id': 'path', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [ - 'application/json' + 'content_type': [], + }, + api_client=api_client + ) + self.get_async_export_status_endpoint = _Endpoint( + settings={ + 'response_type': (AsyncReportResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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_report_output( + def generate_async_campaigns_report( self, - report_id, + async_campaigns_report_request, **kwargs ): - """get_report_output # noqa: E501 + """generate_async_campaigns_report # noqa: E501 - Request the report output # noqa: E501 + Return an asynchronous Campaigns 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_async_campaigns_report(async_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_campaigns_report_request (AsyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -298,7 +372,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - str + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -327,26 +401,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['async_campaigns_report_request'] = \ + async_campaigns_report_request + return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs) - def get_report_status( + def generate_async_line_items_report( self, - report_id, + async_line_items_report_request, **kwargs ): - """get_report_status # noqa: E501 + """generate_async_line_items_report # noqa: E501 - Get the status of the report # noqa: E501 + Returns an asynchronous Line Items 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_async_line_items_report(async_line_items_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + async_line_items_report_request (AsyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -381,7 +455,7 @@ def get_report_status( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -410,26 +484,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['async_line_items_report_request'] = \ + async_line_items_report_request + return self.generate_async_line_items_report_endpoint.call_with_http_info(**kwargs) - def request_campaign_report( + def generate_async_revenue_report( self, - envelope_report_request, + async_revenue_report_request, **kwargs ): - """request_campaign_report # noqa: E501 + """generate_async_revenue_report # noqa: E501 - Request a campaign report # noqa: E501 + Returns an asynchronous 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.request_campaign_report(envelope_report_request, async_req=True) + >>> thread = api.generate_async_revenue_report(async_revenue_report_request, async_req=True) >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): Envelope of the request + async_revenue_report_request (AsyncRevenueReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -464,7 +538,7 @@ def request_campaign_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -493,26 +567,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['async_revenue_report_request'] = \ + async_revenue_report_request + return self.generate_async_revenue_report_endpoint.call_with_http_info(**kwargs) - def request_line_item_report( + def get_async_export_output( self, - envelope_report_request, + report_id, **kwargs ): - """request_line_item_report # noqa: E501 + """get_async_export_output # noqa: E501 - Request a line item report # noqa: E501 + Returns 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_line_item_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): Envelope of the request + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -547,7 +621,7 @@ def request_line_item_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + str If the method is called asynchronously, returns the request thread. """ @@ -576,7 +650,90 @@ 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_output_endpoint.call_with_http_info(**kwargs) + + def get_async_export_status( + self, + report_id, + **kwargs + ): + """get_async_export_status # noqa: E501 + + Returns 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_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/audience_api.py similarity index 67% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/audience_api.py index 7f5f0962..e87d3ebf 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/audience_api.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,12 +21,16 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2022_07.model.bad_request import BadRequest -from criteo_api_retailmedia_v2022_07.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_v2022_07.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_v2023_10.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_10.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response -class AnalyticsApi(object): +class AudienceApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -37,24 +41,26 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_report_output_endpoint = _Endpoint( + self.create_audience_endpoint = _Endpoint( settings={ - 'response_type': (str,), + 'response_type': (CreateRetailMediaAudienceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/retail-media/reports/{reportId}/output', - 'operation_id': 'get_report_output', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/audiences', + 'operation_id': 'create_audience', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'account_id', + 'create_retail_media_audience_request', ], 'required': [ - 'report_id', + 'account_id', + 'create_retail_media_audience_request', ], 'nullable': [ ], @@ -69,44 +75,51 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'account_id': + (int,), + 'create_retail_media_audience_request': + (CreateRetailMediaAudienceRequest,), }, 'attribute_map': { - 'report_id': 'reportId', + 'account_id': 'accountId', }, 'location_map': { - 'report_id': 'path', + 'account_id': 'path', + 'create_retail_media_audience_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/octet-stream' + 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.get_report_status_endpoint = _Endpoint( + self.create_retail_media_audience_v2_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (RetailMediaAudienceV2Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/retail-media/reports/{reportId}/status', - 'operation_id': 'get_report_status', - 'http_method': 'GET', + 'endpoint_path': '/2023-10/retail-media/v2/accounts/{accountId}/audiences', + 'operation_id': 'create_retail_media_audience_v2', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'account_id', + 'create_retail_media_audience_v2_request', ], 'required': [ - 'report_id', + 'account_id', + 'create_retail_media_audience_v2_request', ], 'nullable': [ ], @@ -121,14 +134,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'account_id': + (int,), + 'create_retail_media_audience_v2_request': + (CreateRetailMediaAudienceV2Request,), }, 'attribute_map': { - 'report_id': 'reportId', + 'account_id': 'accountId', }, 'location_map': { - 'report_id': 'path', + 'account_id': 'path', + 'create_retail_media_audience_v2_request': 'body', }, 'collection_format_map': { } @@ -137,28 +153,33 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.request_campaign_report_endpoint = _Endpoint( + self.get_audiences_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (GetPageOfAudiencesByAccountIdResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/retail-media/reports/campaigns', - 'operation_id': 'request_campaign_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/audiences', + 'operation_id': 'get_audiences_by_account_id', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', ], 'required': [ - 'envelope_report_request', + 'account_id', ], 'nullable': [ ], @@ -173,45 +194,60 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + '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': { - 'envelope_report_request': 'body', + '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': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.request_line_item_report_endpoint = _Endpoint( + self.get_retail_media_audience_v2_list_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (RetailMediaAudienceV2ListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/retail-media/reports/line-items', - 'operation_id': 'request_line_item_report', - 'http_method': 'POST', + 'endpoint_path': '/2023-10/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': [ - 'envelope_report_request', + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', ], 'required': [ - 'envelope_report_request', + 'account_id', ], 'nullable': [ ], @@ -226,44 +262,58 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + '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': { - 'envelope_report_request': 'body', + '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': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - def get_report_output( + def create_audience( self, - report_id, + account_id, + create_retail_media_audience_request, **kwargs ): - """get_report_output # noqa: E501 + """create_audience # noqa: E501 - Request the report output # 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.get_report_output(report_id, async_req=True) + >>> thread = api.create_audience(account_id, create_retail_media_audience_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + 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 @@ -298,7 +348,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - str + CreateRetailMediaAudienceResponse If the method is called asynchronously, returns the request thread. """ @@ -327,26 +377,30 @@ 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['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 get_report_status( + def create_retail_media_audience_v2( self, - report_id, + account_id, + create_retail_media_audience_v2_request, **kwargs ): - """get_report_status # noqa: E501 + """create_retail_media_audience_v2 # noqa: E501 - Get the status of the report # 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.get_report_status(report_id, 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: - report_id (str): report id + 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 @@ -381,7 +435,7 @@ def get_report_status( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + RetailMediaAudienceV2Response If the method is called asynchronously, returns the request thread. """ @@ -410,28 +464,33 @@ 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['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 request_campaign_report( + def get_audiences_by_account_id( self, - envelope_report_request, + account_id, **kwargs ): - """request_campaign_report # noqa: E501 + """get_audiences_by_account_id # noqa: E501 - Request a campaign report # 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.request_campaign_report(envelope_report_request, async_req=True) + >>> thread = api.get_audiences_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): Envelope of the request + 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 @@ -464,7 +523,7 @@ def request_campaign_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + GetPageOfAudiencesByAccountIdResponse If the method is called asynchronously, returns the request thread. """ @@ -493,28 +552,31 @@ 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['account_id'] = \ + account_id + return self.get_audiences_by_account_id_endpoint.call_with_http_info(**kwargs) - def request_line_item_report( + def get_retail_media_audience_v2_list_by_account_id( self, - envelope_report_request, + account_id, **kwargs ): - """request_line_item_report # noqa: E501 + """get_retail_media_audience_v2_list_by_account_id # noqa: E501 - Request a line item report # 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.request_line_item_report(envelope_report_request, async_req=True) + >>> thread = api.get_retail_media_audience_v2_list_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): Envelope of the request + 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 @@ -547,7 +609,7 @@ def request_line_item_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + RetailMediaAudienceV2ListResponse If the method is called asynchronously, returns the request thread. """ @@ -576,7 +638,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['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_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py similarity index 76% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py index 5a987222..28d4bc7b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,51 +21,66 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2022_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request -from criteo_api_retailmedia_v2022_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_10.model.asset_response import AssetResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest -from criteo_api_retailmedia_v2022_10.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_response import AuctionLineItemResponse -from criteo_api_retailmedia_v2022_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -from criteo_api_retailmedia_v2022_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_10.model.balance202110_paged_list_response import Balance202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.category202204 import Category202204 -from criteo_api_retailmedia_v2022_10.model.category202204_list_response import Category202204ListResponse -from criteo_api_retailmedia_v2022_10.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse -from criteo_api_retailmedia_v2022_10.model.common_line_item_response import CommonLineItemResponse -from criteo_api_retailmedia_v2022_10.model.creative202110_list_response import Creative202110ListResponse -from criteo_api_retailmedia_v2022_10.model.creative202207_response import Creative202207Response -from criteo_api_retailmedia_v2022_10.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_10.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_10.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_10.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_10.model.external_retailer_pages202110 import ExternalRetailerPages202110 -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer -from criteo_api_retailmedia_v2022_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign -from criteo_api_retailmedia_v2022_10.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_10.model.keyword_target202110_response import KeywordTarget202110Response -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.preferred_line_item202110_response import PreferredLineItem202110Response -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2022_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2022_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_10.model.store_target202110_request import StoreTarget202110Request -from criteo_api_retailmedia_v2022_10.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_10.model.template_list_response import TemplateListResponse -from criteo_api_retailmedia_v2022_10.model.template_response import TemplateResponse +from criteo_api_retailmedia_v2023_10.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2023_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_10.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_10.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from criteo_api_retailmedia_v2023_10.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +from criteo_api_retailmedia_v2023_10.model.auction_line_item_response import AuctionLineItemResponse +from criteo_api_retailmedia_v2023_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request +from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse +from criteo_api_retailmedia_v2023_10.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from criteo_api_retailmedia_v2023_10.model.category202204 import Category202204 +from criteo_api_retailmedia_v2023_10.model.category202204_list_response import Category202204ListResponse +from criteo_api_retailmedia_v2023_10.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest +from criteo_api_retailmedia_v2023_10.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +from criteo_api_retailmedia_v2023_10.model.common_line_item_response import CommonLineItemResponse +from criteo_api_retailmedia_v2023_10.model.create_balance_request import CreateBalanceRequest +from criteo_api_retailmedia_v2023_10.model.creative202110_list_response import Creative202110ListResponse +from criteo_api_retailmedia_v2023_10.model.creative202210_list_response import Creative202210ListResponse +from criteo_api_retailmedia_v2023_10.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_10.model.creative_create_model202207 import CreativeCreateModel202207 +from criteo_api_retailmedia_v2023_10.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_10.model.external_retailer_pages202110 import ExternalRetailerPages202110 +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_campaign_v202301 import JsonApiPageResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +from criteo_api_retailmedia_v2023_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_line_item_bid_multipliers import JsonApiSingleResponseOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_10.model.post_campaign_v202301 import PostCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.put_campaign_v202301 import PutCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from criteo_api_retailmedia_v2023_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.store_target202110_request import StoreTarget202110Request +from criteo_api_retailmedia_v2023_10.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_10.model.template_list_response import TemplateListResponse +from criteo_api_retailmedia_v2023_10.model.template_response import TemplateResponse +from criteo_api_retailmedia_v2023_10.model.update_balance_model_request import UpdateBalanceModelRequest class CampaignApi(object): @@ -79,6 +94,66 @@ 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-10/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,), @@ -86,7 +161,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/assets', + 'endpoint_path': '/2023-10/retail-media/assets', 'operation_id': 'create_asset', 'http_method': 'POST', 'servers': None, @@ -135,6 +210,114 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.fetch_keywords_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1KeywordsModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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-10/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,), @@ -142,7 +325,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/balances', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances', 'operation_id': 'get_api202110_external_account_balances_by_account_id', 'http_method': 'GET', 'servers': None, @@ -210,7 +393,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/creatives', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/creatives', 'operation_id': 'get_api202110_external_account_creatives_by_account_id', 'http_method': 'GET', 'servers': None, @@ -262,7 +445,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords', + 'endpoint_path': '/2023-10/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, @@ -314,7 +497,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/balances/{balance-id}/campaigns', + 'endpoint_path': '/2023-10/retail-media/balances/{balance-id}/campaigns', 'operation_id': 'get_api202110_external_balance_campaigns_by_balance_id', 'http_method': 'GET', 'servers': None, @@ -382,7 +565,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'endpoint_path': '/2023-10/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, @@ -450,7 +633,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}/products', + 'endpoint_path': '/2023-10/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, @@ -518,7 +701,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}', + 'endpoint_path': '/2023-10/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, @@ -570,7 +753,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket', + 'endpoint_path': '/2023-10/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, @@ -622,7 +805,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences', + 'endpoint_path': '/2023-10/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, @@ -674,7 +857,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores', + 'endpoint_path': '/2023-10/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, @@ -726,7 +909,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/retailers/{retailerId}/pages', + 'endpoint_path': '/2023-10/retail-media/retailers/{retailerId}/pages', 'operation_id': 'get_api202110_external_retailer_pages_by_retailer_id', 'http_method': 'GET', 'servers': None, @@ -778,7 +961,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/categories/{categoryId}', + 'endpoint_path': '/2023-10/retail-media/categories/{categoryId}', 'operation_id': 'get_api202204_external_categorie_by_category_id', 'http_method': 'GET', 'servers': None, @@ -830,7 +1013,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/categories', + 'endpoint_path': '/2023-10/retail-media/categories', 'operation_id': 'get_api202204_external_categories', 'http_method': 'GET', 'servers': None, @@ -900,26 +1083,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202207_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( + self.get_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint = _Endpoint( settings={ - 'response_type': (Creative202207Response,), + 'response_type': (TemplateResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/creatives/{creative-id}', - 'operation_id': 'get_api202207_external_account_by_account_id_creativescreative_id', + 'endpoint_path': '/2023-10/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': [ - 'account_id', - 'creative_id', + 'retailer_id', + 'template_id', ], 'required': [ - 'account_id', - 'creative_id', + 'retailer_id', + 'template_id', ], 'nullable': [ ], @@ -934,18 +1117,18 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'account_id': - (str,), - 'creative_id': - (str,), + 'retailer_id': + (int,), + 'template_id': + (int,), }, 'attribute_map': { - 'account_id': 'account-id', - 'creative_id': 'creative-id', + 'retailer_id': 'retailer-id', + 'template_id': 'template-id', }, 'location_map': { - 'account_id': 'path', - 'creative_id': 'path', + 'retailer_id': 'path', + 'template_id': 'path', }, 'collection_format_map': { } @@ -958,26 +1141,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint = _Endpoint( + self.get_api202207_external_retailer_templates_by_retailer_id_endpoint = _Endpoint( settings={ - 'response_type': (TemplateResponse,), + 'response_type': (TemplateListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/retailers/{retailer-id}/templates/{template-id}', - 'operation_id': 'get_api202207_external_retailer_by_retailer_id_templatestemplate_id', + 'endpoint_path': '/2023-10/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', - 'template_id', ], 'required': [ 'retailer_id', - 'template_id', ], 'nullable': [ ], @@ -994,16 +1175,12 @@ def __init__(self, api_client=None): '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': { } @@ -1016,24 +1193,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202207_external_retailer_templates_by_retailer_id_endpoint = _Endpoint( + self.get_api202210_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( settings={ - 'response_type': (TemplateListResponse,), + 'response_type': (Creative202210Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/retailers/{retailer-id}/templates', - 'operation_id': 'get_api202207_external_retailer_templates_by_retailer_id', + 'endpoint_path': '/2023-10/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': [ - 'retailer_id', + 'account_id', + 'creative_id', ], 'required': [ - 'retailer_id', + 'account_id', + 'creative_id', ], 'nullable': [ ], @@ -1048,14 +1227,18 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'retailer_id': - (int,), + 'account_id': + (str,), + 'creative_id': + (str,), }, 'attribute_map': { - 'retailer_id': 'retailer-id', + 'account_id': 'account-id', + 'creative_id': 'creative-id', }, 'location_map': { - 'retailer_id': 'path', + 'account_id': 'path', + 'creative_id': 'path', }, 'collection_format_map': { } @@ -1068,15 +1251,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api_v1_external_account_brands_by_account_id_endpoint = _Endpoint( + self.get_api202301_external_account_campaigns_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiPageResponseOfBrand,), + 'response_type': (JsonApiPageResponseOfCampaignV202301,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{accountId}/brands', - 'operation_id': 'get_api_v1_external_account_brands_by_account_id', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/campaigns', + 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', 'http_method': 'GET', 'servers': None, }, @@ -1136,27 +1319,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api_v1_external_account_campaigns_by_account_id_endpoint = _Endpoint( + self.get_api202301_external_campaign_by_campaign_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiPageResponseOfCampaign,), + 'response_type': (JsonApiSingleResponseOfCampaignV202301,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{accountId}/campaigns', - 'operation_id': 'get_api_v1_external_account_campaigns_by_account_id', + 'endpoint_path': '/2023-10/retail-media/campaigns/{campaignId}', + 'operation_id': 'get_api202301_external_campaign_by_campaign_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'account_id', - 'limit_to_id', - 'page_index', - 'page_size', + 'campaign_id', ], 'required': [ - 'account_id', + 'campaign_id', ], 'nullable': [ ], @@ -1171,29 +1351,16 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'account_id': + 'campaign_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', + 'campaign_id': 'campaignId', }, 'location_map': { - 'account_id': 'path', - 'limit_to_id': 'query', - 'page_index': 'query', - 'page_size': 'query', + 'campaign_id': 'path', }, 'collection_format_map': { - 'limit_to_id': 'multi', } }, headers_map={ @@ -1204,27 +1371,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api_v1_external_account_retailers_by_account_id_endpoint = _Endpoint( + self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiPageResponseOfRetailer,), + 'response_type': (JsonApiSingleResponseOfLineItemBidMultipliers,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{accountId}/retailers', - 'operation_id': 'get_api_v1_external_account_retailers_by_account_id', + 'endpoint_path': '/2023-10/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': [ - 'account_id', - 'limit_to_id', - 'page_index', - 'page_size', + 'line_item_id', ], 'required': [ - 'account_id', + 'line_item_id', ], 'nullable': [ ], @@ -1239,58 +1403,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'account_id': + 'line_item_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', + 'line_item_id': 'line-item-id', }, 'location_map': { - 'account_id': 'path', - 'limit_to_id': 'query', - 'page_index': 'query', - 'page_size': 'query', + 'line_item_id': 'path', }, 'collection_format_map': { - 'limit_to_id': 'multi', } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [], }, api_client=api_client ) - self.get_api_v1_external_accounts_endpoint = _Endpoint( + self.get_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiPageResponseOfAccount,), + 'response_type': (BalanceResponsePagedListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts', - 'operation_id': 'get_api_v1_external_accounts', + 'endpoint_path': '/2023-10/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': [], + 'required': [ + 'account_id', + ], 'nullable': [ ], 'enum': [ @@ -1304,6 +1460,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'account_id': + (str,), 'limit_to_id': ([str],), 'page_index': @@ -1312,11 +1470,13 @@ def __init__(self, api_client=None): (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', @@ -1333,24 +1493,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api_v1_external_campaign_by_campaign_id_endpoint = _Endpoint( + self.get_api_v1_external_account_brands_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), + 'response_type': (JsonApiPageResponseOfBrand,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaignId}', - 'operation_id': 'get_api_v1_external_campaign_by_campaign_id', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/brands', + 'operation_id': 'get_api_v1_external_account_brands_by_account_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'campaign_id', + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', ], 'required': [ - 'campaign_id', + 'account_id', ], 'nullable': [ ], @@ -1365,16 +1528,216 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_id': + 'account_id': (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), }, 'attribute_map': { - 'campaign_id': 'campaignId', + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', }, 'location_map': { - 'campaign_id': 'path', + '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_by_account_id_and_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-10/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-10/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={ @@ -1392,7 +1755,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/catalogs/{catalogId}/output', + 'endpoint_path': '/2023-10/retail-media/catalogs/{catalogId}/output', 'operation_id': 'get_api_v1_external_catalog_output_by_catalog_id', 'http_method': 'GET', 'servers': None, @@ -1445,7 +1808,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/catalogs/{catalogId}/status', + 'endpoint_path': '/2023-10/retail-media/catalogs/{catalogId}/status', 'operation_id': 'get_api_v1_external_catalog_status_by_catalog_id', 'http_method': 'GET', 'servers': None, @@ -1497,7 +1860,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/line-items', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/line-items', 'operation_id': 'get_api_v2_external_account_line_items_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1583,7 +1946,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/auction-line-items/{line-item-id}', + 'endpoint_path': '/2023-10/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, @@ -1635,7 +1998,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaign-id}/auction-line-items', + 'endpoint_path': '/2023-10/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, @@ -1703,7 +2066,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}', + 'endpoint_path': '/2023-10/retail-media/line-items/{line-item-id}', 'operation_id': 'get_api_v2_external_line_item_by_line_item_id', 'http_method': 'GET', 'servers': None, @@ -1748,25 +2111,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint( + self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (KeywordTarget202110Response,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/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', + 'endpoint_path': '/2023-10/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': [ - 'line_item_id', - 'keyword_target202110_request', + 'account_id', + 'balance_id', + 'update_balance_model_request', ], 'required': [ - 'line_item_id', + 'account_id', + 'balance_id', ], 'nullable': [ ], @@ -1781,17 +2146,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'account_id': (str,), - 'keyword_target202110_request': - (KeywordTarget202110Request,), + 'balance_id': + (str,), + 'update_balance_model_request': + (UpdateBalanceModelRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'account_id': 'accountId', + 'balance_id': 'balanceId', }, 'location_map': { - 'line_item_id': 'path', - 'keyword_target202110_request': 'body', + 'account_id': 'path', + 'balance_id': 'path', + 'update_balance_model_request': 'body', }, 'collection_format_map': { } @@ -1806,15 +2175,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint( + 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': '/2022-10/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', + 'endpoint_path': '/2023-10/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, }, @@ -1864,15 +2233,73 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint( + self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceCampaign202110PagedListResponse,), + 'response_type': (KeywordTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/balances/{balance-id}/campaigns/append', - 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id', + 'endpoint_path': '/2023-10/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-10/retail-media/balances/{balance-id}/campaigns/append', + 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id', 'http_method': 'POST', 'servers': None, }, @@ -1929,7 +2356,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/balances/{balance-id}/campaigns/delete', + 'endpoint_path': '/2023-10/retail-media/balances/{balance-id}/campaigns/delete', 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id', 'http_method': 'POST', 'servers': None, @@ -1987,7 +2414,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'endpoint_path': '/2023-10/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, @@ -2045,7 +2472,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}/products/append', + 'endpoint_path': '/2023-10/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, @@ -2103,7 +2530,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}/products/delete', + 'endpoint_path': '/2023-10/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, @@ -2161,7 +2588,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}/products/pause', + 'endpoint_path': '/2023-10/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, @@ -2217,7 +2644,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/line-items/{line-item-id}/products/unpause', + 'endpoint_path': '/2023-10/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, @@ -2273,7 +2700,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append', + 'endpoint_path': '/2023-10/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, @@ -2331,7 +2758,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete', + 'endpoint_path': '/2023-10/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, @@ -2389,7 +2816,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append', + 'endpoint_path': '/2023-10/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, @@ -2447,7 +2874,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete', + 'endpoint_path': '/2023-10/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, @@ -2505,7 +2932,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append', + 'endpoint_path': '/2023-10/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, @@ -2563,7 +2990,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete', + 'endpoint_path': '/2023-10/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, @@ -2614,15 +3041,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202207_external_account_creatives_by_account_id_endpoint = _Endpoint( + self.post_api202210_external_account_creatives_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (Creative202207Response,), + 'response_type': (Creative202210Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/creatives', - 'operation_id': 'post_api202207_external_account_creatives_by_account_id', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/creatives', + 'operation_id': 'post_api202210_external_account_creatives_by_account_id', 'http_method': 'POST', 'servers': None, }, @@ -2672,22 +3099,22 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_campaigns_by_account_id_endpoint = _Endpoint( + self.post_api202210_external_account_creatives_search_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), + 'response_type': (Creative202210ListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{accountId}/campaigns', - 'operation_id': 'post_api_v1_external_account_campaigns_by_account_id', + 'endpoint_path': '/2023-10/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', - 'external_post_campaign', + 'creative_ids', ], 'required': [ 'account_id', @@ -2707,45 +3134,45 @@ def __init__(self, api_client=None): 'openapi_types': { 'account_id': (str,), - 'external_post_campaign': - (ExternalPostCampaign,), + 'creative_ids': + ([str],), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', + 'creative_ids': 'creative-ids', }, 'location_map': { 'account_id': 'path', - 'external_post_campaign': 'body', + 'creative_ids': 'query', }, 'collection_format_map': { + 'creative_ids': 'multi', } }, headers_map={ 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.post_api_v1_external_account_catalogs_by_account_id_endpoint = _Endpoint( + self.post_api202301_external_account_campaigns_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiSingleResponseOfCatalogStatus,), + 'response_type': (JsonApiSingleResponseOfCampaignV202301,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{accountId}/catalogs', - 'operation_id': 'post_api_v1_external_account_catalogs_by_account_id', + 'endpoint_path': '/2023-10/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', - 'json_api_request_of_catalog_request', + 'post_campaign_v202301', ], 'required': [ 'account_id', @@ -2765,15 +3192,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'account_id': (str,), - 'json_api_request_of_catalog_request': - (JsonApiRequestOfCatalogRequest,), + 'post_campaign_v202301': + (PostCampaignV202301,), }, 'attribute_map': { 'account_id': 'accountId', }, 'location_map': { 'account_id': 'path', - 'json_api_request_of_catalog_request': 'body', + 'post_campaign_v202301': 'body', }, 'collection_format_map': { } @@ -2788,25 +3215,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint = _Endpoint( + self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (AuctionLineItemResponse,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaign-id}/auction-line-items', - 'operation_id': 'post_api_v2_external_campaign_auction_line_items_by_campaign_id', + 'endpoint_path': '/2023-10/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': [ - 'campaign_id', - 'auction_line_item_create_model_request', + 'account_id', + 'balance_id', + 'add_funds_to_balance_request', ], 'required': [ - 'campaign_id', + 'account_id', + 'balance_id', ], 'nullable': [ ], @@ -2821,17 +3250,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_id': + 'account_id': (str,), - 'auction_line_item_create_model_request': - (AuctionLineItemCreateModelRequest,), + 'balance_id': + (str,), + 'add_funds_to_balance_request': + (AddFundsToBalanceRequest,), }, 'attribute_map': { - 'campaign_id': 'campaign-id', + 'account_id': 'accountId', + 'balance_id': 'balanceId', }, 'location_map': { - 'campaign_id': 'path', - 'auction_line_item_create_model_request': 'body', + 'account_id': 'path', + 'balance_id': 'path', + 'add_funds_to_balance_request': 'body', }, 'collection_format_map': { } @@ -2846,25 +3279,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api202110_external_preferred_line_item_by_line_item_id_endpoint = _Endpoint( + self.post_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (PreferredLineItem202110Response,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/preferred-line-items/{line-item-id}', - 'operation_id': 'put_api202110_external_preferred_line_item_by_line_item_id', - 'http_method': 'PUT', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances', + 'operation_id': 'post_api_v1_external_account_balances_by_account_id', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', - 'preferred_line_item_update_model202110_request', + 'account_id', + 'create_balance_request', ], 'required': [ - 'line_item_id', + 'account_id', ], 'nullable': [ ], @@ -2879,17 +3312,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'account_id': (str,), - 'preferred_line_item_update_model202110_request': - (PreferredLineItemUpdateModel202110Request,), + 'create_balance_request': + (CreateBalanceRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'account_id': 'accountId', }, 'location_map': { - 'line_item_id': 'path', - 'preferred_line_item_update_model202110_request': 'body', + 'account_id': 'path', + 'create_balance_request': 'body', }, 'collection_format_map': { } @@ -2904,25 +3337,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint = _Endpoint( + self.post_api_v1_external_account_catalogs_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (AddToBasketTarget202110Response,), + 'response_type': (JsonApiSingleResponseOfCatalogStatus,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/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', + 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/catalogs', + 'operation_id': 'post_api_v1_external_account_catalogs_by_account_id', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', - 'add_to_basket_target202110_request', + 'account_id', + 'json_api_request_of_catalog_request', ], 'required': [ - 'line_item_id', + 'account_id', ], 'nullable': [ ], @@ -2937,17 +3370,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'account_id': (str,), - 'add_to_basket_target202110_request': - (AddToBasketTarget202110Request,), + 'json_api_request_of_catalog_request': + (JsonApiRequestOfCatalogRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'account_id': 'accountId', }, 'location_map': { - 'line_item_id': 'path', - 'add_to_basket_target202110_request': 'body', + 'account_id': 'path', + 'json_api_request_of_catalog_request': 'body', }, 'collection_format_map': { } @@ -2962,25 +3395,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint = _Endpoint( + self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (AudienceTarget202110Response,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/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', + 'endpoint_path': '/2023-10/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': [ - 'line_item_id', - 'audience_target202110_request', + 'account_id', + 'balance_id', + 'change_dates_of_balance_request', ], 'required': [ - 'line_item_id', + 'account_id', + 'balance_id', ], 'nullable': [ ], @@ -2995,17 +3430,21 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'account_id': (str,), - 'audience_target202110_request': - (AudienceTarget202110Request,), + 'balance_id': + (str,), + 'change_dates_of_balance_request': + (ChangeDatesOfBalanceRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'account_id': 'accountId', + 'balance_id': 'balanceId', }, 'location_map': { - 'line_item_id': 'path', - 'audience_target202110_request': 'body', + 'account_id': 'path', + 'balance_id': 'path', + 'change_dates_of_balance_request': 'body', }, 'collection_format_map': { } @@ -3020,25 +3459,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint = _Endpoint( + self.post_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint = _Endpoint( settings={ - 'response_type': (StoreTarget202110Response,), + 'response_type': (AuctionLineItemResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/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', + 'endpoint_path': '/2023-10/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': [ - 'line_item_id', - 'store_target202110_request', + 'campaign_id', + 'auction_line_item_create_model_request', ], 'required': [ - 'line_item_id', + 'campaign_id', ], 'nullable': [ ], @@ -3053,17 +3492,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'campaign_id': (str,), - 'store_target202110_request': - (StoreTarget202110Request,), + 'auction_line_item_create_model_request': + (AuctionLineItemCreateModelRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'campaign_id': 'campaign-id', }, 'location_map': { - 'line_item_id': 'path', - 'store_target202110_request': 'body', + 'campaign_id': 'path', + 'auction_line_item_create_model_request': 'body', }, 'collection_format_map': { } @@ -3078,27 +3517,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api202207_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( + self.put_api202110_external_preferred_line_item_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (Creative202207Response,), + 'response_type': (PreferredLineItem202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/accounts/{account-id}/creatives/{creative-id}', - 'operation_id': 'put_api202207_external_account_by_account_id_creativescreative_id', + 'endpoint_path': '/2023-10/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': [ - 'account_id', - 'creative_id', - 'creative_update_model202207', + 'line_item_id', + 'preferred_line_item_update_model202110_request', ], 'required': [ - 'account_id', - 'creative_id', + 'line_item_id', ], 'nullable': [ ], @@ -3113,21 +3550,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'account_id': - (str,), - 'creative_id': + 'line_item_id': (str,), - 'creative_update_model202207': - (CreativeUpdateModel202207,), + 'preferred_line_item_update_model202110_request': + (PreferredLineItemUpdateModel202110Request,), }, 'attribute_map': { - 'account_id': 'account-id', - 'creative_id': 'creative-id', + 'line_item_id': 'line-item-id', }, 'location_map': { - 'account_id': 'path', - 'creative_id': 'path', - 'creative_update_model202207': 'body', + 'line_item_id': 'path', + 'preferred_line_item_update_model202110_request': 'body', }, 'collection_format_map': { } @@ -3142,25 +3575,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api_v1_external_campaign_by_campaign_id_endpoint = _Endpoint( + self.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiSingleResponseOfCampaign,), + 'response_type': (AddToBasketTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/campaigns/{campaignId}', - 'operation_id': 'put_api_v1_external_campaign_by_campaign_id', + 'endpoint_path': '/2023-10/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': [ - 'campaign_id', - 'external_put_campaign', + 'line_item_id', + 'add_to_basket_target202110_request', ], 'required': [ - 'campaign_id', + 'line_item_id', ], 'nullable': [ ], @@ -3175,17 +3608,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_id': + 'line_item_id': (str,), - 'external_put_campaign': - (ExternalPutCampaign,), + 'add_to_basket_target202110_request': + (AddToBasketTarget202110Request,), }, 'attribute_map': { - 'campaign_id': 'campaignId', + 'line_item_id': 'line-item-id', }, 'location_map': { - 'campaign_id': 'path', - 'external_put_campaign': 'body', + 'line_item_id': 'path', + 'add_to_basket_target202110_request': 'body', }, 'collection_format_map': { } @@ -3200,22 +3633,22 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.put_api_v2_external_auction_line_item_by_line_item_id_endpoint = _Endpoint( + self.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (AuctionLineItemResponse,), + 'response_type': (AudienceTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2022-10/retail-media/auction-line-items/{line-item-id}', - 'operation_id': 'put_api_v2_external_auction_line_item_by_line_item_id', + 'endpoint_path': '/2023-10/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', - 'auction_line_item_update_model_request', + 'audience_target202110_request', ], 'required': [ 'line_item_id', @@ -3235,15 +3668,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'line_item_id': (str,), - 'auction_line_item_update_model_request': - (AuctionLineItemUpdateModelRequest,), + 'audience_target202110_request': + (AudienceTarget202110Request,), }, 'attribute_map': { 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', - 'auction_line_item_update_model_request': 'body', + 'audience_target202110_request': 'body', }, 'collection_format_map': { } @@ -3258,23 +3691,1610 @@ def __init__(self, api_client=None): }, 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-10/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-10/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-10/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-10/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-10/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-10/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-10/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 create_asset( + def get_api202110_external_retailer_pages_by_retailer_id( self, - asset_file, + retailer_id, **kwargs ): - """create_asset # noqa: E501 + """get_api202110_external_retailer_pages_by_retailer_id # noqa: E501 - Creates an asset # 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.create_asset(asset_file, async_req=True) + >>> thread = api.get_api202110_external_retailer_pages_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - asset_file (file_type): The asset binary content + retailer_id (int): The retailers to fetch pages for Keyword Args: _return_http_data_only (bool): response data without head status @@ -3309,7 +5329,7 @@ def create_asset( async_req (bool): execute request asynchronously Returns: - AssetResponse + ExternalRetailerPages202110 If the method is called asynchronously, returns the request thread. """ @@ -3338,31 +5358,28 @@ def create_asset( '_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) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api202110_external_retailer_pages_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_account_balances_by_account_id( + def get_api202204_external_categorie_by_category_id( self, - account_id, + category_id, **kwargs ): - """get_api202110_external_account_balances_by_account_id # noqa: E501 + """get_api202204_external_categorie_by_category_id # noqa: E501 - Gets page of balance objects for the given account 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_api202110_external_account_balances_by_account_id(account_id, async_req=True) + >>> thread = api.get_api202204_external_categorie_by_category_id(category_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account to get balances for + category_id (int): ID of the desired category 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 @@ -3395,7 +5412,7 @@ def get_api202110_external_account_balances_by_account_id( async_req (bool): execute request asynchronously Returns: - Balance202110PagedListResponse + Category202204 If the method is called asynchronously, returns the request thread. """ @@ -3424,28 +5441,29 @@ def get_api202110_external_account_balances_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_api202110_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['category_id'] = \ + category_id + return self.get_api202204_external_categorie_by_category_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_account_creatives_by_account_id( + def get_api202204_external_categories( self, - account_id, **kwargs ): - """get_api202110_external_account_creatives_by_account_id # noqa: E501 + """get_api202204_external_categories # noqa: E501 - Get account creatives # 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_api202110_external_account_creatives_by_account_id(account_id, async_req=True) + >>> thread = api.get_api202204_external_categories(async_req=True) >>> result = thread.get() - Args: - account_id (str): External account id to retrieve creatives for 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 @@ -3478,7 +5496,7 @@ def get_api202110_external_account_creatives_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202110ListResponse + Category202204ListResponse If the method is called asynchronously, returns the request thread. """ @@ -3507,26 +5525,26 @@ def get_api202110_external_account_creatives_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_api202110_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + return self.get_api202204_external_categories_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( + def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( self, - line_item_id, + retailer_id, + template_id, **kwargs ): - """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501 + """get_api202207_external_retailer_by_retailer_id_templatestemplate_id # noqa: E501 - This endpoint gets the keyword target on the specified line item. # 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_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, 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: - line_item_id (str): The line item to interact with + retailer_id (int): Retailer Id + template_id (int): Template Id Keyword Args: _return_http_data_only (bool): response data without head status @@ -3561,7 +5579,7 @@ def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + TemplateResponse If the method is called asynchronously, returns the request thread. """ @@ -3590,31 +5608,30 @@ def get_api202110_external_auction_line_item_targeting_keywords_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_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs) + 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_api202110_external_balance_campaigns_by_balance_id( + def get_api202207_external_retailer_templates_by_retailer_id( self, - balance_id, + retailer_id, **kwargs ): - """get_api202110_external_balance_campaigns_by_balance_id # noqa: E501 + """get_api202207_external_retailer_templates_by_retailer_id # noqa: E501 - Gets page of campaigns for the given balanceId # 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_api202110_external_balance_campaigns_by_balance_id(balance_id, async_req=True) + >>> thread = api.get_api202207_external_retailer_templates_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - balance_id (str): The balance to get campaigns from + retailer_id (int): External retailer id to retrieve creative templates 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 @@ -3647,7 +5664,7 @@ def get_api202110_external_balance_campaigns_by_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceCampaign202110PagedListResponse + TemplateListResponse If the method is called asynchronously, returns the request thread. """ @@ -3676,31 +5693,30 @@ def get_api202110_external_balance_campaigns_by_balance_id( '_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) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api202207_external_retailer_templates_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_campaign_preferred_line_items_by_campaign_id( + def get_api202210_external_account_by_account_id_creativescreative_id( self, - campaign_id, + account_id, + creative_id, **kwargs ): - """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + """get_api202210_external_account_by_account_id_creativescreative_id # noqa: E501 - Gets page of preferred line item objects for the given campaign 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_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, 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: - campaign_id (str): The given campaign id + account_id (str): External account id to retrieve creatives for + creative_id (str): Creative to 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 @@ -3733,7 +5749,7 @@ def get_api202110_external_campaign_preferred_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110PagedListResponse + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -3762,31 +5778,33 @@ def get_api202110_external_campaign_preferred_line_items_by_campaign_id( '_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) + 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_api202110_external_line_item_products_by_line_item_id( + def get_api202301_external_account_campaigns_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """get_api202110_external_line_item_products_by_line_item_id # noqa: E501 + """get_api202301_external_account_campaigns_by_account_id # noqa: E501 - This endpoint gets the promoted products on the specified line item. # 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_api202110_external_line_item_products_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api202301_external_account_campaigns_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + 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] - page_size (int): The maximum number of items you would like to receive in this request. [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 @@ -3819,7 +5837,7 @@ def get_api202110_external_line_item_products_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + JsonApiPageResponseOfCampaignV202301 If the method is called asynchronously, returns the request thread. """ @@ -3848,26 +5866,26 @@ def get_api202110_external_line_item_products_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_api202110_external_line_item_products_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.get_api202301_external_account_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_preferred_line_item_by_line_item_id( + def get_api202301_external_campaign_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """get_api202110_external_preferred_line_item_by_line_item_id # noqa: E501 + """get_api202301_external_campaign_by_campaign_id # noqa: E501 - Gets the preferred line item for the given line item 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_api202110_external_preferred_line_item_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api202301_external_campaign_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The given line item id + campaign_id (str): Campaign Id of the campaign detail Keyword Args: _return_http_data_only (bool): response data without head status @@ -3902,7 +5920,7 @@ def get_api202110_external_preferred_line_item_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110Response + JsonApiSingleResponseOfCampaignV202301 If the method is called asynchronously, returns the request thread. """ @@ -3931,26 +5949,26 @@ def get_api202110_external_preferred_line_item_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_api202110_external_preferred_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api202301_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id( + def get_api202301_external_line_item_bid_multipliers_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 + """get_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 - This endpoint gets the add to basket target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id, 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): The line item to interact with + line_item_id (str): Long external id of the associated line item Keyword Args: _return_http_data_only (bool): response data without head status @@ -3985,7 +6003,7 @@ def get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_i async_req (bool): execute request asynchronously Returns: - AddToBasketTarget202110Response + JsonApiSingleResponseOfLineItemBidMultipliers If the method is called asynchronously, returns the request thread. """ @@ -4016,26 +6034,29 @@ def get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_i 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) + return self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id( + def get_api_v1_external_account_balances_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id # noqa: E501 + """get_api_v1_external_account_balances_by_account_id # noqa: E501 - This endpoint gets the audience target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api_v1_external_account_balances_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + 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 @@ -4068,7 +6089,7 @@ def get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_ async_req (bool): execute request asynchronously Returns: - AudienceTarget202110Response + BalanceResponsePagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -4097,28 +6118,31 @@ def get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_ '_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) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( + def get_api_v1_external_account_brands_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id # noqa: E501 + """get_api_v1_external_account_brands_by_account_id # noqa: E501 - This endpoint gets the store target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api_v1_external_account_brands_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + 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 @@ -4151,7 +6175,7 @@ def get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( async_req (bool): execute request asynchronously Returns: - StoreTarget202110Response + JsonApiPageResponseOfBrand If the method is called asynchronously, returns the request thread. """ @@ -4180,26 +6204,28 @@ def get_api202110_external_preferred_line_item_targeting_stores_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_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_brands_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_retailer_pages_by_retailer_id( + def get_api_v1_external_account_by_account_id_and_balance_id( self, - retailer_id, + account_id, + balance_id, **kwargs ): - """get_api202110_external_retailer_pages_by_retailer_id # noqa: E501 + """get_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 - Get the page types available for the given retailer # 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_api202110_external_retailer_pages_by_retailer_id(retailer_id, 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: - retailer_id (int): The retailers to fetch pages for + 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 @@ -4234,7 +6260,7 @@ def get_api202110_external_retailer_pages_by_retailer_id( async_req (bool): execute request asynchronously Returns: - ExternalRetailerPages202110 + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -4263,28 +6289,33 @@ def get_api202110_external_retailer_pages_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_api202110_external_retailer_pages_by_retailer_id_endpoint.call_with_http_info(**kwargs) + 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_api202204_external_categorie_by_category_id( + def get_api_v1_external_account_retailers_by_account_id( self, - category_id, + account_id, **kwargs ): - """get_api202204_external_categorie_by_category_id # noqa: E501 + """get_api_v1_external_account_retailers_by_account_id # noqa: E501 - Endpoint to search for a specific category by categoryId. # 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_api202204_external_categorie_by_category_id(category_id, async_req=True) + >>> thread = api.get_api_v1_external_account_retailers_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - category_id (int): ID of the desired category + 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 @@ -4317,7 +6348,7 @@ def get_api202204_external_categorie_by_category_id( async_req (bool): execute request asynchronously Returns: - Category202204 + JsonApiPageResponseOfRetailer If the method is called asynchronously, returns the request thread. """ @@ -4346,29 +6377,28 @@ def get_api202204_external_categorie_by_category_id( '_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) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_retailers_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202204_external_categories( + def get_api_v1_external_accounts( self, **kwargs ): - """get_api202204_external_categories # noqa: E501 + """get_api_v1_external_accounts # noqa: E501 - Endpoint to search categories by text and retailer. # 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_api202204_external_categories(async_req=True) + >>> thread = api.get_api_v1_external_accounts(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 + 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 @@ -4401,7 +6431,7 @@ def get_api202204_external_categories( async_req (bool): execute request asynchronously Returns: - Category202204ListResponse + JsonApiPageResponseOfAccount If the method is called asynchronously, returns the request thread. """ @@ -4430,26 +6460,24 @@ def get_api202204_external_categories( '_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) + return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs) - def get_api202207_external_account_by_account_id_creativescreative_id( + def get_api_v1_external_catalog_output_by_catalog_id( self, - account_id, - creative_id, + catalog_id, **kwargs ): - """get_api202207_external_account_by_account_id_creativescreative_id # noqa: E501 + """get_api_v1_external_catalog_output_by_catalog_id # noqa: E501 - Get the specified creative # 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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id, async_req=True) + >>> thread = api.get_api_v1_external_catalog_output_by_catalog_id(catalog_id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to retrieve creatives for - creative_id (str): Creative to get + catalog_id (str): A catalog ID returned from an account catalog request. Keyword Args: _return_http_data_only (bool): response data without head status @@ -4484,7 +6512,7 @@ def get_api202207_external_account_by_account_id_creativescreative_id( async_req (bool): execute request asynchronously Returns: - Creative202207Response + None If the method is called asynchronously, returns the request thread. """ @@ -4513,30 +6541,26 @@ def get_api202207_external_account_by_account_id_creativescreative_id( '_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_api202207_external_account_by_account_id_creativescreative_id_endpoint.call_with_http_info(**kwargs) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v1_external_catalog_output_by_catalog_id_endpoint.call_with_http_info(**kwargs) - def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( + def get_api_v1_external_catalog_status_by_catalog_id( self, - retailer_id, - template_id, + catalog_id, **kwargs ): - """get_api202207_external_retailer_by_retailer_id_templatestemplate_id # noqa: E501 + """get_api_v1_external_catalog_status_by_catalog_id # noqa: E501 - Gets the template for the specified retailer id and template 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_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id, async_req=True) + >>> thread = api.get_api_v1_external_catalog_status_by_catalog_id(catalog_id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): Retailer Id - template_id (int): Template Id + catalog_id (str): A catalog ID returned from an account catalog request. Keyword Args: _return_http_data_only (bool): response data without head status @@ -4571,7 +6595,7 @@ def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( async_req (bool): execute request asynchronously Returns: - TemplateResponse + JsonApiSingleResponseOfCatalogStatus If the method is called asynchronously, returns the request thread. """ @@ -4600,30 +6624,33 @@ def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( '_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) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v1_external_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs) - def get_api202207_external_retailer_templates_by_retailer_id( + def get_api_v2_external_account_line_items_by_account_id( self, - retailer_id, + account_id, **kwargs ): - """get_api202207_external_retailer_templates_by_retailer_id # noqa: E501 + """get_api_v2_external_account_line_items_by_account_id # noqa: E501 - Get retailer creative templates # 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_api202207_external_retailer_templates_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.get_api_v2_external_account_line_items_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): External retailer id to retrieve creative templates for + 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 @@ -4656,7 +6683,7 @@ def get_api202207_external_retailer_templates_by_retailer_id( async_req (bool): execute request asynchronously Returns: - TemplateListResponse + CommonLineItemPagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -4685,31 +6712,28 @@ def get_api202207_external_retailer_templates_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_api202207_external_retailer_templates_by_retailer_id_endpoint.call_with_http_info(**kwargs) + 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_v1_external_account_brands_by_account_id( + def get_api_v2_external_auction_line_item_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """get_api_v1_external_account_brands_by_account_id # noqa: E501 + """get_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 - Gets page of retailer objects that are associated with the given account # 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_v1_external_account_brands_by_account_id(account_id, 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: - account_id (str): The given account id + line_item_id (str): The given line item 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 @@ -4742,7 +6766,7 @@ def get_api_v1_external_account_brands_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfBrand + AuctionLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -4771,26 +6795,26 @@ 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['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_v1_external_account_campaigns_by_account_id( + def get_api_v2_external_campaign_auction_line_items_by_campaign_id( self, - account_id, + campaign_id, **kwargs ): - """get_api_v1_external_account_campaigns_by_account_id # noqa: E501 + """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 - Gets page of campaign objects for the given account 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_v1_external_account_campaigns_by_account_id(account_id, 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: - account_id (str): The given account id + 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] @@ -4828,7 +6852,7 @@ def get_api_v1_external_account_campaigns_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfCampaign + AuctionLineItemPagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -4857,31 +6881,28 @@ def get_api_v1_external_account_campaigns_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_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) + 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_v1_external_account_retailers_by_account_id( + def get_api_v2_external_line_item_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """get_api_v1_external_account_retailers_by_account_id # noqa: E501 + """get_api_v2_external_line_item_by_line_item_id # noqa: E501 - Gets page of retailer objects that are associated with the given account # 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_v1_external_account_retailers_by_account_id(account_id, 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: - account_id (str): The given account id + line_item_id (str): The given line item 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 @@ -4914,7 +6935,7 @@ def get_api_v1_external_account_retailers_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfRetailer + CommonLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -4943,28 +6964,31 @@ 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['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 get_api_v1_external_accounts( + def patch_api_v1_external_account_by_account_id_and_balance_id( self, + account_id, + balance_id, **kwargs ): - """get_api_v1_external_accounts # noqa: E501 + """patch_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 - Gets page of account objects that the current user can access # 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_accounts(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: + account_id (str): The account of the balance + balance_id (str): The balance to change the dates 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] + 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 @@ -4997,7 +7021,7 @@ def get_api_v1_external_accounts( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfAccount + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -5026,26 +7050,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['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_campaign_by_campaign_id( + def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """get_api_v1_external_campaign_by_campaign_id # noqa: E501 + """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501 - Gets the campaign for the given campaign 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.get_api_v1_external_campaign_by_campaign_id(campaign_id, 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: - campaign_id (str): The given campaign id + 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 @@ -5078,7 +7107,7 @@ def get_api_v1_external_campaign_by_campaign_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCampaign + KeywordTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -5107,28 +7136,29 @@ def get_api_v1_external_campaign_by_campaign_id( '_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_v1_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) + 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 get_api_v1_external_catalog_output_by_catalog_id( + def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id( self, - catalog_id, + line_item_id, **kwargs ): - """get_api_v1_external_catalog_output_by_catalog_id # noqa: E501 + """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_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 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.get_api_v1_external_catalog_output_by_catalog_id(catalog_id, 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: - catalog_id (str): A catalog ID returned from an account catalog request. + 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 @@ -5161,7 +7191,7 @@ def get_api_v1_external_catalog_output_by_catalog_id( async_req (bool): execute request asynchronously Returns: - None + KeywordTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -5190,28 +7220,29 @@ def get_api_v1_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_v1_external_catalog_output_by_catalog_id_endpoint.call_with_http_info(**kwargs) + 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 get_api_v1_external_catalog_status_by_catalog_id( + def post_api202110_external_balance_campaigns_append_by_balance_id( self, - catalog_id, + balance_id, **kwargs ): - """get_api_v1_external_catalog_status_by_catalog_id # noqa: E501 + """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501 - Check the status of a catalog request. # 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.get_api_v1_external_catalog_status_by_catalog_id(catalog_id, async_req=True) + >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True) >>> result = thread.get() Args: - catalog_id (str): A catalog ID returned from an account catalog request. + 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 @@ -5244,7 +7275,7 @@ def get_api_v1_external_catalog_status_by_catalog_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + BalanceCampaign202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -5273,33 +7304,29 @@ def get_api_v1_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_v1_external_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs) - def get_api_v2_external_account_line_items_by_account_id( + def post_api202110_external_balance_campaigns_delete_by_balance_id( self, - account_id, + balance_id, **kwargs ): - """get_api_v2_external_account_line_items_by_account_id # noqa: E501 + """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501 - Gets page of line item objects for the given account 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.get_api_v2_external_account_line_items_by_account_id(account_id, async_req=True) + >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The given account id + balance_id (str): The balance to remove campaigns from 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] + 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 @@ -5332,7 +7359,7 @@ def get_api_v2_external_account_line_items_by_account_id( async_req (bool): execute request asynchronously Returns: - CommonLineItemPagedListResponse + BalanceCampaign202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -5361,28 +7388,29 @@ def get_api_v2_external_account_line_items_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_v2_external_account_line_items_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs) - def get_api_v2_external_auction_line_item_by_line_item_id( + def post_api202110_external_campaign_preferred_line_items_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """get_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 + """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 - Gets the auction line item for the given line item 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.get_api_v2_external_auction_line_item_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The given line item id + 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 @@ -5415,7 +7443,7 @@ def get_api_v2_external_auction_line_item_by_line_item_id( async_req (bool): execute request asynchronously Returns: - AuctionLineItemResponse + PreferredLineItem202110Response If the method is called asynchronously, returns the request thread. """ @@ -5444,31 +7472,29 @@ def get_api_v2_external_auction_line_item_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_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) - def get_api_v2_external_campaign_auction_line_items_by_campaign_id( + def post_api202110_external_line_item_products_append_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 + """post_api202110_external_line_item_products_append_by_line_item_id # noqa: E501 - Gets page of auction line item objects for the given campaign 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.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, 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: - campaign_id (str): The given campaign id + 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] + 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 @@ -5501,7 +7527,7 @@ def get_api_v2_external_campaign_auction_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - AuctionLineItemPagedListResponse + PromotedProduct202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -5530,28 +7556,29 @@ def get_api_v2_external_campaign_auction_line_items_by_campaign_id( '_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) + 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 get_api_v2_external_line_item_by_line_item_id( + def post_api202110_external_line_item_products_delete_by_line_item_id( self, line_item_id, **kwargs ): - """get_api_v2_external_line_item_by_line_item_id # noqa: E501 + """post_api202110_external_line_item_products_delete_by_line_item_id # noqa: E501 - Gets the line item for the given 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.get_api_v2_external_line_item_by_line_item_id(line_item_id, 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 given line item id + 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 @@ -5584,7 +7611,7 @@ def get_api_v2_external_line_item_by_line_item_id( async_req (bool): execute request asynchronously Returns: - CommonLineItemResponse + PromotedProduct202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -5615,27 +7642,27 @@ def get_api_v2_external_line_item_by_line_item_id( 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) + return self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id( + def post_api202110_external_line_item_products_pause_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501 + """post_api202110_external_line_item_products_pause_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 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_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, 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 + line_item_id (str): The line item to interact with. Keyword Args: - keyword_target202110_request (KeywordTarget202110Request): . [optional] + 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 @@ -5668,7 +7695,7 @@ def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_ async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + None If the method is called asynchronously, returns the request thread. """ @@ -5699,27 +7726,27 @@ def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_ 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) + return self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id( + def post_api202110_external_line_item_products_unpause_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501 + """post_api202110_external_line_item_products_unpause_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 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_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, 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 + line_item_id (str): The line item to interact with. Keyword Args: - keyword_target202110_request (KeywordTarget202110Request): . [optional] + 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 @@ -5752,7 +7779,7 @@ def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_ async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + None If the method is called asynchronously, returns the request thread. """ @@ -5783,27 +7810,27 @@ def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_ 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) + return self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_balance_campaigns_append_by_balance_id( + def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id( self, - balance_id, + line_item_id, **kwargs ): - """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id # noqa: E501 - appends one or more campaigns to the specified balance # 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_balance_campaigns_append_by_balance_id(balance_id, 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: - balance_id (str): The balance to add campaigns from + line_item_id (str): The line item to interact with Keyword Args: - balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional] + 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 @@ -5836,7 +7863,7 @@ def post_api202110_external_balance_campaigns_append_by_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceCampaign202110PagedListResponse + AddToBasketTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -5865,29 +7892,29 @@ def post_api202110_external_balance_campaigns_append_by_balance_id( '_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) + 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_balance_campaigns_delete_by_balance_id( + def post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id( self, - balance_id, + line_item_id, **kwargs ): - """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id # noqa: E501 - Removes one or more campaigns on the specified balance # 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_balance_campaigns_delete_by_balance_id(balance_id, 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: - balance_id (str): The balance to remove campaigns from + line_item_id (str): The line item to interact with Keyword Args: - balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional] + 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 @@ -5920,7 +7947,7 @@ def post_api202110_external_balance_campaigns_delete_by_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceCampaign202110PagedListResponse + AddToBasketTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -5949,29 +7976,29 @@ def post_api202110_external_balance_campaigns_delete_by_balance_id( '_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) + 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_campaign_preferred_line_items_by_campaign_id( + def post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id # noqa: E501 - Creates a new preferred line item with the specified settings # 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_campaign_preferred_line_items_by_campaign_id(campaign_id, 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: - campaign_id (str): The given campaign id + line_item_id (str): The line item to interact with Keyword Args: - preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [optional] + 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 @@ -6004,7 +8031,7 @@ def post_api202110_external_campaign_preferred_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110Response + AudienceTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6033,29 +8060,29 @@ def post_api202110_external_campaign_preferred_line_items_by_campaign_id( '_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) + 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_line_item_products_append_by_line_item_id( + def post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_line_item_products_append_by_line_item_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_audiences_delete_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 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_line_item_products_append_by_line_item_id(line_item_id, 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: - promoted_product202110_list_request (PromotedProduct202110ListRequest): the products to append to this line item. [optional] + 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 @@ -6088,7 +8115,7 @@ def post_api202110_external_line_item_products_append_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + AudienceTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6119,27 +8146,27 @@ def post_api202110_external_line_item_products_append_by_line_item_id( 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) + 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_line_item_products_delete_by_line_item_id( + def post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_line_item_products_delete_by_line_item_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_stores_append_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 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_line_item_products_delete_by_line_item_id(line_item_id, 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: - promoted_product202110_list_request (PromotedProduct202110ListRequest): . [optional] + 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 @@ -6172,7 +8199,7 @@ def post_api202110_external_line_item_products_delete_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + StoreTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6203,27 +8230,27 @@ def post_api202110_external_line_item_products_delete_by_line_item_id( 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) + 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_line_item_products_pause_by_line_item_id( + def post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_line_item_products_pause_by_line_item_id # noqa: E501 + """post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id # noqa: E501 - This endpoint pauses one or more promoted products on a specified line item. # 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_line_item_products_pause_by_line_item_id(line_item_id, 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. + 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] + 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 @@ -6256,7 +8283,7 @@ def post_api202110_external_line_item_products_pause_by_line_item_id( async_req (bool): execute request asynchronously Returns: - None + StoreTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6287,27 +8314,27 @@ def post_api202110_external_line_item_products_pause_by_line_item_id( 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) + return self.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_line_item_products_unpause_by_line_item_id( + def post_api202210_external_account_creatives_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202110_external_line_item_products_unpause_by_line_item_id # noqa: E501 + """post_api202210_external_account_creatives_by_account_id # noqa: E501 - This endpoint unpauses one or more promoted products on a specified line item. # 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_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202210_external_account_creatives_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with. + account_id (str): External account id to create a creative for Keyword Args: - promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to unpause.. [optional] + 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 @@ -6340,7 +8367,7 @@ def post_api202110_external_line_item_products_unpause_by_line_item_id( async_req (bool): execute request asynchronously Returns: - None + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -6369,29 +8396,29 @@ def post_api202110_external_line_item_products_unpause_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_api202110_external_line_item_products_unpause_by_line_item_id_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 post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id( + def post_api202210_external_account_creatives_search_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id # noqa: E501 + """post_api202210_external_account_creatives_search_by_account_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 + 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_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202210_external_account_creatives_search_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + account_id (str): External account id to retrieve creatives for Keyword Args: - add_to_basket_ids_update_model202110_request (AddToBasketIdsUpdateModel202110Request): Ids to append to the target. [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 @@ -6424,7 +8451,7 @@ def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_b async_req (bool): execute request asynchronously Returns: - AddToBasketTarget202110Response + Creative202210ListResponse If the method is called asynchronously, returns the request thread. """ @@ -6453,29 +8480,29 @@ def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_b '_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) + kwargs['account_id'] = \ + account_id + return self.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id( + def post_api202301_external_account_campaigns_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id # noqa: E501 + """post_api202301_external_account_campaigns_by_account_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 + 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_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202301_external_account_campaigns_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + account_id (str): The account to request the campaign for. Keyword Args: - add_to_basket_ids_update_model202110_request (AddToBasketIdsUpdateModel202110Request): Ids to remove from the target. [optional] + 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 @@ -6508,7 +8535,7 @@ def post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_b async_req (bool): execute request asynchronously Returns: - AddToBasketTarget202110Response + JsonApiSingleResponseOfCampaignV202301 If the method is called asynchronously, returns the request thread. """ @@ -6537,29 +8564,31 @@ def post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_b '_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) + kwargs['account_id'] = \ + account_id + return self.post_api202301_external_account_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id( + def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( self, - line_item_id, + account_id, + balance_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id # noqa: E501 + """post_api_v1_external_account_add_funds_by_account_id_and_balance_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 + 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_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id(line_item_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: - line_item_id (str): The line item to interact with + account_id (str): The account of the balance + balance_id (str): The balance to add funds to Keyword Args: - audience_ids_update_model202110_request (AudienceIdsUpdateModel202110Request): Audience ids to append to the target. [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 @@ -6592,7 +8621,7 @@ def post_api202110_external_preferred_line_item_targeting_audiences_append_by_li async_req (bool): execute request asynchronously Returns: - AudienceTarget202110Response + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -6621,29 +8650,31 @@ def post_api202110_external_preferred_line_item_targeting_audiences_append_by_li '_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) + kwargs['account_id'] = \ + account_id + 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_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id( + def post_api_v1_external_account_balances_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id # noqa: E501 + """post_api_v1_external_account_balances_by_account_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 + 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_api202110_external_preferred_line_item_targeting_audiences_delete_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): The line item to interact with + account_id (str): The account to create balances for Keyword Args: - audience_ids_update_model202110_request (AudienceIdsUpdateModel202110Request): Audience ids to remove from the target. [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 @@ -6676,7 +8707,7 @@ def post_api202110_external_preferred_line_item_targeting_audiences_delete_by_li async_req (bool): execute request asynchronously Returns: - AudienceTarget202110Response + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -6705,29 +8736,29 @@ def post_api202110_external_preferred_line_item_targeting_audiences_delete_by_li '_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) + kwargs['account_id'] = \ + account_id + return self.post_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id( + def post_api_v1_external_account_catalogs_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id # noqa: E501 + """post_api_v1_external_account_catalogs_by_account_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 + 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_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api_v1_external_account_catalogs_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + account_id (str): The account to request the catalog for. Keyword Args: - store_ids_update_model202110_request (StoreIdsUpdateModel202110Request): Store ids to append to the target. [optional] + 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 @@ -6760,7 +8791,7 @@ def post_api202110_external_preferred_line_item_targeting_stores_append_by_line_ async_req (bool): execute request asynchronously Returns: - StoreTarget202110Response + JsonApiSingleResponseOfCatalogStatus If the method is called asynchronously, returns the request thread. """ @@ -6789,29 +8820,31 @@ def post_api202110_external_preferred_line_item_targeting_stores_append_by_line_ '_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) + kwargs['account_id'] = \ + account_id + return self.post_api_v1_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id( + def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( self, - line_item_id, + account_id, + balance_id, **kwargs ): - """post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id # noqa: E501 + """post_api_v1_external_account_change_dates_by_account_id_and_balance_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 + 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_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id(line_item_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: - line_item_id (str): The line item to interact with + account_id (str): The account of the balance + balance_id (str): The balance to change the dates Keyword Args: - store_ids_update_model202110_request (StoreIdsUpdateModel202110Request): Store ids to remove from the target. [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 @@ -6844,7 +8877,7 @@ def post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_ async_req (bool): execute request asynchronously Returns: - StoreTarget202110Response + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -6873,29 +8906,31 @@ def post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_ '_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) + kwargs['account_id'] = \ + account_id + 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_api202207_external_account_creatives_by_account_id( + def post_api_v2_external_campaign_auction_line_items_by_campaign_id( self, - account_id, + campaign_id, **kwargs ): - """post_api202207_external_account_creatives_by_account_id # noqa: E501 + """post_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 - Create a creative for an account # 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_api202207_external_account_creatives_by_account_id(account_id, 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: - account_id (str): External account id to create a creative for + campaign_id (str): The given campaign id Keyword Args: - creative_create_model202207 (CreativeCreateModel202207): The creative to create. [optional] + 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 @@ -6928,7 +8963,7 @@ def post_api202207_external_account_creatives_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202207Response + AuctionLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -6957,29 +8992,29 @@ def post_api202207_external_account_creatives_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.post_api202207_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + 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 post_api_v1_external_account_campaigns_by_account_id( + def put_api202110_external_preferred_line_item_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """post_api_v1_external_account_campaigns_by_account_id # noqa: E501 + """put_api202110_external_preferred_line_item_by_line_item_id # noqa: E501 - Creates a new campaign with the specified settings # 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.post_api_v1_external_account_campaigns_by_account_id(account_id, 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: - account_id (str): The given account id + line_item_id (str): The given line item id Keyword Args: - external_post_campaign (ExternalPostCampaign): The campaign settings to create a campaign with. [optional] + 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 @@ -7012,7 +9047,7 @@ def post_api_v1_external_account_campaigns_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCampaign + PreferredLineItem202110Response If the method is called asynchronously, returns the request thread. """ @@ -7041,29 +9076,29 @@ def post_api_v1_external_account_campaigns_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.post_api_v1_external_account_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) + 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 post_api_v1_external_account_catalogs_by_account_id( + def put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """post_api_v1_external_account_catalogs_by_account_id # noqa: E501 + """put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id # noqa: E501 - Create a request for a Catalog available to the indicated account. # 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.post_api_v1_external_account_catalogs_by_account_id(account_id, 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: - account_id (str): The account to request the catalog for. + line_item_id (str): The line item to interact with Keyword Args: - json_api_request_of_catalog_request (JsonApiRequestOfCatalogRequest): [optional] + 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 @@ -7096,7 +9131,7 @@ def post_api_v1_external_account_catalogs_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + AddToBasketTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -7125,29 +9160,29 @@ def post_api_v1_external_account_catalogs_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.post_api_v1_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) + 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 post_api_v2_external_campaign_auction_line_items_by_campaign_id( + def put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """post_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 + """put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id # noqa: E501 - Creates new auction line item with the specified settings # 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.post_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, 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: - campaign_id (str): The given campaign id + line_item_id (str): The line item to interact with Keyword Args: - auction_line_item_create_model_request (AuctionLineItemCreateModelRequest): The line item settings to create a line item with. [optional] + 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 @@ -7180,7 +9215,7 @@ def post_api_v2_external_campaign_auction_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - AuctionLineItemResponse + AudienceTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -7209,29 +9244,29 @@ def post_api_v2_external_campaign_auction_line_items_by_campaign_id( '_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) + 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_by_line_item_id( + def put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( self, line_item_id, **kwargs ): - """put_api202110_external_preferred_line_item_by_line_item_id # noqa: E501 + """put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id # noqa: E501 - Updates the preferred line item for the given 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_by_line_item_id(line_item_id, 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 given line item id + line_item_id (str): The line item to interact with Keyword Args: - preferred_line_item_update_model202110_request (PreferredLineItemUpdateModel202110Request): The line item settings to create a line item with. [optional] + 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 @@ -7264,7 +9299,7 @@ def put_api202110_external_preferred_line_item_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110Response + StoreTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -7295,27 +9330,29 @@ def put_api202110_external_preferred_line_item_by_line_item_id( 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) + return self.put_api202110_external_preferred_line_item_targeting_stores_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( + def put_api202210_external_account_by_account_id_creativescreative_id( self, - line_item_id, + account_id, + creative_id, **kwargs ): - """put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id # noqa: E501 + """put_api202210_external_account_by_account_id_creativescreative_id # noqa: E501 - This endpoint sets the scope of the add to basket target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id, 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: - line_item_id (str): The line item to interact with + account_id (str): External account id containing the creative + creative_id (str): Creative to update Keyword Args: - add_to_basket_target202110_request (AddToBasketTarget202110Request): The add to basket target to set the scope for. [optional] + 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 @@ -7348,7 +9385,7 @@ def put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_i async_req (bool): execute request asynchronously Returns: - AddToBasketTarget202110Response + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -7377,29 +9414,31 @@ def put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_i '_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) + 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_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id( + def put_api202301_external_campaign_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id # noqa: E501 + """put_api202301_external_campaign_by_campaign_id # noqa: E501 - This endpoint sets the scope of the audience target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.put_api202301_external_campaign_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + campaign_id (str): Campaign Id of the updating campaign Keyword Args: - audience_target202110_request (AudienceTarget202110Request): The audience target to set the scope for. [optional] + 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 @@ -7432,7 +9471,7 @@ def put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_ async_req (bool): execute request asynchronously Returns: - AudienceTarget202110Response + JsonApiSingleResponseOfCampaignV202301 If the method is called asynchronously, returns the request thread. """ @@ -7461,29 +9500,29 @@ def put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_ '_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) + kwargs['campaign_id'] = \ + campaign_id + return self.put_api202301_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) - def put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( + def put_api202301_external_line_item_bid_multipliers_by_line_item_id( self, line_item_id, **kwargs ): - """put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id # noqa: E501 + """put_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 - This endpoint sets the scope of the store target on the specified line item. # 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_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id, 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): The line item to interact with + line_item_id (str): Long external id of the associated line item Keyword Args: - store_target202110_request (StoreTarget202110Request): The store target to set the scope for. [optional] + 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 @@ -7516,7 +9555,7 @@ def put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( async_req (bool): execute request asynchronously Returns: - StoreTarget202110Response + LineItemBidMultipliersResponse If the method is called asynchronously, returns the request thread. """ @@ -7547,29 +9586,27 @@ def put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( 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) + return self.put_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def put_api202207_external_account_by_account_id_creativescreative_id( + def put_api_v2_external_auction_line_item_by_line_item_id( self, - account_id, - creative_id, + line_item_id, **kwargs ): - """put_api202207_external_account_by_account_id_creativescreative_id # noqa: E501 + """put_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 - Update a creative # 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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id, 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: - account_id (str): External account id containing the creative - creative_id (str): Creative to update + line_item_id (str): The given line item id Keyword Args: - creative_update_model202207 (CreativeUpdateModel202207): The creative to create. [optional] + 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 @@ -7602,7 +9639,7 @@ def put_api202207_external_account_by_account_id_creativescreative_id( async_req (bool): execute request asynchronously Returns: - Creative202207Response + AuctionLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -7631,31 +9668,29 @@ def put_api202207_external_account_by_account_id_creativescreative_id( '_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_api202207_external_account_by_account_id_creativescreative_id_endpoint.call_with_http_info(**kwargs) + 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 put_api_v1_external_campaign_by_campaign_id( + def set_keyword_bids( self, - campaign_id, + id, **kwargs ): - """put_api_v1_external_campaign_by_campaign_id # noqa: E501 + """set_keyword_bids # noqa: E501 - Updates the campaign for the given campaign id # 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.put_api_v1_external_campaign_by_campaign_id(campaign_id, async_req=True) + >>> thread = api.set_keyword_bids(id, async_req=True) >>> result = thread.get() Args: - campaign_id (str): The given campaign id + id (str): Long external id of the associated line item Keyword Args: - external_put_campaign (ExternalPutCampaign): The campaign settings to update that campaign with. [optional] + 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 @@ -7688,7 +9723,7 @@ def put_api_v1_external_campaign_by_campaign_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCampaign + RetailMediaExternalv1ResourceOutcome If the method is called asynchronously, returns the request thread. """ @@ -7717,29 +9752,28 @@ def put_api_v1_external_campaign_by_campaign_id( '_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_api_v1_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.set_keyword_bids_endpoint.call_with_http_info(**kwargs) - def put_api_v2_external_auction_line_item_by_line_item_id( + def submit_proposal( self, - line_item_id, + id, **kwargs ): - """put_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 + """submit_proposal # noqa: E501 - Updates the auction line item for the given line item id # 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.put_api_v2_external_auction_line_item_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.submit_proposal(id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The given line item id + id (str): The external id of a line item. 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 @@ -7772,7 +9806,7 @@ def put_api_v2_external_auction_line_item_by_line_item_id( async_req (bool): execute request asynchronously Returns: - AuctionLineItemResponse + RetailMediaExternalv1ProposalStatusModelResponse If the method is called asynchronously, returns the request thread. """ @@ -7801,7 +9835,7 @@ def put_api_v2_external_auction_line_item_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.put_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.submit_proposal_endpoint.call_with_http_info(**kwargs) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/gateway_api.py similarity index 94% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/gateway_api.py index 4e369ba6..5b128420 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/gateway_api.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,8 +11,8 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.api_client import ApiClient, Endpoint as _Endpoint -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, @@ -21,7 +21,7 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2022_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_retailmedia_v2023_10.model.application_summary_model_response import ApplicationSummaryModelResponse class GatewayApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2022-07/retail-media/me', + 'endpoint_path': '/2023-10/retail-media/me', 'operation_id': 'get_current_application', 'http_method': 'GET', 'servers': None, diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py index 1be53d3d..125d87db 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -20,10 +20,10 @@ from urllib3.fields import RequestField -from criteo_api_retailmedia_v2022_10 import rest -from criteo_api_retailmedia_v2022_10.configuration import Configuration -from criteo_api_retailmedia_v2022_10.exceptions import ApiTypeError, ApiValueError, ApiException -from criteo_api_retailmedia_v2022_10.model_utils import ( +from criteo_api_retailmedia_v2023_10 import rest +from criteo_api_retailmedia_v2023_10.configuration import Configuration +from criteo_api_retailmedia_v2023_10.exceptions import ApiTypeError, ApiValueError, ApiException +from criteo_api_retailmedia_v2023_10.model_utils import ( ModelNormal, ModelSimple, ModelComposed, @@ -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.230831/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.231113/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - api_instance.get_report_output # this is an instance of the class Endpoint - api_instance.get_report_output() # this invokes api_instance.get_report_output.__call__() + api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint + api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.get_report_output.callable or self.callable in this class + api_instance.generate_async_campaigns_report.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client_builder.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client_builder.py similarity index 87% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client_builder.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client_builder.py index 170ba52e..244e06c2 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client_builder.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client_builder.py @@ -1,6 +1,6 @@ -from criteo_api_retailmedia_v2022_10.configuration import Configuration -from criteo_api_retailmedia_v2022_10.criteo_api_client import CriteoApiClient -from criteo_api_retailmedia_v2022_10 import flow_constants +from criteo_api_retailmedia_v2023_10.configuration import Configuration +from criteo_api_retailmedia_v2023_10.criteo_api_client import CriteoApiClient +from criteo_api_retailmedia_v2023_10 import flow_constants class ApiClientBuilder : diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/apis/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/apis/__init__.py similarity index 56% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/apis/__init__.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/apis/__init__.py index 68195e54..293fe9e1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/apis/__init__.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/apis/__init__.py @@ -6,7 +6,7 @@ # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # -# from criteo_api_retailmedia_v2022_07.api.analytics_api import AnalyticsApi +# from criteo_api_retailmedia_v2023_10.api.analytics_api import AnalyticsApi # # or import this package, but before doing it, use: # @@ -14,7 +14,7 @@ # sys.setrecursionlimit(n) # Import APIs into API package: -from criteo_api_retailmedia_v2022_07.api.analytics_api import AnalyticsApi -from criteo_api_retailmedia_v2022_07.api.audience_api import AudienceApi -from criteo_api_retailmedia_v2022_07.api.campaign_api import CampaignApi -from criteo_api_retailmedia_v2022_07.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_10.api.analytics_api import AnalyticsApi +from criteo_api_retailmedia_v2023_10.api.audience_api import AudienceApi +from criteo_api_retailmedia_v2023_10.api.campaign_api import CampaignApi +from criteo_api_retailmedia_v2023_10.api.gateway_api import GatewayApi diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py index 9a8c3b48..57428d28 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ import urllib3 from http import client as http_client -from criteo_api_retailmedia_v2022_07.exceptions import ApiValueError +from criteo_api_retailmedia_v2023_10.exceptions import ApiValueError JSON_SCHEMA_VALIDATION_KEYWORDS = { @@ -133,7 +133,7 @@ def __init__(self, host=None, self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("criteo_api_retailmedia_v2022_07") + self.logger["package_logger"] = logging.getLogger("criteo_api_retailmedia_v2023_10") self.logger["urllib3_logger"] = logging.getLogger("urllib3") self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format @@ -394,8 +394,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2022-07\n"\ - "SDK Package Version: 2022.07.0.230831".\ + "Version of the API: 2023-10\n"\ + "SDK Package Version: 2023.10.0.231113".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_api_client.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_api_client.py similarity index 80% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_api_client.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_api_client.py index e42f3552..6220545d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_api_client.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_api_client.py @@ -1,5 +1,5 @@ -from criteo_api_retailmedia_v2022_07.api_client import ApiClient -from criteo_api_retailmedia_v2022_07.criteo_rest import CriteoRESTClientObject +from criteo_api_retailmedia_v2023_10.api_client import ApiClient +from criteo_api_retailmedia_v2023_10.criteo_rest import CriteoRESTClientObject class CriteoApiClient(ApiClient): def __init__(self, configuration=None, header_name=None, header_value=None, diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_auth.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_auth.py similarity index 96% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_auth.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_auth.py index 843225f7..9e7941f2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/criteo_auth.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_auth.py @@ -1,8 +1,8 @@ import json from datetime import datetime, timedelta -from criteo_api_retailmedia_v2022_07.exceptions import ApiException -from criteo_api_retailmedia_v2022_07.api_client import ApiClient -from criteo_api_retailmedia_v2022_07 import flow_constants +from criteo_api_retailmedia_v2023_10.exceptions import ApiException +from criteo_api_retailmedia_v2023_10.api_client import ApiClient +from criteo_api_retailmedia_v2023_10 import flow_constants class Token(object): diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_rest.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_rest.py similarity index 94% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_rest.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_rest.py index 267e68d6..0f68b4b9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/criteo_rest.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/criteo_rest.py @@ -1,6 +1,6 @@ -from criteo_api_retailmedia_v2022_10.rest import RESTClientObject -from criteo_api_retailmedia_v2022_10.criteo_auth import * -from criteo_api_retailmedia_v2022_10 import flow_constants +from criteo_api_retailmedia_v2023_10.rest import RESTClientObject +from criteo_api_retailmedia_v2023_10.criteo_auth import * +from criteo_api_retailmedia_v2023_10 import flow_constants class CriteoRESTClientObject(RESTClientObject): diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/exceptions.py similarity index 99% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/exceptions.py index 5256fffa..d04097fb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/exceptions.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/flow_constants.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/flow_constants.py similarity index 100% rename from sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/flow_constants.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/flow_constants.py diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/__init__.py similarity index 82% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/__init__.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/__init__.py index 8ca704e5..4778f986 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/__init__.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/__init__.py @@ -2,4 +2,4 @@ # 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_v2022_07.models import ModelA, ModelB +# from criteo_api_retailmedia_v2023_10.models import ModelA, ModelB diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_funds_to_balance_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_funds_to_balance_request.py index 463f5430..aaba3cc2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_funds_to_balance_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance + from criteo_api_retailmedia_v2023_10.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance globals()['ResourceOfAddFundsToBalance'] = ResourceOfAddFundsToBalance diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_ids_update_model202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_ids_update_model202110_request.py index 563b920e..a212a1af 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_ids_update_model202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 globals()['ValueTypeResourceOfAddToBasketIdsUpdateModel202110'] = ValueTypeResourceOfAddToBasketIdsUpdateModel202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_request.py index 115e51c8..b4580acc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_response.py index 7ea60653..e1ca403e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/add_to_basket_target202110_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 globals()['ProblemDetails'] = ProblemDetails globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model.py index 7e31babf..536b3b25 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_resource.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_resource.py index 6631c097..1ec48f29 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.application_summary_model import ApplicationSummaryModel + from criteo_api_retailmedia_v2023_10.model.application_summary_model import ApplicationSummaryModel globals()['ApplicationSummaryModel'] = ApplicationSummaryModel diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_response.py index b33e0b3d..b12a7dc4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/application_summary_model_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.application_summary_model_resource import ApplicationSummaryModelResource - from criteo_api_retailmedia_v2022_07.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.application_summary_model_resource import ApplicationSummaryModelResource + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource globals()['CommonProblem'] = CommonProblem diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset.py index 6a614511..a9264c26 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_resource.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_resource.py index bcf52ace..b1d3ab84 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.asset import Asset + from criteo_api_retailmedia_v2023_10.model.asset import Asset globals()['Asset'] = Asset diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_response.py index 1120f1d3..d39ffcd7 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/asset_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.asset_resource import AssetResource - from criteo_api_retailmedia_v2022_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.asset_resource import AssetResource + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem globals()['AssetResource'] = AssetResource globals()['CommonProblem'] = CommonProblem diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report.py new file mode 100644 index 00000000..b252f720 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report.py @@ -0,0 +1,399 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + + +class AsyncCampaignsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", + }, + ('dimensions',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", + 'KEYWORD': "keyword", + 'SALESCHANNEL': "salesChannel", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncCampaignsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_request.py new file mode 100644 index 00000000..ee5dfe55 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.async_campaigns_report_resource import AsyncCampaignsReportResource + globals()['AsyncCampaignsReportResource'] = AsyncCampaignsReportResource + + +class AsyncCampaignsReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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': (AsyncCampaignsReportResource,), # 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 + """AsyncCampaignsReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (AsyncCampaignsReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignsReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (AsyncCampaignsReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_resource.py new file mode 100644 index 00000000..29d19030 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_campaigns_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.async_campaigns_report import AsyncCampaignsReport + globals()['AsyncCampaignsReport'] = AsyncCampaignsReport + + +class AsyncCampaignsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncCampaignsReport,), # 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 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report.py new file mode 100644 index 00000000..01463d58 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report.py @@ -0,0 +1,400 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + + +class AsyncLineItemsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + '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',): { + 'None': None, + 'DATE': "date", + 'HOUR': "hour", + '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", + 'ENVIRONMENT': "environment", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'None': None, + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'None': None, + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '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 { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str], none_type,), # noqa: E501 + 'dimensions': ([str], none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'format': (str, none_type,), # noqa: E501 + 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'ids': ([str], none_type,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # 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 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # 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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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 + """AsyncLineItemsReport - a model defined in OpenAPI + + Args: + 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,) + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [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.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-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_request.py new file mode 100644 index 00000000..cc94dbca --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.async_line_items_report_resource import AsyncLineItemsReportResource + globals()['AsyncLineItemsReportResource'] = AsyncLineItemsReportResource + + +class AsyncLineItemsReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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': (AsyncLineItemsReportResource,), # 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 + """AsyncLineItemsReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (AsyncLineItemsReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (AsyncLineItemsReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_resource.py new file mode 100644 index 00000000..1591da05 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_line_items_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.async_line_items_report import AsyncLineItemsReport + globals()['AsyncLineItemsReport'] = AsyncLineItemsReport + + +class AsyncLineItemsReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (AsyncLineItemsReport,), # 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 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemsReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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-10/criteo_api_retailmedia_v2023_10/model/async_report_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_report_response.py new file mode 100644 index 00000000..83da27b3 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_report_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report.py similarity index 76% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report.py index c37fb1bb..554d0adf 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError @@ -60,7 +60,7 @@ class AsyncRevenueReport(ModelNormal): 'ADVERTISER': "advertiser", 'ENVIRONMENT': "environment", 'PAGETYPE': "pageType", - 'PAGECATEGORY': "pageCategory", + 'PRODUCTCATEGORY': "productCategory", 'BRAND': "brand", }, ('revenue_type',): { @@ -86,6 +86,8 @@ class AsyncRevenueReport(ModelNormal): ('dimensions',): { 'None': None, 'DATE': "date", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", 'ACCOUNTID': "accountId", 'ACCOUNTNAME': "accountName", 'ENVIRONMENT': "environment", @@ -93,6 +95,10 @@ class AsyncRevenueReport(ModelNormal): 'BRANDID': "brandId", 'BRANDNAME': "brandName", 'PAGETYPENAME': "pageTypeName", + 'ADVPRODUCTNAME': "advProductName", + 'ADVPRODUCTGTIN': "advProductGtin", + 'ADVPRODUCTMPN': "advProductMpn", + 'ADVPRODUCTID': "advProductId", }, ('format',): { 'None': None, @@ -101,16 +107,6 @@ class AsyncRevenueReport(ModelNormal): 'JSON-NEWLINE': "json-newline", 'CSV': "csv", }, - ('campaign_type',): { - 'None': None, - 'SPONSOREDPRODUCTS': "sponsoredProducts", - 'ONSITEDISPLAYS': "onSiteDisplays", - }, - ('sales_channel',): { - 'None': None, - 'OFFLINE': "offline", - 'ONLINE': "online", - }, ('sold_by',): { 'None': None, 'DIRECTSOLD': "directSold", @@ -122,6 +118,31 @@ class AsyncRevenueReport(ModelNormal): 'AUCTIONANDPREFERRED': "auctionAndPreferred", 'LOCKOUT': "lockout", }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, } validations = { @@ -157,11 +178,13 @@ def openapi_types(): 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 'format': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 - 'campaign_type': (str, none_type,), # noqa: E501 - 'sales_channel': (str, none_type,), # noqa: E501 'sold_by': (str, none_type,), # noqa: E501 'campaign_sub_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -179,11 +202,13 @@ def discriminator(): '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 'sold_by': 'soldBy', # noqa: E501 'campaign_sub_type': 'campaignSubType', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -197,8 +222,8 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 """AsyncRevenueReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -231,18 +256,20 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - report_type (str, none_type): [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - sold_by (str, none_type): Filter on the type of seller. [optional] # noqa: E501 - campaign_sub_type (str, none_type): Filter on the campaign sub type. [optional] # noqa: E501 + report_type (str, none_type): Type of report. [optional] # noqa: E501 + revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501 + ids ([str], none_type): List of campaign Ids to filter. [optional] # noqa: E501 + id (str, none_type): List of campaign Id to filter. [optional] # noqa: E501 + metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] # noqa: E501 + sold_by (str, none_type): Filter on the seller: indirect, direct or private market. [optional] # noqa: E501 + campaign_sub_type (str, none_type): Filter on campaign subType : Auction and Preferred Deals or Lockout campaign. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -300,8 +327,8 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 """AsyncRevenueReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -334,18 +361,20 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - report_type (str, none_type): [optional] # noqa: E501 - revenue_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - sold_by (str, none_type): Filter on the type of seller. [optional] # noqa: E501 - campaign_sub_type (str, none_type): Filter on the campaign sub type. [optional] # noqa: E501 + report_type (str, none_type): Type of report. [optional] # noqa: E501 + revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501 + ids ([str], none_type): List of campaign Ids to filter. [optional] # noqa: E501 + id (str, none_type): List of campaign Id to filter. [optional] # noqa: E501 + metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] # noqa: E501 + sold_by (str, none_type): Filter on the seller: indirect, direct or private market. [optional] # noqa: E501 + campaign_sub_type (str, none_type): Filter on campaign subType : Auction and Preferred Deals or Lockout campaign. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_request.py index b76a48f3..70759644 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.async_revenue_report_resource import AsyncRevenueReportResource + from criteo_api_retailmedia_v2023_10.model.async_revenue_report_resource import AsyncRevenueReportResource globals()['AsyncRevenueReportResource'] = AsyncRevenueReportResource diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_resource.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_resource.py index 9f9c7750..8d0bf116 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/async_revenue_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.async_revenue_report import AsyncRevenueReport + from criteo_api_retailmedia_v2023_10.model.async_revenue_report import AsyncRevenueReport globals()['AsyncRevenueReport'] = AsyncRevenueReport diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_create_model_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_create_model_request.py index 6b76f134..1320b312 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_create_model_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel + from criteo_api_retailmedia_v2023_10.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel globals()['InputResourceOfAuctionLineItemCreateModel'] = InputResourceOfAuctionLineItemCreateModel diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_paged_list_response.py index 6b2307a1..90cd91d0 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfAuctionLineItem'] = ResourceOfAuctionLineItem diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_response.py index bf05f5b8..6757aa61 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfAuctionLineItem'] = ResourceOfAuctionLineItem diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_update_model_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_update_model_request.py index 28b1f64a..e64e7e51 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/auction_line_item_update_model_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel + from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel globals()['ResourceOfAuctionLineItemUpdateModel'] = ResourceOfAuctionLineItemUpdateModel diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_ids_update_model202110_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_ids_update_model202110_request.py index c1dfd7a2..78f800af 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_ids_update_model202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 globals()['ValueTypeResourceOfAudienceIdsUpdateModel202110'] = ValueTypeResourceOfAudienceIdsUpdateModel202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_request.py index 06391ded..0bd72b3f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 globals()['ValueTypeResourceOfAudienceTarget202110'] = ValueTypeResourceOfAudienceTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_response.py index 97205449..0ecc1aa2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/audience_target202110_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 globals()['ProblemDetails'] = ProblemDetails globals()['ValueTypeResourceOfAudienceTarget202110'] = ValueTypeResourceOfAudienceTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py index 4843bb69..837f8690 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_balance202110 import ResourceOfBalance202110 + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110 globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfBalance202110'] = ResourceOfBalance202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_list_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_list_request.py index f47887f1..861aab8a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_list_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 + from criteo_api_retailmedia_v2023_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 globals()['ResourceOfBalanceCampaign202110'] = ResourceOfBalanceCampaign202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_paged_list_response.py index dddbbfa9..689ab2d1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_campaign202110_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfBalanceCampaign202110'] = ResourceOfBalanceCampaign202110 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response.py similarity index 96% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response.py index a10ed3c2..3c6b7fd9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.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 + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.resource_of_balance_response import ResourceOfBalanceResponse globals()['CommonProblem'] = CommonProblem globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response_paged_list_response.py similarity index 96% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response_paged_list_response.py index 49eff947..fed036d1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance_response_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.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 + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.resource_of_balance_response import ResourceOfBalanceResponse globals()['CommonProblem'] = CommonProblem globals()['PageMetadata'] = PageMetadata globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py similarity index 85% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py index a3c42161..f9e749e7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class ExternalCampaignAttributes(ModelNormal): +class CampaignAttributesV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -67,12 +67,12 @@ class ExternalCampaignAttributes(ModelNormal): 'UNKNOWN': "unknown", }, ('view_attribution_window',): { - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", }, ('click_attribution_scope',): { 'None': None, @@ -119,11 +119,16 @@ def openapi_types(): """ 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 } @@ -135,11 +140,16 @@ def discriminator(): 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 } @@ -151,11 +161,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 - """ExternalCampaignAttributes - a model defined in OpenAPI + 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 @@ -191,8 +204,10 @@ def _from_openapi_data(cls, name, *args, **kwargs): # 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 + 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 """ @@ -227,6 +242,9 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 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 \ @@ -247,11 +265,14 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, *args, **kwargs): # noqa: E501 - """ExternalCampaignAttributes - a model defined in OpenAPI + 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 @@ -287,8 +308,10 @@ def __init__(self, name, *args, **kwargs): # 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 + 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 """ @@ -321,6 +344,9 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_v202301.py similarity index 87% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_v202301.py index 9accf1e1..e53a2d54 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class ExternalCampaign(ModelNormal): +class CampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +59,8 @@ class ExternalCampaign(ModelNormal): 'UNKNOWN': "unknown", 'ACTIVE': "active", 'INACTIVE': "inactive", + 'SCHEDULED': "scheduled", + 'ENDED': "ended", }, ('type',): { 'UNKNOWN': "unknown", @@ -72,12 +74,12 @@ class ExternalCampaign(ModelNormal): 'UNKNOWN': "unknown", }, ('view_attribution_window',): { - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", }, ('click_attribution_scope',): { 'None': None, @@ -130,12 +132,17 @@ def openapi_types(): '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 } @@ -153,12 +160,17 @@ def discriminator(): '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 } @@ -170,8 +182,8 @@ def discriminator(): @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, *args, **kwargs): # noqa: E501 - """ExternalCampaign - a model defined in OpenAPI + 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): @@ -181,6 +193,9 @@ def _from_openapi_data(cls, account_id, promoted_brand_ids, budget_spent, budget 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 @@ -217,8 +232,10 @@ def _from_openapi_data(cls, account_id, promoted_brand_ids, budget_spent, budget 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 + 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 """ @@ -259,6 +276,9 @@ def _from_openapi_data(cls, account_id, promoted_brand_ids, budget_spent, budget 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 \ @@ -279,8 +299,8 @@ def _from_openapi_data(cls, account_id, promoted_brand_ids, budget_spent, budget ]) @convert_js_args_to_python_args - def __init__(self, account_id, promoted_brand_ids, budget_spent, budget_remaining, created_at, updated_at, name, *args, **kwargs): # noqa: E501 - """ExternalCampaign - a model defined in OpenAPI + 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): @@ -290,6 +310,9 @@ def __init__(self, account_id, promoted_brand_ids, budget_spent, budget_remainin 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 @@ -326,8 +349,10 @@ def __init__(self, account_id, promoted_brand_ids, budget_spent, budget_remainin 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 + 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 """ @@ -366,6 +391,9 @@ def __init__(self, account_id, promoted_brand_ids, budget_spent, budget_remainin 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 \ diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204.py index 4e413a8b..30b2d661 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204_list_response.py index fa56bfa4..20130b63 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/category202204_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_category202204 import ResourceOfCategory202204 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_category202204 import ResourceOfCategory202204 globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfCategory202204'] = ResourceOfCategory202204 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/change_dates_of_balance_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/change_dates_of_balance_request.py index a1516b5d..7913b0e9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/change_dates_of_balance_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance + from criteo_api_retailmedia_v2023_10.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance globals()['ResourceOfChangeDatesOfBalance'] = ResourceOfChangeDatesOfBalance diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_option.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_option.py index 9915ac7f..c89eaed6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_option.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.template_variable import TemplateVariable + from criteo_api_retailmedia_v2023_10.model.template_variable import TemplateVariable globals()['TemplateVariable'] = TemplateVariable diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_specification.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_specification.py index d7ef4705..96cf8c08 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_specification.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.choice_option import ChoiceOption + from criteo_api_retailmedia_v2023_10.model.choice_option import ChoiceOption globals()['ChoiceOption'] = ChoiceOption diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_value.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_value.py index 49b4c469..a6da97c0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/choice_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/color_variable_value.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/color_variable_value.py index 2fe1fec9..b1f83e96 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/color_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_error.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_error.py index 29c096a6..fc086b77 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_error.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_paged_list_response.py index e92a8043..5bee5db1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_common_line_item import ResourceOfCommonLineItem + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_common_line_item import ResourceOfCommonLineItem globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfCommonLineItem'] = ResourceOfCommonLineItem diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_response.py index d75a3c48..7662070c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_line_item_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_common_line_item import ResourceOfCommonLineItem + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_common_line_item import ResourceOfCommonLineItem globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfCommonLineItem'] = ResourceOfCommonLineItem diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_problem.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_problem.py index 63729a8a..2652a8a4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_problem.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError 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_2023-10/criteo_api_retailmedia_v2023_10/model/common_status_code_response.py similarity index 91% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_status_code_response.py index 7cb94f17..3ac351f8 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_status_code_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel - globals()['ExternalAuctionLineItemCreateModel'] = ExternalAuctionLineItemCreateModel + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem -class InputResourceOfAuctionLineItemCreateModel(ModelNormal): +class CommonStatusCodeResponse(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 { - 'type': (str,), # noqa: E501 - 'attributes': (ExternalAuctionLineItemCreateModel,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,11 +97,13 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 } read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 } _composed_schemas = {} @@ -109,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InputResourceOfAuctionLineItemCreateModel - a model defined in OpenAPI + """CommonStatusCodeResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,8 +144,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): [optional] # noqa: E501 - attributes (ExternalAuctionLineItemCreateModel): [optional] # noqa: E501 + errors ([CommonProblem], none_type): errors. [optional] # noqa: E501 + warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +198,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InputResourceOfAuctionLineItemCreateModel - a model defined in OpenAPI + """CommonStatusCodeResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,8 +231,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): [optional] # noqa: E501 - attributes (ExternalAuctionLineItemCreateModel): [optional] # noqa: E501 + errors ([CommonProblem], none_type): errors. [optional] # noqa: E501 + warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_warning.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_warning.py index 144fa8f3..f2cebe48 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/common_warning.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_balance_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_balance_request.py index 3e9bb907..94a8879f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_balance_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.resource_of_create_balance import ResourceOfCreateBalance + from criteo_api_retailmedia_v2023_10.model.resource_of_create_balance import ResourceOfCreateBalance globals()['ResourceOfCreateBalance'] = ResourceOfCreateBalance diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py index 7c82aeaa..1e59986e 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_attributes.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_attributes.py index aa63a79b..d179481c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_attributes.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_body.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_body.py index f9725aef..46fb51be 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_body.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_request.py index 54b52fe5..26c43ac3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody globals()['CreateRetailMediaAudienceBody'] = CreateRetailMediaAudienceBody diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_response.py index f793b33e..7cf9608f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience import CreateRetailMediaAudience + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience import CreateRetailMediaAudience globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning globals()['CreateRetailMediaAudience'] = CreateRetailMediaAudience diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py index c3974d6f..ad8df4f2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_attributes.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_attributes.py index fbd5db34..4803f2a1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_attributes.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2 + from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2 globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_data.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_data.py index 2ee3e6ae..055a9bdb 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_data.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_request.py index 9f7df00c..b850a8e5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data globals()['CreateRetailMediaAudienceV2Data'] = CreateRetailMediaAudienceV2Data diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_user_behavior_segment_v2.py similarity index 87% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_user_behavior_segment_v2.py index d5767d82..c5c31f38 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/create_user_behavior_segment_v2.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class CreateRetailMediaAudienceAttributes(ModelNormal): +class CreateUserBehaviorSegmentV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,9 +55,10 @@ class CreateRetailMediaAudienceAttributes(ModelNormal): """ allowed_values = { - ('user_type',): { - 'VIEWER': "viewer", - 'BUYER': "buyer", + ('user_action',): { + 'BUY': "buy", + 'VIEW': "view", + 'ADDTOCART': "addToCart", }, ('lookback_window',): { 'P7D': "P7D", @@ -96,12 +97,12 @@ def openapi_types(): and the value is attribute type. """ return { - 'user_type': (str,), # noqa: E501 + 'user_action': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (int,), # noqa: E501 - 'name': (str,), # noqa: E501 - 'brand_ids': ([int], none_type,), # noqa: E501 'category_ids': ([int], none_type,), # noqa: E501 + 'brand_ids': ([int], none_type,), # noqa: E501 + 'min_price': (float, none_type,), # noqa: E501 + 'max_price': (float, none_type,), # noqa: E501 } @cached_property @@ -110,29 +111,29 @@ def discriminator(): attribute_map = { - 'user_type': 'userType', # noqa: E501 + 'user_action': 'userAction', # 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 + '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_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501 - """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI + def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI Args: - user_type (str): Type of the user + user_action (str): Type of shopper activity used to generate the audience. 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 @@ -165,8 +166,10 @@ 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 ([int], none_type): The brands to target. [optional] # noqa: E501 category_ids ([int], none_type): The categories to target. [optional] # noqa: E501 + brand_ids ([int], none_type): The brands to target. [optional] # noqa: E501 + min_price (float, none_type): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float, none_type): The max price of targeted skus.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -198,10 +201,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.user_type = user_type + self.user_action = user_action 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 \ @@ -222,14 +223,12 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args ]) @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 + def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI Args: - user_type (str): Type of the user + user_action (str): Type of shopper activity used to generate the audience. 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 @@ -262,8 +261,10 @@ 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 ([int], none_type): The brands to target. [optional] # noqa: E501 category_ids ([int], none_type): The categories to target. [optional] # noqa: E501 + brand_ids ([int], none_type): The brands to target. [optional] # noqa: E501 + min_price (float, none_type): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float, none_type): The max price of targeted skus.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -293,10 +294,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.user_type = user_type + self.user_action = user_action 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 \ diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110.py index e3bc1f2c..d00b5c53 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110_list_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110_list_response.py index 1eb62e67..026e6296 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202110_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_creative202110 import ResourceOfCreative202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_creative202110 import ResourceOfCreative202110 globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfCreative202110'] = ResourceOfCreative202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210.py similarity index 87% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210.py index 272a84c7..7b271db4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.template_variable_value import TemplateVariableValue + from criteo_api_retailmedia_v2023_10.model.page_type_environment import PageTypeEnvironment + from criteo_api_retailmedia_v2023_10.model.template_variable_value import TemplateVariableValue + globals()['PageTypeEnvironment'] = PageTypeEnvironment globals()['TemplateVariableValue'] = TemplateVariableValue -class Creative202207(ModelNormal): +class Creative202210(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -77,11 +79,6 @@ class Creative202207(ModelNormal): 'DISPLAYPANEL': "DisplayPanel", 'DIGITALSHELFTALKER': "DigitalShelfTalker", }, - ('environments',): { - 'WEB': "Web", - 'MOBILE': "Mobile", - 'APP': "App", - }, } validations = { @@ -113,8 +110,11 @@ def openapi_types(): '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': ([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 @@ -130,6 +130,9 @@ def discriminator(): '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 @@ -145,15 +148,18 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, status, retailer_id, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 - """Creative202207 - a model defined in OpenAPI + 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 ([str]): Environment type (e.g. mobile, web, app) + environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app) template_variable_values ([TemplateVariableValue]): The template chosen values Keyword Args: @@ -224,6 +230,9 @@ def _from_openapi_data(cls, name, status, retailer_id, creative_format_type, env 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 @@ -247,15 +256,18 @@ def _from_openapi_data(cls, name, status, retailer_id, creative_format_type, env ]) @convert_js_args_to_python_args - def __init__(self, name, status, retailer_id, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 - """Creative202207 - a model defined in OpenAPI + 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 ([str]): Environment type (e.g. mobile, web, app) + environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app) template_variable_values ([TemplateVariableValue]): The template chosen values Keyword Args: @@ -324,6 +336,9 @@ def __init__(self, name, status, retailer_id, creative_format_type, environments 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 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_list_response.py similarity index 93% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_list_response.py index 09a2164f..71bf4edd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_category202204 import ResourceOfCategory202204 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_creative202210 import ResourceOfCreative202210 globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfCategory202204'] = ResourceOfCategory202204 + globals()['ResourceOfCreative202210'] = ResourceOfCreative202210 -class Category202204ListResponse(ModelNormal): +class Creative202210ListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([ResourceOfCategory202204],), # noqa: E501 + 'data': ([ResourceOfCreative202210],), # noqa: E501 'warnings': ([ProblemDetails],), # noqa: E501 'errors': ([ProblemDetails],), # noqa: E501 } @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Category202204ListResponse - a model defined in OpenAPI + """Creative202210ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +148,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,) - data ([ResourceOfCategory202204]): [optional] # noqa: E501 + data ([ResourceOfCreative202210]): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ @@ -203,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """Category202204ListResponse - a model defined in OpenAPI + """Creative202210ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,7 +236,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,) - data ([ResourceOfCategory202204]): [optional] # noqa: E501 + data ([ResourceOfCreative202210]): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_response.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_response.py index 59118176..3c794747 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative202210_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_creative202207 import ResourceOfCreative202207 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_creative202210 import ResourceOfCreative202210 globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfCreative202207'] = ResourceOfCreative202207 + globals()['ResourceOfCreative202210'] = ResourceOfCreative202210 -class Creative202207Response(ModelNormal): +class Creative202210Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfCreative202207,), # noqa: E501 + 'data': (ResourceOfCreative202210,), # noqa: E501 'warnings': ([ProblemDetails],), # noqa: E501 'errors': ([ProblemDetails],), # noqa: E501 } @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Creative202207Response - a model defined in OpenAPI + """Creative202210Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +148,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,) - data (ResourceOfCreative202207): [optional] # noqa: E501 + data (ResourceOfCreative202210): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ @@ -203,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """Creative202207Response - a model defined in OpenAPI + """Creative202210Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,7 +236,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,) - data (ResourceOfCreative202207): [optional] # noqa: E501 + data (ResourceOfCreative202210): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_create_model202207.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_create_model202207.py index 1c0988a0..cab20c3d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_create_model202207.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.template_variable_value import TemplateVariableValue + from criteo_api_retailmedia_v2023_10.model.template_variable_value import TemplateVariableValue globals()['TemplateVariableValue'] = TemplateVariableValue diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_update_model202207.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_update_model202207.py index 62532e51..c43a9c5b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/creative_update_model202207.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.template_variable_value import TemplateVariableValue + from criteo_api_retailmedia_v2023_10.model.template_variable_value import TemplateVariableValue globals()['TemplateVariableValue'] = TemplateVariableValue diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/customer_list_details.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/customer_list_details.py index 671be1ed..15dc516f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/customer_list_details.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py similarity index 85% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py index e534e4af..3310a195 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class ExternalEditableCampaignAttributes(ModelNormal): +class EditableCampaignAttributesV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,12 +62,12 @@ class ExternalEditableCampaignAttributes(ModelNormal): 'UNKNOWN': "unknown", }, ('view_attribution_window',): { - 'NONE': "none", - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'UNKNOWN': "unknown", + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", }, ('click_attribution_scope',): { 'None': None, @@ -114,9 +114,14 @@ def openapi_types(): """ 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 } @@ -128,9 +133,14 @@ def discriminator(): 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 } @@ -142,11 +152,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 - """ExternalEditableCampaignAttributes - a model defined in OpenAPI + 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): @@ -182,6 +195,8 @@ def _from_openapi_data(cls, name, click_attribution_window, view_attribution_win 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 """ @@ -216,6 +231,9 @@ def _from_openapi_data(cls, name, click_attribution_window, view_attribution_win 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(): @@ -238,11 +256,14 @@ def _from_openapi_data(cls, name, click_attribution_window, view_attribution_win ]) @convert_js_args_to_python_args - def __init__(self, name, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 - """ExternalEditableCampaignAttributes - a model defined in OpenAPI + 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): @@ -278,6 +299,8 @@ def __init__(self, name, click_attribution_window, view_attribution_window, *arg 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 """ @@ -310,6 +333,9 @@ def __init__(self, name, click_attribution_window, view_attribution_window, *arg 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(): diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_account.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_account.py index ee057b05..989f6849 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_account.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_funds_to_balance.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_funds_to_balance.py index 6413d3e1..f81828e0 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_funds_to_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_ids_update_model202110.py index 3928581c..cf224a09 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_target202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_target202110.py index a476b788..60694720 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_add_to_basket_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item.py index 798acea7..a481f31b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_create_model.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_create_model.py index caf20525..22a04bfb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_create_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_update_model.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_update_model.py index 6c2ec1e9..1ffceefd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_auction_line_item_update_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_ids_update_model202110.py index d5933b13..003cc0ec 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_target202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_target202110.py index 614830bb..e63b8c38 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_audience_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py similarity index 95% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py index 8a51c407..97a37298 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError @@ -94,10 +94,10 @@ def openapi_types(): '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 + 'end_date': (date, none_type,), # noqa: E501 } @cached_property @@ -113,10 +113,10 @@ def discriminator(): '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 + 'end_date': 'endDate', # noqa: E501 } read_only_vars = { @@ -126,7 +126,7 @@ def discriminator(): @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 + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -137,7 +137,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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): @@ -173,6 +172,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -211,7 +211,6 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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 @@ -235,7 +234,7 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, ]) @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 + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 """ExternalBalance202110 - a model defined in OpenAPI Args: @@ -246,7 +245,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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): @@ -282,6 +280,7 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -318,7 +317,6 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance_response.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance_response.py index cfae474f..e8f6eed3 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_brand.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_brand.py index a956a8d1..57edbd85 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_brand.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_request.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_request.py index 822ae6e1..4b1384fb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_status.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_status.py index 4df9b168..0bccd7c4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_catalog_status.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_change_dates_of_balance.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_change_dates_of_balance.py index 564094d4..4b4fb4c5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_change_dates_of_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_common_line_item.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_common_line_item.py index cfc750ef..50c3accb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_common_line_item.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_create_balance.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_create_balance.py index d8de2026..f134a0b5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_create_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_keyword_target202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_keyword_target202110.py index de485fb1..13df8ac0 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_keyword_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_capping202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_capping202110.py index 00c80882..746e295e 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_capping202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page202110.py index a269e1b2..8cdb5511 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 globals()['ExternalLineItemPageCategory202110'] = ExternalLineItemPageCategory202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page_category202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page_category202110.py index 475d13fb..58141cf7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_line_item_page_category202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item202110.py index e59ac74c..4dbfa415 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_07.model.external_line_item_page202110 import ExternalLineItemPage202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_page202110 import ExternalLineItemPage202110 globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_create_model202110.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_create_model202110.py index 4a0f6605..b454a986 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_create_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_10.model.external_line_item_page202110 import ExternalLineItemPage202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_page202110 import ExternalLineItemPage202110 globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_update_model202110.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_update_model202110.py index b4f321e0..6c751332 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_preferred_line_item_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 - from criteo_api_retailmedia_v2022_10.model.external_line_item_page202110 import ExternalLineItemPage202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_10.model.external_line_item_page202110 import ExternalLineItemPage202110 globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_promoted_product202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_promoted_product202110.py index 0d8ef09c..32812abb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_promoted_product202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer.py index 16392c70..44424d9f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer_pages202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer_pages202110.py index 804abbea..0f379200 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_retailer_pages202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_ids_update_model202110.py index b8cc2943..f179a2df 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_target202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_target202110.py index 34d2ac01..16dd34fc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_store_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_update_balance_model.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_update_balance_model.py index eb975be1..397e2a40 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_update_balance_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variable_value.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variable_value.py index 3cd35e45..59743b36 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variables_specification.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variables_specification.py index c560f3e4..35781c68 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/files_variables_specification.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError 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_2023-10/criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py similarity index 96% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py index 9744bbdd..bc013a3a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.retail_media_audience import RetailMediaAudience + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.retail_media_audience import RetailMediaAudience globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning globals()['PageMetadata'] = PageMetadata diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/hyperlink_variable_value.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/hyperlink_variable_value.py index 1074ce6f..2d4daf54 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/hyperlink_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError 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_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_auction_line_item_create_model.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_auction_line_item_create_model.py index 7e7d67ae..c7e5075a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_auction_line_item_create_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel + from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel globals()['ExternalAuctionLineItemCreateModel'] = ExternalAuctionLineItemCreateModel 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_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_preferred_line_item_create_model202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_preferred_line_item_create_model202110.py index b8a4ce69..094a3943 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/input_resource_of_preferred_line_item_create_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 + from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 globals()['ExternalPreferredLineItemCreateModel202110'] = ExternalPreferredLineItemCreateModel202110 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py similarity index 93% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py index 2ad11d39..c244b77f 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_editable_campaign_attributes import ExternalEditableCampaignAttributes - globals()['ExternalEditableCampaignAttributes'] = ExternalEditableCampaignAttributes + from criteo_api_retailmedia_v2023_10.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 + globals()['EditableCampaignAttributesV202301'] = EditableCampaignAttributesV202301 -class JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign(ModelNormal): +class JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): return { 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'attributes': (ExternalEditableCampaignAttributes,), # noqa: E501 + 'attributes': (EditableCampaignAttributesV202301,), # noqa: E501 } @cached_property @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - a model defined in OpenAPI + """JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI Args: id (str): @@ -148,7 +148,7 @@ def _from_openapi_data(cls, id, 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,) - attributes (ExternalEditableCampaignAttributes): [optional] # noqa: E501 + attributes (EditableCampaignAttributesV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -203,7 +203,7 @@ def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - a model defined in OpenAPI + """JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI Args: id (str): @@ -240,7 +240,7 @@ def __init__(self, id, 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,) - attributes (ExternalEditableCampaignAttributes): [optional] # noqa: E501 + attributes (EditableCampaignAttributesV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_account_and_account.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_account_and_account.py index 1f0c95b7..e2dd5f6b 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_account import ExternalAccount + from criteo_api_retailmedia_v2023_10.model.external_account import ExternalAccount globals()['ExternalAccount'] = ExternalAccount 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index 360cafa3..92be72f9 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_brand import ExternalBrand + from criteo_api_retailmedia_v2023_10.model.external_brand import ExternalBrand globals()['ExternalBrand'] = ExternalBrand 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py index aba26ba4..7c66070b 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_account import ExternalAccount - globals()['ExternalAccount'] = ExternalAccount + from criteo_api_retailmedia_v2023_10.model.campaign_v202301 import CampaignV202301 + globals()['CampaignV202301'] = CampaignV202301 -class JsonApiBodyWithIdOfInt64AndAccountAndAccount(ModelNormal): +class JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): return { 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'attributes': (ExternalAccount,), # noqa: E501 + 'attributes': (CampaignV202301,), # noqa: E501 } @cached_property @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndAccountAndAccount - a model defined in OpenAPI + """JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 - a model defined in OpenAPI Args: id (str): @@ -148,7 +148,7 @@ def _from_openapi_data(cls, id, 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,) - attributes (ExternalAccount): [optional] # noqa: E501 + attributes (CampaignV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -203,7 +203,7 @@ def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndAccountAndAccount - a model defined in OpenAPI + """JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 - a model defined in OpenAPI Args: id (str): @@ -240,7 +240,7 @@ def __init__(self, id, 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,) - attributes (ExternalAccount): [optional] # noqa: E501 + attributes (CampaignV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index c37df838..f8a81960 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_catalog_status import ExternalCatalogStatus + from criteo_api_retailmedia_v2023_10.model.external_catalog_status import ExternalCatalogStatus globals()['ExternalCatalogStatus'] = ExternalCatalogStatus 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py similarity index 92% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py index a6495a77..e6cb5fd0 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_brand import ExternalBrand - globals()['ExternalBrand'] = ExternalBrand + from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers import LineItemBidMultipliers + globals()['LineItemBidMultipliers'] = LineItemBidMultipliers -class JsonApiBodyWithIdOfInt64AndBrandAndBrand(ModelNormal): +class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): return { 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'attributes': (ExternalBrand,), # noqa: E501 + 'attributes': (LineItemBidMultipliers,), # noqa: E501 } @cached_property @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndBrandAndBrand - a model defined in OpenAPI + """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI Args: id (str): @@ -148,7 +148,7 @@ def _from_openapi_data(cls, id, 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,) - attributes (ExternalBrand): [optional] # noqa: E501 + attributes (LineItemBidMultipliers): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -203,7 +203,7 @@ def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndBrandAndBrand - a model defined in OpenAPI + """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI Args: id (str): @@ -240,7 +240,7 @@ def __init__(self, id, 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,) - attributes (ExternalBrand): [optional] # noqa: E501 + attributes (LineItemBidMultipliers): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index 5ebd9326..a97e4f95 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_retailer import ExternalRetailer + from criteo_api_retailmedia_v2023_10.model.external_retailer import ExternalRetailer globals()['ExternalRetailer'] = ExternalRetailer 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py similarity index 92% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py index e5d57bd4..9631b25a 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_campaign_attributes import ExternalCampaignAttributes - globals()['ExternalCampaignAttributes'] = ExternalCampaignAttributes + from criteo_api_retailmedia_v2023_10.model.campaign_attributes_v202301 import CampaignAttributesV202301 + globals()['CampaignAttributesV202301'] = CampaignAttributesV202301 -class JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign(ModelNormal): +class JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str,), # noqa: E501 - 'attributes': (ExternalCampaignAttributes,), # noqa: E501 + 'attributes': (CampaignAttributesV202301,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - a model defined in OpenAPI + """JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI Args: type (str): @@ -145,7 +145,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,) - attributes (ExternalCampaignAttributes): [optional] # noqa: E501 + attributes (CampaignAttributesV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - a model defined in OpenAPI + """JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI Args: type (str): @@ -235,7 +235,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,) - attributes (ExternalCampaignAttributes): [optional] # noqa: E501 + attributes (CampaignAttributesV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py index a057db86..2af48ae6 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_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_catalog_request import ExternalCatalogRequest + from criteo_api_retailmedia_v2023_10.model.external_catalog_request import ExternalCatalogRequest globals()['ExternalCatalogRequest'] = ExternalCatalogRequest diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_account.py similarity index 96% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_account.py index 8c3c26af..ed150c77 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_account.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning globals()['JsonApiBodyWithIdOfInt64AndAccountAndAccount'] = JsonApiBodyWithIdOfInt64AndAccountAndAccount diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_brand.py similarity index 96% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_brand.py index e033cc58..5f2b2462 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_brand.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning globals()['JsonApiBodyWithIdOfInt64AndBrandAndBrand'] = JsonApiBodyWithIdOfInt64AndBrandAndBrand diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_campaign_v202301.py similarity index 88% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_campaign_v202301.py index 99e9155b..ec01084b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,21 +26,21 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning - globals()['JsonApiBodyWithIdOfInt64AndCampaignAndCampaign'] = JsonApiBodyWithIdOfInt64AndCampaignAndCampaign + globals()['JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301'] = JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 globals()['PageMetadata'] = PageMetadata -class JsonApiPageResponseOfCampaign(ModelNormal): +class JsonApiPageResponseOfCampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -93,10 +93,10 @@ def openapi_types(): """ lazy_import() return { - 'data': ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301],), # noqa: E501 'errors': ([CommonError],), # noqa: E501 'warnings': ([CommonWarning],), # noqa: E501 - 'metadata': (PageMetadata,), # noqa: E501 } @cached_property @@ -105,10 +105,10 @@ def discriminator(): attribute_map = { + 'metadata': 'metadata', # noqa: E501 'data': 'data', # noqa: E501 'errors': 'errors', # noqa: E501 'warnings': 'warnings', # noqa: E501 - 'metadata': 'metadata', # noqa: E501 } read_only_vars = { @@ -118,11 +118,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """JsonApiPageResponseOfCampaign - a model defined in OpenAPI + def _from_openapi_data(cls, metadata, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfCampaignV202301 - a model defined in OpenAPI Args: - data ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]): + metadata (PageMetadata): + data ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -157,7 +158,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 _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) @@ -189,6 +189,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 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 \ @@ -210,11 +211,12 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """JsonApiPageResponseOfCampaign - a model defined in OpenAPI + def __init__(self, metadata, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfCampaignV202301 - a model defined in OpenAPI Args: - data ([JsonApiBodyWithIdOfInt64AndCampaignAndCampaign]): + metadata (PageMetadata): + data ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -249,7 +251,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 _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) @@ -279,6 +280,7 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 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 \ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_retailer.py similarity index 96% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_retailer.py index 0d5fed47..0fc27d98 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_page_response_of_retailer.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,14 +26,14 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning globals()['JsonApiBodyWithIdOfInt64AndRetailerAndRetailer'] = JsonApiBodyWithIdOfInt64AndRetailerAndRetailer diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_request_of_catalog_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_request_of_catalog_request.py index bd8444ab..9372afa4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_request_of_catalog_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest + from criteo_api_retailmedia_v2023_10.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest globals()['JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest'] = JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_campaign_v202301.py similarity index 91% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_campaign_v202301.py index 1edc4d95..ea495f3f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,19 +26,19 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 globals()['CommonError'] = CommonError globals()['CommonWarning'] = CommonWarning - globals()['JsonApiBodyWithIdOfInt64AndCampaignAndCampaign'] = JsonApiBodyWithIdOfInt64AndCampaignAndCampaign + globals()['JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301'] = JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 -class JsonApiSingleResponseOfCampaign(ModelNormal): +class JsonApiSingleResponseOfCampaignV202301(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,7 +91,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign,), # noqa: E501 + 'data': (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301,), # noqa: E501 'errors': ([CommonError],), # noqa: E501 'warnings': ([CommonWarning],), # noqa: E501 } @@ -115,10 +115,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """JsonApiSingleResponseOfCampaign - a model defined in OpenAPI + """JsonApiSingleResponseOfCampaignV202301 - a model defined in OpenAPI Args: - data (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign): + data (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -206,10 +206,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 - """JsonApiSingleResponseOfCampaign - a model defined in OpenAPI + """JsonApiSingleResponseOfCampaignV202301 - a model defined in OpenAPI Args: - data (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign): + data (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_catalog_status.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_catalog_status.py index afb8f4ed..5ded99b6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_catalog_status.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.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 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_line_item_bid_multipliers.py similarity index 90% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_line_item_bid_multipliers.py index 36095436..5a8905d7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/json_api_single_response_of_line_item_bid_multipliers.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,19 +26,19 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.common_error import CommonError - from criteo_api_retailmedia_v2022_07.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_id_of_int64_and_campaign_and_campaign import JsonApiBodyWithIdOfInt64AndCampaignAndCampaign + from criteo_api_retailmedia_v2023_10.model.common_error import CommonError + from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_10.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()['JsonApiBodyWithIdOfInt64AndCampaignAndCampaign'] = JsonApiBodyWithIdOfInt64AndCampaignAndCampaign + globals()['JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers'] = JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers -class JsonApiSingleResponseOfCampaign(ModelNormal): +class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,7 +91,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign,), # noqa: E501 + 'data': (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers,), # noqa: E501 'errors': ([CommonError],), # noqa: E501 'warnings': ([CommonWarning],), # noqa: E501 } @@ -115,10 +115,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """JsonApiSingleResponseOfCampaign - a model defined in OpenAPI + """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI Args: - data (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign): + data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -206,10 +206,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 - """JsonApiSingleResponseOfCampaign - a model defined in OpenAPI + """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI Args: - data (JsonApiBodyWithIdOfInt64AndCampaignAndCampaign): + data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_request.py index 03413b59..ea2af410 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 globals()['ValueTypeResourceOfKeywordTarget202110'] = ValueTypeResourceOfKeywordTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_response.py index b206853f..2bae4c4b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/keyword_target202110_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 globals()['ProblemDetails'] = ProblemDetails globals()['ValueTypeResourceOfKeywordTarget202110'] = ValueTypeResourceOfKeywordTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers.py similarity index 84% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers.py index d90bd88c..55ec0a91 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 - globals()['ProblemDetails'] = ProblemDetails - globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 - -class AddToBasketTarget202110Response(ModelNormal): +class LineItemBidMultipliers(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -72,7 +66,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 @@ -87,11 +80,15 @@ def openapi_types(): 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 + '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 @@ -100,14 +97,17 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + '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 = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AddToBasketTarget202110Response - a model defined in OpenAPI + """LineItemBidMultipliers - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,9 +148,14 @@ 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,) - data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + 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) @@ -203,7 +208,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AddToBasketTarget202110Response - a model defined in OpenAPI + """LineItemBidMultipliers - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,9 +241,14 @@ 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,) - data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + 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) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_request.py new file mode 100644 index 00000000..ebf8f1a9 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_response.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_response.py index f7bf0598..558202e4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/line_item_bid_multipliers_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfAuctionLineItem'] = ResourceOfAuctionLineItem + globals()['ResourceOfLineItemBidMultipliers'] = ResourceOfLineItemBidMultipliers -class AuctionLineItemResponse(ModelNormal): +class LineItemBidMultipliersResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfAuctionLineItem,), # noqa: E501 + 'data': (ResourceOfLineItemBidMultipliers,), # noqa: E501 'warnings': ([ProblemDetails],), # noqa: E501 'errors': ([ProblemDetails],), # noqa: E501 } @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AuctionLineItemResponse - a model defined in OpenAPI + """LineItemBidMultipliersResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +148,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,) - data (ResourceOfAuctionLineItem): [optional] # noqa: E501 + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ @@ -203,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AuctionLineItemResponse - a model defined in OpenAPI + """LineItemBidMultipliersResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,7 +236,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,) - data (ResourceOfAuctionLineItem): [optional] # noqa: E501 + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 warnings ([ProblemDetails]): [optional] # noqa: E501 errors ([ProblemDetails]): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_metadata.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_metadata.py index af5367c9..aec55297 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_metadata.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_type_environment.py similarity index 88% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_type_environment.py index fd9aaea9..bf1c5492 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/page_type_environment.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_balance202110 import ExternalBalance202110 - globals()['ExternalBalance202110'] = ExternalBalance202110 - -class ResourceOfBalance202110(ModelNormal): +class PageTypeEnvironment(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +55,26 @@ class ResourceOfBalance202110(ModelNormal): """ 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 = { @@ -70,7 +86,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 @@ -85,11 +100,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'attributes': (ExternalBalance202110,), # noqa: E501 + 'page_type': (str,), # noqa: E501 + 'environments': ([str],), # noqa: E501 } @cached_property @@ -98,9 +111,8 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'page_type': 'pageType', # noqa: E501 + 'environments': 'environments', # noqa: E501 } read_only_vars = { @@ -111,7 +123,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfBalance202110 - a model defined in OpenAPI + """PageTypeEnvironment - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +156,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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalBalance202110): [optional] # noqa: E501 + 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) @@ -199,7 +210,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfBalance202110 - a model defined in OpenAPI + """PageTypeEnvironment - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +243,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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalBalance202110): [optional] # noqa: E501 + 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) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/post_campaign_v202301.py similarity index 91% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/post_campaign_v202301.py index 27c47d96..4a5b5ef3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/post_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 - globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 + from criteo_api_retailmedia_v2023_10.model.json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 + globals()['JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301'] = JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 -class AddToBasketTarget202110Request(ModelNormal): +class PostCampaignV202301(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': (ValueTypeResourceOfAddToBasketTarget202110,), # noqa: E501 + 'data': (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AddToBasketTarget202110Request - a model defined in OpenAPI + """PostCampaignV202301 - 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,) - data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + data (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301): [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 - """AddToBasketTarget202110Request - a model defined in OpenAPI + """PostCampaignV202301 - 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,) - data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + data (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_paged_list_response.py index c6974fef..f9673ff6 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfPreferredLineItem202110'] = ResourceOfPreferredLineItem202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_response.py index cbd479f2..4ee3af30 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item202110_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfPreferredLineItem202110'] = ResourceOfPreferredLineItem202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_create_model202110_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_create_model202110_request.py index f39284b2..41404089 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_create_model202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 + from criteo_api_retailmedia_v2023_10.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 globals()['InputResourceOfPreferredLineItemCreateModel202110'] = InputResourceOfPreferredLineItemCreateModel202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_update_model202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_update_model202110_request.py index 2bc1960c..36f4ff21 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/preferred_line_item_update_model202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 globals()['ResourceOfPreferredLineItemUpdateModel202110'] = ResourceOfPreferredLineItemUpdateModel202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/problem_details.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/problem_details.py index c6122548..50c1f33c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/problem_details.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_list_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_list_request.py index b48a49cc..2c8779be 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_list_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 + from criteo_api_retailmedia_v2023_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_paged_list_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_paged_list_response.py index fea548d2..6e826d75 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/promoted_product202110_paged_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 globals()['PageMetadata'] = PageMetadata globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/put_campaign_v202301.py similarity index 93% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/put_campaign_v202301.py index 40019e4d..ddaa4ae9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/put_campaign_v202301.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign import JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign - globals()['JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign'] = JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign + from criteo_api_retailmedia_v2023_10.model.json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 + globals()['JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301'] = JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 -class ExternalPutCampaign(ModelNormal): +class PutCampaignV202301(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': (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign,), # noqa: E501 + 'data': (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ExternalPutCampaign - a model defined in OpenAPI + """PutCampaignV202301 - 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,) - data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign): [optional] # noqa: E501 + data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301): [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 - """ExternalPutCampaign - a model defined in OpenAPI + """PutCampaignV202301 - 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,) - data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign): [optional] # noqa: E501 + data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/report_outcome.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/report_outcome.py new file mode 100644 index 00000000..5138c0ae --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/report_outcome.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """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], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_add_funds_to_balance.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_add_funds_to_balance.py index 7a3bb5d0..959011cc 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_add_funds_to_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.external_add_funds_to_balance import ExternalAddFundsToBalance + from criteo_api_retailmedia_v2023_10.model.external_add_funds_to_balance import ExternalAddFundsToBalance globals()['ExternalAddFundsToBalance'] = ExternalAddFundsToBalance diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item.py index 908199cf..0d929039 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_auction_line_item import ExternalAuctionLineItem + from criteo_api_retailmedia_v2023_10.model.external_auction_line_item import ExternalAuctionLineItem globals()['ExternalAuctionLineItem'] = ExternalAuctionLineItem diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item_update_model.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item_update_model.py index dc2f2e8c..844dd3f0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item_update_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel + from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel globals()['ExternalAuctionLineItemUpdateModel'] = ExternalAuctionLineItemUpdateModel diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py index 2d7344d4..f2ccf914 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_balance202110 import ExternalBalance202110 + from criteo_api_retailmedia_v2023_10.model.external_balance202110 import ExternalBalance202110 globals()['ExternalBalance202110'] = ExternalBalance202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_campaign202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_campaign202110.py index 3fa92b33..cd0cc838 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_campaign202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_response.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_response.py index 486d5ac6..bf5d60aa 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.external_balance_response import ExternalBalanceResponse + from criteo_api_retailmedia_v2023_10.model.external_balance_response import ExternalBalanceResponse globals()['ExternalBalanceResponse'] = ExternalBalanceResponse diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_category202204.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_category202204.py index 37d52134..e4ef6878 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_category202204.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.category202204 import Category202204 + from criteo_api_retailmedia_v2023_10.model.category202204 import Category202204 globals()['Category202204'] = Category202204 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_change_dates_of_balance.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_change_dates_of_balance.py index ae35a446..be22616b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_change_dates_of_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance + from criteo_api_retailmedia_v2023_10.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance globals()['ExternalChangeDatesOfBalance'] = ExternalChangeDatesOfBalance diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_common_line_item.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_common_line_item.py index 3a574a75..451fb087 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_common_line_item.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_common_line_item import ExternalCommonLineItem + from criteo_api_retailmedia_v2023_10.model.external_common_line_item import ExternalCommonLineItem globals()['ExternalCommonLineItem'] = ExternalCommonLineItem diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_create_balance.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_create_balance.py index 5c2c42df..9ebb1c59 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_create_balance.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.external_create_balance import ExternalCreateBalance + from criteo_api_retailmedia_v2023_10.model.external_create_balance import ExternalCreateBalance globals()['ExternalCreateBalance'] = ExternalCreateBalance diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202110.py index 85dd48a8..786c9157 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.creative202110 import Creative202110 + from criteo_api_retailmedia_v2023_10.model.creative202110 import Creative202110 globals()['Creative202110'] = Creative202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202210.py similarity index 94% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202210.py index 5e6c080e..0d336fcf 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_creative202210.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.category202204 import Category202204 - globals()['Category202204'] = Category202204 + from criteo_api_retailmedia_v2023_10.model.creative202210 import Creative202210 + globals()['Creative202210'] = Creative202210 -class ResourceOfCategory202204(ModelNormal): +class ResourceOfCreative202210(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 { - 'attributes': (Category202204,), # noqa: E501 + 'attributes': (Creative202210,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfCategory202204 - a model defined in OpenAPI + """ResourceOfCreative202210 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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 (Category202204): [optional] # noqa: E501 + attributes (Creative202210): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfCategory202204 - a model defined in OpenAPI + """ResourceOfCreative202210 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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 (Category202204): [optional] # noqa: E501 + attributes (Creative202210): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_line_item_bid_multipliers.py similarity index 94% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_line_item_bid_multipliers.py index 9c6e3c21..94969e9c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_line_item_bid_multipliers.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_common_line_item import ExternalCommonLineItem - globals()['ExternalCommonLineItem'] = ExternalCommonLineItem + from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers import LineItemBidMultipliers + globals()['LineItemBidMultipliers'] = LineItemBidMultipliers -class ResourceOfCommonLineItem(ModelNormal): +class ResourceOfLineItemBidMultipliers(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': (LineItemBidMultipliers,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (ExternalCommonLineItem,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfCommonLineItem - a model defined in OpenAPI + """ResourceOfLineItemBidMultipliers - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalCommonLineItem): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfCommonLineItem - a model defined in OpenAPI + """ResourceOfLineItemBidMultipliers - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalCommonLineItem): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item202110.py index 853ace31..53172010 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 + from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 globals()['ExternalPreferredLineItem202110'] = ExternalPreferredLineItem202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item_update_model202110.py index 24a593c2..106a3487 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_preferred_line_item_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 globals()['ExternalPreferredLineItemUpdateModel202110'] = ExternalPreferredLineItemUpdateModel202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_promoted_product202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_promoted_product202110.py index a2121454..0c70dcee 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_promoted_product202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 + from criteo_api_retailmedia_v2023_10.model.external_promoted_product202110 import ExternalPromotedProduct202110 globals()['ExternalPromotedProduct202110'] = ExternalPromotedProduct202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_template.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_template.py index e3d678c1..7eda57d9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_template.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.template import Template + from criteo_api_retailmedia_v2023_10.model.template import Template globals()['Template'] = Template diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_update_balance_model.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_update_balance_model.py index 7a114dc2..ee8ea331 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_update_balance_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.external_update_balance_model import ExternalUpdateBalanceModel + from criteo_api_retailmedia_v2023_10.model.external_update_balance_model import ExternalUpdateBalanceModel globals()['ExternalUpdateBalanceModel'] = ExternalUpdateBalanceModel diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience.py index 61d69ef1..bae53f6f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.retail_media_audience_attributes import RetailMediaAudienceAttributes + from criteo_api_retailmedia_v2023_10.model.retail_media_audience_attributes import RetailMediaAudienceAttributes globals()['RetailMediaAudienceAttributes'] = RetailMediaAudienceAttributes diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_attributes.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_attributes.py index 9987d840..dabf3c0e 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_attributes.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.customer_list_details import CustomerListDetails - from criteo_api_retailmedia_v2022_07.model.user_behavior_details import UserBehaviorDetails + from criteo_api_retailmedia_v2023_10.model.customer_list_details import CustomerListDetails + from criteo_api_retailmedia_v2023_10.model.user_behavior_details import UserBehaviorDetails globals()['CustomerListDetails'] = CustomerListDetails globals()['UserBehaviorDetails'] = UserBehaviorDetails diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2.py similarity index 91% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2.py index f50c2a18..5accc695 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes - globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes + from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes + globals()['RetailMediaAudienceV2Attributes'] = RetailMediaAudienceV2Attributes -class CreateRetailMediaAudience(ModelNormal): +class RetailMediaAudienceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +59,10 @@ class CreateRetailMediaAudience(ModelNormal): """ allowed_values = { + ('type',): { + 'CUSTOMERLIST': "customerList", + 'USERBEHAVIOR': "userBehavior", + }, } validations = { @@ -88,8 +92,8 @@ def openapi_types(): lazy_import() return { 'type': (str,), # noqa: E501 - 'id': (int,), # noqa: E501 - 'attributes': (CreateRetailMediaAudienceAttributes,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaAudienceV2Attributes,), # noqa: E501 } @cached_property @@ -111,12 +115,12 @@ def discriminator(): @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 + """RetailMediaAudienceV2 - a model defined in OpenAPI Args: - type (str): the name of the entity type - id (int): Unique ID of this audience. - attributes (CreateRetailMediaAudienceAttributes): + 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 @@ -204,12 +208,12 @@ def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E50 @convert_js_args_to_python_args def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501 - """CreateRetailMediaAudience - a model defined in OpenAPI + """RetailMediaAudienceV2 - a model defined in OpenAPI Args: - type (str): the name of the entity type - id (int): Unique ID of this audience. - attributes (CreateRetailMediaAudienceAttributes): + 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 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_attributes.py similarity index 92% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_attributes.py index 5e1c1339..e143522f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_attributes.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.customer_list_details import CustomerListDetails - from criteo_api_retailmedia_v2022_10.model.user_behavior_details import UserBehaviorDetails + from criteo_api_retailmedia_v2023_10.model.customer_list_details import CustomerListDetails + from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2 globals()['CustomerListDetails'] = CustomerListDetails - globals()['UserBehaviorDetails'] = UserBehaviorDetails + globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2 -class RetailMediaAudienceAttributes(ModelNormal): +class RetailMediaAudienceV2Attributes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,9 +89,9 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'user_behavior_details': (UserBehaviorDetails,), # noqa: E501 + 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'customer_list_details': (CustomerListDetails,), # noqa: E501 } @@ -115,10 +115,10 @@ def discriminator(): @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 + """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: @@ -152,7 +152,7 @@ def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 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 + user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501 customer_list_details (CustomerListDetails): [optional] # noqa: E501 """ @@ -208,10 +208,10 @@ def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 - """RetailMediaAudienceAttributes - a model defined in OpenAPI + """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: @@ -245,7 +245,7 @@ def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 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 + user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501 customer_list_details (CustomerListDetails): [optional] # noqa: E501 """ 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_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_list_response.py similarity index 89% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_list_response.py index 02930f02..8cf98650 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,21 +26,19 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.common_error import CommonError - from criteo_api_retailmedia_v2022_10.model.common_warning import CommonWarning - from criteo_api_retailmedia_v2022_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2022_10.model.retail_media_audience import RetailMediaAudience - globals()['CommonError'] = CommonError - globals()['CommonWarning'] = CommonWarning + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2 import RetailMediaAudienceV2 + globals()['CommonProblem'] = CommonProblem globals()['PageMetadata'] = PageMetadata - globals()['RetailMediaAudience'] = RetailMediaAudience + globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2 -class GetPageOfAudiencesByAccountIdResponse(ModelNormal): +class RetailMediaAudienceV2ListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -93,10 +91,10 @@ def openapi_types(): """ lazy_import() return { - 'data': ([RetailMediaAudience],), # noqa: E501 + 'data': ([RetailMediaAudienceV2],), # noqa: E501 'metadata': (PageMetadata,), # noqa: E501 - 'errors': ([CommonError], none_type,), # noqa: E501 - 'warnings': ([CommonWarning], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -122,10 +120,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501 - """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI + """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI Args: - data ([RetailMediaAudience]): data + data ([RetailMediaAudienceV2]): data metadata (PageMetadata): Keyword Args: @@ -159,8 +157,8 @@ def _from_openapi_data(cls, data, metadata, *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 ([CommonError], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): warnings. [optional] # noqa: E501 + errors ([CommonProblem], none_type): errors. [optional] # noqa: E501 + warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -215,7 +213,7 @@ def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, metadata, *args, **kwargs): # noqa: E501 - """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI + """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI metadata (PageMetadata): @@ -250,8 +248,8 @@ def __init__(self, metadata, *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 ([CommonError], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): warnings. [optional] # noqa: E501 + errors ([CommonProblem], none_type): errors. [optional] # noqa: E501 + warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_response.py similarity index 96% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_response.py index 1b9b4fb8..cf786eb3 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_audience_v2_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.common_problem import CommonProblem - from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 + from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 globals()['CommonProblem'] = CommonProblem globals()['CreateRetailMediaAudienceV2'] = CreateRetailMediaAudienceV2 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_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keyword_model.py similarity index 88% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keyword_model.py index 3531bac2..a86f1556 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keyword_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 - globals()['ExternalAddToBasketTarget202110'] = ExternalAddToBasketTarget202110 - -class ValueTypeResourceOfAddToBasketTarget202110(ModelNormal): +class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,9 +55,19 @@ class ValueTypeResourceOfAddToBasketTarget202110(ModelNormal): """ allowed_values = { + ('match_type',): { + 'None': None, + 'POSITIVEEXACTMATCH': "PositiveExactMatch", + 'NEGATIVEEXACTMATCH': "NegativeExactMatch", + 'NEGATIVEBROADMATCH': "NegativeBroadMatch", + }, } validations = { + ('phrase',): { + 'max_length': 255, + 'min_length': 0, + }, } @cached_property @@ -70,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 @@ -85,10 +90,10 @@ def openapi_types(): 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 + 'phrase': (str, none_type,), # noqa: E501 + 'match_type': (str, none_type,), # noqa: E501 + 'is_deleted': (bool, none_type,), # noqa: E501 } @cached_property @@ -97,8 +102,9 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'phrase': 'phrase', # noqa: E501 + 'match_type': 'matchType', # noqa: E501 + 'is_deleted': 'isDeleted', # noqa: E501 } read_only_vars = { @@ -109,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ValueTypeResourceOfAddToBasketTarget202110 - a model defined in OpenAPI + """RetailMediaExternalv1AddRemoveKeywordModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,8 +148,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,) - type (str): [optional] # noqa: E501 - attributes (ExternalAddToBasketTarget202110): [optional] # noqa: E501 + phrase (str, none_type): [optional] # noqa: E501 + match_type (str, none_type): [optional] # noqa: E501 + is_deleted (bool, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ValueTypeResourceOfAddToBasketTarget202110 - a model defined in OpenAPI + """RetailMediaExternalv1AddRemoveKeywordModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,8 +236,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,) - type (str): [optional] # noqa: E501 - attributes (ExternalAddToBasketTarget202110): [optional] # noqa: E501 + phrase (str, none_type): [optional] # noqa: E501 + match_type (str, none_type): [optional] # noqa: E501 + is_deleted (bool, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model.py new file mode 100644 index 00000000..74769a0a --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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], none_type,), # 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], 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 + """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], 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_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_request.py similarity index 91% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_request.py index 302644b3..b2118a4f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 - globals()['ValueTypeResourceOfAddToBasketIdsUpdateModel202110'] = ValueTypeResourceOfAddToBasketIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_resource import RetailMediaExternalv1AddRemoveKeywordsModelResource + globals()['RetailMediaExternalv1AddRemoveKeywordsModelResource'] = RetailMediaExternalv1AddRemoveKeywordsModelResource -class AddToBasketIdsUpdateModel202110Request(ModelNormal): +class RetailMediaExternalv1AddRemoveKeywordsModelRequest(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': (ValueTypeResourceOfAddToBasketIdsUpdateModel202110,), # noqa: E501 + 'data': (RetailMediaExternalv1AddRemoveKeywordsModelResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AddToBasketIdsUpdateModel202110Request - a model defined in OpenAPI + """RetailMediaExternalv1AddRemoveKeywordsModelRequest - 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,) - data (ValueTypeResourceOfAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [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 - """AddToBasketIdsUpdateModel202110Request - a model defined in OpenAPI + """RetailMediaExternalv1AddRemoveKeywordsModelRequest - 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,) - data (ValueTypeResourceOfAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_add_remove_keywords_model_resource.py new file mode 100644 index 00000000..d022afc5 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_input_keywords_model.py similarity index 89% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_input_keywords_model.py index 7a0c69d4..fc0719d4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_input_keywords_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_audience_target202110 import ExternalAudienceTarget202110 - globals()['ExternalAudienceTarget202110'] = ExternalAudienceTarget202110 - -class ValueTypeResourceOfAudienceTarget202110(ModelNormal): +class RetailMediaExternalv1InputKeywordsModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +58,12 @@ class ValueTypeResourceOfAudienceTarget202110(ModelNormal): } validations = { + ('negative_broad',): { + }, + ('negative_exact',): { + }, + ('positive_exact',): { + }, } @cached_property @@ -70,7 +72,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 @@ -85,10 +86,10 @@ def openapi_types(): 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 + 'negative_broad': ([str], none_type,), # noqa: E501 + 'negative_exact': ([str], none_type,), # noqa: E501 + 'positive_exact': ([str], none_type,), # noqa: E501 } @cached_property @@ -97,8 +98,9 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'negative_broad': 'negativeBroad', # noqa: E501 + 'negative_exact': 'negativeExact', # noqa: E501 + 'positive_exact': 'positiveExact', # noqa: E501 } read_only_vars = { @@ -109,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ValueTypeResourceOfAudienceTarget202110 - a model defined in OpenAPI + """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,8 +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,) - type (str): [optional] # noqa: E501 - attributes (ExternalAudienceTarget202110): [optional] # noqa: E501 + negative_broad ([str], none_type): [optional] # noqa: E501 + negative_exact ([str], none_type): [optional] # noqa: E501 + positive_exact ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ValueTypeResourceOfAudienceTarget202110 - a model defined in OpenAPI + """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,8 +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,) - type (str): [optional] # noqa: E501 - attributes (ExternalAudienceTarget202110): [optional] # noqa: E501 + negative_broad ([str], none_type): [optional] # noqa: E501 + negative_exact ([str], none_type): [optional] # noqa: E501 + positive_exact ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keyword_data_model.py similarity index 80% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keyword_data_model.py index f31b345e..3af21c1a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keyword_data_model.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2022_07.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2022_07.model.problem_details import ProblemDetails - globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_input_keywords_model import RetailMediaExternalv1InputKeywordsModel + globals()['RetailMediaExternalv1InputKeywordsModel'] = RetailMediaExternalv1InputKeywordsModel -class PatchAdSetCategoryBidResultListResponse(ModelNormal): +class RetailMediaExternalv1KeywordDataModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -61,15 +59,24 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): """ allowed_values = { + ('review_state',): { + 'None': None, + 'INREVIEW': "InReview", + 'RECOMMENDED': "Recommended", + 'APPROVED': "Approved", + 'AUTOAPPROVED': "AutoApproved", + 'REJECTED': "Rejected", + 'AUTOREJECTED': "AutoRejected", + }, + ('match_type',): { + 'None': None, + 'POSITIVEEXACTMATCH': "PositiveExactMatch", + 'NEGATIVEEXACTMATCH': "NegativeExactMatch", + 'NEGATIVEBROADMATCH': "NegativeBroadMatch", + }, } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -95,9 +102,12 @@ def openapi_types(): """ lazy_import() return { - 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'review_state': (str, none_type,), # noqa: E501 + 'match_type': (str, none_type,), # noqa: E501 + 'bid': (float, none_type,), # noqa: E501 + 'input_keywords': (RetailMediaExternalv1InputKeywordsModel,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 } @cached_property @@ -106,14 +116,15 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + '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 = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @@ -121,7 +132,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResultListResponse - a model defined in OpenAPI + """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -154,9 +165,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,) - data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + review_state (str, none_type): [optional] # noqa: E501 + match_type (str, none_type): [optional] # noqa: E501 + bid (float, none_type): [optional] # noqa: E501 + input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501 + created_at (datetime, none_type): [optional] # noqa: E501 + updated_at (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -209,7 +223,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PatchAdSetCategoryBidResultListResponse - a model defined in OpenAPI + """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -242,9 +256,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,) - data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + review_state (str, none_type): [optional] # noqa: E501 + match_type (str, none_type): [optional] # noqa: E501 + bid (float, none_type): [optional] # noqa: E501 + input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501 + created_at (datetime, none_type): [optional] # noqa: E501 + updated_at (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model.py new file mode 100644 index 00000000..0180ab3e --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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], none_type,), # 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], 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 + """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], 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_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_resource.py similarity index 91% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_resource.py index cbda40dd..fda1a7be 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_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_catalog_request import ExternalCatalogRequest - globals()['ExternalCatalogRequest'] = ExternalCatalogRequest + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model import RetailMediaExternalv1KeywordsModel + globals()['RetailMediaExternalv1KeywordsModel'] = RetailMediaExternalv1KeywordsModel -class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest(ModelNormal): +class RetailMediaExternalv1KeywordsModelResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,8 @@ def openapi_types(): lazy_import() return { 'type': (str,), # noqa: E501 - 'attributes': (ExternalCatalogRequest,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'attributes': (RetailMediaExternalv1KeywordsModel,), # noqa: E501 } @cached_property @@ -98,6 +99,7 @@ def discriminator(): attribute_map = { 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 'attributes': 'attributes', # noqa: E501 } @@ -109,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest - a model defined in OpenAPI + """RetailMediaExternalv1KeywordsModelResource - a model defined in OpenAPI Args: type (str): @@ -145,7 +147,8 @@ 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,) - attributes (ExternalCatalogRequest): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaExternalv1KeywordsModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +202,7 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest - a model defined in OpenAPI + """RetailMediaExternalv1KeywordsModelResource - a model defined in OpenAPI Args: type (str): @@ -235,7 +238,8 @@ 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,) - attributes (ExternalCatalogRequest): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaExternalv1KeywordsModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_keywords_model_response.py new file mode 100644 index 00000000..2f241a5e --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model_resource import RetailMediaExternalv1KeywordsModelResource + from criteo_api_retailmedia_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], 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/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_problem_details.py similarity index 88% rename from sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_problem_details.py index 58a1ee23..c58b7cae 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_problem_details.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class ProblemDetails(ModelNormal): +class RetailMediaExternalv1ProblemDetails(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,17 +55,6 @@ class ProblemDetails(ModelNormal): """ allowed_values = { - ('type',): { - 'None': None, - 'UNKNOWN': "unknown", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, } validations = { @@ -77,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 (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + return ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},) # noqa: E501 _nullable = False @@ -92,15 +81,15 @@ def openapi_types(): and the value is attribute type. """ return { - 'trace_id': (str, none_type,), # noqa: E501 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 'source': ({str: (str,)}, none_type,), # noqa: E501 'stack_trace': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'title': (str, none_type,), # noqa: E501 + 'status': (int, none_type,), # noqa: E501 + 'detail': (str, none_type,), # noqa: E501 + 'instance': (str, none_type,), # noqa: E501 } @cached_property @@ -109,15 +98,15 @@ def discriminator(): 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 + 'type': 'type', # noqa: E501 + 'title': 'title', # noqa: E501 + 'status': 'status', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'instance': 'instance', # noqa: E501 } read_only_vars = { @@ -128,7 +117,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - a model defined in OpenAPI + """RetailMediaExternalv1ProblemDetails - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -161,15 +150,15 @@ 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,) - trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 + trace_identifier (str, none_type): [optional] # noqa: E501 code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 source ({str: (str,)}, none_type): [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + title (str, none_type): [optional] # noqa: E501 + status (int, none_type): [optional] # noqa: E501 + detail (str, none_type): [optional] # noqa: E501 + instance (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -222,7 +211,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemDetails - a model defined in OpenAPI + """RetailMediaExternalv1ProblemDetails - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -255,15 +244,15 @@ 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,) - trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 - trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 + trace_identifier (str, none_type): [optional] # noqa: E501 code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 source ({str: (str,)}, none_type): [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + title (str, none_type): [optional] # noqa: E501 + status (int, none_type): [optional] # noqa: E501 + detail (str, none_type): [optional] # noqa: E501 + instance (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model.py similarity index 79% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model.py index 7cec4c22..548fcc17 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -class Creative202110(ModelNormal): +class RetailMediaExternalv1ProposalStatusModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,11 +55,24 @@ class Creative202110(ModelNormal): """ allowed_values = { - ('status',): { - 'READY': "Ready", - 'IN_USE': "In_Use", - 'ARCHIVED': "Archived", - 'DELETED': "Deleted", + ('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,12 +100,12 @@ def openapi_types(): 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 + 'negotiation_state': (str,), # noqa: E501 + 'booking_status': (str,), # noqa: E501 + 'runnable_status': (str,), # noqa: E501 + 'comment': (str, none_type,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 } @cached_property @@ -101,11 +114,11 @@ def discriminator(): 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 + 'negotiation_state': 'negotiationState', # noqa: E501 + 'booking_status': 'bookingStatus', # noqa: E501 + 'runnable_status': 'runnableStatus', # noqa: E501 + 'comment': 'comment', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 'updated_at': 'updatedAt', # noqa: E501 } @@ -116,13 +129,13 @@ def discriminator(): @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 + def _from_openapi_data(cls, negotiation_state, booking_status, runnable_status, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModel - a model defined in OpenAPI Args: - name (str): - status (str): - retailer_id (int): + negotiation_state (str): + booking_status (str): + runnable_status (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -155,9 +168,9 @@ def _from_openapi_data(cls, name, status, retailer_id, *args, **kwargs): # noqa 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 + comment (str, none_type): [optional] # noqa: E501 + created_at (datetime, none_type): [optional] # noqa: E501 + updated_at (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -189,9 +202,9 @@ def _from_openapi_data(cls, name, status, retailer_id, *args, **kwargs): # noqa self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.name = name - self.status = status - self.retailer_id = retailer_id + 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 \ @@ -212,13 +225,13 @@ def _from_openapi_data(cls, name, status, retailer_id, *args, **kwargs): # noqa ]) @convert_js_args_to_python_args - def __init__(self, name, status, retailer_id, *args, **kwargs): # noqa: E501 - """Creative202110 - 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: - name (str): - status (str): - retailer_id (int): + negotiation_state (str): + booking_status (str): + runnable_status (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -251,9 +264,9 @@ def __init__(self, name, status, retailer_id, *args, **kwargs): # noqa: E501 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 + comment (str, none_type): [optional] # noqa: E501 + created_at (datetime, none_type): [optional] # noqa: E501 + updated_at (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -283,9 +296,9 @@ def __init__(self, name, status, retailer_id, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.name = name - self.status = status - self.retailer_id = retailer_id + 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-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_resource.py new file mode 100644 index 00000000..ee8e32bb --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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, none_type,), # 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, none_type): [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, none_type): [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-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_proposal_status_model_response.py new file mode 100644 index 00000000..fce3e280 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/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-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails + from criteo_api_retailmedia_v2023_10.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], none_type,), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails], none_type,), # 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], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], 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 + """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], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], 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_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_resource_outcome.py similarity index 89% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_resource_outcome.py index 07c89faa..c9183d34 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_resource_outcome.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_template import ResourceOfTemplate - globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfTemplate'] = ResourceOfTemplate + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails + globals()['RetailMediaExternalv1ProblemDetails'] = RetailMediaExternalv1ProblemDetails -class TemplateListResponse(ModelNormal): +class RetailMediaExternalv1ResourceOutcome(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,6 +62,10 @@ class TemplateListResponse(ModelNormal): } validations = { + ('errors',): { + }, + ('warnings',): { + }, } @cached_property @@ -89,9 +91,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([ResourceOfTemplate],), # noqa: E501 - 'warnings': ([ProblemDetails],), # noqa: E501 - 'errors': ([ProblemDetails],), # noqa: E501 + 'errors': ([RetailMediaExternalv1ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails], none_type,), # noqa: E501 } @cached_property @@ -100,14 +101,13 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 'errors', # noqa: E501 + 'warnings', # noqa: E501 } _composed_schemas = {} @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """TemplateListResponse - a model defined in OpenAPI + """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,9 +148,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,) - data ([ResourceOfTemplate]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -203,7 +202,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """TemplateListResponse - a model defined in OpenAPI + """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,9 +235,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,) - data ([ResourceOfTemplate]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bid_model.py similarity index 92% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bid_model.py index b5f3a1e4..a0201b21 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bid_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 - globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 - -class PromotedProduct202110ListRequest(ModelNormal): +class RetailMediaExternalv1SetBidModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +58,10 @@ class PromotedProduct202110ListRequest(ModelNormal): } validations = { + ('phrase',): { + 'max_length': 255, + 'min_length': 0, + }, } @cached_property @@ -70,7 +70,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 @@ -85,9 +84,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'data': ([ResourceOfPromotedProduct202110],), # noqa: E501 + 'phrase': (str, none_type,), # noqa: E501 + 'bid': (float, none_type,), # noqa: E501 } @cached_property @@ -96,7 +95,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'phrase': 'phrase', # noqa: E501 + 'bid': 'bid', # 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 - """PromotedProduct202110ListRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +140,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,) - data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + phrase (str, none_type): [optional] # noqa: E501 + bid (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,7 +194,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PromotedProduct202110ListRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +227,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,) - data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + phrase (str, none_type): [optional] # noqa: E501 + bid (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model.py similarity index 92% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model.py index 2864c508..2bdd780e 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel - globals()['ResourceOfAuctionLineItemUpdateModel'] = ResourceOfAuctionLineItemUpdateModel + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bid_model import RetailMediaExternalv1SetBidModel + globals()['RetailMediaExternalv1SetBidModel'] = RetailMediaExternalv1SetBidModel -class AuctionLineItemUpdateModelRequest(ModelNormal): +class RetailMediaExternalv1SetBidsModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +62,8 @@ class AuctionLineItemUpdateModelRequest(ModelNormal): } validations = { + ('keywords',): { + }, } @cached_property @@ -87,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfAuctionLineItemUpdateModel,), # noqa: E501 + 'keywords': ([RetailMediaExternalv1SetBidModel], none_type,), # noqa: E501 } @cached_property @@ -96,7 +98,7 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'keywords': 'keywords', # noqa: E501 } read_only_vars = { @@ -107,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AuctionLineItemUpdateModelRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +142,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,) - data (ResourceOfAuctionLineItemUpdateModel): [optional] # noqa: E501 + keywords ([RetailMediaExternalv1SetBidModel], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,7 +195,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AuctionLineItemUpdateModelRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +228,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,) - data (ResourceOfAuctionLineItemUpdateModel): [optional] # noqa: E501 + keywords ([RetailMediaExternalv1SetBidModel], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_request.py similarity index 92% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_request.py index ed99ba52..6db0d6a1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel - globals()['InputResourceOfAuctionLineItemCreateModel'] = InputResourceOfAuctionLineItemCreateModel + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource + globals()['RetailMediaExternalv1SetBidsModelResource'] = RetailMediaExternalv1SetBidsModelResource -class AuctionLineItemCreateModelRequest(ModelNormal): +class RetailMediaExternalv1SetBidsModelRequest(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': (InputResourceOfAuctionLineItemCreateModel,), # noqa: E501 + 'data': (RetailMediaExternalv1SetBidsModelResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AuctionLineItemCreateModelRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModelRequest - 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,) - data (InputResourceOfAuctionLineItemCreateModel): [optional] # noqa: E501 + data (RetailMediaExternalv1SetBidsModelResource): [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 - """AuctionLineItemCreateModelRequest - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModelRequest - 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,) - data (InputResourceOfAuctionLineItemCreateModel): [optional] # noqa: E501 + data (RetailMediaExternalv1SetBidsModelResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_resource.py similarity index 91% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_resource.py index edf67513..5ede04a6 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_2023-10/criteo_api_retailmedia_v2023_10/model/retail_media_externalv1_set_bids_model_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_campaign_attributes import ExternalCampaignAttributes - globals()['ExternalCampaignAttributes'] = ExternalCampaignAttributes + from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel + globals()['RetailMediaExternalv1SetBidsModel'] = RetailMediaExternalv1SetBidsModel -class JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign(ModelNormal): +class RetailMediaExternalv1SetBidsModelResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,8 @@ def openapi_types(): lazy_import() return { 'type': (str,), # noqa: E501 - 'attributes': (ExternalCampaignAttributes,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'attributes': (RetailMediaExternalv1SetBidsModel,), # noqa: E501 } @cached_property @@ -98,6 +99,7 @@ def discriminator(): attribute_map = { 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 'attributes': 'attributes', # noqa: E501 } @@ -109,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI Args: type (str): @@ -145,7 +147,8 @@ 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,) - attributes (ExternalCampaignAttributes): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +202,7 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign - a model defined in OpenAPI + """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI Args: type (str): @@ -235,7 +238,8 @@ 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,) - attributes (ExternalCampaignAttributes): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/section.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/section.py index e8dbab39..1c990ecd 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/section.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.template_variable import TemplateVariable + from criteo_api_retailmedia_v2023_10.model.template_variable import TemplateVariable globals()['TemplateVariable'] = TemplateVariable diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response.py similarity index 82% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response.py index 8e582f60..280fde64 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.creative202110 import Creative202110 - globals()['Creative202110'] = Creative202110 - -class ResourceOfCreative202110(ModelNormal): +class StatusResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,6 +55,13 @@ class ResourceOfCreative202110(ModelNormal): """ allowed_values = { + ('status',): { + 'None': None, + 'PENDING': "pending", + 'SUCCESS': "success", + 'FAILURE': "failure", + 'EXPIRED': "expired", + }, } validations = { @@ -70,7 +73,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 @@ -85,11 +87,15 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { + 'status': (str, none_type,), # noqa: E501 + 'row_count': (int, none_type,), # noqa: E501 + 'file_size_bytes': (int, none_type,), # noqa: E501 + 'md5_check_sum': (str, none_type,), # noqa: E501 + 'created_at': (str, none_type,), # noqa: E501 + 'expires_at': (str, none_type,), # noqa: E501 + 'message': (str, none_type,), # noqa: E501 'id': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'attributes': (Creative202110,), # noqa: E501 } @cached_property @@ -98,9 +104,14 @@ def discriminator(): 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 - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -111,7 +122,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfCreative202110 - a model defined in OpenAPI + """StatusResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +155,14 @@ 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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (Creative202110): [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +215,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfCreative202110 - a model defined in OpenAPI + """StatusResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +248,14 @@ 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,) - id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (Creative202110): [optional] # noqa: E501 + status (str, none_type): [optional] # noqa: E501 + row_count (int, none_type): [optional] # noqa: E501 + file_size_bytes (int, none_type): [optional] # noqa: E501 + md5_check_sum (str, none_type): [optional] # noqa: E501 + created_at (str, none_type): [optional] # noqa: E501 + expires_at (str, none_type): [optional] # noqa: E501 + message (str, none_type): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response_resource.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response_resource.py new file mode 100644 index 00000000..3ea954a7 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/status_response_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-10 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_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_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_10.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, none_type,), # noqa: E501 + 'type': (str, none_type,), # 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, none_type): [optional] # noqa: E501 + type (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 + """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, none_type): [optional] # noqa: E501 + type (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_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_ids_update_model202110_request.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_ids_update_model202110_request.py index 0d510fd6..27daed6f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_ids_update_model202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 globals()['ValueTypeResourceOfStoreIdsUpdateModel202110'] = ValueTypeResourceOfStoreIdsUpdateModel202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_request.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_request.py index 29981057..907aece5 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 globals()['ValueTypeResourceOfStoreTarget202110'] = ValueTypeResourceOfStoreTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_response.py index e1526a3f..9f0b0cd1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/store_target202110_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 globals()['ProblemDetails'] = ProblemDetails globals()['ValueTypeResourceOfStoreTarget202110'] = ValueTypeResourceOfStoreTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template.py index feeccdac..fea29383 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.section import Section + from criteo_api_retailmedia_v2023_10.model.section import Section globals()['Section'] = Section diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_list_response.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_list_response.py index 4141bb68..cda6de66 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_list_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_10.model.resource_of_template import ResourceOfTemplate + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_template import ResourceOfTemplate globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfTemplate'] = ResourceOfTemplate diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_response.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_response.py index aaa02c25..103ddd30 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,12 +26,12 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2022_07.model.resource_of_template import ResourceOfTemplate + from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_10.model.resource_of_template import ResourceOfTemplate globals()['ProblemDetails'] = ProblemDetails globals()['ResourceOfTemplate'] = ResourceOfTemplate diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable.py index a5e8f560..9031f8e9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,13 +26,13 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.choice_variable_specification import ChoiceVariableSpecification - from criteo_api_retailmedia_v2022_07.model.files_variables_specification import FilesVariablesSpecification - from criteo_api_retailmedia_v2022_07.model.text_variable_specification import TextVariableSpecification + from criteo_api_retailmedia_v2023_10.model.choice_variable_specification import ChoiceVariableSpecification + from criteo_api_retailmedia_v2023_10.model.files_variables_specification import FilesVariablesSpecification + from criteo_api_retailmedia_v2023_10.model.text_variable_specification import TextVariableSpecification globals()['ChoiceVariableSpecification'] = ChoiceVariableSpecification globals()['FilesVariablesSpecification'] = FilesVariablesSpecification globals()['TextVariableSpecification'] = TextVariableSpecification diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable_value.py similarity index 96% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable_value.py index aaa470ce..b21ec420 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/template_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.choice_variable_value import ChoiceVariableValue - from criteo_api_retailmedia_v2022_07.model.color_variable_value import ColorVariableValue - from criteo_api_retailmedia_v2022_07.model.files_variable_value import FilesVariableValue - from criteo_api_retailmedia_v2022_07.model.hyperlink_variable_value import HyperlinkVariableValue - from criteo_api_retailmedia_v2022_07.model.text_variable_value import TextVariableValue + from criteo_api_retailmedia_v2023_10.model.choice_variable_value import ChoiceVariableValue + from criteo_api_retailmedia_v2023_10.model.color_variable_value import ColorVariableValue + from criteo_api_retailmedia_v2023_10.model.files_variable_value import FilesVariableValue + from criteo_api_retailmedia_v2023_10.model.hyperlink_variable_value import HyperlinkVariableValue + from criteo_api_retailmedia_v2023_10.model.text_variable_value import TextVariableValue globals()['ChoiceVariableValue'] = ChoiceVariableValue globals()['ColorVariableValue'] = ColorVariableValue globals()['FilesVariableValue'] = FilesVariableValue diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_specification.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_specification.py index 3c6855ef..379f3123 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_specification.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_value.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_value.py index ae8e752b..c8463c09 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/text_variable_value.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/update_balance_model_request.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/update_balance_model_request.py index f63d9e33..847bf45f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/update_balance_model_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: 2023-10 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_10.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_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel + from criteo_api_retailmedia_v2023_10.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel globals()['ResourceOfUpdateBalanceModel'] = ResourceOfUpdateBalanceModel diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details.py index 9984535e..9c51ab7f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,7 +26,7 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError 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_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details_v2.py similarity index 88% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details_v2.py index 979b956c..0f426f04 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_2023-10/criteo_api_retailmedia_v2023_10/model/user_behavior_details_v2.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_campaign import ExternalCampaign - globals()['ExternalCampaign'] = ExternalCampaign + from criteo_api_retailmedia_v2023_10.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2 + globals()['CreateUserBehaviorSegmentV2'] = CreateUserBehaviorSegmentV2 -class JsonApiBodyWithIdOfInt64AndCampaignAndCampaign(ModelNormal): +class UserBehaviorDetailsV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,9 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'id': (str,), # noqa: E501 - 'type': (str,), # noqa: E501 - 'attributes': (ExternalCampaign,), # noqa: E501 + 'inclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501 + 'exclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501 } @cached_property @@ -98,9 +97,8 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'inclusive_segment': 'inclusiveSegment', # noqa: E501 + 'exclusive_segment': 'exclusiveSegment', # noqa: E501 } read_only_vars = { @@ -110,12 +108,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - a model defined in OpenAPI + def _from_openapi_data(cls, inclusive_segment, *args, **kwargs): # noqa: E501 + """UserBehaviorDetailsV2 - a model defined in OpenAPI Args: - id (str): - type (str): + inclusive_segment (CreateUserBehaviorSegmentV2): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +145,7 @@ def _from_openapi_data(cls, id, 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,) - attributes (ExternalCampaign): [optional] # noqa: E501 + exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -180,8 +177,7 @@ def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.id = id - self.type = type + 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 \ @@ -202,12 +198,11 @@ def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, id, type, *args, **kwargs): # noqa: E501 - """JsonApiBodyWithIdOfInt64AndCampaignAndCampaign - a model defined in OpenAPI + def __init__(self, inclusive_segment, *args, **kwargs): # noqa: E501 + """UserBehaviorDetailsV2 - a model defined in OpenAPI Args: - id (str): - type (str): + inclusive_segment (CreateUserBehaviorSegmentV2): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +235,7 @@ def __init__(self, id, 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,) - attributes (ExternalCampaign): [optional] # noqa: E501 + exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,8 +265,7 @@ def __init__(self, id, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.id = id - self.type = type + 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 \ 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_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py index 8cafa27e..b11be74e 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_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 globals()['ExternalAddToBasketIdsUpdateModel202110'] = ExternalAddToBasketIdsUpdateModel202110 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_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_target202110.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_target202110.py index 8dc5f32b..e0392414 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_add_to_basket_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 + from criteo_api_retailmedia_v2023_10.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 globals()['ExternalAddToBasketTarget202110'] = ExternalAddToBasketTarget202110 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_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_ids_update_model202110.py index 3bf24397..81be473b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 globals()['ExternalAudienceIdsUpdateModel202110'] = ExternalAudienceIdsUpdateModel202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_target202110.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_target202110.py index 850d6f70..b3ddac20 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_audience_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_audience_target202110 import ExternalAudienceTarget202110 + from criteo_api_retailmedia_v2023_10.model.external_audience_target202110 import ExternalAudienceTarget202110 globals()['ExternalAudienceTarget202110'] = ExternalAudienceTarget202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_keyword_target202110.py similarity index 97% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_keyword_target202110.py index a92a6e04..92c78083 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_keyword_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_10.model.external_keyword_target202110 import ExternalKeywordTarget202110 + from criteo_api_retailmedia_v2023_10.model.external_keyword_target202110 import ExternalKeywordTarget202110 globals()['ExternalKeywordTarget202110'] = ExternalKeywordTarget202110 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_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_ids_update_model202110.py similarity index 98% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_ids_update_model202110.py index c05aa033..ce0e8ad9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_ids_update_model202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 + from criteo_api_retailmedia_v2023_10.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 globals()['ExternalStoreIdsUpdateModel202110'] = ExternalStoreIdsUpdateModel202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_target202110.py similarity index 97% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_target202110.py index 06f2159f..f29c5279 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/value_type_resource_of_store_target202110.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2022_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2022_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2022_07.model.external_store_target202110 import ExternalStoreTarget202110 + from criteo_api_retailmedia_v2023_10.model.external_store_target202110 import ExternalStoreTarget202110 globals()['ExternalStoreTarget202110'] = ExternalStoreTarget202110 diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model_utils.py similarity index 99% rename from sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model_utils.py index 38cb6f63..597008eb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model_utils.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-07 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -20,7 +20,7 @@ from dateutil.parser import parse -from criteo_api_retailmedia_v2022_07.exceptions import ( +from criteo_api_retailmedia_v2023_10.exceptions import ( ApiKeyError, ApiAttributeError, ApiTypeError, diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py new file mode 100644 index 00000000..421d3d31 --- /dev/null +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py @@ -0,0 +1,213 @@ +# 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_10.model.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from criteo_api_retailmedia_v2023_10.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2023_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_10.model.application_summary_model import ApplicationSummaryModel +from criteo_api_retailmedia_v2023_10.model.application_summary_model_resource import ApplicationSummaryModelResource +from criteo_api_retailmedia_v2023_10.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_retailmedia_v2023_10.model.asset import Asset +from criteo_api_retailmedia_v2023_10.model.asset_resource import AssetResource +from criteo_api_retailmedia_v2023_10.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_10.model.async_campaigns_report import AsyncCampaignsReport +from criteo_api_retailmedia_v2023_10.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_v2023_10.model.async_campaigns_report_resource import AsyncCampaignsReportResource +from criteo_api_retailmedia_v2023_10.model.async_line_items_report import AsyncLineItemsReport +from criteo_api_retailmedia_v2023_10.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_v2023_10.model.async_line_items_report_resource import AsyncLineItemsReportResource +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.model.async_revenue_report import AsyncRevenueReport +from criteo_api_retailmedia_v2023_10.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_v2023_10.model.async_revenue_report_resource import AsyncRevenueReportResource +from criteo_api_retailmedia_v2023_10.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from criteo_api_retailmedia_v2023_10.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +from criteo_api_retailmedia_v2023_10.model.auction_line_item_response import AuctionLineItemResponse +from criteo_api_retailmedia_v2023_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request +from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse +from criteo_api_retailmedia_v2023_10.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from criteo_api_retailmedia_v2023_10.model.campaign_attributes_v202301 import CampaignAttributesV202301 +from criteo_api_retailmedia_v2023_10.model.campaign_v202301 import CampaignV202301 +from criteo_api_retailmedia_v2023_10.model.category202204 import Category202204 +from criteo_api_retailmedia_v2023_10.model.category202204_list_response import Category202204ListResponse +from criteo_api_retailmedia_v2023_10.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest +from criteo_api_retailmedia_v2023_10.model.choice_option import ChoiceOption +from criteo_api_retailmedia_v2023_10.model.choice_variable_specification import ChoiceVariableSpecification +from criteo_api_retailmedia_v2023_10.model.choice_variable_value import ChoiceVariableValue +from criteo_api_retailmedia_v2023_10.model.color_variable_value import ColorVariableValue +from criteo_api_retailmedia_v2023_10.model.common_error import CommonError +from criteo_api_retailmedia_v2023_10.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +from criteo_api_retailmedia_v2023_10.model.common_line_item_response import CommonLineItemResponse +from criteo_api_retailmedia_v2023_10.model.common_problem import CommonProblem +from criteo_api_retailmedia_v2023_10.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning +from criteo_api_retailmedia_v2023_10.model.create_balance_request import CreateBalanceRequest +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience import CreateRetailMediaAudience +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_10.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2 +from criteo_api_retailmedia_v2023_10.model.creative202110 import Creative202110 +from criteo_api_retailmedia_v2023_10.model.creative202110_list_response import Creative202110ListResponse +from criteo_api_retailmedia_v2023_10.model.creative202210 import Creative202210 +from criteo_api_retailmedia_v2023_10.model.creative202210_list_response import Creative202210ListResponse +from criteo_api_retailmedia_v2023_10.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_10.model.creative_create_model202207 import CreativeCreateModel202207 +from criteo_api_retailmedia_v2023_10.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_10.model.customer_list_details import CustomerListDetails +from criteo_api_retailmedia_v2023_10.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 +from criteo_api_retailmedia_v2023_10.model.external_account import ExternalAccount +from criteo_api_retailmedia_v2023_10.model.external_add_funds_to_balance import ExternalAddFundsToBalance +from criteo_api_retailmedia_v2023_10.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 +from criteo_api_retailmedia_v2023_10.model.external_auction_line_item import ExternalAuctionLineItem +from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel +from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel +from criteo_api_retailmedia_v2023_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.external_audience_target202110 import ExternalAudienceTarget202110 +from criteo_api_retailmedia_v2023_10.model.external_balance202110 import ExternalBalance202110 +from criteo_api_retailmedia_v2023_10.model.external_balance_response import ExternalBalanceResponse +from criteo_api_retailmedia_v2023_10.model.external_brand import ExternalBrand +from criteo_api_retailmedia_v2023_10.model.external_catalog_request import ExternalCatalogRequest +from criteo_api_retailmedia_v2023_10.model.external_catalog_status import ExternalCatalogStatus +from criteo_api_retailmedia_v2023_10.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance +from criteo_api_retailmedia_v2023_10.model.external_common_line_item import ExternalCommonLineItem +from criteo_api_retailmedia_v2023_10.model.external_create_balance import ExternalCreateBalance +from criteo_api_retailmedia_v2023_10.model.external_keyword_target202110 import ExternalKeywordTarget202110 +from criteo_api_retailmedia_v2023_10.model.external_line_item_capping202110 import ExternalLineItemCapping202110 +from criteo_api_retailmedia_v2023_10.model.external_line_item_page202110 import ExternalLineItemPage202110 +from criteo_api_retailmedia_v2023_10.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 +from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 +from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 +from criteo_api_retailmedia_v2023_10.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.external_promoted_product202110 import ExternalPromotedProduct202110 +from criteo_api_retailmedia_v2023_10.model.external_retailer import ExternalRetailer +from criteo_api_retailmedia_v2023_10.model.external_retailer_pages202110 import ExternalRetailerPages202110 +from criteo_api_retailmedia_v2023_10.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.external_store_target202110 import ExternalStoreTarget202110 +from criteo_api_retailmedia_v2023_10.model.external_update_balance_model import ExternalUpdateBalanceModel +from criteo_api_retailmedia_v2023_10.model.files_variable_value import FilesVariableValue +from criteo_api_retailmedia_v2023_10.model.files_variables_specification import FilesVariablesSpecification +from criteo_api_retailmedia_v2023_10.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from criteo_api_retailmedia_v2023_10.model.hyperlink_variable_value import HyperlinkVariableValue +from criteo_api_retailmedia_v2023_10.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel +from criteo_api_retailmedia_v2023_10.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 +from criteo_api_retailmedia_v2023_10.model.json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount +from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand +from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus +from criteo_api_retailmedia_v2023_10.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_10.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer +from criteo_api_retailmedia_v2023_10.model.json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_campaign_v202301 import JsonApiPageResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +from criteo_api_retailmedia_v2023_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_line_item_bid_multipliers import JsonApiSingleResponseOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers import LineItemBidMultipliers +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata +from criteo_api_retailmedia_v2023_10.model.page_type_environment import PageTypeEnvironment +from criteo_api_retailmedia_v2023_10.model.post_campaign_v202301 import PostCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_10.model.put_campaign_v202301 import PutCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_10.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance +from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem +from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel +from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_balance_response import ResourceOfBalanceResponse +from criteo_api_retailmedia_v2023_10.model.resource_of_category202204 import ResourceOfCategory202204 +from criteo_api_retailmedia_v2023_10.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance +from criteo_api_retailmedia_v2023_10.model.resource_of_common_line_item import ResourceOfCommonLineItem +from criteo_api_retailmedia_v2023_10.model.resource_of_create_balance import ResourceOfCreateBalance +from criteo_api_retailmedia_v2023_10.model.resource_of_creative202110 import ResourceOfCreative202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_creative202210 import ResourceOfCreative202210 +from criteo_api_retailmedia_v2023_10.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 +from criteo_api_retailmedia_v2023_10.model.resource_of_template import ResourceOfTemplate +from criteo_api_retailmedia_v2023_10.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel +from criteo_api_retailmedia_v2023_10.model.retail_media_audience import RetailMediaAudience +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_attributes import RetailMediaAudienceAttributes +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2 import RetailMediaAudienceV2 +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_resource import RetailMediaExternalv1AddRemoveKeywordsModelResource +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_input_keywords_model import RetailMediaExternalv1InputKeywordsModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keyword_data_model import RetailMediaExternalv1KeywordDataModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model import RetailMediaExternalv1KeywordsModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model_resource import RetailMediaExternalv1KeywordsModelResource +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_proposal_status_model import RetailMediaExternalv1ProposalStatusModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_proposal_status_model_resource import RetailMediaExternalv1ProposalStatusModelResource +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bid_model import RetailMediaExternalv1SetBidModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource +from criteo_api_retailmedia_v2023_10.model.section import Section +from criteo_api_retailmedia_v2023_10.model.status_response import StatusResponse +from criteo_api_retailmedia_v2023_10.model.status_response_resource import StatusResponseResource +from criteo_api_retailmedia_v2023_10.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_10.model.store_target202110_request import StoreTarget202110Request +from criteo_api_retailmedia_v2023_10.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_10.model.template import Template +from criteo_api_retailmedia_v2023_10.model.template_list_response import TemplateListResponse +from criteo_api_retailmedia_v2023_10.model.template_response import TemplateResponse +from criteo_api_retailmedia_v2023_10.model.template_variable import TemplateVariable +from criteo_api_retailmedia_v2023_10.model.template_variable_value import TemplateVariableValue +from criteo_api_retailmedia_v2023_10.model.text_variable_specification import TextVariableSpecification +from criteo_api_retailmedia_v2023_10.model.text_variable_value import TextVariableValue +from criteo_api_retailmedia_v2023_10.model.update_balance_model_request import UpdateBalanceModelRequest +from criteo_api_retailmedia_v2023_10.model.user_behavior_details import UserBehaviorDetails +from criteo_api_retailmedia_v2023_10.model.user_behavior_details_v2 import UserBehaviorDetailsV2 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_10.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/rest.py similarity index 99% rename from sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py rename to sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/rest.py index 330d5bb9..30e00756 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/rest.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2022-10 + The version of the OpenAPI document: 2023-10 Generated by: https://openapi-generator.tech """ @@ -19,7 +19,7 @@ import urllib3 import ipaddress -from criteo_api_retailmedia_v2022_10.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError +from criteo_api_retailmedia_v2023_10.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError logger = logging.getLogger(__name__) diff --git a/sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md b/sdks/retailmedia_2023-10/docs/AddFundsToBalanceRequest.md similarity index 100% rename from sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md rename to sdks/retailmedia_2023-10/docs/AddFundsToBalanceRequest.md diff --git a/sdks/retailmedia_2022-07/docs/AddToBasketIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-10/docs/AddToBasketIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AddToBasketIdsUpdateModel202110Request.md rename to sdks/retailmedia_2023-10/docs/AddToBasketIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/AddToBasketTarget202110Request.md b/sdks/retailmedia_2023-10/docs/AddToBasketTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AddToBasketTarget202110Request.md rename to sdks/retailmedia_2023-10/docs/AddToBasketTarget202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/AddToBasketTarget202110Response.md b/sdks/retailmedia_2023-10/docs/AddToBasketTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AddToBasketTarget202110Response.md rename to sdks/retailmedia_2023-10/docs/AddToBasketTarget202110Response.md diff --git a/sdks/retailmedia_2023-10/docs/AnalyticsApi.md b/sdks/retailmedia_2023-10/docs/AnalyticsApi.md new file mode 100644 index 00000000..c3d5ebe8 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AnalyticsApi.md @@ -0,0 +1,528 @@ +# criteo_api_retailmedia_v2023_10.AnalyticsApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**generate_async_campaigns_report**](AnalyticsApi.md#generate_async_campaigns_report) | **POST** /2023-10/retail-media/reports/campaigns | +[**generate_async_line_items_report**](AnalyticsApi.md#generate_async_line_items_report) | **POST** /2023-10/retail-media/reports/line-items | +[**generate_async_revenue_report**](AnalyticsApi.md#generate_async_revenue_report) | **POST** /2023-10/retail-media/reports/revenue | +[**get_async_export_output**](AnalyticsApi.md#get_async_export_output) | **GET** /2023-10/retail-media/reports/{reportId}/output | +[**get_async_export_status**](AnalyticsApi.md#get_async_export_status) | **GET** /2023-10/retail-media/reports/{reportId}/status | + + +# **generate_async_campaigns_report** +> AsyncReportResponse generate_async_campaigns_report(async_campaigns_report_request) + + + +Return an asynchronous Campaigns Report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import analytics_api +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_10.model.async_campaigns_report_request import AsyncCampaignsReportRequest +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + async_campaigns_report_request = AsyncCampaignsReportRequest( + data=AsyncCampaignsReportResource( + type="type_example", + attributes=AsyncCampaignsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncCampaignsReportRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_async_campaigns_report(async_campaigns_report_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling AnalyticsApi->generate_async_campaigns_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_campaigns_report_request** | [**AsyncCampaignsReportRequest**](AsyncCampaignsReportRequest.md)| | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.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 | - | +**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_async_line_items_report** +> AsyncReportResponse generate_async_line_items_report(async_line_items_report_request) + + + +Returns an asynchronous Line Items Report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import analytics_api +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_10.model.async_line_items_report_request import AsyncLineItemsReportRequest +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + async_line_items_report_request = AsyncLineItemsReportRequest( + data=AsyncLineItemsReportResource( + type="type_example", + attributes=AsyncLineItemsReport( + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + campaign_type="sponsoredProducts", + sales_channel="offline", + format="json-compact", + report_type="summary", + click_attribution_window="none", + view_attribution_window="none", + ids=[ + "ids_example", + ], + id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncLineItemsReportRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_async_line_items_report(async_line_items_report_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_line_items_report_request** | [**AsyncLineItemsReportRequest**](AsyncLineItemsReportRequest.md)| | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.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 | - | +**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_async_revenue_report** +> AsyncReportResponse generate_async_revenue_report(async_revenue_report_request) + + + +Returns an asynchronous Revenue Report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import analytics_api +from criteo_api_retailmedia_v2023_10.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + 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", + sold_by="directSold", + campaign_sub_type="auctionAndPreferred", + click_attribution_window="none", + view_attribution_window="none", + campaign_type="sponsoredProducts", + sales_channel="offline", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + ), + ), + ) # AsyncRevenueReportRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_async_revenue_report(async_revenue_report_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling AnalyticsApi->generate_async_revenue_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async_revenue_report_request** | [**AsyncRevenueReportRequest**](AsyncRevenueReportRequest.md)| | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.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 | - | +**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) + + + +Returns the output of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import analytics_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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) + + + +Returns the status of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import analytics_api +from criteo_api_retailmedia_v2023_10.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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/marketingsolutions_2022-10/docs/ApplicationSummaryModel.md b/sdks/retailmedia_2023-10/docs/ApplicationSummaryModel.md similarity index 100% rename from sdks/marketingsolutions_2022-10/docs/ApplicationSummaryModel.md rename to sdks/retailmedia_2023-10/docs/ApplicationSummaryModel.md diff --git a/sdks/marketingsolutions_2022-10/docs/ApplicationSummaryModelResource.md b/sdks/retailmedia_2023-10/docs/ApplicationSummaryModelResource.md similarity index 100% rename from sdks/marketingsolutions_2022-10/docs/ApplicationSummaryModelResource.md rename to sdks/retailmedia_2023-10/docs/ApplicationSummaryModelResource.md diff --git a/sdks/marketingsolutions_2022-10/docs/ApplicationSummaryModelResponse.md b/sdks/retailmedia_2023-10/docs/ApplicationSummaryModelResponse.md similarity index 100% rename from sdks/marketingsolutions_2022-10/docs/ApplicationSummaryModelResponse.md rename to sdks/retailmedia_2023-10/docs/ApplicationSummaryModelResponse.md diff --git a/sdks/retailmedia_2022-07/docs/Asset.md b/sdks/retailmedia_2023-10/docs/Asset.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Asset.md rename to sdks/retailmedia_2023-10/docs/Asset.md diff --git a/sdks/retailmedia_2022-07/docs/AssetResource.md b/sdks/retailmedia_2023-10/docs/AssetResource.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AssetResource.md rename to sdks/retailmedia_2023-10/docs/AssetResource.md diff --git a/sdks/retailmedia_2022-07/docs/AssetResponse.md b/sdks/retailmedia_2023-10/docs/AssetResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AssetResponse.md rename to sdks/retailmedia_2023-10/docs/AssetResponse.md diff --git a/sdks/retailmedia_2023-10/docs/AsyncCampaignsReport.md b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReport.md new file mode 100644 index 00000000..04625e77 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignsReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-10/docs/AsyncCampaignsReportRequest.md b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReportRequest.md new file mode 100644 index 00000000..a81e24db --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncCampaignsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncCampaignsReportResource**](AsyncCampaignsReportResource.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-10/docs/AsyncCampaignsReportResource.md b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReportResource.md new file mode 100644 index 00000000..946c021f --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncCampaignsReportResource.md @@ -0,0 +1,14 @@ +# AsyncCampaignsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncCampaignsReport**](AsyncCampaignsReport.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-10/docs/AsyncLineItemsReport.md b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReport.md new file mode 100644 index 00000000..223e1c26 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemsReport + +Line Items report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-10/docs/AsyncLineItemsReportRequest.md b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReportRequest.md new file mode 100644 index 00000000..0d20f088 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncLineItemsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncLineItemsReportResource**](AsyncLineItemsReportResource.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-10/docs/AsyncLineItemsReportResource.md b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReportResource.md new file mode 100644 index 00000000..464b8885 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncLineItemsReportResource.md @@ -0,0 +1,14 @@ +# AsyncLineItemsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncLineItemsReport**](AsyncLineItemsReport.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-10/docs/AsyncReportResponse.md b/sdks/retailmedia_2023-10/docs/AsyncReportResponse.md new file mode 100644 index 00000000..938eb3a2 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncReportResponse.md @@ -0,0 +1,15 @@ +# AsyncReportResponse + +Async Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StatusResponseResource**](StatusResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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-10/docs/AsyncRevenueReport.md b/sdks/retailmedia_2023-10/docs/AsyncRevenueReport.md new file mode 100644 index 00000000..aead6936 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AsyncRevenueReport.md @@ -0,0 +1,28 @@ +# AsyncRevenueReport + +Async Revenue report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**report_type** | **str, none_type** | Type of report | [optional] +**revenue_type** | **str, none_type** | Type of revenue | [optional] +**ids** | **[str], none_type** | List of campaign Ids to filter | [optional] +**id** | **str, none_type** | List of campaign Id to filter | [optional] +**metrics** | **[str], none_type** | List of Metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**format** | **str, none_type** | Format of the output | [optional] +**sold_by** | **str, none_type** | Filter on the seller: indirect, direct or private market | [optional] +**campaign_sub_type** | **str, none_type** | Filter on campaign subType : Auction and Preferred Deals or Lockout campaign | [optional] +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_preview/docs/AsyncRevenueReportRequest.md b/sdks/retailmedia_2023-10/docs/AsyncRevenueReportRequest.md similarity index 100% rename from sdks/retailmedia_preview/docs/AsyncRevenueReportRequest.md rename to sdks/retailmedia_2023-10/docs/AsyncRevenueReportRequest.md diff --git a/sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md b/sdks/retailmedia_2023-10/docs/AsyncRevenueReportResource.md similarity index 100% rename from sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md rename to sdks/retailmedia_2023-10/docs/AsyncRevenueReportResource.md diff --git a/sdks/retailmedia_2022-07/docs/AuctionLineItemCreateModelRequest.md b/sdks/retailmedia_2023-10/docs/AuctionLineItemCreateModelRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AuctionLineItemCreateModelRequest.md rename to sdks/retailmedia_2023-10/docs/AuctionLineItemCreateModelRequest.md diff --git a/sdks/retailmedia_2022-07/docs/AuctionLineItemPagedListResponse.md b/sdks/retailmedia_2023-10/docs/AuctionLineItemPagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AuctionLineItemPagedListResponse.md rename to sdks/retailmedia_2023-10/docs/AuctionLineItemPagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/AuctionLineItemResponse.md b/sdks/retailmedia_2023-10/docs/AuctionLineItemResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AuctionLineItemResponse.md rename to sdks/retailmedia_2023-10/docs/AuctionLineItemResponse.md diff --git a/sdks/retailmedia_2022-07/docs/AuctionLineItemUpdateModelRequest.md b/sdks/retailmedia_2023-10/docs/AuctionLineItemUpdateModelRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AuctionLineItemUpdateModelRequest.md rename to sdks/retailmedia_2023-10/docs/AuctionLineItemUpdateModelRequest.md diff --git a/sdks/retailmedia_2023-10/docs/AudienceApi.md b/sdks/retailmedia_2023-10/docs/AudienceApi.md new file mode 100644 index 00000000..4a17202c --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/AudienceApi.md @@ -0,0 +1,451 @@ +# criteo_api_retailmedia_v2023_10.AudienceApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_audience**](AudienceApi.md#create_audience) | **POST** /2023-10/retail-media/accounts/{accountId}/audiences | +[**create_retail_media_audience_v2**](AudienceApi.md#create_retail_media_audience_v2) | **POST** /2023-10/retail-media/v2/accounts/{accountId}/audiences | +[**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /2023-10/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-10/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_10 +from criteo_api_retailmedia_v2023_10.api import audience_api +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import audience_api +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response +from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_10.model.common_status_code_response import CommonStatusCodeResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import audience_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import audience_api +from criteo_api_retailmedia_v2023_10.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_v2023_10.model.common_status_code_response import CommonStatusCodeResponse +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_2022-07/docs/AudienceIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-10/docs/AudienceIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AudienceIdsUpdateModel202110Request.md rename to sdks/retailmedia_2023-10/docs/AudienceIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/AudienceTarget202110Request.md b/sdks/retailmedia_2023-10/docs/AudienceTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AudienceTarget202110Request.md rename to sdks/retailmedia_2023-10/docs/AudienceTarget202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/AudienceTarget202110Response.md b/sdks/retailmedia_2023-10/docs/AudienceTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/AudienceTarget202110Response.md rename to sdks/retailmedia_2023-10/docs/AudienceTarget202110Response.md diff --git a/sdks/retailmedia_2022-07/docs/Balance202110PagedListResponse.md b/sdks/retailmedia_2023-10/docs/Balance202110PagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Balance202110PagedListResponse.md rename to sdks/retailmedia_2023-10/docs/Balance202110PagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/BalanceCampaign202110ListRequest.md b/sdks/retailmedia_2023-10/docs/BalanceCampaign202110ListRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/BalanceCampaign202110ListRequest.md rename to sdks/retailmedia_2023-10/docs/BalanceCampaign202110ListRequest.md diff --git a/sdks/retailmedia_2022-07/docs/BalanceCampaign202110PagedListResponse.md b/sdks/retailmedia_2023-10/docs/BalanceCampaign202110PagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/BalanceCampaign202110PagedListResponse.md rename to sdks/retailmedia_2023-10/docs/BalanceCampaign202110PagedListResponse.md diff --git a/sdks/retailmedia_preview/docs/BalanceResponse.md b/sdks/retailmedia_2023-10/docs/BalanceResponse.md similarity index 100% rename from sdks/retailmedia_preview/docs/BalanceResponse.md rename to sdks/retailmedia_2023-10/docs/BalanceResponse.md diff --git a/sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md b/sdks/retailmedia_2023-10/docs/BalanceResponsePagedListResponse.md similarity index 100% rename from sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md rename to sdks/retailmedia_2023-10/docs/BalanceResponsePagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/CampaignApi.md b/sdks/retailmedia_2023-10/docs/CampaignApi.md similarity index 65% rename from sdks/retailmedia_2022-07/docs/CampaignApi.md rename to sdks/retailmedia_2023-10/docs/CampaignApi.md index 5929c5d5..52c6189a 100644 --- a/sdks/retailmedia_2022-07/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-10/docs/CampaignApi.md @@ -1,64 +1,188 @@ -# criteo_api_retailmedia_v2022_07.CampaignApi +# criteo_api_retailmedia_v2023_10.CampaignApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_asset**](CampaignApi.md#create_asset) | **POST** /2022-07/retail-media/assets | -[**get_api202110_external_account_balances_by_account_id**](CampaignApi.md#get_api202110_external_account_balances_by_account_id) | **GET** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-07/retail-media/retailers/{retailerId}/pages | -[**get_api202204_external_categorie_by_category_id**](CampaignApi.md#get_api202204_external_categorie_by_category_id) | **GET** /2022-07/retail-media/categories/{categoryId} | -[**get_api202204_external_categories**](CampaignApi.md#get_api202204_external_categories) | **GET** /2022-07/retail-media/categories | -[**get_api202207_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202207_external_account_by_account_id_creativescreative_id) | **GET** /2022-07/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2022-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** /2022-07/retail-media/retailers/{retailer-id}/templates | -[**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2022-07/retail-media/accounts/{accountId}/brands | -[**get_api_v1_external_account_campaigns_by_account_id**](CampaignApi.md#get_api_v1_external_account_campaigns_by_account_id) | **GET** /2022-07/retail-media/accounts/{accountId}/campaigns | -[**get_api_v1_external_account_retailers_by_account_id**](CampaignApi.md#get_api_v1_external_account_retailers_by_account_id) | **GET** /2022-07/retail-media/accounts/{accountId}/retailers | -[**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /2022-07/retail-media/accounts | -[**get_api_v1_external_campaign_by_campaign_id**](CampaignApi.md#get_api_v1_external_campaign_by_campaign_id) | **GET** /2022-07/retail-media/campaigns/{campaignId} | -[**get_api_v1_external_catalog_output_by_catalog_id**](CampaignApi.md#get_api_v1_external_catalog_output_by_catalog_id) | **GET** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | -[**post_api202207_external_account_creatives_by_account_id**](CampaignApi.md#post_api202207_external_account_creatives_by_account_id) | **POST** /2022-07/retail-media/accounts/{account-id}/creatives | -[**post_api_v1_external_account_campaigns_by_account_id**](CampaignApi.md#post_api_v1_external_account_campaigns_by_account_id) | **POST** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-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** /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | -[**put_api202207_external_account_by_account_id_creativescreative_id**](CampaignApi.md#put_api202207_external_account_by_account_id_creativescreative_id) | **PUT** /2022-07/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**put_api_v1_external_campaign_by_campaign_id**](CampaignApi.md#put_api_v1_external_campaign_by_campaign_id) | **PUT** /2022-07/retail-media/campaigns/{campaignId} | -[**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** /2022-07/retail-media/auction-line-items/{line-item-id} | +[**add_remove_keywords**](CampaignApi.md#add_remove_keywords) | **POST** /2023-10/retail-media/line-items/{id}/keywords/add-remove | +[**create_asset**](CampaignApi.md#create_asset) | **POST** /2023-10/retail-media/assets | +[**fetch_keywords**](CampaignApi.md#fetch_keywords) | **GET** /2023-10/retail-media/line-items/{id}/keywords | +[**fetch_proposal**](CampaignApi.md#fetch_proposal) | **GET** /2023-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/retail-media/retailers/{retailerId}/pages | +[**get_api202204_external_categorie_by_category_id**](CampaignApi.md#get_api202204_external_categorie_by_category_id) | **GET** /2023-10/retail-media/categories/{categoryId} | +[**get_api202204_external_categories**](CampaignApi.md#get_api202204_external_categories) | **GET** /2023-10/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-10/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-10/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-10/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-10/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-10/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-10/retail-media/line-items/{line-item-id}/bid-multipliers | +[**get_api_v1_external_account_balances_by_account_id**](CampaignApi.md#get_api_v1_external_account_balances_by_account_id) | **GET** /2023-10/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** /2023-10/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** /2023-10/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** /2023-10/retail-media/accounts/{accountId}/retailers | +[**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /2023-10/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-10/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-10/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-10/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-10/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-10/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-10/retail-media/line-items/{line-item-id} | +[**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** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId} | +[**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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/retail-media/accounts/{accountId}/campaigns | +[**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** /2023-10/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** /2023-10/retail-media/accounts/{accountId}/balances | +[**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-10/retail-media/accounts/{accountId}/catalogs | +[**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** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates | +[**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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/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-10/retail-media/auction-line-items/{line-item-id} | +[**set_keyword_bids**](CampaignApi.md#set_keyword_bids) | **POST** /2023-10/retail-media/line-items/{id}/keywords/set-bid | +[**submit_proposal**](CampaignApi.md#submit_proposal) | **POST** /2023-10/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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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) @@ -74,13 +198,13 @@ Creates an asset ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.asset_response import AssetResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -90,19 +214,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -111,7 +235,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.create_asset(asset_file) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->create_asset: %s\n" % e) ``` @@ -144,6 +268,178 @@ 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) +# **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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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) @@ -158,13 +454,13 @@ Gets page of balance objects for the given account id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.balance202110_paged_list_response import Balance202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -174,19 +470,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -200,7 +496,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202110_external_account_balances_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -208,7 +504,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_account_balances_by_account_id: %s\n" % e) ``` @@ -258,13 +554,13 @@ Get account creatives ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.creative202110_list_response import Creative202110ListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -274,19 +570,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -295,7 +591,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202110_external_account_creatives_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_account_creatives_by_account_id: %s\n" % e) ``` @@ -342,13 +638,13 @@ This endpoint gets the keyword target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_response import KeywordTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -358,19 +654,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -379,7 +675,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id: %s\n" % e) ``` @@ -427,13 +723,13 @@ Gets page of campaigns for the given balanceId ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -443,19 +739,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -469,7 +765,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202110_external_balance_campaigns_by_balance_id(balance_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -477,7 +773,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_balance_campaigns_by_balance_id: %s\n" % e) ``` @@ -527,13 +823,13 @@ Gets page of preferred line item objects for the given campaign id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -543,19 +839,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -569,7 +865,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -577,7 +873,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) ``` @@ -628,13 +924,13 @@ This endpoint gets the promoted products on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -644,19 +940,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -670,7 +966,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -678,7 +974,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_line_item_products_by_line_item_id: %s\n" % e) ``` @@ -728,13 +1024,13 @@ Gets the preferred line item for the given line item id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -744,19 +1040,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -765,7 +1061,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) ``` @@ -813,13 +1109,13 @@ This endpoint gets the add to basket target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -829,19 +1125,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -850,7 +1146,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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) ``` @@ -898,13 +1194,13 @@ This endpoint gets the audience target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -914,19 +1210,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -935,7 +1231,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) ``` @@ -983,13 +1279,13 @@ This endpoint gets the store target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -999,19 +1295,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -1020,7 +1316,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id: %s\n" % e) ``` @@ -1068,13 +1364,13 @@ Get the page types available for the given retailer ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1084,19 +1380,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -1105,7 +1401,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202110_external_retailer_pages_by_retailer_id(retailer_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202110_external_retailer_pages_by_retailer_id: %s\n" % e) ``` @@ -1152,13 +1448,13 @@ Endpoint to search for a specific category by categoryId. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.category202204 import Category202204 +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1168,19 +1464,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -1189,7 +1485,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_api202204_external_categorie_by_category_id(category_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202204_external_categorie_by_category_id: %s\n" % e) ``` @@ -1238,13 +1534,13 @@ Endpoint to search categories by text and retailer. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.category202204_list_response import Category202204ListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1254,19 +1550,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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) @@ -1279,7 +1575,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->get_api202204_external_categories: %s\n" % e) ``` @@ -1315,12 +1611,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_api202207_external_account_by_account_id_creativescreative_id** -> Creative202207Response get_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id) +# **get_api202207_external_retailer_by_retailer_id_templatestemplate_id** +> TemplateResponse get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id) -Get the specified creative +Gets the template for the specified retailer id and template id ### Example @@ -1329,13 +1625,13 @@ Get the specified creative ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.creative202207_response import Creative202207Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1345,30 +1641,30 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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_account_by_account_id_creativescreative_id(account_id, creative_id) + api_response = api_instance.get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202207_external_account_by_account_id_creativescreative_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202207_external_retailer_by_retailer_id_templatestemplate_id: %s\n" % e) ``` @@ -1376,12 +1672,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| External account id to retrieve creatives for | - **creative_id** | **str**| Creative to get | + **retailer_id** | **int**| Retailer Id | + **template_id** | **int**| Template Id | ### Return type -[**Creative202207Response**](Creative202207Response.md) +[**TemplateResponse**](TemplateResponse.md) ### Authorization @@ -1397,16 +1693,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Creatives found | - | +**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_by_retailer_id_templatestemplate_id** -> TemplateResponse get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id) +# **get_api202207_external_retailer_templates_by_retailer_id** +> TemplateListResponse get_api202207_external_retailer_templates_by_retailer_id(retailer_id) -Gets the template for the specified retailer id and template id +Get retailer creative templates ### Example @@ -1415,13 +1711,13 @@ Gets the template for the specified retailer id and template id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.template_response import TemplateResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1431,30 +1727,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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_by_retailer_id_templatestemplate_id(retailer_id, template_id) + api_response = api_instance.get_api202207_external_retailer_templates_by_retailer_id(retailer_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202207_external_retailer_by_retailer_id_templatestemplate_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202207_external_retailer_templates_by_retailer_id: %s\n" % e) ``` @@ -1462,12 +1757,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **retailer_id** | **int**| Retailer Id | - **template_id** | **int**| Template Id | + **retailer_id** | **int**| External retailer id to retrieve creative templates for | ### Return type -[**TemplateResponse**](TemplateResponse.md) +[**TemplateListResponse**](TemplateListResponse.md) ### Authorization @@ -1483,16 +1777,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Template found for the retailer | - | +**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_api202207_external_retailer_templates_by_retailer_id** -> TemplateListResponse get_api202207_external_retailer_templates_by_retailer_id(retailer_id) +# **get_api202210_external_account_by_account_id_creativescreative_id** +> Creative202210Response get_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) -Get retailer creative templates +Get the specified creative ### Example @@ -1501,13 +1795,13 @@ Get retailer creative templates ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.template_list_response import TemplateListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1517,29 +1811,30 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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_api202207_external_retailer_templates_by_retailer_id(retailer_id) + api_response = api_instance.get_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202207_external_retailer_templates_by_retailer_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202210_external_account_by_account_id_creativescreative_id: %s\n" % e) ``` @@ -1547,11 +1842,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **retailer_id** | **int**| External retailer id to retrieve creative templates for | + **account_id** | **str**| External account id to retrieve creatives for | + **creative_id** | **str**| Creative to get | ### Return type -[**TemplateListResponse**](TemplateListResponse.md) +[**Creative202210Response**](Creative202210Response.md) ### Authorization @@ -1567,16 +1863,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Templates found | - | +**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_api_v1_external_account_brands_by_account_id** -> JsonApiPageResponseOfBrand get_api_v1_external_account_brands_by_account_id(account_id) +# **get_api202301_external_account_campaigns_by_account_id** +> JsonApiPageResponseOfCampaignV202301 get_api202301_external_account_campaigns_by_account_id(account_id) -Gets page of retailer objects that are associated with the given account +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 @@ -1585,13 +1881,13 @@ Gets page of retailer objects that are associated with the given account ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1601,42 +1897,42 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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 = 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) + 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_brands_by_account_id(account_id) + api_response = api_instance.get_api202301_external_account_campaigns_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_brands_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_api_v1_external_account_brands_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_brands_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_account_campaigns_by_account_id: %s\n" % e) ``` @@ -1644,14 +1940,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The given account id | + **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] - **page_size** | **int**| The maximum number of items you would like to receive in this request | [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 -[**JsonApiPageResponseOfBrand**](JsonApiPageResponseOfBrand.md) +[**JsonApiPageResponseOfCampaignV202301**](JsonApiPageResponseOfCampaignV202301.md) ### Authorization @@ -1671,12 +1967,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_api_v1_external_account_campaigns_by_account_id** -> JsonApiPageResponseOfCampaign get_api_v1_external_account_campaigns_by_account_id(account_id) +# **get_api202301_external_campaign_by_campaign_id** +> JsonApiSingleResponseOfCampaignV202301 get_api202301_external_campaign_by_campaign_id(campaign_id) -Gets page of campaign objects for the given account id +Get all the editable and creatable campaign attributes including all types of budgets given the campaign id ### Example @@ -1685,13 +1981,13 @@ Gets page of campaign objects for the given account id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_campaign import JsonApiPageResponseOfCampaign +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1701,42 +1997,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_campaigns_by_account_id(account_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_campaigns_by_account_id: %s\n" % e) + campaign_id = "campaignId_example" # str | Campaign Id of the campaign detail # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_api_v1_external_account_campaigns_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + api_response = api_instance.get_api202301_external_campaign_by_campaign_id(campaign_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_campaigns_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_campaign_by_campaign_id: %s\n" % e) ``` @@ -1744,14 +2027,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **campaign_id** | **str**| Campaign Id of the campaign detail | ### Return type -[**JsonApiPageResponseOfCampaign**](JsonApiPageResponseOfCampaign.md) +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) ### Authorization @@ -1771,12 +2051,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_api_v1_external_account_retailers_by_account_id** -> JsonApiPageResponseOfRetailer get_api_v1_external_account_retailers_by_account_id(account_id) +# **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) -Gets page of retailer objects that are associated with the given account +Get bid multipliers by line item ### Example @@ -1785,13 +2065,13 @@ Gets page of retailer objects that are associated with the given account ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1801,42 +2081,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_retailers_by_account_id: %s\n" % e) + 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 - # 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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_account_retailers_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_line_item_bid_multipliers_by_line_item_id: %s\n" % e) ``` @@ -1844,14 +2111,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **line_item_id** | **str**| Long external id of the associated line item | ### Return type -[**JsonApiPageResponseOfRetailer**](JsonApiPageResponseOfRetailer.md) +[**JsonApiSingleResponseOfLineItemBidMultipliers**](JsonApiSingleResponseOfLineItemBidMultipliers.md) ### Authorization @@ -1860,7 +2124,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -1871,12 +2135,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_api_v1_external_accounts** -> JsonApiPageResponseOfAccount get_api_v1_external_accounts() +# **get_api_v1_external_account_balances_by_account_id** +> BalanceResponsePagedListResponse get_api_v1_external_account_balances_by_account_id(account_id) -Gets page of account objects that the current user can access +Get page of balances for the given accountId. ### Example @@ -1885,13 +2149,13 @@ Gets page of account objects that the current user can access ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1901,34 +2165,42 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 = 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) + 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_v2023_10.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_accounts(limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_accounts: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_balances_by_account_id: %s\n" % e) ``` @@ -1936,13 +2208,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] - **page_size** | **int**| The maximum number of items you would like to receive in this request | [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 -[**JsonApiPageResponseOfAccount**](JsonApiPageResponseOfAccount.md) +[**BalanceResponsePagedListResponse**](BalanceResponsePagedListResponse.md) ### Authorization @@ -1962,12 +2235,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_api_v1_external_campaign_by_campaign_id** -> JsonApiSingleResponseOfCampaign get_api_v1_external_campaign_by_campaign_id(campaign_id) +# **get_api_v1_external_account_brands_by_account_id** +> JsonApiPageResponseOfBrand get_api_v1_external_account_brands_by_account_id(account_id) -Gets the campaign for the given campaign id +Gets page of retailer objects that are associated with the given account ### Example @@ -1976,13 +2249,13 @@ Gets the campaign for the given campaign id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -1992,29 +2265,42 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaignId_example" # str | The given campaign id + 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_10.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_campaign_by_campaign_id(campaign_id) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_campaign_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_brands_by_account_id: %s\n" % e) ``` @@ -2022,11 +2308,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | + **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 -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.md) +[**JsonApiPageResponseOfBrand**](JsonApiPageResponseOfBrand.md) ### Authorization @@ -2046,12 +2335,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_api_v1_external_catalog_output_by_catalog_id** -> get_api_v1_external_catalog_output_by_catalog_id(catalog_id) +# **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) -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. +Get a balance for the given account id and balance id ### Example @@ -2060,12 +2349,13 @@ Output the indicated catalog. Catalogs are only available for retrieval when the ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2075,28 +2365,30 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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. + 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_instance.get_api_v1_external_catalog_output_by_catalog_id(catalog_id) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_catalog_output_by_catalog_id: %s\n" % e) + 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_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) ``` @@ -2104,11 +2396,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalog_id** | **str**| A catalog ID returned from an account catalog request. | + **account_id** | **str**| The account of the balance | + **balance_id** | **str**| The balance id | ### Return type -void (empty response body) +[**BalanceResponse**](BalanceResponse.md) ### Authorization @@ -2117,24 +2410,23 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/x-json-stream, application/json + - **Accept**: 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. | - | +**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_status_by_catalog_id** -> JsonApiSingleResponseOfCatalogStatus get_api_v1_external_catalog_status_by_catalog_id(catalog_id) +# **get_api_v1_external_account_retailers_by_account_id** +> JsonApiPageResponseOfRetailer get_api_v1_external_account_retailers_by_account_id(account_id) -Check the status of a catalog request. +Gets page of retailer objects that are associated with the given account ### Example @@ -2143,13 +2435,13 @@ Check the status of a catalog request. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2159,29 +2451,42 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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. + 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_catalog_status_by_catalog_id(catalog_id) + api_response = api_instance.get_api_v1_external_account_retailers_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v1_external_catalog_status_by_catalog_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_retailers_by_account_id: %s\n" % e) ``` @@ -2189,11 +2494,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalog_id** | **str**| A catalog ID returned from an account catalog request. | + **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 -[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) +[**JsonApiPageResponseOfRetailer**](JsonApiPageResponseOfRetailer.md) ### Authorization @@ -2209,16 +2517,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Catalog request found. | - | +**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_account_line_items_by_account_id** -> CommonLineItemPagedListResponse get_api_v2_external_account_line_items_by_account_id(account_id) +# **get_api_v1_external_accounts** +> JsonApiPageResponseOfAccount get_api_v1_external_accounts() -Gets page of line item objects for the given account id +Gets page of account objects that the current user can access ### Example @@ -2227,13 +2535,13 @@ Gets page of line item objects for the given account id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2243,46 +2551,34 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_v2022_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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v2_external_account_line_items_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_accounts: %s\n" % e) ``` @@ -2290,16 +2586,13 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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) +[**JsonApiPageResponseOfAccount**](JsonApiPageResponseOfAccount.md) ### Authorization @@ -2319,12 +2612,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_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) +# **get_api_v1_external_catalog_output_by_catalog_id** +> get_api_v1_external_catalog_output_by_catalog_id(catalog_id) -Gets the auction line item for the given line item 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 @@ -2333,13 +2626,12 @@ Gets the auction line item for the given line item id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.auction_line_item_response import AuctionLineItemResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2349,29 +2641,28 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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_v2_external_auction_line_item_by_line_item_id(line_item_id) - pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) + api_instance.get_api_v1_external_catalog_output_by_catalog_id(catalog_id) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_catalog_output_by_catalog_id: %s\n" % e) ``` @@ -2379,11 +2670,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The given line item id | + **catalog_id** | **str**| A catalog ID returned from an account catalog request. | ### Return type -[**AuctionLineItemResponse**](AuctionLineItemResponse.md) +void (empty response body) ### Authorization @@ -2392,24 +2683,24 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/x-json-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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_v2_external_campaign_auction_line_items_by_campaign_id** -> AuctionLineItemPagedListResponse get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) +# **get_api_v1_external_catalog_status_by_catalog_id** +> JsonApiSingleResponseOfCatalogStatus get_api_v1_external_catalog_status_by_catalog_id(catalog_id) -Gets page of auction line item objects for the given campaign id +Check the status of a catalog request. ### Example @@ -2418,13 +2709,13 @@ Gets page of auction line item objects for the given campaign id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2434,42 +2725,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) + 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 - # 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) + api_response = api_instance.get_api_v1_external_catalog_status_by_catalog_id(catalog_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_catalog_status_by_catalog_id: %s\n" % e) ``` @@ -2477,14 +2755,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **catalog_id** | **str**| A catalog ID returned from an account catalog request. | ### Return type -[**AuctionLineItemPagedListResponse**](AuctionLineItemPagedListResponse.md) +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) ### Authorization @@ -2500,17 +2775,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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_line_item_by_line_item_id** -> CommonLineItemResponse get_api_v2_external_line_item_by_line_item_id(line_item_id) +# **get_api_v2_external_account_line_items_by_account_id** +> CommonLineItemPagedListResponse get_api_v2_external_account_line_items_by_account_id(account_id) -Gets the line item for the given line item id +Gets page of line item objects for the given account id ### Example @@ -2519,13 +2793,13 @@ Gets the line item for the given line item id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.common_line_item_response import CommonLineItemResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2535,41 +2809,63 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 + 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_line_item_by_line_item_id(line_item_id) + api_response = api_instance.get_api_v2_external_account_line_items_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->get_api_v2_external_line_item_by_line_item_id: %s\n" % e) -``` - - -### Parameters + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_account_line_items_by_account_id: %s\n" % e) -Name | Type | Description | Notes + # 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_10.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 ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The given line item id | + **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 -[**CommonLineItemResponse**](CommonLineItemResponse.md) +[**CommonLineItemPagedListResponse**](CommonLineItemPagedListResponse.md) ### Authorization @@ -2589,12 +2885,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) -# **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) +# **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) -This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. +Gets the auction line item for the given line item id ### Example @@ -2603,14 +2899,13 @@ This endpoint appends one or more keywords to targeting on the specified line it ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_response import KeywordTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2620,47 +2915,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_v2022_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) + line_item_id = "line-item-id_example" # str | The given line item id # 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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) ``` @@ -2668,12 +2945,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] + **line_item_id** | **str**| The given line item id | ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) ### Authorization @@ -2681,7 +2957,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json @@ -2694,12 +2970,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) -# **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) +# **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) -This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. +Gets page of auction line item objects for the given campaign id ### Example @@ -2708,14 +2984,13 @@ This endpoint removes one or more keywords from targeting on the specified line ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_request import KeywordTarget202110Request -from criteo_api_retailmedia_v2022_07.model.keyword_target202110_response import KeywordTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2725,47 +3000,42 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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) + 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.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) + api_response = api_instance.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) pprint(api_response) - except criteo_api_retailmedia_v2022_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) + except criteo_api_retailmedia_v2023_10.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.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) ``` @@ -2773,12 +3043,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] + **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 -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**AuctionLineItemPagedListResponse**](AuctionLineItemPagedListResponse.md) ### Authorization @@ -2786,7 +3058,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json @@ -2799,12 +3071,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) -# **post_api202110_external_balance_campaigns_append_by_balance_id** -> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) +# **get_api_v2_external_line_item_by_line_item_id** +> CommonLineItemResponse get_api_v2_external_line_item_by_line_item_id(line_item_id) -appends one or more campaigns to the specified balance +Gets the line item for the given line item id ### Example @@ -2813,14 +3085,13 @@ appends one or more campaigns to the specified balance ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2830,46 +3101,29 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) + line_item_id = "line-item-id_example" # str | The given line item id # 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) + api_response = api_instance.get_api_v2_external_line_item_by_line_item_id(line_item_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_line_item_by_line_item_id: %s\n" % e) ``` @@ -2877,12 +3131,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **line_item_id** | **str**| The given line item id | ### Return type -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) +[**CommonLineItemResponse**](CommonLineItemResponse.md) ### Authorization @@ -2890,7 +3143,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json @@ -2902,12 +3155,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) -# **post_api202110_external_balance_campaigns_delete_by_balance_id** -> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) +# **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) -Removes one or more campaigns on the specified balance +Modify a balance for the given account id ### Example @@ -2916,14 +3169,14 @@ Removes one or more campaigns on the specified balance ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2022_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.update_balance_model_request import UpdateBalanceModelRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -2933,46 +3186,52 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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={}, + 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", ), - ], - ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) + id="id_example", + type="type_example", + ), + ) # UpdateBalanceModelRequest | (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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->patch_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) ``` @@ -2980,12 +3239,13 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **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 -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) +[**BalanceResponse**](BalanceResponse.md) ### Authorization @@ -3005,12 +3265,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) -# **post_api202110_external_campaign_preferred_line_items_by_campaign_id** -> PreferredLineItem202110Response post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) +# **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) -Creates a new preferred line item with the specified settings +This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. ### Example @@ -3019,14 +3279,14 @@ Creates a new preferred line item with the specified settings ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3036,68 +3296,47 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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( + line_item_id = "line-item-id_example" # str | The line item to interact with + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( 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", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, ), ), - ) # PreferredLineItemCreateModel202110Request | The line item settings to create a line item with (optional) + ) # KeywordTarget202110Request | (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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_campaign_preferred_line_items_by_campaign_id(campaign_id, preferred_line_item_create_model202110_request=preferred_line_item_create_model202110_request) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) ``` @@ -3105,12 +3344,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **line_item_id** | **str**| The line item to interact with | + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3126,17 +3365,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success | - | +**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_line_item_products_append_by_line_item_id** -> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_append_by_line_item_id(line_item_id) +# **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 appends one or more products to promote on the specified line item. The resulting state of the line item is returned. +This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. ### Example @@ -3145,14 +3384,14 @@ This endpoint appends one or more products to promote on the specified line item ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3162,48 +3401,47 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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, - ), + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( + type="type_example", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, ), - ], - ) # PromotedProduct202110ListRequest | the products to append to this line item (optional) + ), + ) # KeywordTarget202110Request | (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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_line_item_products_append_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) ``` @@ -3212,11 +3450,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3233,15 +3471,16 @@ Name | Type | Description | Notes | 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_line_item_products_delete_by_line_item_id** -> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id) +# **post_api202110_external_balance_campaigns_append_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) -This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. +appends one or more campaigns to the specified balance ### Example @@ -3250,14 +3489,14 @@ This endpoint removes one or more products from promotion on the specified line ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3267,48 +3506,46 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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( + balance_id = "balance-id_example" # str | The balance to add campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( data=[ - ResourceOfPromotedProduct202110( + ResourceOfBalanceCampaign202110( id="id_example", type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, - ), + attributes={}, ), ], - ) # PromotedProduct202110ListRequest | (optional) + ) # 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_line_item_products_delete_by_line_item_id(line_item_id) + api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_line_item_products_delete_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) ``` @@ -3316,12 +3553,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| | [optional] + **balance_id** | **str**| The balance to add campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3341,12 +3578,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) -# **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) +# **post_api202110_external_balance_campaigns_delete_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) -This endpoint pauses one or more promoted products on a specified line item. +Removes one or more campaigns on the specified balance ### Example @@ -3355,13 +3592,14 @@ This endpoint pauses one or more promoted products on a specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3371,46 +3609,46 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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( + balance_id = "balance-id_example" # str | The balance to remove campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( data=[ - ResourceOfPromotedProduct202110( + ResourceOfBalanceCampaign202110( id="id_example", type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, - ), + attributes={}, ), ], - ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to pause. (optional) + ) # BalanceCampaign202110ListRequest | The campaigns to append (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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) + api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_10.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_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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) + 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_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) ``` @@ -3418,12 +3656,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **balance_id** | **str**| The balance to remove campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] ### Return type -void (empty response body) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3432,7 +3670,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -3443,12 +3681,12 @@ 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) -# **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) +# **post_api202110_external_campaign_preferred_line_items_by_campaign_id** +> PreferredLineItem202110Response post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) -This endpoint unpauses one or more promoted products on a specified line item. +Creates a new preferred line item with the specified settings ### Example @@ -3457,13 +3695,14 @@ This endpoint unpauses one or more promoted products on a specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3473,22 +3712,148 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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. + 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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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( @@ -3499,20 +3864,22 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: ), ), ], - ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to unpause. (optional) + ) # PromotedProduct202110ListRequest | the products to append to this line item (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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) + 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_10.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_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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) + 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_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) ``` @@ -3520,12 +3887,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **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 -void (empty response body) +[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) ### Authorization @@ -3534,7 +3901,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -3545,12 +3912,12 @@ 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) -# **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) +# **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 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. +This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. ### Example @@ -3559,14 +3926,14 @@ This endpoint appends one or more add to basket ids to targeting on the specifie ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3576,50 +3943,782 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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", + 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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_10.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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", ], ), ), - ) # AddToBasketIdsUpdateModel202110Request | Ids to append to the target (optional) + ) # 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_add_to_basket_append_by_line_item_id(line_item_id) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id: %s\n" % e) ``` @@ -3628,11 +4727,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **store_ids_update_model202110_request** | [**StoreIdsUpdateModel202110Request**](StoreIdsUpdateModel202110Request.md)| Store ids to append to the target | [optional] ### Return type -[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) +[**StoreTarget202110Response**](StoreTarget202110Response.md) ### Authorization @@ -3653,12 +4752,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) -# **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) +# **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 add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned. +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 @@ -3667,14 +4766,14 @@ This endpoint removes one or more add to basket ids from targeting on the specif ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3684,50 +4783,47 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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( + store_ids_update_model202110_request = StoreIdsUpdateModel202110Request( + data=ValueTypeResourceOfStoreIdsUpdateModel202110( type="type_example", - attributes=ExternalAddToBasketIdsUpdateModel202110( - product_ids=[ - "product_ids_example", - ], - category_ids=[ - "category_ids_example", + attributes=ExternalStoreIdsUpdateModel202110( + store_ids=[ + "store_ids_example", ], ), ), - ) # AddToBasketIdsUpdateModel202110Request | Ids to remove from the target (optional) + ) # 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_add_to_basket_delete_by_line_item_id(line_item_id) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id: %s\n" % e) ``` @@ -3736,11 +4832,11 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **store_ids_update_model202110_request** | [**StoreIdsUpdateModel202110Request**](StoreIdsUpdateModel202110Request.md)| Store ids to remove from the target | [optional] ### Return type -[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) +[**StoreTarget202110Response**](StoreTarget202110Response.md) ### Authorization @@ -3761,12 +4857,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) -# **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) +# **post_api202210_external_account_creatives_by_account_id** +> Creative202210Response post_api202210_external_account_creatives_by_account_id(account_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. +Create a creative for an account ### Example @@ -3775,14 +4871,14 @@ This endpoint appends one or more audiences ids to targeting on the specified li ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3792,47 +4888,67 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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", - ], + 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", + ), ), - ), - ) # AudienceIdsUpdateModel202110Request | Audience ids to append to the target (optional) + ], + ) # CreativeCreateModel202207 | The creative to create (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) + api_response = api_instance.post_api202210_external_account_creatives_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_by_account_id: %s\n" % e) ``` @@ -3840,12 +4956,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **account_id** | **str**| External account id to create a creative for | + **creative_create_model202207** | [**CreativeCreateModel202207**](CreativeCreateModel202207.md)| The creative to create | [optional] ### Return type -[**AudienceTarget202110Response**](AudienceTarget202110Response.md) +[**Creative202210Response**](Creative202210Response.md) ### Authorization @@ -3861,17 +4977,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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_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) +# **post_api202210_external_account_creatives_search_by_account_id** +> Creative202210ListResponse post_api202210_external_account_creatives_search_by_account_id(account_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. +Get account creatives ### Example @@ -3880,14 +4995,13 @@ This endpoint removes one or more audiences ids from targeting on the specified ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2022_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -3897,47 +5011,40 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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) + 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_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id(line_item_id) + api_response = api_instance.post_api202210_external_account_creatives_search_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_search_by_account_id: %s\n" % e) ``` @@ -3945,12 +5052,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **account_id** | **str**| External account id to retrieve creatives for | + **creative_ids** | **[str]**| Creatives to filter by | [optional] ### Return type -[**AudienceTarget202110Response**](AudienceTarget202110Response.md) +[**Creative202210ListResponse**](Creative202210ListResponse.md) ### Authorization @@ -3958,7 +5065,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json @@ -3966,17 +5073,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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_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) +# **post_api202301_external_account_campaigns_by_account_id** +> JsonApiSingleResponseOfCampaignV202301 post_api202301_external_account_campaigns_by_account_id(account_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. +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 @@ -3985,14 +5091,14 @@ This endpoint appends one or more store ids to targeting on the specified line i ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.post_campaign_v202301 import PostCampaignV202301 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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4002,47 +5108,59 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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( + account_id = "accountId_example" # str | The account to request the campaign for. + post_campaign_v202301 = PostCampaignV202301( + data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( type="type_example", - attributes=ExternalStoreIdsUpdateModel202110( - store_ids=[ - "store_ids_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", ), ), - ) # StoreIdsUpdateModel202110Request | Store ids to append to the target (optional) + ) # PostCampaignV202301 | Creatable campaign attributes (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) + api_response = api_instance.post_api202301_external_account_campaigns_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api202301_external_account_campaigns_by_account_id: %s\n" % e) ``` @@ -4050,12 +5168,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **account_id** | **str**| The account to request the campaign for. | + **post_campaign_v202301** | [**PostCampaignV202301**](PostCampaignV202301.md)| Creatable campaign attributes | [optional] ### Return type -[**StoreTarget202110Response**](StoreTarget202110Response.md) +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) ### Authorization @@ -4071,17 +5189,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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_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) +# **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) -This endpoint removes one or more store ids from targeting on the specified line item. The resulting state of the store target is returned. +Add funds to a balance for the given account id ### Example @@ -4090,14 +5207,14 @@ This endpoint removes one or more store ids from targeting on the specified line ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4107,47 +5224,49 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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", - ], + 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", ), - ) # StoreIdsUpdateModel202110Request | Store ids to remove from the target (optional) + ) # AddFundsToBalanceRequest | (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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.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_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) + 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_v2022_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) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_add_funds_by_account_id_and_balance_id: %s\n" % e) ``` @@ -4155,12 +5274,13 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **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 -[**StoreTarget202110Response**](StoreTarget202110Response.md) +[**BalanceResponse**](BalanceResponse.md) ### Authorization @@ -4177,16 +5297,15 @@ Name | Type | Description | Notes | 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_api202207_external_account_creatives_by_account_id** -> Creative202207Response post_api202207_external_account_creatives_by_account_id(account_id) +# **post_api_v1_external_account_balances_by_account_id** +> BalanceResponse post_api_v1_external_account_balances_by_account_id(account_id) -Create a creative for an account +Create balance for the given account id ### Example @@ -4195,14 +5314,14 @@ Create a creative for an account ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.creative_create_model202207 import CreativeCreateModel202207 -from criteo_api_retailmedia_v2022_07.model.creative202207_response import Creative202207Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.create_balance_request import CreateBalanceRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4212,67 +5331,53 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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", - ), + 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", ), - ], - ) # CreativeCreateModel202207 | The creative to create (optional) + 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_api202207_external_account_creatives_by_account_id(account_id) + api_response = api_instance.post_api_v1_external_account_balances_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202207_external_account_creatives_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_api202207_external_account_creatives_by_account_id(account_id, creative_create_model202207=creative_create_model202207) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202207_external_account_creatives_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_balances_by_account_id: %s\n" % e) ``` @@ -4280,12 +5385,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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] + **account_id** | **str**| The account to create balances for | + **create_balance_request** | [**CreateBalanceRequest**](CreateBalanceRequest.md)| | [optional] ### Return type -[**Creative202207Response**](Creative202207Response.md) +[**BalanceResponse**](BalanceResponse.md) ### Authorization @@ -4301,16 +5406,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Creatives created | - | +**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_campaigns_by_account_id** -> JsonApiSingleResponseOfCampaign post_api_v1_external_account_campaigns_by_account_id(account_id) +# **post_api_v1_external_account_catalogs_by_account_id** +> JsonApiSingleResponseOfCatalogStatus post_api_v1_external_account_catalogs_by_account_id(account_id) -Creates a new campaign with the specified settings +Create a request for a Catalog available to the indicated account. ### Example @@ -4319,14 +5424,14 @@ Creates a new campaign with the specified settings ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.external_post_campaign import ExternalPostCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4336,54 +5441,48 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 - external_post_campaign = ExternalPostCampaign( - data=JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign( + 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=ExternalCampaignAttributes( - type="auction", - drawable_balance_ids=[ - "drawable_balance_ids_example", + attributes=ExternalCatalogRequest( + format="json-newline", + brand_id_filter=[ + "brand_id_filter_example", ], - click_attribution_window="30D", - view_attribution_window="none", - name="name_example", - budget=3.14, - click_attribution_scope="unknown", - view_attribution_scope="unknown", ), ), - ) # ExternalPostCampaign | The campaign settings to create a campaign with (optional) + ) # JsonApiRequestOfCatalogRequest | (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api_v1_external_account_campaigns_by_account_id(account_id) + api_response = api_instance.post_api_v1_external_account_catalogs_by_account_id(account_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_external_account_campaigns_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_campaigns_by_account_id(account_id, external_post_campaign=external_post_campaign) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_external_account_campaigns_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_catalogs_by_account_id: %s\n" % e) ``` @@ -4391,12 +5490,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The given account id | - **external_post_campaign** | [**ExternalPostCampaign**](ExternalPostCampaign.md)| The campaign settings to create a campaign with | [optional] + **account_id** | **str**| The account to request the catalog for. | + **json_api_request_of_catalog_request** | [**JsonApiRequestOfCatalogRequest**](JsonApiRequestOfCatalogRequest.md)| | [optional] ### Return type -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.md) +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) ### Authorization @@ -4412,17 +5511,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success | - | -**200** | OK | - | +**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_v1_external_account_catalogs_by_account_id** -> JsonApiSingleResponseOfCatalogStatus post_api_v1_external_account_catalogs_by_account_id(account_id) +# **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) -Create a request for a Catalog available to the indicated account. +Change dates of a balance for the given account id ### Example @@ -4431,14 +5529,14 @@ Create a request for a Catalog available to the indicated account. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus -from criteo_api_retailmedia_v2022_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4448,48 +5546,49 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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", - ], + 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", ), - ) # JsonApiRequestOfCatalogRequest | (optional) + ) # ChangeDatesOfBalanceRequest | (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) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_external_account_catalogs_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_catalogs_by_account_id(account_id, json_api_request_of_catalog_request=json_api_request_of_catalog_request) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->post_api_v1_external_account_catalogs_by_account_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_change_dates_by_account_id_and_balance_id: %s\n" % e) ``` @@ -4497,12 +5596,13 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The account to request the catalog for. | - **json_api_request_of_catalog_request** | [**JsonApiRequestOfCatalogRequest**](JsonApiRequestOfCatalogRequest.md)| | [optional] + **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 -[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) +[**BalanceResponse**](BalanceResponse.md) ### Authorization @@ -4518,7 +5618,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Catalog request successfully created | - | +**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) @@ -4536,14 +5636,14 @@ Creates new auction line item with the specified settings ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest -from criteo_api_retailmedia_v2022_07.model.auction_line_item_response import AuctionLineItemResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4553,19 +5653,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -4593,7 +5693,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -4601,7 +5701,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->post_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) ``` @@ -4650,14 +5750,14 @@ Updates the preferred line item for the given line item id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2022_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2023_10.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request 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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4667,19 +5767,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -4719,7 +5819,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -4727,7 +5827,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) ``` @@ -4776,14 +5876,14 @@ This endpoint sets the scope of the add to basket target on the specified line i ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response -from criteo_api_retailmedia_v2022_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4793,19 +5893,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -4828,7 +5928,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -4836,7 +5936,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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) ``` @@ -4885,14 +5985,14 @@ This endpoint sets the scope of the audience target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.audience_target202110_request import AudienceTarget202110Request -from criteo_api_retailmedia_v2022_07.model.audience_target202110_response import AudienceTarget202110Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request 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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -4902,19 +6002,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -4934,7 +6034,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -4942,7 +6042,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) ``` @@ -4991,14 +6091,14 @@ This endpoint sets the scope of the store target on the specified line item. ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.store_target202110_response import StoreTarget202110Response -from criteo_api_retailmedia_v2022_07.model.store_target202110_request import StoreTarget202110Request +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -5008,19 +6108,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -5040,7 +6140,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -5048,7 +6148,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id: %s\n" % e) ``` @@ -5083,8 +6183,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) -# **put_api202207_external_account_by_account_id_creativescreative_id** -> Creative202207Response put_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id) +# **put_api202210_external_account_by_account_id_creativescreative_id** +> Creative202210Response put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) @@ -5097,14 +6197,14 @@ Update a creative ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.creative_update_model202207 import CreativeUpdateModel202207 -from criteo_api_retailmedia_v2022_07.model.creative202207_response import Creative202207Response +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -5114,19 +6214,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -5164,18 +6264,18 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set try: - api_response = api_instance.put_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id) + api_response = api_instance.put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->put_api202207_external_account_by_account_id_creativescreative_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_api202207_external_account_by_account_id_creativescreative_id(account_id, creative_id, creative_update_model202207=creative_update_model202207) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->put_api202207_external_account_by_account_id_creativescreative_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->put_api202210_external_account_by_account_id_creativescreative_id: %s\n" % e) ``` @@ -5189,7 +6289,7 @@ Name | Type | Description | Notes ### Return type -[**Creative202207Response**](Creative202207Response.md) +[**Creative202210Response**](Creative202210Response.md) ### Authorization @@ -5210,12 +6310,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) -# **put_api_v1_external_campaign_by_campaign_id** -> JsonApiSingleResponseOfCampaign put_api_v1_external_campaign_by_campaign_id(campaign_id) +# **put_api202301_external_campaign_by_campaign_id** +> JsonApiSingleResponseOfCampaignV202301 put_api202301_external_campaign_by_campaign_id(campaign_id) -Updates the campaign for the given 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 @@ -5224,14 +6324,14 @@ Updates the campaign for the given campaign id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.external_put_campaign import ExternalPutCampaign -from criteo_api_retailmedia_v2022_07.model.json_api_single_response_of_campaign import JsonApiSingleResponseOfCampaign +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_10.model.put_campaign_v202301 import PutCampaignV202301 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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -5241,51 +6341,56 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaignId_example" # str | The given campaign id - external_put_campaign = ExternalPutCampaign( - data=JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign( + campaign_id = "campaignId_example" # str | Campaign Id of the updating campaign + put_campaign_v202301 = PutCampaignV202301( + data=JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301( id="id_example", type="type_example", - attributes=ExternalEditableCampaignAttributes( + 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", + view_attribution_window="None", click_attribution_scope="unknown", view_attribution_scope="unknown", ), ), - ) # ExternalPutCampaign | The campaign settings to update that campaign with (optional) + ) # PutCampaignV202301 | Editable campaign attributes (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.put_api_v1_external_campaign_by_campaign_id(campaign_id) + api_response = api_instance.put_api202301_external_campaign_by_campaign_id(campaign_id) pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->put_api_v1_external_campaign_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.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_api_v1_external_campaign_by_campaign_id(campaign_id, external_put_campaign=external_put_campaign) + 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_v2022_07.ApiException as e: - print("Exception when calling CampaignApi->put_api_v1_external_campaign_by_campaign_id: %s\n" % e) + except criteo_api_retailmedia_v2023_10.ApiException as e: + print("Exception when calling CampaignApi->put_api202301_external_campaign_by_campaign_id: %s\n" % e) ``` @@ -5293,12 +6398,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | - **external_put_campaign** | [**ExternalPutCampaign**](ExternalPutCampaign.md)| The campaign settings to update that campaign with | [optional] + **campaign_id** | **str**| Campaign Id of the updating campaign | + **put_campaign_v202301** | [**PutCampaignV202301**](PutCampaignV202301.md)| Editable campaign attributes | [optional] ### Return type -[**JsonApiSingleResponseOfCampaign**](JsonApiSingleResponseOfCampaign.md) +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) ### Authorization @@ -5310,6 +6415,116 @@ 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) + +# **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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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 | @@ -5332,14 +6547,14 @@ Updates the auction line item for the given line item id ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import campaign_api -from criteo_api_retailmedia_v2022_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest -from criteo_api_retailmedia_v2022_07.model.auction_line_item_response import AuctionLineItemResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -5349,19 +6564,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.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 @@ -5389,7 +6604,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.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 @@ -5397,7 +6612,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: 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_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling CampaignApi->put_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) ``` @@ -5432,3 +6647,199 @@ 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) +# **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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from criteo_api_retailmedia_v2023_10.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_10.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_10 +from criteo_api_retailmedia_v2023_10.api import campaign_api +from criteo_api_retailmedia_v2023_10.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_10.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_10.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_10.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_10.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_10.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_2022-07/docs/ExternalCampaignAttributes.md b/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md similarity index 76% rename from sdks/retailmedia_2022-07/docs/ExternalCampaignAttributes.md rename to sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md index fccc0b24..99f37c10 100644 --- a/sdks/retailmedia_2022-07/docs/ExternalCampaignAttributes.md +++ b/sdks/retailmedia_2023-10/docs/CampaignAttributesV202301.md @@ -1,4 +1,4 @@ -# ExternalCampaignAttributes +# CampaignAttributesV202301 An object that represents the available options to set when creating a Retail Media Campaign @@ -6,11 +6,16 @@ An object that represents the available options to set when creating a Retail Me 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" +**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] diff --git a/sdks/retailmedia_2022-10/docs/ExternalCampaign.md b/sdks/retailmedia_2023-10/docs/CampaignV202301.md similarity index 80% rename from sdks/retailmedia_2022-10/docs/ExternalCampaign.md rename to sdks/retailmedia_2023-10/docs/CampaignV202301.md index 15ad7d23..e66a6ea4 100644 --- a/sdks/retailmedia_2022-10/docs/ExternalCampaign.md +++ b/sdks/retailmedia_2023-10/docs/CampaignV202301.md @@ -1,4 +1,4 @@ -# ExternalCampaign +# CampaignV202301 A Retail Media Campaign used to represent an advertiser's marketing objective @@ -12,12 +12,17 @@ Name | Type | Description | Notes **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" +**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] diff --git a/sdks/retailmedia_2022-07/docs/Category202204.md b/sdks/retailmedia_2023-10/docs/Category202204.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Category202204.md rename to sdks/retailmedia_2023-10/docs/Category202204.md diff --git a/sdks/retailmedia_2022-07/docs/Category202204ListResponse.md b/sdks/retailmedia_2023-10/docs/Category202204ListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Category202204ListResponse.md rename to sdks/retailmedia_2023-10/docs/Category202204ListResponse.md diff --git a/sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md b/sdks/retailmedia_2023-10/docs/ChangeDatesOfBalanceRequest.md similarity index 100% rename from sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md rename to sdks/retailmedia_2023-10/docs/ChangeDatesOfBalanceRequest.md diff --git a/sdks/retailmedia_2022-07/docs/ChoiceOption.md b/sdks/retailmedia_2023-10/docs/ChoiceOption.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ChoiceOption.md rename to sdks/retailmedia_2023-10/docs/ChoiceOption.md diff --git a/sdks/retailmedia_2022-07/docs/ChoiceVariableSpecification.md b/sdks/retailmedia_2023-10/docs/ChoiceVariableSpecification.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ChoiceVariableSpecification.md rename to sdks/retailmedia_2023-10/docs/ChoiceVariableSpecification.md diff --git a/sdks/retailmedia_2022-07/docs/ChoiceVariableValue.md b/sdks/retailmedia_2023-10/docs/ChoiceVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ChoiceVariableValue.md rename to sdks/retailmedia_2023-10/docs/ChoiceVariableValue.md diff --git a/sdks/retailmedia_2022-07/docs/ColorVariableValue.md b/sdks/retailmedia_2023-10/docs/ColorVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ColorVariableValue.md rename to sdks/retailmedia_2023-10/docs/ColorVariableValue.md diff --git a/sdks/retailmedia_2022-07/docs/CommonError.md b/sdks/retailmedia_2023-10/docs/CommonError.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CommonError.md rename to sdks/retailmedia_2023-10/docs/CommonError.md diff --git a/sdks/retailmedia_2022-07/docs/CommonLineItemPagedListResponse.md b/sdks/retailmedia_2023-10/docs/CommonLineItemPagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CommonLineItemPagedListResponse.md rename to sdks/retailmedia_2023-10/docs/CommonLineItemPagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/CommonLineItemResponse.md b/sdks/retailmedia_2023-10/docs/CommonLineItemResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CommonLineItemResponse.md rename to sdks/retailmedia_2023-10/docs/CommonLineItemResponse.md diff --git a/sdks/marketingsolutions_2022-10/docs/CommonProblem.md b/sdks/retailmedia_2023-10/docs/CommonProblem.md similarity index 100% rename from sdks/marketingsolutions_2022-10/docs/CommonProblem.md rename to sdks/retailmedia_2023-10/docs/CommonProblem.md diff --git a/sdks/retailmedia_2023-10/docs/CommonStatusCodeResponse.md b/sdks/retailmedia_2023-10/docs/CommonStatusCodeResponse.md new file mode 100644 index 00000000..cac2c345 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/CommonStatusCodeResponse.md @@ -0,0 +1,14 @@ +# CommonStatusCodeResponse + +Commonly Returned Problem Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | errors | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](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_2022-07/docs/CommonWarning.md b/sdks/retailmedia_2023-10/docs/CommonWarning.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CommonWarning.md rename to sdks/retailmedia_2023-10/docs/CommonWarning.md diff --git a/sdks/retailmedia_preview/docs/CreateBalanceRequest.md b/sdks/retailmedia_2023-10/docs/CreateBalanceRequest.md similarity index 100% rename from sdks/retailmedia_preview/docs/CreateBalanceRequest.md rename to sdks/retailmedia_2023-10/docs/CreateBalanceRequest.md diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudience.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudience.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreateRetailMediaAudience.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudience.md diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceAttributes.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceAttributes.md diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceBody.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceBody.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceBody.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceBody.md diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceRequest.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceRequest.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceRequest.md diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceResponse.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceResponse.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceResponse.md diff --git a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2.md similarity index 100% rename from sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2.md diff --git a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Attributes.md similarity index 100% rename from sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Attributes.md diff --git a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Data.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Data.md similarity index 100% rename from sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Data.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Data.md diff --git a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Request.md b/sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Request.md similarity index 100% rename from sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Request.md rename to sdks/retailmedia_2023-10/docs/CreateRetailMediaAudienceV2Request.md diff --git a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-10/docs/CreateUserBehaviorSegmentV2.md similarity index 64% rename from sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md rename to sdks/retailmedia_2023-10/docs/CreateUserBehaviorSegmentV2.md index 7eb6f422..4beefdc0 100644 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2023-10/docs/CreateUserBehaviorSegmentV2.md @@ -1,16 +1,16 @@ -# CreateRetailMediaAudienceAttributes +# CreateUserBehaviorSegmentV2 -Parameters needed to create an audience +Inclusive and exclusive segments of a user behavior audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_type** | **str** | Type of the user | +**user_action** | **str** | Type of shopper activity used to generate the audience. | **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], none_type** | The brands to target | [optional] **category_ids** | **[int], none_type** | The categories to target | [optional] +**brand_ids** | **[int], none_type** | The brands to target | [optional] +**min_price** | **float, none_type** | The min price of targeted skus. | [optional] [readonly] +**max_price** | **float, none_type** | 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_2022-07/docs/Creative202110.md b/sdks/retailmedia_2023-10/docs/Creative202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Creative202110.md rename to sdks/retailmedia_2023-10/docs/Creative202110.md diff --git a/sdks/retailmedia_2022-07/docs/Creative202110ListResponse.md b/sdks/retailmedia_2023-10/docs/Creative202110ListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Creative202110ListResponse.md rename to sdks/retailmedia_2023-10/docs/Creative202110ListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/Creative202207.md b/sdks/retailmedia_2023-10/docs/Creative202210.md similarity index 78% rename from sdks/retailmedia_2022-07/docs/Creative202207.md rename to sdks/retailmedia_2023-10/docs/Creative202210.md index 013a42d3..8557f68a 100644 --- a/sdks/retailmedia_2022-07/docs/Creative202207.md +++ b/sdks/retailmedia_2023-10/docs/Creative202210.md @@ -1,4 +1,4 @@ -# Creative202207 +# Creative202210 A creative entity @@ -8,8 +8,11 @@ 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** | **[str]** | Environment type (e.g. mobile, web, app) | +**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] diff --git a/sdks/retailmedia_2022-10/docs/Creative202110ListResponse.md b/sdks/retailmedia_2023-10/docs/Creative202210ListResponse.md similarity index 84% rename from sdks/retailmedia_2022-10/docs/Creative202110ListResponse.md rename to sdks/retailmedia_2023-10/docs/Creative202210ListResponse.md index 58278924..31ab557e 100644 --- a/sdks/retailmedia_2022-10/docs/Creative202110ListResponse.md +++ b/sdks/retailmedia_2023-10/docs/Creative202210ListResponse.md @@ -1,11 +1,11 @@ -# Creative202110ListResponse +# Creative202210ListResponse Data model for a list of response resources ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[ResourceOfCreative202110]**](ResourceOfCreative202110.md) | | [optional] +**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] diff --git a/sdks/retailmedia_2022-07/docs/Creative202207Response.md b/sdks/retailmedia_2023-10/docs/Creative202210Response.md similarity index 85% rename from sdks/retailmedia_2022-07/docs/Creative202207Response.md rename to sdks/retailmedia_2023-10/docs/Creative202210Response.md index 451d5ef0..1a9c0135 100644 --- a/sdks/retailmedia_2022-07/docs/Creative202207Response.md +++ b/sdks/retailmedia_2023-10/docs/Creative202210Response.md @@ -1,11 +1,11 @@ -# Creative202207Response +# Creative202210Response Data model for response resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ResourceOfCreative202207**](ResourceOfCreative202207.md) | | [optional] +**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] diff --git a/sdks/retailmedia_2022-07/docs/CreativeCreateModel202207.md b/sdks/retailmedia_2023-10/docs/CreativeCreateModel202207.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreativeCreateModel202207.md rename to sdks/retailmedia_2023-10/docs/CreativeCreateModel202207.md diff --git a/sdks/retailmedia_2022-07/docs/CreativeUpdateModel202207.md b/sdks/retailmedia_2023-10/docs/CreativeUpdateModel202207.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CreativeUpdateModel202207.md rename to sdks/retailmedia_2023-10/docs/CreativeUpdateModel202207.md diff --git a/sdks/retailmedia_2022-07/docs/CustomerListDetails.md b/sdks/retailmedia_2023-10/docs/CustomerListDetails.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/CustomerListDetails.md rename to sdks/retailmedia_2023-10/docs/CustomerListDetails.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalEditableCampaignAttributes.md b/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md similarity index 74% rename from sdks/retailmedia_2022-07/docs/ExternalEditableCampaignAttributes.md rename to sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md index 348b89ee..1230c9a8 100644 --- a/sdks/retailmedia_2022-07/docs/ExternalEditableCampaignAttributes.md +++ b/sdks/retailmedia_2023-10/docs/EditableCampaignAttributesV202301.md @@ -1,4 +1,4 @@ -# ExternalEditableCampaignAttributes +# EditableCampaignAttributesV202301 An object that represents the available options to set when editing a Retail Media Campaign @@ -6,9 +6,14 @@ An object that represents the available options to set when editing a Retail Med 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] diff --git a/sdks/retailmedia_2022-07/docs/ExternalAccount.md b/sdks/retailmedia_2023-10/docs/ExternalAccount.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAccount.md rename to sdks/retailmedia_2023-10/docs/ExternalAccount.md diff --git a/sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md b/sdks/retailmedia_2023-10/docs/ExternalAddFundsToBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md rename to sdks/retailmedia_2023-10/docs/ExternalAddFundsToBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ExternalAddToBasketIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAddToBasketIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ExternalAddToBasketIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAddToBasketTarget202110.md b/sdks/retailmedia_2023-10/docs/ExternalAddToBasketTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAddToBasketTarget202110.md rename to sdks/retailmedia_2023-10/docs/ExternalAddToBasketTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAuctionLineItem.md b/sdks/retailmedia_2023-10/docs/ExternalAuctionLineItem.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAuctionLineItem.md rename to sdks/retailmedia_2023-10/docs/ExternalAuctionLineItem.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAuctionLineItemCreateModel.md b/sdks/retailmedia_2023-10/docs/ExternalAuctionLineItemCreateModel.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAuctionLineItemCreateModel.md rename to sdks/retailmedia_2023-10/docs/ExternalAuctionLineItemCreateModel.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAuctionLineItemUpdateModel.md b/sdks/retailmedia_2023-10/docs/ExternalAuctionLineItemUpdateModel.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAuctionLineItemUpdateModel.md rename to sdks/retailmedia_2023-10/docs/ExternalAuctionLineItemUpdateModel.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ExternalAudienceIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAudienceIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ExternalAudienceIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalAudienceTarget202110.md b/sdks/retailmedia_2023-10/docs/ExternalAudienceTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalAudienceTarget202110.md rename to sdks/retailmedia_2023-10/docs/ExternalAudienceTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-10/docs/ExternalBalance202110.md similarity index 88% rename from sdks/retailmedia_2022-07/docs/ExternalBalance202110.md rename to sdks/retailmedia_2023-10/docs/ExternalBalance202110.md index 77ad10c5..e293b348 100644 --- a/sdks/retailmedia_2022-07/docs/ExternalBalance202110.md +++ b/sdks/retailmedia_2023-10/docs/ExternalBalance202110.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **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** | | +**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../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_2023-10/docs/ExternalBalanceResponse.md similarity index 100% rename from sdks/retailmedia_preview/docs/ExternalBalanceResponse.md rename to sdks/retailmedia_2023-10/docs/ExternalBalanceResponse.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalBrand.md b/sdks/retailmedia_2023-10/docs/ExternalBrand.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalBrand.md rename to sdks/retailmedia_2023-10/docs/ExternalBrand.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalCatalogRequest.md b/sdks/retailmedia_2023-10/docs/ExternalCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalCatalogRequest.md rename to sdks/retailmedia_2023-10/docs/ExternalCatalogRequest.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalCatalogStatus.md b/sdks/retailmedia_2023-10/docs/ExternalCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalCatalogStatus.md rename to sdks/retailmedia_2023-10/docs/ExternalCatalogStatus.md diff --git a/sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md b/sdks/retailmedia_2023-10/docs/ExternalChangeDatesOfBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md rename to sdks/retailmedia_2023-10/docs/ExternalChangeDatesOfBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalCommonLineItem.md b/sdks/retailmedia_2023-10/docs/ExternalCommonLineItem.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalCommonLineItem.md rename to sdks/retailmedia_2023-10/docs/ExternalCommonLineItem.md diff --git a/sdks/retailmedia_preview/docs/ExternalCreateBalance.md b/sdks/retailmedia_2023-10/docs/ExternalCreateBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ExternalCreateBalance.md rename to sdks/retailmedia_2023-10/docs/ExternalCreateBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalKeywordTarget202110.md b/sdks/retailmedia_2023-10/docs/ExternalKeywordTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalKeywordTarget202110.md rename to sdks/retailmedia_2023-10/docs/ExternalKeywordTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalLineItemCapping202110.md b/sdks/retailmedia_2023-10/docs/ExternalLineItemCapping202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalLineItemCapping202110.md rename to sdks/retailmedia_2023-10/docs/ExternalLineItemCapping202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalLineItemPage202110.md b/sdks/retailmedia_2023-10/docs/ExternalLineItemPage202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalLineItemPage202110.md rename to sdks/retailmedia_2023-10/docs/ExternalLineItemPage202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalLineItemPageCategory202110.md b/sdks/retailmedia_2023-10/docs/ExternalLineItemPageCategory202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalLineItemPageCategory202110.md rename to sdks/retailmedia_2023-10/docs/ExternalLineItemPageCategory202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalPreferredLineItem202110.md b/sdks/retailmedia_2023-10/docs/ExternalPreferredLineItem202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalPreferredLineItem202110.md rename to sdks/retailmedia_2023-10/docs/ExternalPreferredLineItem202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2023-10/docs/ExternalPreferredLineItemCreateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalPreferredLineItemCreateModel202110.md rename to sdks/retailmedia_2023-10/docs/ExternalPreferredLineItemCreateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ExternalPreferredLineItemUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalPreferredLineItemUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ExternalPreferredLineItemUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalPromotedProduct202110.md b/sdks/retailmedia_2023-10/docs/ExternalPromotedProduct202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalPromotedProduct202110.md rename to sdks/retailmedia_2023-10/docs/ExternalPromotedProduct202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalRetailer.md b/sdks/retailmedia_2023-10/docs/ExternalRetailer.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalRetailer.md rename to sdks/retailmedia_2023-10/docs/ExternalRetailer.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalRetailerPages202110.md b/sdks/retailmedia_2023-10/docs/ExternalRetailerPages202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalRetailerPages202110.md rename to sdks/retailmedia_2023-10/docs/ExternalRetailerPages202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalStoreIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ExternalStoreIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalStoreIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ExternalStoreIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalStoreTarget202110.md b/sdks/retailmedia_2023-10/docs/ExternalStoreTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ExternalStoreTarget202110.md rename to sdks/retailmedia_2023-10/docs/ExternalStoreTarget202110.md diff --git a/sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md b/sdks/retailmedia_2023-10/docs/ExternalUpdateBalanceModel.md similarity index 100% rename from sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md rename to sdks/retailmedia_2023-10/docs/ExternalUpdateBalanceModel.md diff --git a/sdks/retailmedia_2022-07/docs/FilesVariableValue.md b/sdks/retailmedia_2023-10/docs/FilesVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/FilesVariableValue.md rename to sdks/retailmedia_2023-10/docs/FilesVariableValue.md diff --git a/sdks/retailmedia_2022-07/docs/FilesVariablesSpecification.md b/sdks/retailmedia_2023-10/docs/FilesVariablesSpecification.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/FilesVariablesSpecification.md rename to sdks/retailmedia_2023-10/docs/FilesVariablesSpecification.md diff --git a/sdks/retailmedia_2022-07/docs/GatewayApi.md b/sdks/retailmedia_2023-10/docs/GatewayApi.md similarity index 80% rename from sdks/retailmedia_2022-07/docs/GatewayApi.md rename to sdks/retailmedia_2023-10/docs/GatewayApi.md index e411bb14..63327ee2 100644 --- a/sdks/retailmedia_2022-07/docs/GatewayApi.md +++ b/sdks/retailmedia_2023-10/docs/GatewayApi.md @@ -1,10 +1,10 @@ -# criteo_api_retailmedia_v2022_07.GatewayApi +# criteo_api_retailmedia_v2023_10.GatewayApi All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2022-07/retail-media/me | +[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2023-10/retail-media/me | # **get_current_application** @@ -21,13 +21,13 @@ Get information about the currently logged application ```python import time -import criteo_api_retailmedia_v2022_07 -from criteo_api_retailmedia_v2022_07.api import gateway_api -from criteo_api_retailmedia_v2022_07.model.application_summary_model_response import ApplicationSummaryModelResponse +import criteo_api_retailmedia_v2023_10 +from criteo_api_retailmedia_v2023_10.api import gateway_api +from criteo_api_retailmedia_v2023_10.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_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) @@ -37,19 +37,19 @@ configuration = criteo_api_retailmedia_v2022_07.Configuration( # satisfies your auth use case. # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.Configuration( host = "https://api.criteo.com" ) configuration.access_token = 'YOUR_ACCESS_TOKEN' # Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2022_07.Configuration( +configuration = criteo_api_retailmedia_v2023_10.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_v2022_07.ApiClient(configuration) as api_client: +with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = gateway_api.GatewayApi(api_client) @@ -57,7 +57,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: try: api_response = api_instance.get_current_application() pprint(api_response) - except criteo_api_retailmedia_v2022_07.ApiException as e: + except criteo_api_retailmedia_v2023_10.ApiException as e: print("Exception when calling GatewayApi->get_current_application: %s\n" % e) ``` diff --git a/sdks/retailmedia_2022-07/docs/GetPageOfAudiencesByAccountIdResponse.md b/sdks/retailmedia_2023-10/docs/GetPageOfAudiencesByAccountIdResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/GetPageOfAudiencesByAccountIdResponse.md rename to sdks/retailmedia_2023-10/docs/GetPageOfAudiencesByAccountIdResponse.md diff --git a/sdks/retailmedia_2022-07/docs/HyperlinkVariableValue.md b/sdks/retailmedia_2023-10/docs/HyperlinkVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/HyperlinkVariableValue.md rename to sdks/retailmedia_2023-10/docs/HyperlinkVariableValue.md diff --git a/sdks/retailmedia_2022-07/docs/InputResourceOfAuctionLineItemCreateModel.md b/sdks/retailmedia_2023-10/docs/InputResourceOfAuctionLineItemCreateModel.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/InputResourceOfAuctionLineItemCreateModel.md rename to sdks/retailmedia_2023-10/docs/InputResourceOfAuctionLineItemCreateModel.md diff --git a/sdks/retailmedia_2022-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2023-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md rename to sdks/retailmedia_2023-10/docs/InputResourceOfPreferredLineItemCreateModel202110.md diff --git a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md similarity index 76% rename from sdks/retailmedia_2022-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md index bb591bc0..36b0d614 100644 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md @@ -1,4 +1,4 @@ -# JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign +# JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 A JSON:API wrapper class to format a with external Id, Type, and Attributes properties @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **type** | **str** | | -**attributes** | [**ExternalEditableCampaignAttributes**](ExternalEditableCampaignAttributes.md) | | [optional] +**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_2022-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md diff --git a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md similarity index 83% rename from sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md index c8dbad7d..47983907 100644 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md @@ -1,4 +1,4 @@ -# JsonApiBodyWithIdOfInt64AndAccountAndAccount +# JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 A JSON:API wrapper class to format a with external Id, Type, and Attributes properties @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **type** | **str** | | -**attributes** | [**ExternalAccount**](ExternalAccount.md) | | [optional] +**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_2022-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md diff --git a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md similarity index 67% rename from sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md index 02ed14d0..c7cfd79b 100644 --- a/sdks/retailmedia_2022-10/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md @@ -1,13 +1,13 @@ -# JsonApiBodyWithIdOfInt64AndBrandAndBrand +# JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers -A JSON:API wrapper class to format a with external Id, Type, and Attributes properties +Response object for line item bid multiplier calls ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **type** | **str** | | -**attributes** | [**ExternalBrand**](ExternalBrand.md) | | [optional] +**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_2022-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md similarity index 78% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md index f7e20d9d..0d2a01f4 100644 --- a/sdks/retailmedia_2022-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md @@ -1,4 +1,4 @@ -# JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign +# JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 A JSON:API wrapper class to format a with Type, and Attributes properties @@ -6,7 +6,7 @@ A JSON:API wrapper class to format a with Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**attributes** | [**ExternalCampaignAttributes**](ExternalCampaignAttributes.md) | | [optional] +**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_2022-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md b/sdks/retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md rename to sdks/retailmedia_2023-10/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfAccount.md b/sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfAccount.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfAccount.md rename to sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfAccount.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfBrand.md b/sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfBrand.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfBrand.md rename to sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfBrand.md diff --git a/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfBrand.md b/sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfCampaignV202301.md similarity index 73% rename from sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfBrand.md rename to sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfCampaignV202301.md index dfa51604..27d5f348 100644 --- a/sdks/retailmedia_2022-10/docs/JsonApiPageResponseOfBrand.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfCampaignV202301.md @@ -1,14 +1,14 @@ -# JsonApiPageResponseOfBrand +# JsonApiPageResponseOfCampaignV202301 A wrapper class to return a single page of with metadata ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[JsonApiBodyWithIdOfInt64AndBrandAndBrand]**](JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) | | +**metadata** | [**PageMetadata**](PageMetadata.md) | | +**data** | [**[JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]**](JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.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_2022-07/docs/JsonApiPageResponseOfRetailer.md b/sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfRetailer.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiPageResponseOfRetailer.md rename to sdks/retailmedia_2023-10/docs/JsonApiPageResponseOfRetailer.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiRequestOfCatalogRequest.md b/sdks/retailmedia_2023-10/docs/JsonApiRequestOfCatalogRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiRequestOfCatalogRequest.md rename to sdks/retailmedia_2023-10/docs/JsonApiRequestOfCatalogRequest.md diff --git a/sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCatalogStatus.md b/sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfCampaignV202301.md similarity index 78% rename from sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCatalogStatus.md rename to sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfCampaignV202301.md index 063bf069..90f74e61 100644 --- a/sdks/retailmedia_2022-10/docs/JsonApiSingleResponseOfCatalogStatus.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfCampaignV202301.md @@ -1,11 +1,11 @@ -# JsonApiSingleResponseOfCatalogStatus +# JsonApiSingleResponseOfCampaignV202301 A JSON:API wrapper class to add one JSON:API within a data property ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus**](JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.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] diff --git a/sdks/retailmedia_2022-07/docs/JsonApiSingleResponseOfCatalogStatus.md b/sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfCatalogStatus.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/JsonApiSingleResponseOfCatalogStatus.md rename to sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfCatalogStatus.md diff --git a/sdks/retailmedia_2022-07/docs/JsonApiSingleResponseOfCampaign.md b/sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md similarity index 67% rename from sdks/retailmedia_2022-07/docs/JsonApiSingleResponseOfCampaign.md rename to sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md index f8e26ee2..effec147 100644 --- a/sdks/retailmedia_2022-07/docs/JsonApiSingleResponseOfCampaign.md +++ b/sdks/retailmedia_2023-10/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md @@ -1,11 +1,11 @@ -# JsonApiSingleResponseOfCampaign +# JsonApiSingleResponseOfLineItemBidMultipliers -A JSON:API wrapper class to add one JSON:API within a data property +Data model for the response of a line item bid multiplier ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithIdOfInt64AndCampaignAndCampaign**](JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md) | | +**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] diff --git a/sdks/retailmedia_2022-07/docs/KeywordTarget202110Request.md b/sdks/retailmedia_2023-10/docs/KeywordTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/KeywordTarget202110Request.md rename to sdks/retailmedia_2023-10/docs/KeywordTarget202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/KeywordTarget202110Response.md b/sdks/retailmedia_2023-10/docs/KeywordTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/KeywordTarget202110Response.md rename to sdks/retailmedia_2023-10/docs/KeywordTarget202110Response.md diff --git a/sdks/retailmedia_2023-10/docs/LineItemBidMultipliers.md b/sdks/retailmedia_2023-10/docs/LineItemBidMultipliers.md new file mode 100644 index 00000000..b654c293 --- /dev/null +++ b/sdks/retailmedia_2023-10/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_2022-10/docs/AuctionLineItemUpdateModelRequest.md b/sdks/retailmedia_2023-10/docs/LineItemBidMultipliersRequest.md similarity index 76% rename from sdks/retailmedia_2022-10/docs/AuctionLineItemUpdateModelRequest.md rename to sdks/retailmedia_2023-10/docs/LineItemBidMultipliersRequest.md index b686170a..83df2f3b 100644 --- a/sdks/retailmedia_2022-10/docs/AuctionLineItemUpdateModelRequest.md +++ b/sdks/retailmedia_2023-10/docs/LineItemBidMultipliersRequest.md @@ -1,11 +1,11 @@ -# AuctionLineItemUpdateModelRequest +# LineItemBidMultipliersRequest Data model for an input resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ResourceOfAuctionLineItemUpdateModel**](ResourceOfAuctionLineItemUpdateModel.md) | | [optional] +**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_2022-10/docs/Creative202207Response.md b/sdks/retailmedia_2023-10/docs/LineItemBidMultipliersResponse.md similarity index 82% rename from sdks/retailmedia_2022-10/docs/Creative202207Response.md rename to sdks/retailmedia_2023-10/docs/LineItemBidMultipliersResponse.md index 451d5ef0..f5f4f38f 100644 --- a/sdks/retailmedia_2022-10/docs/Creative202207Response.md +++ b/sdks/retailmedia_2023-10/docs/LineItemBidMultipliersResponse.md @@ -1,11 +1,11 @@ -# Creative202207Response +# LineItemBidMultipliersResponse Data model for response resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ResourceOfCreative202207**](ResourceOfCreative202207.md) | | [optional] +**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] diff --git a/sdks/retailmedia_2022-07/docs/PageMetadata.md b/sdks/retailmedia_2023-10/docs/PageMetadata.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PageMetadata.md rename to sdks/retailmedia_2023-10/docs/PageMetadata.md diff --git a/sdks/retailmedia_2023-10/docs/PageTypeEnvironment.md b/sdks/retailmedia_2023-10/docs/PageTypeEnvironment.md new file mode 100644 index 00000000..66571a9a --- /dev/null +++ b/sdks/retailmedia_2023-10/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_2022-07/docs/ExternalPostCampaign.md b/sdks/retailmedia_2023-10/docs/PostCampaignV202301.md similarity index 73% rename from sdks/retailmedia_2022-07/docs/ExternalPostCampaign.md rename to sdks/retailmedia_2023-10/docs/PostCampaignV202301.md index 87f16219..b3eb7e47 100644 --- a/sdks/retailmedia_2022-07/docs/ExternalPostCampaign.md +++ b/sdks/retailmedia_2023-10/docs/PostCampaignV202301.md @@ -1,11 +1,11 @@ -# ExternalPostCampaign +# PostCampaignV202301 An object that represents the available options to set when creating a Retail Media Campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign**](JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md) | | [optional] +**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_2022-07/docs/PreferredLineItem202110PagedListResponse.md b/sdks/retailmedia_2023-10/docs/PreferredLineItem202110PagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PreferredLineItem202110PagedListResponse.md rename to sdks/retailmedia_2023-10/docs/PreferredLineItem202110PagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/PreferredLineItem202110Response.md b/sdks/retailmedia_2023-10/docs/PreferredLineItem202110Response.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PreferredLineItem202110Response.md rename to sdks/retailmedia_2023-10/docs/PreferredLineItem202110Response.md diff --git a/sdks/retailmedia_2022-07/docs/PreferredLineItemCreateModel202110Request.md b/sdks/retailmedia_2023-10/docs/PreferredLineItemCreateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PreferredLineItemCreateModel202110Request.md rename to sdks/retailmedia_2023-10/docs/PreferredLineItemCreateModel202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/PreferredLineItemUpdateModel202110Request.md b/sdks/retailmedia_2023-10/docs/PreferredLineItemUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PreferredLineItemUpdateModel202110Request.md rename to sdks/retailmedia_2023-10/docs/PreferredLineItemUpdateModel202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/ProblemDetails.md b/sdks/retailmedia_2023-10/docs/ProblemDetails.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ProblemDetails.md rename to sdks/retailmedia_2023-10/docs/ProblemDetails.md diff --git a/sdks/retailmedia_2022-07/docs/PromotedProduct202110ListRequest.md b/sdks/retailmedia_2023-10/docs/PromotedProduct202110ListRequest.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PromotedProduct202110ListRequest.md rename to sdks/retailmedia_2023-10/docs/PromotedProduct202110ListRequest.md diff --git a/sdks/retailmedia_2022-07/docs/PromotedProduct202110PagedListResponse.md b/sdks/retailmedia_2023-10/docs/PromotedProduct202110PagedListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/PromotedProduct202110PagedListResponse.md rename to sdks/retailmedia_2023-10/docs/PromotedProduct202110PagedListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/ExternalPutCampaign.md b/sdks/retailmedia_2023-10/docs/PutCampaignV202301.md similarity index 79% rename from sdks/retailmedia_2022-07/docs/ExternalPutCampaign.md rename to sdks/retailmedia_2023-10/docs/PutCampaignV202301.md index e9cc5c51..4a225833 100644 --- a/sdks/retailmedia_2022-07/docs/ExternalPutCampaign.md +++ b/sdks/retailmedia_2023-10/docs/PutCampaignV202301.md @@ -1,11 +1,11 @@ -# ExternalPutCampaign +# PutCampaignV202301 An object that represents the available options to set when editing a Retail Media Campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign**](JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign.md) | | [optional] +**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-10/docs/ReportOutcome.md b/sdks/retailmedia_2023-10/docs/ReportOutcome.md new file mode 100644 index 00000000..347c3ef5 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/ReportOutcome.md @@ -0,0 +1,14 @@ +# ReportOutcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](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/ResourceOfAddFundsToBalance.md b/sdks/retailmedia_2023-10/docs/ResourceOfAddFundsToBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ResourceOfAddFundsToBalance.md rename to sdks/retailmedia_2023-10/docs/ResourceOfAddFundsToBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfAuctionLineItem.md b/sdks/retailmedia_2023-10/docs/ResourceOfAuctionLineItem.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfAuctionLineItem.md rename to sdks/retailmedia_2023-10/docs/ResourceOfAuctionLineItem.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfAuctionLineItemUpdateModel.md b/sdks/retailmedia_2023-10/docs/ResourceOfAuctionLineItemUpdateModel.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfAuctionLineItemUpdateModel.md rename to sdks/retailmedia_2023-10/docs/ResourceOfAuctionLineItemUpdateModel.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfBalance202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfBalance202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfBalance202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfBalance202110.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfBalanceCampaign202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfBalanceCampaign202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfBalanceCampaign202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfBalanceCampaign202110.md diff --git a/sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md b/sdks/retailmedia_2023-10/docs/ResourceOfBalanceResponse.md similarity index 100% rename from sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md rename to sdks/retailmedia_2023-10/docs/ResourceOfBalanceResponse.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfCategory202204.md b/sdks/retailmedia_2023-10/docs/ResourceOfCategory202204.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfCategory202204.md rename to sdks/retailmedia_2023-10/docs/ResourceOfCategory202204.md diff --git a/sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md b/sdks/retailmedia_2023-10/docs/ResourceOfChangeDatesOfBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md rename to sdks/retailmedia_2023-10/docs/ResourceOfChangeDatesOfBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfCommonLineItem.md b/sdks/retailmedia_2023-10/docs/ResourceOfCommonLineItem.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfCommonLineItem.md rename to sdks/retailmedia_2023-10/docs/ResourceOfCommonLineItem.md diff --git a/sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md b/sdks/retailmedia_2023-10/docs/ResourceOfCreateBalance.md similarity index 100% rename from sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md rename to sdks/retailmedia_2023-10/docs/ResourceOfCreateBalance.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfCreative202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfCreative202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfCreative202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfCreative202110.md diff --git a/sdks/retailmedia_2022-10/docs/ResourceOfCategory202204.md b/sdks/retailmedia_2023-10/docs/ResourceOfCreative202210.md similarity index 87% rename from sdks/retailmedia_2022-10/docs/ResourceOfCategory202204.md rename to sdks/retailmedia_2023-10/docs/ResourceOfCreative202210.md index 38b7e144..271e4580 100644 --- a/sdks/retailmedia_2022-10/docs/ResourceOfCategory202204.md +++ b/sdks/retailmedia_2023-10/docs/ResourceOfCreative202210.md @@ -1,11 +1,11 @@ -# ResourceOfCategory202204 +# ResourceOfCreative202210 Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**Category202204**](Category202204.md) | | [optional] +**attributes** | [**Creative202210**](Creative202210.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | 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] diff --git a/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBidResource.md b/sdks/retailmedia_2023-10/docs/ResourceOfLineItemBidMultipliers.md similarity index 83% rename from sdks/marketingsolutions_2022-10/docs/AdSetCategoryBidResource.md rename to sdks/retailmedia_2023-10/docs/ResourceOfLineItemBidMultipliers.md index 94955c20..19ac36e6 100644 --- a/sdks/marketingsolutions_2022-10/docs/AdSetCategoryBidResource.md +++ b/sdks/retailmedia_2023-10/docs/ResourceOfLineItemBidMultipliers.md @@ -1,11 +1,11 @@ -# AdSetCategoryBidResource +# ResourceOfLineItemBidMultipliers Data model for a Resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**AdSetCategoryBid**](AdSetCategoryBid.md) | | [optional] +**attributes** | [**LineItemBidMultipliers**](LineItemBidMultipliers.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | 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] diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfPreferredLineItem202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfPreferredLineItem202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfPreferredLineItem202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfPreferredLineItem202110.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfPreferredLineItemUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfPromotedProduct202110.md b/sdks/retailmedia_2023-10/docs/ResourceOfPromotedProduct202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfPromotedProduct202110.md rename to sdks/retailmedia_2023-10/docs/ResourceOfPromotedProduct202110.md diff --git a/sdks/retailmedia_2022-07/docs/ResourceOfTemplate.md b/sdks/retailmedia_2023-10/docs/ResourceOfTemplate.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ResourceOfTemplate.md rename to sdks/retailmedia_2023-10/docs/ResourceOfTemplate.md diff --git a/sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md b/sdks/retailmedia_2023-10/docs/ResourceOfUpdateBalanceModel.md similarity index 100% rename from sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md rename to sdks/retailmedia_2023-10/docs/ResourceOfUpdateBalanceModel.md diff --git a/sdks/retailmedia_2022-07/docs/RetailMediaAudience.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudience.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/RetailMediaAudience.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudience.md diff --git a/sdks/retailmedia_2022-07/docs/RetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceAttributes.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/RetailMediaAudienceAttributes.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudienceAttributes.md diff --git a/sdks/retailmedia_2022-10/docs/RetailMediaAudience.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2.md similarity index 62% rename from sdks/retailmedia_2022-10/docs/RetailMediaAudience.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2.md index 8ac638cb..f750a26a 100644 --- a/sdks/retailmedia_2022-10/docs/RetailMediaAudience.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2.md @@ -1,14 +1,13 @@ -# RetailMediaAudience +# RetailMediaAudienceV2 -All the information about a retail media audience +Retail Media audience returned by the Get RetailMedia Audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audience_type** | **str** | Type of the 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) | | +**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_2022-10/docs/RetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2Attributes.md similarity index 72% rename from sdks/retailmedia_2022-10/docs/RetailMediaAudienceAttributes.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2Attributes.md index af90ff33..38c93ec6 100644 --- a/sdks/retailmedia_2022-10/docs/RetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2Attributes.md @@ -1,13 +1,13 @@ -# RetailMediaAudienceAttributes +# RetailMediaAudienceV2Attributes -Fields of a retail media audience +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** | [**UserBehaviorDetails**](UserBehaviorDetails.md) | | [optional] +**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] diff --git a/sdks/retailmedia_2022-10/docs/GetPageOfAudiencesByAccountIdResponse.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2ListResponse.md similarity index 60% rename from sdks/retailmedia_2022-10/docs/GetPageOfAudiencesByAccountIdResponse.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2ListResponse.md index df0431e1..ccad1a1b 100644 --- a/sdks/retailmedia_2022-10/docs/GetPageOfAudiencesByAccountIdResponse.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2ListResponse.md @@ -1,14 +1,14 @@ -# GetPageOfAudiencesByAccountIdResponse +# RetailMediaAudienceV2ListResponse -Response for page of audiences by given account +Array of Audiences Returned as Part of Get RetailMedia Audience Request ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[RetailMediaAudience]**](RetailMediaAudience.md) | data | [readonly] +**data** | [**[RetailMediaAudienceV2]**](RetailMediaAudienceV2.md) | data | [readonly] **metadata** | [**PageMetadata**](PageMetadata.md) | | -**errors** | [**[CommonError], none_type**](CommonError.md) | errors | [optional] [readonly] -**warnings** | [**[CommonWarning], none_type**](CommonWarning.md) | warnings | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | errors | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](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/RetailMediaAudienceV2Response.md b/sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2Response.md similarity index 100% rename from sdks/retailmedia_preview/docs/RetailMediaAudienceV2Response.md rename to sdks/retailmedia_2023-10/docs/RetailMediaAudienceV2Response.md diff --git a/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordModel.md new file mode 100644 index 00000000..98c859cd --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordModel.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1AddRemoveKeywordModel + +A single keyword to be added or removed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phrase** | **str, none_type** | | [optional] +**match_type** | **str, none_type** | | [optional] +**is_deleted** | **bool, 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/marketingsolutions_2022-10/docs/RequestAdSetSearch.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md similarity index 65% rename from sdks/marketingsolutions_2022-10/docs/RequestAdSetSearch.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md index f3f8cff6..2d39bd84 100644 --- a/sdks/marketingsolutions_2022-10/docs/RequestAdSetSearch.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md @@ -1,11 +1,11 @@ -# RequestAdSetSearch +# RetailMediaExternalv1AddRemoveKeywordsModel -request payload of the search endpoint +Data model containing keywords to be added or removed from a line item ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filters** | [**AdSetSearchFilter**](AdSetSearchFilter.md) | | [optional] +**keywords** | [**[RetailMediaExternalv1AddRemoveKeywordModel], none_type**](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_2022-10/docs/ExternalPostCampaign.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md similarity index 65% rename from sdks/retailmedia_2022-10/docs/ExternalPostCampaign.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md index 87f16219..d623d5f5 100644 --- a/sdks/retailmedia_2022-10/docs/ExternalPostCampaign.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md @@ -1,11 +1,11 @@ -# ExternalPostCampaign +# RetailMediaExternalv1AddRemoveKeywordsModelRequest -An object that represents the available options to set when creating a Retail Media Campaign +Request object to add or remove keywords from a line item ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign**](JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign.md) | | [optional] +**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_2022-07/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md similarity index 62% rename from sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md index d3c04ec5..1abf3809 100644 --- a/sdks/retailmedia_2022-07/docs/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md @@ -1,13 +1,13 @@ -# JsonApiBodyWithIdOfInt64AndCampaignAndCampaign +# RetailMediaExternalv1AddRemoveKeywordsModelResource -A JSON:API wrapper class to format a with external Id, Type, and Attributes properties +Resource wrapper the keyword add and remove datamodel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | **type** | **str** | | -**attributes** | [**ExternalCampaign**](ExternalCampaign.md) | | [optional] +**id** | **str, none_type** | | [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/marketingsolutions_2022-07/docs/DeleteAudienceResponse.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1InputKeywordsModel.md similarity index 63% rename from sdks/marketingsolutions_2022-07/docs/DeleteAudienceResponse.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1InputKeywordsModel.md index 2ac1615c..19807cea 100644 --- a/sdks/marketingsolutions_2022-07/docs/DeleteAudienceResponse.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1InputKeywordsModel.md @@ -1,13 +1,13 @@ -# DeleteAudienceResponse +# RetailMediaExternalv1InputKeywordsModel -Response of an audience deletion +Input values associated with a keyword ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | -**errors** | [**[AudienceError]**](AudienceError.md) | | -**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**negative_broad** | **[str], none_type** | | [optional] +**negative_exact** | **[str], none_type** | | [optional] +**positive_exact** | **[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-10/docs/RetailMediaExternalv1KeywordDataModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordDataModel.md new file mode 100644 index 00000000..d7326d7a --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordDataModel.md @@ -0,0 +1,18 @@ +# RetailMediaExternalv1KeywordDataModel + +Details for a specific keyword + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**review_state** | **str, none_type** | | [optional] +**match_type** | **str, none_type** | | [optional] +**bid** | **float, none_type** | | [optional] +**input_keywords** | [**RetailMediaExternalv1InputKeywordsModel**](RetailMediaExternalv1InputKeywordsModel.md) | | [optional] +**created_at** | **datetime, none_type** | | [optional] +**updated_at** | **datetime, 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-10/docs/RetailMediaExternalv1KeywordsModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModel.md new file mode 100644 index 00000000..105b25b5 --- /dev/null +++ b/sdks/retailmedia_2023-10/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], 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_2022-10/docs/ExternalLineItemCapping202110.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResource.md similarity index 64% rename from sdks/retailmedia_2022-10/docs/ExternalLineItemCapping202110.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResource.md index 4ecb8f17..8aabe795 100644 --- a/sdks/retailmedia_2022-10/docs/ExternalLineItemCapping202110.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResource.md @@ -1,12 +1,13 @@ -# ExternalLineItemCapping202110 +# RetailMediaExternalv1KeywordsModelResource -Frequency capping for a preferred line item +Resource wrapper of associated keywords with a line item ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**count** | **int** | | +**id** | **str, none_type** | | [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-10/docs/RetailMediaExternalv1KeywordsModelResponse.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1KeywordsModelResponse.md new file mode 100644 index 00000000..eb84587c --- /dev/null +++ b/sdks/retailmedia_2023-10/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], none_type**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails], none_type**](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/marketingsolutions_2022-10/docs/ProblemDetails.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProblemDetails.md similarity index 57% rename from sdks/marketingsolutions_2022-10/docs/ProblemDetails.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProblemDetails.md index b6aab6ed..32758436 100644 --- a/sdks/marketingsolutions_2022-10/docs/ProblemDetails.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProblemDetails.md @@ -1,20 +1,20 @@ -# ProblemDetails +# RetailMediaExternalv1ProblemDetails -Data model for common error or warning +Datamodel for common errors and warnings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] -**trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] +**trace_identifier** | **str, none_type** | | [optional] **code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] **source** | **{str: (str,)}, none_type** | | [optional] **stack_trace** | **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] +**type** | **str, none_type** | | [optional] +**title** | **str, none_type** | | [optional] +**status** | **int, none_type** | | [optional] +**detail** | **str, none_type** | | [optional] +**instance** | **str, none_type** | | [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-10/docs/RetailMediaExternalv1ProposalStatusModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModel.md new file mode 100644 index 00000000..93cf4401 --- /dev/null +++ b/sdks/retailmedia_2023-10/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, none_type** | | [optional] +**created_at** | **datetime, none_type** | | [optional] +**updated_at** | **datetime, 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/marketingsolutions_2022-10/docs/TransactionsReportQueryEntityMessage.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResource.md similarity index 64% rename from sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryEntityMessage.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResource.md index 6b708dae..4c5ebc52 100644 --- a/sdks/marketingsolutions_2022-10/docs/TransactionsReportQueryEntityMessage.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResource.md @@ -1,12 +1,13 @@ -# TransactionsReportQueryEntityMessage +# RetailMediaExternalv1ProposalStatusModelResource -Contains a query for Transaction report and its type +Wrapper for the proposal status ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.md) | | +**id** | **str, none_type** | | [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-10/docs/RetailMediaExternalv1ProposalStatusModelResponse.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ProposalStatusModelResponse.md new file mode 100644 index 00000000..2550a175 --- /dev/null +++ b/sdks/retailmedia_2023-10/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], none_type**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails], none_type**](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/marketingsolutions_2022-10/docs/CampaignReadResource.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ResourceOutcome.md similarity index 55% rename from sdks/marketingsolutions_2022-10/docs/CampaignReadResource.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ResourceOutcome.md index 23e03d72..7b1c09f1 100644 --- a/sdks/marketingsolutions_2022-10/docs/CampaignReadResource.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1ResourceOutcome.md @@ -1,13 +1,12 @@ -# CampaignReadResource +# RetailMediaExternalv1ResourceOutcome -read model data for resources +A response object containing errors or warnings if required ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] [readonly] -**type** | **str, none_type** | | [optional] [readonly] -**attributes** | [**Campaign**](Campaign.md) | | [optional] +**errors** | [**[RetailMediaExternalv1ProblemDetails], none_type**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails], none_type**](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-10/docs/RetailMediaExternalv1SetBidModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidModel.md new file mode 100644 index 00000000..978f8b12 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidModel.md @@ -0,0 +1,14 @@ +# RetailMediaExternalv1SetBidModel + +A single keyword and associated bid override + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phrase** | **str, none_type** | | [optional] +**bid** | **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-10/docs/RetailMediaExternalv1SetBidsModel.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModel.md new file mode 100644 index 00000000..2b1359ff --- /dev/null +++ b/sdks/retailmedia_2023-10/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], none_type**](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/marketingsolutions_2022-07/docs/GetAudiencesResponse.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelRequest.md similarity index 65% rename from sdks/marketingsolutions_2022-07/docs/GetAudiencesResponse.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelRequest.md index 9de4b05b..e40b943e 100644 --- a/sdks/marketingsolutions_2022-07/docs/GetAudiencesResponse.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelRequest.md @@ -1,13 +1,11 @@ -# GetAudiencesResponse +# RetailMediaExternalv1SetBidsModelRequest -Body of the GET audience operation +Request to set bid overrides for specified keywords on a line item ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[Audience]**](Audience.md) | | -**errors** | [**[AudienceError]**](AudienceError.md) | | -**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**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/marketingsolutions_2022-10/docs/PlacementsReportQueryEntityMessage.md b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelResource.md similarity index 66% rename from sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryEntityMessage.md rename to sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelResource.md index f22c0f80..4a4e3082 100644 --- a/sdks/marketingsolutions_2022-10/docs/PlacementsReportQueryEntityMessage.md +++ b/sdks/retailmedia_2023-10/docs/RetailMediaExternalv1SetBidsModelResource.md @@ -1,12 +1,13 @@ -# PlacementsReportQueryEntityMessage +# RetailMediaExternalv1SetBidsModelResource -Contains a query for Transaction report and its type +Wrapper of the Set Bids datamodel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.md) | | +**id** | **str, none_type** | | [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_2022-07/docs/Section.md b/sdks/retailmedia_2023-10/docs/Section.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Section.md rename to sdks/retailmedia_2023-10/docs/Section.md diff --git a/sdks/retailmedia_2023-10/docs/StatusResponse.md b/sdks/retailmedia_2023-10/docs/StatusResponse.md new file mode 100644 index 00000000..e5947f61 --- /dev/null +++ b/sdks/retailmedia_2023-10/docs/StatusResponse.md @@ -0,0 +1,20 @@ +# StatusResponse + +Status of an async report request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str, none_type** | | [optional] +**row_count** | **int, none_type** | | [optional] +**file_size_bytes** | **int, none_type** | | [optional] +**md5_check_sum** | **str, none_type** | | [optional] +**created_at** | **str, none_type** | | [optional] +**expires_at** | **str, none_type** | | [optional] +**message** | **str, none_type** | | [optional] +**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-10/docs/StatusResponseResource.md b/sdks/retailmedia_2023-10/docs/StatusResponseResource.md new file mode 100644 index 00000000..5f28b4c3 --- /dev/null +++ b/sdks/retailmedia_2023-10/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, none_type** | | [optional] +**type** | **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_2022-07/docs/StoreIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-10/docs/StoreIdsUpdateModel202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/StoreIdsUpdateModel202110Request.md rename to sdks/retailmedia_2023-10/docs/StoreIdsUpdateModel202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/StoreTarget202110Request.md b/sdks/retailmedia_2023-10/docs/StoreTarget202110Request.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/StoreTarget202110Request.md rename to sdks/retailmedia_2023-10/docs/StoreTarget202110Request.md diff --git a/sdks/retailmedia_2022-07/docs/StoreTarget202110Response.md b/sdks/retailmedia_2023-10/docs/StoreTarget202110Response.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/StoreTarget202110Response.md rename to sdks/retailmedia_2023-10/docs/StoreTarget202110Response.md diff --git a/sdks/retailmedia_2022-07/docs/Template.md b/sdks/retailmedia_2023-10/docs/Template.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/Template.md rename to sdks/retailmedia_2023-10/docs/Template.md diff --git a/sdks/retailmedia_2022-07/docs/TemplateListResponse.md b/sdks/retailmedia_2023-10/docs/TemplateListResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TemplateListResponse.md rename to sdks/retailmedia_2023-10/docs/TemplateListResponse.md diff --git a/sdks/retailmedia_2022-07/docs/TemplateResponse.md b/sdks/retailmedia_2023-10/docs/TemplateResponse.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TemplateResponse.md rename to sdks/retailmedia_2023-10/docs/TemplateResponse.md diff --git a/sdks/retailmedia_2022-07/docs/TemplateVariable.md b/sdks/retailmedia_2023-10/docs/TemplateVariable.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TemplateVariable.md rename to sdks/retailmedia_2023-10/docs/TemplateVariable.md diff --git a/sdks/retailmedia_2022-07/docs/TemplateVariableValue.md b/sdks/retailmedia_2023-10/docs/TemplateVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TemplateVariableValue.md rename to sdks/retailmedia_2023-10/docs/TemplateVariableValue.md diff --git a/sdks/retailmedia_2022-07/docs/TextVariableSpecification.md b/sdks/retailmedia_2023-10/docs/TextVariableSpecification.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TextVariableSpecification.md rename to sdks/retailmedia_2023-10/docs/TextVariableSpecification.md diff --git a/sdks/retailmedia_2022-07/docs/TextVariableValue.md b/sdks/retailmedia_2023-10/docs/TextVariableValue.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/TextVariableValue.md rename to sdks/retailmedia_2023-10/docs/TextVariableValue.md diff --git a/sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md b/sdks/retailmedia_2023-10/docs/UpdateBalanceModelRequest.md similarity index 100% rename from sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md rename to sdks/retailmedia_2023-10/docs/UpdateBalanceModelRequest.md diff --git a/sdks/retailmedia_2022-07/docs/UserBehaviorDetails.md b/sdks/retailmedia_2023-10/docs/UserBehaviorDetails.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/UserBehaviorDetails.md rename to sdks/retailmedia_2023-10/docs/UserBehaviorDetails.md diff --git a/sdks/retailmedia_2022-10/docs/UserBehaviorDetails.md b/sdks/retailmedia_2023-10/docs/UserBehaviorDetailsV2.md similarity index 67% rename from sdks/retailmedia_2022-10/docs/UserBehaviorDetails.md rename to sdks/retailmedia_2023-10/docs/UserBehaviorDetailsV2.md index e6412112..64d9048f 100644 --- a/sdks/retailmedia_2022-10/docs/UserBehaviorDetails.md +++ b/sdks/retailmedia_2023-10/docs/UserBehaviorDetailsV2.md @@ -1,14 +1,12 @@ -# UserBehaviorDetails +# UserBehaviorDetailsV2 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 | +**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_2022-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAddToBasketTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAudienceTarget202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAudienceTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfAudienceTarget202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfAudienceTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfKeywordTarget202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfKeywordTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfKeywordTarget202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfKeywordTarget202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md diff --git a/sdks/retailmedia_2022-07/docs/ValueTypeResourceOfStoreTarget202110.md b/sdks/retailmedia_2023-10/docs/ValueTypeResourceOfStoreTarget202110.md similarity index 100% rename from sdks/retailmedia_2022-07/docs/ValueTypeResourceOfStoreTarget202110.md rename to sdks/retailmedia_2023-10/docs/ValueTypeResourceOfStoreTarget202110.md diff --git a/sdks/marketingsolutions_2022-10/requirements.txt b/sdks/retailmedia_2023-10/requirements.txt similarity index 100% rename from sdks/marketingsolutions_2022-10/requirements.txt rename to sdks/retailmedia_2023-10/requirements.txt diff --git a/sdks/marketingsolutions_2022-10/setup.cfg b/sdks/retailmedia_2023-10/setup.cfg similarity index 100% rename from sdks/marketingsolutions_2022-10/setup.cfg rename to sdks/retailmedia_2023-10/setup.cfg diff --git a/sdks/retailmedia_2022-07/setup.py b/sdks/retailmedia_2023-10/setup.py similarity index 92% rename from sdks/retailmedia_2022-07/setup.py rename to sdks/retailmedia_2023-10/setup.py index 2dc09d1f..f1c37170 100644 --- a/sdks/retailmedia_2022-07/setup.py +++ b/sdks/retailmedia_2023-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2022.07.0.230831" +VERSION = "2023.10.0.231113" # To install the library, run the following # # python setup.py install @@ -24,13 +24,13 @@ ```sh -pip install criteo-api-retailmedia-sdk==2022.07.0.230831 +pip install criteo-api-retailmedia-sdk==2023.10.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.231113`) Then import the package: ```python -import criteo_api_retailmedia_v2022_07 +import criteo_api_retailmedia_v2023_10 ``` Full documentation on [Github](https://github.com/criteo/criteo-api-python-sdk). diff --git a/sdks/marketingsolutions_2022-10/test-requirements.txt b/sdks/retailmedia_2023-10/test-requirements.txt similarity index 100% rename from sdks/marketingsolutions_2022-10/test-requirements.txt rename to sdks/retailmedia_2023-10/test-requirements.txt diff --git a/sdks/retailmedia_2022-07/test/example_application_with_auth_code.py b/sdks/retailmedia_2023-10/test/example_application_with_auth_code.py similarity index 92% rename from sdks/retailmedia_2022-07/test/example_application_with_auth_code.py rename to sdks/retailmedia_2023-10/test/example_application_with_auth_code.py index 8603c0d4..25e480eb 100644 --- a/sdks/retailmedia_2022-07/test/example_application_with_auth_code.py +++ b/sdks/retailmedia_2023-10/test/example_application_with_auth_code.py @@ -1,5 +1,5 @@ -from criteo_api_retailmedia_v2022_07.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_07 import ApiClientBuilder +from criteo_api_retailmedia_v2023_10.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/retailmedia_2022-10/test/example_application_with_client_credentials.py b/sdks/retailmedia_2023-10/test/example_application_with_client_credentials.py similarity index 90% rename from sdks/retailmedia_2022-10/test/example_application_with_client_credentials.py rename to sdks/retailmedia_2023-10/test/example_application_with_client_credentials.py index 2dfb329f..ef1aeb30 100644 --- a/sdks/retailmedia_2022-10/test/example_application_with_client_credentials.py +++ b/sdks/retailmedia_2023-10/test/example_application_with_client_credentials.py @@ -1,5 +1,5 @@ -from criteo_api_retailmedia_v2022_10.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_10 import ApiClientBuilder +from criteo_api_retailmedia_v2023_10.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/retailmedia_2022-10/test/example_application_with_refresh_token.py b/sdks/retailmedia_2023-10/test/example_application_with_refresh_token.py similarity index 92% rename from sdks/retailmedia_2022-10/test/example_application_with_refresh_token.py rename to sdks/retailmedia_2023-10/test/example_application_with_refresh_token.py index cb9c05e6..4ddc93bc 100644 --- a/sdks/retailmedia_2022-10/test/example_application_with_refresh_token.py +++ b/sdks/retailmedia_2023-10/test/example_application_with_refresh_token.py @@ -1,5 +1,5 @@ -from criteo_api_retailmedia_v2022_10.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_10 import ApiClientBuilder +from criteo_api_retailmedia_v2023_10.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_10 import ApiClientBuilder class ExampleApplication: diff --git a/sdks/retailmedia_2022-10/test/test_gateway_api.py b/sdks/retailmedia_2023-10/test/test_gateway_api.py similarity index 91% rename from sdks/retailmedia_2022-10/test/test_gateway_api.py rename to sdks/retailmedia_2023-10/test/test_gateway_api.py index 5395e887..f4c476f7 100644 --- a/sdks/retailmedia_2022-10/test/test_gateway_api.py +++ b/sdks/retailmedia_2023-10/test/test_gateway_api.py @@ -1,9 +1,9 @@ import pytest import os -from criteo_api_retailmedia_v2022_10.api.gateway_api import GatewayApi -from criteo_api_retailmedia_v2022_10.api_client_builder import ApiClientBuilder -from criteo_api_retailmedia_v2022_10.rest import ApiException +from criteo_api_retailmedia_v2023_10.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_10.api_client_builder import ApiClientBuilder +from criteo_api_retailmedia_v2023_10.rest import ApiException from example_application_with_client_credentials import ExampleApplication class TestGatewayApi: diff --git a/sdks/retailmedia_2022-10/tox.ini b/sdks/retailmedia_2023-10/tox.ini similarity index 71% rename from sdks/retailmedia_2022-10/tox.ini rename to sdks/retailmedia_2023-10/tox.ini index 798825a8..970140bc 100644 --- a/sdks/retailmedia_2022-10/tox.ini +++ b/sdks/retailmedia_2023-10/tox.ini @@ -6,4 +6,4 @@ deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= - pytest --cov=criteo_api_retailmedia_v2022_10 + pytest --cov=criteo_api_retailmedia_v2023_10 diff --git a/sdks/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index 6d492b07..07b32638 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -19,37 +19,24 @@ 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/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_campaigns_report.py +criteo_api_retailmedia_preview/model/async_campaigns_report_request.py +criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +criteo_api_retailmedia_preview/model/async_line_items_report.py +criteo_api_retailmedia_preview/model/async_line_items_report_request.py +criteo_api_retailmedia_preview/model/async_line_items_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_budget_overrides.py criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.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 @@ -60,16 +47,6 @@ 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 -criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py -criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py -criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py -criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py -criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py -criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py criteo_api_retailmedia_preview/model/creative202210.py criteo_api_retailmedia_preview/model/creative202210_list_response.py @@ -77,20 +54,16 @@ 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/daily_line_item_budget_override.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 @@ -112,9 +85,8 @@ criteo_api_retailmedia_preview/model/keywords.py criteo_api_retailmedia_preview/model/line_item_bid_multipliers.py criteo_api_retailmedia_preview/model/line_item_bid_multipliers_request.py 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/line_item_budget_overrides.py +criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.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 @@ -123,17 +95,13 @@ criteo_api_retailmedia_preview/model/problem_details.py criteo_api_retailmedia_preview/model/product_button_list_request.py criteo_api_retailmedia_preview/model/product_button_list_response.py criteo_api_retailmedia_preview/model/product_button_request.py -criteo_api_retailmedia_preview/model/product_button_response.py +criteo_api_retailmedia_preview/model/recommended_keywords_result.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_response.py criteo_api_retailmedia_preview/model/resource_collection_outcome_of_sku_search_result.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 @@ -148,13 +116,11 @@ criteo_api_retailmedia_preview/model/resource_of_sku_search_result.py 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 criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py -criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -193,7 +159,15 @@ 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/suggested_keywords_result.py +criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_request.py +criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +criteo_api_retailmedia_preview/model/sync_campaigns_report.py +criteo_api_retailmedia_preview/model/sync_campaigns_report_request.py +criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +criteo_api_retailmedia_preview/model/sync_line_items_report.py +criteo_api_retailmedia_preview/model/sync_line_items_report_request.py +criteo_api_retailmedia_preview/model/sync_line_items_report_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 @@ -201,37 +175,31 @@ 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/value_resource_input_of_campaign_budget_overrides.py +criteo_api_retailmedia_preview/model/value_resource_input_of_line_item_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.py -criteo_api_retailmedia_preview/model/value_resource_of_suggested_keywords_result.py +criteo_api_retailmedia_preview/model/value_resource_of_line_item_budget_overrides.py +criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py -criteo_api_retailmedia_preview/model/value_resource_outcome_of_suggested_keywords_result.py +criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py +criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.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/AsyncCampaignsReport.md +docs/AsyncCampaignsReportRequest.md +docs/AsyncCampaignsReportResource.md +docs/AsyncLineItemsReport.md +docs/AsyncLineItemsReportRequest.md +docs/AsyncLineItemsReportResource.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/BalanceResponse.md -docs/BalanceResponsePagedListResponse.md docs/Brand.md docs/BrandPreview.md docs/BrandPreviewListResponse.md @@ -239,12 +207,8 @@ docs/CampaignApi.md docs/CampaignBudgetOverrides.md docs/CampaignDailyBudgetOverride.md docs/CampaignMonthlyBudgetOverride.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 @@ -255,16 +219,6 @@ docs/CommonStatusCodeResponse.md docs/CommonWarning.md docs/CpcRateCardPreview.md docs/CpcRateCardPreviewResponse.md -docs/CreateBalanceRequest.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/Creative202210.md docs/Creative202210ListResponse.md @@ -272,20 +226,16 @@ docs/Creative202210Response.md docs/CreativeCreateModel202207.md docs/CreativeUpdateModel202207.md docs/CustomerListDetails.md +docs/DailyLineItemBudgetOverride.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 @@ -308,9 +258,8 @@ docs/Keywords.md docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md -docs/LineItemReport.md -docs/LineItemReportRequest.md -docs/LineItemReportResource.md +docs/LineItemBudgetOverrides.md +docs/MonthlyLineItemBudegetOverride.md docs/PageMetadata.md docs/PageTypeEnvironment.md docs/PlacementPreview.md @@ -319,17 +268,13 @@ docs/ProblemDetails.md docs/ProductButtonListRequest.md docs/ProductButtonListResponse.md docs/ProductButtonRequest.md -docs/ProductButtonResponse.md +docs/RecommendedKeywordsResult.md docs/ReportDataResponseResource.md docs/ReportOutcome.md docs/ReportResponse.md docs/ResourceCollectionOutcomeOfSkuSearchResult.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 @@ -344,13 +289,11 @@ docs/ResourceOfSkuSearchResult.md docs/ResourceOfSkuSlimDataPreview.md docs/ResourceOfSkuSlimDataV2.md docs/ResourceOfTemplate.md -docs/ResourceOfUpdateBalanceModel.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 @@ -389,7 +332,15 @@ docs/SkuSlimDataV2.md docs/SkuSlimDataV2ListResponse.md docs/StatusResponse.md docs/StatusResponseResource.md -docs/SuggestedKeywordsResult.md +docs/SyncAttributedTransactionsReport.md +docs/SyncAttributedTransactionsReportRequest.md +docs/SyncAttributedTransactionsReportResource.md +docs/SyncCampaignsReport.md +docs/SyncCampaignsReportRequest.md +docs/SyncCampaignsReportResource.md +docs/SyncLineItemsReport.md +docs/SyncLineItemsReportRequest.md +docs/SyncLineItemsReportResource.md docs/Template.md docs/TemplateListResponse.md docs/TemplateResponse.md @@ -397,13 +348,16 @@ docs/TemplateVariable.md docs/TemplateVariableValue.md docs/TextVariableSpecification.md docs/TextVariableValue.md -docs/UpdateBalanceModelRequest.md docs/UserBehaviorDetails.md docs/UserBehaviorDetailsV2.md +docs/ValueResourceInputOfCampaignBudgetOverrides.md +docs/ValueResourceInputOfLineItemBudgetOverrides.md docs/ValueResourceOfCampaignBudgetOverrides.md -docs/ValueResourceOfSuggestedKeywordsResult.md +docs/ValueResourceOfLineItemBudgetOverrides.md +docs/ValueResourceOfRecommendedKeywordsResult.md docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md -docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md +docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md +docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md git_push.sh requirements.txt setup.cfg diff --git a/sdks/retailmedia_preview/README.md b/sdks/retailmedia_preview/README.md index 18735153..a4a61309 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.230831 +- Package version: 0.0.231113 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==0.0.230831 +pip install criteo-api-retailmedia-sdk==0.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.231113`) Then import the package: ```python @@ -60,37 +60,24 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AddFundsToBalanceRequest](docs/AddFundsToBalanceRequest.md) - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.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) + - [AsyncCampaignsReport](docs/AsyncCampaignsReport.md) + - [AsyncCampaignsReportRequest](docs/AsyncCampaignsReportRequest.md) + - [AsyncCampaignsReportResource](docs/AsyncCampaignsReportResource.md) + - [AsyncLineItemsReport](docs/AsyncLineItemsReport.md) + - [AsyncLineItemsReportRequest](docs/AsyncLineItemsReportRequest.md) + - [AsyncLineItemsReportResource](docs/AsyncLineItemsReportResource.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) - [CampaignBudgetOverrides](docs/CampaignBudgetOverrides.md) - [CampaignDailyBudgetOverride](docs/CampaignDailyBudgetOverride.md) - [CampaignMonthlyBudgetOverride](docs/CampaignMonthlyBudgetOverride.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) @@ -101,16 +88,6 @@ 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) - - [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) - [Creative202210](docs/Creative202210.md) - [Creative202210ListResponse](docs/Creative202210ListResponse.md) @@ -118,20 +95,16 @@ Class | Method | HTTP request | Description - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - [CustomerListDetails](docs/CustomerListDetails.md) + - [DailyLineItemBudgetOverride](docs/DailyLineItemBudgetOverride.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) @@ -153,9 +126,8 @@ Class | Method | HTTP request | Description - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - - [LineItemReport](docs/LineItemReport.md) - - [LineItemReportRequest](docs/LineItemReportRequest.md) - - [LineItemReportResource](docs/LineItemReportResource.md) + - [LineItemBudgetOverrides](docs/LineItemBudgetOverrides.md) + - [MonthlyLineItemBudegetOverride](docs/MonthlyLineItemBudegetOverride.md) - [PageMetadata](docs/PageMetadata.md) - [PageTypeEnvironment](docs/PageTypeEnvironment.md) - [PlacementPreview](docs/PlacementPreview.md) @@ -164,17 +136,13 @@ Class | Method | HTTP request | Description - [ProductButtonListRequest](docs/ProductButtonListRequest.md) - [ProductButtonListResponse](docs/ProductButtonListResponse.md) - [ProductButtonRequest](docs/ProductButtonRequest.md) - - [ProductButtonResponse](docs/ProductButtonResponse.md) + - [RecommendedKeywordsResult](docs/RecommendedKeywordsResult.md) - [ReportDataResponseResource](docs/ReportDataResponseResource.md) - [ReportOutcome](docs/ReportOutcome.md) - [ReportResponse](docs/ReportResponse.md) - [ResourceCollectionOutcomeOfSkuSearchResult](docs/ResourceCollectionOutcomeOfSkuSearchResult.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) @@ -189,13 +157,11 @@ 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) - [RetailMediaAudienceV2Attributes](docs/RetailMediaAudienceV2Attributes.md) - [RetailMediaAudienceV2ListResponse](docs/RetailMediaAudienceV2ListResponse.md) - - [RetailMediaAudienceV2Response](docs/RetailMediaAudienceV2Response.md) - [RetailMediaExternalv1AddRemoveKeywordModel](docs/RetailMediaExternalv1AddRemoveKeywordModel.md) - [RetailMediaExternalv1AddRemoveKeywordsModel](docs/RetailMediaExternalv1AddRemoveKeywordsModel.md) - [RetailMediaExternalv1AddRemoveKeywordsModelRequest](docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md) @@ -234,7 +200,15 @@ Class | Method | HTTP request | Description - [SkuSlimDataV2ListResponse](docs/SkuSlimDataV2ListResponse.md) - [StatusResponse](docs/StatusResponse.md) - [StatusResponseResource](docs/StatusResponseResource.md) - - [SuggestedKeywordsResult](docs/SuggestedKeywordsResult.md) + - [SyncAttributedTransactionsReport](docs/SyncAttributedTransactionsReport.md) + - [SyncAttributedTransactionsReportRequest](docs/SyncAttributedTransactionsReportRequest.md) + - [SyncAttributedTransactionsReportResource](docs/SyncAttributedTransactionsReportResource.md) + - [SyncCampaignsReport](docs/SyncCampaignsReport.md) + - [SyncCampaignsReportRequest](docs/SyncCampaignsReportRequest.md) + - [SyncCampaignsReportResource](docs/SyncCampaignsReportResource.md) + - [SyncLineItemsReport](docs/SyncLineItemsReport.md) + - [SyncLineItemsReportRequest](docs/SyncLineItemsReportRequest.md) + - [SyncLineItemsReportResource](docs/SyncLineItemsReportResource.md) - [Template](docs/Template.md) - [TemplateListResponse](docs/TemplateListResponse.md) - [TemplateResponse](docs/TemplateResponse.md) @@ -242,13 +216,16 @@ 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) + - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) + - [ValueResourceInputOfLineItemBudgetOverrides](docs/ValueResourceInputOfLineItemBudgetOverrides.md) - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) - - [ValueResourceOfSuggestedKeywordsResult](docs/ValueResourceOfSuggestedKeywordsResult.md) + - [ValueResourceOfLineItemBudgetOverrides](docs/ValueResourceOfLineItemBudgetOverrides.md) + - [ValueResourceOfRecommendedKeywordsResult](docs/ValueResourceOfRecommendedKeywordsResult.md) - [ValueResourceOutcomeOfCampaignBudgetOverrides](docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md) - - [ValueResourceOutcomeOfSuggestedKeywordsResult](docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md) + - [ValueResourceOutcomeOfLineItemBudgetOverrides](docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md) + - [ValueResourceOutcomeOfRecommendedKeywordsResult](docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md) ## Disclaimer diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py index 7fa224c9..8545681c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py @@ -3,12 +3,12 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ -__version__ = "0.0.230831" +__version__ = "0.0.231113" # 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 510d4f8f..a72d9128 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -21,17 +21,14 @@ none_type, validate_and_convert_types ) -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_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest 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.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 -from criteo_api_retailmedia_preview.model.resource_collection_outcome_of_sku_search_result import ResourceCollectionOutcomeOfSkuSearchResult -from criteo_api_retailmedia_preview.model.sku_search_request import SkuSearchRequest +from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_request import SyncAttributedTransactionsReportRequest +from criteo_api_retailmedia_preview.model.sync_campaigns_report_request import SyncCampaignsReportRequest +from criteo_api_retailmedia_preview.model.sync_line_items_report_request import SyncLineItemsReportRequest class AnalyticsApi(object): @@ -45,7 +42,7 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.generate_async_campaign_report_endpoint = _Endpoint( + self.generate_async_campaigns_report_endpoint = _Endpoint( settings={ 'response_type': (AsyncReportResponse,), 'auth': [ @@ -53,16 +50,16 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/retail-media/reports/campaigns', - 'operation_id': 'generate_async_campaign_report', + 'operation_id': 'generate_async_campaigns_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'async_campaign_report_request', + 'async_campaigns_report_request', ], 'required': [ - 'async_campaign_report_request', + 'async_campaigns_report_request', ], 'nullable': [ ], @@ -77,13 +74,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'async_campaign_report_request': - (AsyncCampaignReportRequest,), + 'async_campaigns_report_request': + (AsyncCampaignsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'async_campaign_report_request': 'body', + 'async_campaigns_report_request': 'body', }, 'collection_format_map': { } @@ -117,10 +114,10 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'async_line_item_report_request', + 'async_line_items_report_request', ], 'required': [ - 'async_line_item_report_request', + 'async_line_items_report_request', ], 'nullable': [ ], @@ -135,13 +132,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'async_line_item_report_request': - (AsyncLineItemReportRequest,), + 'async_line_items_report_request': + (AsyncLineItemsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'async_line_item_report_request': 'body', + 'async_line_items_report_request': 'body', }, 'collection_format_map': { } @@ -161,65 +158,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.generate_async_revenue_report_endpoint = _Endpoint( - settings={ - 'response_type': (AsyncReportResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/preview/retail-media/reports/revenue', - 'operation_id': 'generate_async_revenue_report', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'async_revenue_report_request', - ], - 'required': [ - 'async_revenue_report_request', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'async_revenue_report_request': - (AsyncRevenueReportRequest,), - }, - 'attribute_map': { - }, - 'location_map': { - 'async_revenue_report_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_attributed_transactions_report_endpoint = _Endpoint( + self.generate_sync_attributed_transactions_report_endpoint = _Endpoint( settings={ 'response_type': (ReportResponse,), 'auth': [ @@ -227,16 +166,16 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/retail-media/reports/sync/attributed-transactions', - 'operation_id': 'generate_attributed_transactions_report', + 'operation_id': 'generate_sync_attributed_transactions_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'attributed_transaction_report_request', + 'sync_attributed_transactions_report_request', ], 'required': [ - 'attributed_transaction_report_request', + 'sync_attributed_transactions_report_request', ], 'nullable': [ ], @@ -251,13 +190,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'attributed_transaction_report_request': - (AttributedTransactionReportRequest,), + 'sync_attributed_transactions_report_request': + (SyncAttributedTransactionsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'attributed_transaction_report_request': 'body', + 'sync_attributed_transactions_report_request': 'body', }, 'collection_format_map': { } @@ -269,6 +208,7 @@ def __init__(self, api_client=None): 'text/json' ], 'content_type': [ + 'application/json-patch+json', 'application/json', 'text/json', 'application/*+json' @@ -276,7 +216,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.generate_campaign_reports_endpoint = _Endpoint( + self.generate_sync_campaigns_report_endpoint = _Endpoint( settings={ 'response_type': (ReportResponse,), 'auth': [ @@ -284,16 +224,16 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/retail-media/reports/sync/campaigns', - 'operation_id': 'generate_campaign_reports', + 'operation_id': 'generate_sync_campaigns_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'campaign_report_request', + 'sync_campaigns_report_request', ], 'required': [ - 'campaign_report_request', + 'sync_campaigns_report_request', ], 'nullable': [ ], @@ -308,13 +248,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_report_request': - (CampaignReportRequest,), + 'sync_campaigns_report_request': + (SyncCampaignsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'campaign_report_request': 'body', + 'sync_campaigns_report_request': 'body', }, 'collection_format_map': { } @@ -326,6 +266,7 @@ def __init__(self, api_client=None): 'text/json' ], 'content_type': [ + 'application/json-patch+json', 'application/json', 'text/json', 'application/*+json' @@ -333,7 +274,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.generate_line_items_reports_endpoint = _Endpoint( + self.generate_sync_line_items_report_endpoint = _Endpoint( settings={ 'response_type': (ReportResponse,), 'auth': [ @@ -341,16 +282,16 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/retail-media/reports/sync/line-items', - 'operation_id': 'generate_line_items_reports', + 'operation_id': 'generate_sync_line_items_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_report_request', + 'sync_line_items_report_request', ], 'required': [ - 'line_item_report_request', + 'sync_line_items_report_request', ], 'nullable': [ ], @@ -365,13 +306,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_report_request': - (LineItemReportRequest,), + 'sync_line_items_report_request': + (SyncLineItemsReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'line_item_report_request': 'body', + 'sync_line_items_report_request': 'body', }, 'collection_format_map': { } @@ -383,6 +324,7 @@ def __init__(self, api_client=None): 'text/json' ], 'content_type': [ + 'application/json-patch+json', 'application/json', 'text/json', 'application/*+json' @@ -498,100 +440,23 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_sku_by_product_id_endpoint = _Endpoint( - settings={ - 'response_type': (ResourceCollectionOutcomeOfSkuSearchResult,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id', - 'operation_id': 'get_sku_by_product_id', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'account_id', - 'retailer_id', - 'offset', - 'limit', - 'sku_search_request', - ], - 'required': [ - 'account_id', - 'retailer_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'account_id': - (str,), - 'retailer_id': - (int,), - 'offset': - (int,), - 'limit': - (int,), - 'sku_search_request': - (SkuSearchRequest,), - }, - 'attribute_map': { - 'account_id': 'accountId', - 'retailer_id': 'retailerId', - 'offset': 'offset', - 'limit': 'limit', - }, - 'location_map': { - 'account_id': 'path', - 'retailer_id': 'path', - 'offset': 'query', - 'limit': 'query', - 'sku_search_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [ - 'application/json-patch+json', - 'application/json', - 'text/json', - 'application/*+json' - ] - }, - api_client=api_client - ) - def generate_async_campaign_report( + def generate_async_campaigns_report( self, - async_campaign_report_request, + async_campaigns_report_request, **kwargs ): - """generate_async_campaign_report # noqa: E501 + """generate_async_campaigns_report # noqa: E501 - Return an async Campaign Report # noqa: E501 + Return an asynchronous Campaigns 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_campaign_report(async_campaign_report_request, async_req=True) + >>> thread = api.generate_async_campaigns_report(async_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - async_campaign_report_request (AsyncCampaignReportRequest): + async_campaigns_report_request (AsyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -655,26 +520,26 @@ def generate_async_campaign_report( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['async_campaign_report_request'] = \ - async_campaign_report_request - return self.generate_async_campaign_report_endpoint.call_with_http_info(**kwargs) + kwargs['async_campaigns_report_request'] = \ + async_campaigns_report_request + return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs) def generate_async_line_items_report( self, - async_line_item_report_request, + async_line_items_report_request, **kwargs ): """generate_async_line_items_report # noqa: E501 - Return an async Line Item Report # noqa: E501 + Returns an asynchronous Line Items 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) + >>> thread = api.generate_async_line_items_report(async_line_items_report_request, async_req=True) >>> result = thread.get() Args: - async_line_item_report_request (AsyncLineItemReportRequest): + async_line_items_report_request (AsyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -738,109 +603,26 @@ def generate_async_line_items_report( '_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 + kwargs['async_line_items_report_request'] = \ + async_line_items_report_request return self.generate_async_line_items_report_endpoint.call_with_http_info(**kwargs) - def generate_async_revenue_report( + def generate_sync_attributed_transactions_report( self, - async_revenue_report_request, + sync_attributed_transactions_report_request, **kwargs ): - """generate_async_revenue_report # noqa: E501 + """generate_sync_attributed_transactions_report # noqa: E501 - Return an async Revenue Report # noqa: E501 + Returns a synchronous 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.generate_async_revenue_report(async_revenue_report_request, async_req=True) + >>> thread = api.generate_sync_attributed_transactions_report(sync_attributed_transactions_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.generate_attributed_transactions_report(attributed_transaction_report_request, async_req=True) - >>> result = thread.get() - - Args: - attributed_transaction_report_request (AttributedTransactionReportRequest): + sync_attributed_transactions_report_request (SyncAttributedTransactionsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -904,26 +686,26 @@ def generate_attributed_transactions_report( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['attributed_transaction_report_request'] = \ - attributed_transaction_report_request - return self.generate_attributed_transactions_report_endpoint.call_with_http_info(**kwargs) + kwargs['sync_attributed_transactions_report_request'] = \ + sync_attributed_transactions_report_request + return self.generate_sync_attributed_transactions_report_endpoint.call_with_http_info(**kwargs) - def generate_campaign_reports( + def generate_sync_campaigns_report( self, - campaign_report_request, + sync_campaigns_report_request, **kwargs ): - """generate_campaign_reports # noqa: E501 + """generate_sync_campaigns_report # noqa: E501 - Return a Campaign Report # noqa: E501 + Returns a synchronous Campaigns 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) + >>> thread = api.generate_sync_campaigns_report(sync_campaigns_report_request, async_req=True) >>> result = thread.get() Args: - campaign_report_request (CampaignReportRequest): + sync_campaigns_report_request (SyncCampaignsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -987,26 +769,26 @@ def generate_campaign_reports( '_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) + kwargs['sync_campaigns_report_request'] = \ + sync_campaigns_report_request + return self.generate_sync_campaigns_report_endpoint.call_with_http_info(**kwargs) - def generate_line_items_reports( + def generate_sync_line_items_report( self, - line_item_report_request, + sync_line_items_report_request, **kwargs ): - """generate_line_items_reports # noqa: E501 + """generate_sync_line_items_report # noqa: E501 - Return a Line Item Report # noqa: E501 + Returns a synchronous Line Items 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) + >>> thread = api.generate_sync_line_items_report(sync_line_items_report_request, async_req=True) >>> result = thread.get() Args: - line_item_report_request (LineItemReportRequest): + sync_line_items_report_request (SyncLineItemsReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -1070,9 +852,9 @@ def generate_line_items_reports( '_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) + kwargs['sync_line_items_report_request'] = \ + sync_line_items_report_request + return self.generate_sync_line_items_report_endpoint.call_with_http_info(**kwargs) def get_async_export_output( self, @@ -1081,7 +863,7 @@ def get_async_export_output( ): """get_async_export_output # noqa: E501 - Return the output of an async report # noqa: E501 + Returns 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 @@ -1164,7 +946,7 @@ def get_async_export_status( ): """get_async_export_status # noqa: E501 - Return the status of an async report # noqa: E501 + Returns 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 @@ -1240,93 +1022,3 @@ def get_async_export_status( report_id return self.get_async_export_status_endpoint.call_with_http_info(**kwargs) - def get_sku_by_product_id( - self, - account_id, - retailer_id, - **kwargs - ): - """get_sku_by_product_id # noqa: E501 - - Gets a list of SKUs based on a privided list of Product 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_sku_by_product_id(account_id, retailer_id, async_req=True) - >>> result = thread.get() - - Args: - account_id (str): account id - retailer_id (int): retailer id - - Keyword Args: - offset (int): skip a number of matches before retrning results, used with limit. [optional] if omitted the server will use the default value of 0 - limit (int): max number of results to return. [optional] if omitted the server will use the default value of 100 - sku_search_request (SkuSearchRequest): . [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: - ResourceCollectionOutcomeOfSkuSearchResult - 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['retailer_id'] = \ - retailer_id - return self.get_sku_by_product_id_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 7cad84ce..82f7bfa5 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -22,12 +22,8 @@ validate_and_convert_types ) from criteo_api_retailmedia_preview.model.common_status_code_response import CommonStatusCodeResponse -from criteo_api_retailmedia_preview.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_preview.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse -from criteo_api_retailmedia_preview.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response class AudienceApi(object): @@ -41,124 +37,6 @@ 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': '/preview/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': '/preview/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,), @@ -296,180 +174,6 @@ def __init__(self, api_client=None): 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, 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 87eac053..8908b759 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -21,13 +21,8 @@ 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 @@ -44,7 +39,7 @@ from criteo_api_retailmedia_preview.model.product_button_list_request import ProductButtonListRequest from criteo_api_retailmedia_preview.model.product_button_list_response import ProductButtonListResponse from criteo_api_retailmedia_preview.model.product_button_request import ProductButtonRequest -from criteo_api_retailmedia_preview.model.product_button_response import ProductButtonResponse +from criteo_api_retailmedia_preview.model.resource_collection_outcome_of_sku_search_result import ResourceCollectionOutcomeOfSkuSearchResult from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest from criteo_api_retailmedia_preview.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse from criteo_api_retailmedia_preview.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse @@ -52,6 +47,7 @@ from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest from criteo_api_retailmedia_preview.model.seller_preview_response import SellerPreviewResponse from criteo_api_retailmedia_preview.model.sku_data_preview_list_response import SkuDataPreviewListResponse +from criteo_api_retailmedia_preview.model.sku_search_request import SkuSearchRequest from criteo_api_retailmedia_preview.model.sku_search_request_preview_request import SkuSearchRequestPreviewRequest from criteo_api_retailmedia_preview.model.sku_search_request_slim_preview_request import SkuSearchRequestSlimPreviewRequest from criteo_api_retailmedia_preview.model.sku_search_request_slim_v2_preview_request import SkuSearchRequestSlimV2PreviewRequest @@ -59,9 +55,11 @@ 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 +from criteo_api_retailmedia_preview.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_input_of_line_item_budget_overrides import ValueResourceInputOfLineItemBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_outcome_of_campaign_budget_overrides import ValueResourceOutcomeOfCampaignBudgetOverrides -from criteo_api_retailmedia_preview.model.value_resource_outcome_of_suggested_keywords_result import ValueResourceOutcomeOfSuggestedKeywordsResult +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_line_item_budget_overrides import ValueResourceOutcomeOfLineItemBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult class CampaignApi(object): @@ -521,7 +519,7 @@ def __init__(self, api_client=None): ) self.get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint = _Endpoint( settings={ - 'response_type': (ProductButtonResponse,), + 'response_type': (ProductButtonListResponse,), 'auth': [ 'oauth', 'oauth' @@ -736,74 +734,6 @@ 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,), @@ -872,64 +802,6 @@ 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,), @@ -1355,15 +1227,67 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_suggested_keywords_endpoint = _Endpoint( + self.get_line_item_budget_overrides_endpoint = _Endpoint( + settings={ + 'response_type': (ValueResourceOutcomeOfLineItemBudgetOverrides,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides', + 'operation_id': 'get_line_item_budget_overrides', + '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': 'lineItemId', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_recommended_keywords_endpoint = _Endpoint( settings={ - 'response_type': (ValueResourceOutcomeOfSuggestedKeywordsResult,), + 'response_type': (ValueResourceOutcomeOfRecommendedKeywordsResult,), 'auth': [ 'oauth', 'oauth' ], 'endpoint_path': '/preview/retail-media/line-items/{externalLineItemId}/keywords/recommended', - 'operation_id': 'get_suggested_keywords', + 'operation_id': 'get_recommended_keywords', 'http_method': 'GET', 'servers': None, }, @@ -1407,56 +1331,91 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( + self.get_sku_by_product_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (ResourceCollectionOutcomeOfSkuSearchResult,), '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', + 'endpoint_path': '/preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id', + 'operation_id': 'get_sku_by_product_id', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'account_id', - 'balance_id', - 'update_balance_model_request', + 'retailer_id', + 'offset', + 'limit', + 'sku_search_request', ], 'required': [ 'account_id', - 'balance_id', + 'retailer_id', ], 'nullable': [ ], 'enum': [ ], 'validation': [ + 'account_id', + 'retailer_id', + 'offset', + 'limit', ] }, root_map={ 'validations': { + ('account_id',): { + + 'regex': { + 'pattern': r'^\d+$', # noqa: E501 + }, + }, + ('retailer_id',): { + + 'inclusive_maximum': 2147483647, + 'inclusive_minimum': 1, + }, + ('offset',): { + + 'inclusive_maximum': 2147483647, + 'inclusive_minimum': 0, + }, + ('limit',): { + + 'inclusive_maximum': 2147483647, + 'inclusive_minimum': 1, + }, }, 'allowed_values': { }, 'openapi_types': { 'account_id': (str,), - 'balance_id': - (str,), - 'update_balance_model_request': - (UpdateBalanceModelRequest,), + 'retailer_id': + (int,), + 'offset': + (int,), + 'limit': + (int,), + 'sku_search_request': + (SkuSearchRequest,), }, 'attribute_map': { 'account_id': 'accountId', - 'balance_id': 'balanceId', + 'retailer_id': 'retailerId', + 'offset': 'offset', + 'limit': 'limit', }, 'location_map': { 'account_id': 'path', - 'balance_id': 'path', - 'update_balance_model_request': 'body', + 'retailer_id': 'path', + 'offset': 'query', + 'limit': 'query', + 'sku_search_request': 'body', }, 'collection_format_map': { } @@ -1466,7 +1425,10 @@ def __init__(self, api_client=None): 'application/json' ], 'content_type': [ - 'application/json' + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' ] }, api_client=api_client @@ -1703,56 +1665,69 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint = _Endpoint( + self.post_api_v1_external_catalogs_sku_retrieval_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (SkuDataPreviewListResponse,), 'auth': [ 'oauth', 'oauth' ], - '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', + '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': [ - 'account_id', - 'balance_id', - 'add_funds_to_balance_request', - ], - 'required': [ - 'account_id', - 'balance_id', + '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': { - 'account_id': - (str,), - 'balance_id': - (str,), - 'add_funds_to_balance_request': - (AddFundsToBalanceRequest,), + 'page_index': + (int,), + 'page_size': + (int,), + 'request_body': + ([str],), }, 'attribute_map': { - 'account_id': 'accountId', - 'balance_id': 'balanceId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', }, 'location_map': { - 'account_id': 'path', - 'balance_id': 'path', - 'add_funds_to_balance_request': 'body', + 'page_index': 'query', + 'page_size': 'query', + 'request_body': 'body', }, 'collection_format_map': { } @@ -1767,231 +1742,32 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( + self.post_api_v1_external_catalogs_sku_search_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (SkuDataPreviewListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances', - 'operation_id': 'post_api_v1_external_account_balances_by_account_id', + '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': [ - 'account_id', - 'create_balance_request', - ], - 'required': [ - 'account_id', + 'page_index', + 'page_size', + 'sku_search_request_preview_request', ], + 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'account_id': - (str,), - 'create_balance_request': - (CreateBalanceRequest,), - }, - 'attribute_map': { - 'account_id': 'accountId', - }, - 'location_map': { - 'account_id': 'path', - 'create_balance_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) - self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint = _Endpoint( - settings={ - 'response_type': (BalanceResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - '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', - 'balance_id', - 'change_dates_of_balance_request', - ], - 'required': [ - 'account_id', - 'balance_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - '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', + 'page_index', + 'page_size', ] }, root_map={ @@ -2264,7 +2040,7 @@ def __init__(self, api_client=None): ) self.put_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint = _Endpoint( settings={ - 'response_type': (ProductButtonResponse,), + 'response_type': (ProductButtonListResponse,), 'auth': [ 'oauth', 'oauth' @@ -2500,111 +2276,148 @@ def __init__(self, api_client=None): }, 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 + self.update_campaign_budget_overrides_endpoint = _Endpoint( + settings={ + 'response_type': (ValueResourceOutcomeOfCampaignBudgetOverrides,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides', + 'operation_id': 'update_campaign_budget_overrides', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'value_resource_input_of_campaign_budget_overrides', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (int,), + 'value_resource_input_of_campaign_budget_overrides': + (ValueResourceInputOfCampaignBudgetOverrides,), + }, + 'attribute_map': { + 'campaign_id': 'campaignId', + }, + 'location_map': { + 'campaign_id': 'path', + 'value_resource_input_of_campaign_budget_overrides': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False + self.update_line_item_budget_overrides_endpoint = _Endpoint( + settings={ + 'response_type': (ValueResourceOutcomeOfLineItemBudgetOverrides,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides', + 'operation_id': 'update_line_item_budget_overrides', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'value_resource_input_of_line_item_budget_overrides', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'value_resource_input_of_line_item_budget_overrides': + (ValueResourceInputOfLineItemBudgetOverrides,), + }, + 'attribute_map': { + 'line_item_id': 'lineItemId', + }, + 'location_map': { + 'line_item_id': 'path', + 'value_resource_input_of_line_item_budget_overrides': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client ) - 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 delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id( + def add_remove_keywords( self, - line_item_id, - product_button_id, + id, **kwargs ): - """delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id # noqa: E501 + """add_remove_keywords # noqa: E501 - Delete a product button # 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.delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id, async_req=True) + >>> thread = api.add_remove_keywords(id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): Long external id of the associated line item - product_button_id (str): Sequential id of the product button + 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 @@ -2637,7 +2450,7 @@ def delete_api202210_external_line_item_product_buttons_by_line_item_id_product_ async_req (bool): execute request asynchronously Returns: - None + RetailMediaExternalv1ResourceOutcome If the method is called asynchronously, returns the request thread. """ @@ -2666,28 +2479,28 @@ def delete_api202210_external_line_item_product_buttons_by_line_item_id_product_ '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - kwargs['product_button_id'] = \ - product_button_id - return self.delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.add_remove_keywords_endpoint.call_with_http_info(**kwargs) - def fetch_keywords( + def delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id( self, - id, + line_item_id, + product_button_id, **kwargs ): - """fetch_keywords # noqa: E501 + """delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id # noqa: E501 - Fetch keywords associated with the specified line item # noqa: E501 + Delete a product button # 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) + >>> thread = api.delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id, async_req=True) >>> result = thread.get() Args: - id (str): Long external id of the associated line item + line_item_id (str): Long external id of the associated line item + product_button_id (str): Sequential id of the product button Keyword Args: _return_http_data_only (bool): response data without head status @@ -2722,7 +2535,7 @@ def fetch_keywords( async_req (bool): execute request asynchronously Returns: - RetailMediaExternalv1KeywordsModelResponse + None If the method is called asynchronously, returns the request thread. """ @@ -2751,26 +2564,28 @@ def fetch_keywords( '_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) + kwargs['line_item_id'] = \ + line_item_id + kwargs['product_button_id'] = \ + product_button_id + return self.delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint.call_with_http_info(**kwargs) - def fetch_proposal( + def fetch_keywords( self, id, **kwargs ): - """fetch_proposal # noqa: E501 + """fetch_keywords # noqa: E501 - Fetch the status of a proposal to modify a Preferred Deal Line Item. # 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_proposal(id, async_req=True) + >>> thread = api.fetch_keywords(id, async_req=True) >>> result = thread.get() Args: - id (str): The external id of a line item. + id (str): Long external id of the associated line item Keyword Args: _return_http_data_only (bool): response data without head status @@ -2805,7 +2620,7 @@ def fetch_proposal( async_req (bool): execute request asynchronously Returns: - RetailMediaExternalv1ProposalStatusModelResponse + RetailMediaExternalv1KeywordsModelResponse If the method is called asynchronously, returns the request thread. """ @@ -2836,26 +2651,24 @@ def fetch_proposal( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id - return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) + return self.fetch_keywords_endpoint.call_with_http_info(**kwargs) - def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( + def fetch_proposal( self, - retailer_id, - template_id, + id, **kwargs ): - """get_api202207_external_retailer_by_retailer_id_templatestemplate_id # noqa: E501 + """fetch_proposal # noqa: E501 - Gets the template for the specified retailer id and template id # 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.get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id, async_req=True) + >>> thread = api.fetch_proposal(id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): Retailer Id - template_id (int): Template Id + id (str): The external id of a line item. Keyword Args: _return_http_data_only (bool): response data without head status @@ -2890,7 +2703,7 @@ def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( async_req (bool): execute request asynchronously Returns: - TemplateResponse + RetailMediaExternalv1ProposalStatusModelResponse If the method is called asynchronously, returns the request thread. """ @@ -2919,28 +2732,28 @@ def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( '_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) + kwargs['id'] = \ + id + return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) - def get_api202207_external_retailer_templates_by_retailer_id( + def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( self, retailer_id, + template_id, **kwargs ): - """get_api202207_external_retailer_templates_by_retailer_id # noqa: E501 + """get_api202207_external_retailer_by_retailer_id_templatestemplate_id # noqa: E501 - Get retailer creative templates # 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_templates_by_retailer_id(retailer_id, 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): External retailer id to retrieve creative templates for + retailer_id (int): Retailer Id + template_id (int): Template Id Keyword Args: _return_http_data_only (bool): response data without head status @@ -2975,7 +2788,7 @@ def get_api202207_external_retailer_templates_by_retailer_id( async_req (bool): execute request asynchronously Returns: - TemplateListResponse + TemplateResponse If the method is called asynchronously, returns the request thread. """ @@ -3006,281 +2819,26 @@ def get_api202207_external_retailer_templates_by_retailer_id( 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_api202210_external_line_item_product_buttons_by_line_item_id( - self, - line_item_id, - **kwargs - ): - """get_api202210_external_line_item_product_buttons_by_line_item_id # noqa: E501 - - Get all the product buttons associated with 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_api202210_external_line_item_product_buttons_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: - ProductButtonListResponse - 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_api202210_external_line_item_product_buttons_by_line_item_id_endpoint.call_with_http_info(**kwargs) - - def get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id( - self, - line_item_id, - product_button_id, - **kwargs - ): - """get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id # noqa: E501 - - Get a single product button # 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_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id, async_req=True) - >>> result = thread.get() - - Args: - line_item_id (str): Long external id of the associated line item - product_button_id (str): Sequential id of the product button - - 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: - ProductButtonResponse - 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 - kwargs['product_button_id'] = \ - product_button_id - return self.get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint.call_with_http_info(**kwargs) + kwargs['template_id'] = \ + template_id + return self.get_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint.call_with_http_info(**kwargs) - def get_api202301_external_line_item_bid_multipliers_by_line_item_id( + def get_api202207_external_retailer_templates_by_retailer_id( self, - line_item_id, + retailer_id, **kwargs ): - """get_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 + """get_api202207_external_retailer_templates_by_retailer_id # noqa: E501 - Get bid multipliers by line item # 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_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api202207_external_retailer_templates_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): Long external id of the associated line item + retailer_id (int): External retailer id to retrieve creative templates for Keyword Args: _return_http_data_only (bool): response data without head status @@ -3315,7 +2873,7 @@ def get_api202301_external_line_item_bid_multipliers_by_line_item_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfLineItemBidMultipliers + TemplateListResponse If the method is called asynchronously, returns the request thread. """ @@ -3344,26 +2902,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['retailer_id'] = \ + retailer_id + return self.get_api202207_external_retailer_templates_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api_v0_external_catalog_output_by_catalog_id( + def get_api202210_external_account_by_account_id_creativescreative_id( self, - catalog_id, + account_id, + creative_id, **kwargs ): - """get_api_v0_external_catalog_output_by_catalog_id # noqa: E501 + """get_api202210_external_account_by_account_id_creativescreative_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 + 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_api_v0_external_catalog_output_by_catalog_id(catalog_id, 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: - catalog_id (str): A catalog ID returned from an account catalog request. + 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 @@ -3398,7 +2958,7 @@ def get_api_v0_external_catalog_output_by_catalog_id( async_req (bool): execute request asynchronously Returns: - None + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -3427,26 +2987,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) + 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_api_v0_external_catalog_status_by_catalog_id( + def get_api202210_external_line_item_product_buttons_by_line_item_id( self, - catalog_id, + line_item_id, **kwargs ): - """get_api_v0_external_catalog_status_by_catalog_id # noqa: E501 + """get_api202210_external_line_item_product_buttons_by_line_item_id # noqa: E501 - Check the status of a catalog request. # noqa: E501 + Get all the product buttons associated with 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_v0_external_catalog_status_by_catalog_id(catalog_id, async_req=True) + >>> thread = api.get_api202210_external_line_item_product_buttons_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: - catalog_id (str): A catalog ID returned from an account catalog request. + line_item_id (str): Long external id of the associated line item Keyword Args: _return_http_data_only (bool): response data without head status @@ -3481,7 +3043,7 @@ def get_api_v0_external_catalog_status_by_catalog_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + ProductButtonListResponse If the method is called asynchronously, returns the request thread. """ @@ -3510,31 +3072,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['line_item_id'] = \ + line_item_id + return self.get_api202210_external_line_item_product_buttons_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_balances_by_account_id( + def get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id( self, - account_id, + line_item_id, + product_button_id, **kwargs ): - """get_api_v1_external_account_balances_by_account_id # noqa: E501 + """get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id # noqa: E501 - Get page of balances for the given accountId. # noqa: E501 + Get a single product button # 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) + >>> thread = api.get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account to get page of balances for + line_item_id (str): Long external id of the associated line item + product_button_id (str): Sequential id of the product button 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 @@ -3567,7 +3128,7 @@ def get_api_v1_external_account_balances_by_account_id( async_req (bool): execute request asynchronously Returns: - BalanceResponsePagedListResponse + ProductButtonListResponse If the method is called asynchronously, returns the request thread. """ @@ -3596,31 +3157,30 @@ def get_api_v1_external_account_balances_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_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + kwargs['product_button_id'] = \ + product_button_id + return self.get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_brands_by_account_id( + def get_api202301_external_line_item_bid_multipliers_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """get_api_v1_external_account_brands_by_account_id # noqa: E501 + """get_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 - Gets page of retailer objects that are associated with the given account # 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_api_v1_external_account_brands_by_account_id(account_id, 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: - account_id (str): The given account id + line_item_id (str): Long external id of the associated line item 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 @@ -3653,7 +3213,7 @@ def get_api_v1_external_account_brands_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfBrand + JsonApiSingleResponseOfLineItemBidMultipliers If the method is called asynchronously, returns the request thread. """ @@ -3682,28 +3242,26 @@ 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['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_by_account_id_and_balance_id( + def get_api_v0_external_catalog_output_by_catalog_id( self, - account_id, - balance_id, + catalog_id, **kwargs ): - """get_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 + """get_api_v0_external_catalog_output_by_catalog_id # noqa: E501 - Get a balance for the given account id and balance 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_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.get_api_v0_external_catalog_output_by_catalog_id(catalog_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account of the balance - balance_id (str): The balance id + catalog_id (str): A catalog ID returned from an account catalog request. Keyword Args: _return_http_data_only (bool): response data without head status @@ -3738,7 +3296,7 @@ def get_api_v1_external_account_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + None If the method is called asynchronously, returns the request thread. """ @@ -3767,33 +3325,28 @@ def get_api_v1_external_account_by_account_id_and_balance_id( '_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) + 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_v1_external_account_retailers_by_account_id( + def get_api_v0_external_catalog_status_by_catalog_id( self, - account_id, + catalog_id, **kwargs ): - """get_api_v1_external_account_retailers_by_account_id # noqa: E501 + """get_api_v0_external_catalog_status_by_catalog_id # noqa: E501 - Gets page of retailer objects that are associated with the given account # 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_account_retailers_by_account_id(account_id, async_req=True) + >>> thread = api.get_api_v0_external_catalog_status_by_catalog_id(catalog_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The given account id + 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 @@ -3826,7 +3379,7 @@ def get_api_v1_external_account_retailers_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfRetailer + JsonApiSingleResponseOfCatalogStatus If the method is called asynchronously, returns the request thread. """ @@ -3855,23 +3408,26 @@ 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['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_accounts( + def get_api_v1_external_account_brands_by_account_id( self, + account_id, **kwargs ): - """get_api_v1_external_accounts # noqa: E501 + """get_api_v1_external_account_brands_by_account_id # noqa: E501 - Gets page of account objects that the current user can access # 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_accounts(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] @@ -3909,7 +3465,7 @@ def get_api_v1_external_accounts( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfAccount + JsonApiPageResponseOfBrand If the method is called asynchronously, returns the request thread. """ @@ -3938,28 +3494,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['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_retailer_brands_by_retailer_id( + def get_api_v1_external_account_retailers_by_account_id( self, - retailer_id, + account_id, **kwargs ): - """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501 + """get_api_v1_external_account_retailers_by_account_id # noqa: E501 - Gets the brands for the given retailer # 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_retailer_brands_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.get_api_v1_external_account_retailers_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): The retailer id for which brands should be fetched. + account_id (str): The given account id 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] + 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 @@ -3992,7 +3551,7 @@ def get_api_v1_external_retailer_brands_by_retailer_id( async_req (bool): execute request asynchronously Returns: - BrandPreviewListResponse + JsonApiPageResponseOfRetailer If the method is called asynchronously, returns the request thread. """ @@ -4021,30 +3580,28 @@ 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 + return self.get_api_v1_external_account_retailers_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( + def get_api_v1_external_accounts( self, - retailer_id, - seller, **kwargs ): - """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501 + """get_api_v1_external_accounts # noqa: E501 - Endpoint to get market place seller id and name # 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_retailer_by_retailer_id_seller_by_seller(retailer_id, seller, async_req=True) + >>> thread = api.get_api_v1_external_accounts(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. 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 @@ -4077,7 +3634,7 @@ def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( async_req (bool): execute request asynchronously Returns: - SellerPreviewResponse + JsonApiPageResponseOfAccount If the method is called asynchronously, returns the request thread. """ @@ -4106,31 +3663,28 @@ 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) + return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( + def get_api_v1_external_retailer_brands_by_retailer_id( self, retailer_id, **kwargs ): - """get_api_v1_external_retailer_category_cpc_rates_by_retailer_id # noqa: E501 + """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501 - Gets the minimum cpc bid for the retailer, and optionally the categories under the retailer # 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_v1_external_retailer_category_cpc_rates_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.get_api_v1_external_retailer_brands_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - retailer_id (str): The retailer id + retailer_id (int): The retailer id for which brands should be fetched. Keyword Args: - fields ([str]): The fields in the response that is to be included. [optional] + 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 @@ -4163,7 +3717,7 @@ def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( async_req (bool): execute request asynchronously Returns: - CpcRateCardPreviewResponse + BrandPreviewListResponse If the method is called asynchronously, returns the request thread. """ @@ -4194,24 +3748,26 @@ def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( 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) + return self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_placements_by_retailer_id( + def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( self, retailer_id, + seller, **kwargs ): - """get_api_v1_external_retailer_placements_by_retailer_id # noqa: E501 + """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501 - Gets all placement information for the given retailer # 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_retailer_placements_by_retailer_id(retailer_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: - retailer_id (str): The retailer id for which placements should be fetched. + 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: _return_http_data_only (bool): response data without head status @@ -4246,7 +3802,7 @@ def get_api_v1_external_retailer_placements_by_retailer_id( async_req (bool): execute request asynchronously Returns: - PlacementPreviewListResponse + SellerPreviewResponse If the method is called asynchronously, returns the request thread. """ @@ -4277,26 +3833,29 @@ def get_api_v1_external_retailer_placements_by_retailer_id( 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['seller'] = \ + seller + return self.get_api_v1_external_retailer_by_retailer_id_seller_by_seller_endpoint.call_with_http_info(**kwargs) - def get_campaign_budget_overrides( + def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( self, - campaign_id, + retailer_id, **kwargs ): - """get_campaign_budget_overrides # noqa: E501 + """get_api_v1_external_retailer_category_cpc_rates_by_retailer_id # noqa: E501 - Get current campaign budget overrides by given external campaign id. # 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_campaign_budget_overrides(campaign_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: - campaign_id (int): External campaign id. + retailer_id (str): The retailer id Keyword Args: + 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 @@ -4329,7 +3888,7 @@ def get_campaign_budget_overrides( async_req (bool): execute request asynchronously Returns: - ValueResourceOutcomeOfCampaignBudgetOverrides + CpcRateCardPreviewResponse If the method is called asynchronously, returns the request thread. """ @@ -4358,26 +3917,26 @@ def get_campaign_budget_overrides( '_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_budget_overrides_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_suggested_keywords( + def get_api_v1_external_retailer_placements_by_retailer_id( self, - external_line_item_id, + retailer_id, **kwargs ): - """get_suggested_keywords # noqa: E501 + """get_api_v1_external_retailer_placements_by_retailer_id # noqa: E501 - Retrieves a collection of recommended keywords for a line item # 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_suggested_keywords(external_line_item_id, async_req=True) + >>> thread = api.get_api_v1_external_retailer_placements_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - external_line_item_id (str): The external line item identifier + retailer_id (str): The retailer id for which placements should be fetched. Keyword Args: _return_http_data_only (bool): response data without head status @@ -4412,7 +3971,7 @@ def get_suggested_keywords( async_req (bool): execute request asynchronously Returns: - ValueResourceOutcomeOfSuggestedKeywordsResult + PlacementPreviewListResponse If the method is called asynchronously, returns the request thread. """ @@ -4441,31 +4000,28 @@ def get_suggested_keywords( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['external_line_item_id'] = \ - external_line_item_id - return self.get_suggested_keywords_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 patch_api_v1_external_account_by_account_id_and_balance_id( + def get_campaign_budget_overrides( self, - account_id, - balance_id, + campaign_id, **kwargs ): - """patch_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 + """get_campaign_budget_overrides # noqa: E501 - Modify a balance for the given account id # noqa: E501 + Get current campaign budget overrides by given external 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.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.get_campaign_budget_overrides(campaign_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account of the balance - balance_id (str): The balance to change the dates + campaign_id (int): External campaign id. Keyword Args: - 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 @@ -4498,7 +4054,7 @@ def patch_api_v1_external_account_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + ValueResourceOutcomeOfCampaignBudgetOverrides If the method is called asynchronously, returns the request thread. """ @@ -4527,31 +4083,28 @@ def patch_api_v1_external_account_by_account_id_and_balance_id( '_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.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.get_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_account_creatives_by_account_id( + def get_line_item_budget_overrides( self, - account_id, + line_item_id, **kwargs ): - """post_api202210_external_account_creatives_by_account_id # noqa: E501 + """get_line_item_budget_overrides # noqa: E501 - Create a creative for an account # noqa: E501 + Gets a collection of monthly and daily budget overrides for the provided 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_api202210_external_account_creatives_by_account_id(account_id, async_req=True) + >>> thread = api.get_line_item_budget_overrides(line_item_id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to create a creative for + line_item_id (str): The line item id to get budget overrides 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 @@ -4584,7 +4137,7 @@ def post_api202210_external_account_creatives_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202210Response + ValueResourceOutcomeOfLineItemBudgetOverrides If the method is called asynchronously, returns the request thread. """ @@ -4613,29 +4166,28 @@ def post_api202210_external_account_creatives_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.post_api202210_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.get_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_account_creatives_search_by_account_id( + def get_recommended_keywords( self, - account_id, + external_line_item_id, **kwargs ): - """post_api202210_external_account_creatives_search_by_account_id # noqa: E501 + """get_recommended_keywords # noqa: E501 - Get account creatives # noqa: E501 + Retrieves a collection of recommended keywords for 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.post_api202210_external_account_creatives_search_by_account_id(account_id, async_req=True) + >>> thread = api.get_recommended_keywords(external_line_item_id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to retrieve creatives for + external_line_item_id (str): The external line item identifier 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 @@ -4668,7 +4220,7 @@ def post_api202210_external_account_creatives_search_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202210ListResponse + ValueResourceOutcomeOfRecommendedKeywordsResult If the method is called asynchronously, returns the request thread. """ @@ -4697,29 +4249,33 @@ def post_api202210_external_account_creatives_search_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.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['external_line_item_id'] = \ + external_line_item_id + return self.get_recommended_keywords_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_line_item_product_buttons_create_by_line_item_id( + def get_sku_by_product_id( self, - line_item_id, + account_id, + retailer_id, **kwargs ): - """post_api202210_external_line_item_product_buttons_create_by_line_item_id # noqa: E501 + """get_sku_by_product_id # noqa: E501 - Append new product buttons to a line item # noqa: E501 + Gets a list of SKUs based on a privided list of Product 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.post_api202210_external_line_item_product_buttons_create_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_sku_by_product_id(account_id, retailer_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): Long external id of the associated line item + account_id (str): account id + retailer_id (int): retailer id Keyword Args: - product_button_list_request (ProductButtonListRequest): List of product buttons to append to the specified line item. [optional] + offset (int): skip a number of matches before retrning results, used with limit. [optional] if omitted the server will use the default value of 0 + limit (int): max number of results to return. [optional] if omitted the server will use the default value of 100 + sku_search_request (SkuSearchRequest): . [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 @@ -4752,7 +4308,7 @@ def post_api202210_external_line_item_product_buttons_create_by_line_item_id( async_req (bool): execute request asynchronously Returns: - ProductButtonListResponse + ResourceCollectionOutcomeOfSkuSearchResult If the method is called asynchronously, returns the request thread. """ @@ -4781,29 +4337,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 + kwargs['retailer_id'] = \ + retailer_id + return self.get_sku_by_product_id_endpoint.call_with_http_info(**kwargs) - def post_api_v0_external_account_catalogs_by_account_id( + def post_api202210_external_account_creatives_by_account_id( self, account_id, **kwargs ): - """post_api_v0_external_account_catalogs_by_account_id # noqa: E501 + """post_api202210_external_account_creatives_by_account_id # noqa: E501 - Create a request for a Catalog available to the indicated account. # 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_api_v0_external_account_catalogs_by_account_id(account_id, 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): The account to request the catalog for. + account_id (str): External account id to create a creative for Keyword Args: - json_api_request_of_catalog_request_preview (JsonApiRequestOfCatalogRequestPreview): [optional] + 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 @@ -4836,7 +4394,7 @@ def post_api_v0_external_account_catalogs_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -4867,29 +4425,27 @@ 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) + return self.post_api202210_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( + def post_api202210_external_account_creatives_search_by_account_id( self, account_id, - balance_id, **kwargs ): - """post_api_v1_external_account_add_funds_by_account_id_and_balance_id # noqa: E501 + """post_api202210_external_account_creatives_search_by_account_id # noqa: E501 - Add funds to a balance for the given 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_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, 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): The account of the balance - balance_id (str): The balance to add funds to + account_id (str): External account id to retrieve creatives for Keyword Args: - add_funds_to_balance_request (AddFundsToBalanceRequest): [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 @@ -4922,7 +4478,7 @@ def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + Creative202210ListResponse If the method is called asynchronously, returns the request thread. """ @@ -4953,29 +4509,27 @@ def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - 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) + return self.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api_v1_external_account_balances_by_account_id( + def post_api202210_external_line_item_product_buttons_create_by_line_item_id( self, - account_id, + line_item_id, **kwargs ): - """post_api_v1_external_account_balances_by_account_id # noqa: E501 + """post_api202210_external_line_item_product_buttons_create_by_line_item_id # noqa: E501 - Create balance for the given account id # 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.post_api_v1_external_account_balances_by_account_id(account_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: - account_id (str): The account to create balances for + line_item_id (str): Long external id of the associated line item Keyword Args: - create_balance_request (CreateBalanceRequest): [optional] + 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 @@ -5008,7 +4562,7 @@ def post_api_v1_external_account_balances_by_account_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + ProductButtonListResponse If the method is called asynchronously, returns the request thread. """ @@ -5037,31 +4591,29 @@ def post_api_v1_external_account_balances_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.post_api_v1_external_account_balances_by_account_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_api_v1_external_account_change_dates_by_account_id_and_balance_id( + def post_api_v0_external_account_catalogs_by_account_id( self, account_id, - balance_id, **kwargs ): - """post_api_v1_external_account_change_dates_by_account_id_and_balance_id # noqa: E501 + """post_api_v0_external_account_catalogs_by_account_id # noqa: E501 - Change dates of a balance for the given 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_change_dates_by_account_id_and_balance_id(account_id, balance_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): The account of the balance - balance_id (str): The balance to change the dates + account_id (str): The account to request the catalog for. Keyword Args: - change_dates_of_balance_request (ChangeDatesOfBalanceRequest): [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 @@ -5094,7 +4646,7 @@ def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + JsonApiSingleResponseOfCatalogStatus If the method is called asynchronously, returns the request thread. """ @@ -5125,9 +4677,7 @@ def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - 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) + return self.post_api_v0_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) def post_api_v1_external_catalogs_sku_retrieval( self, @@ -5609,7 +5159,7 @@ def put_api202210_external_line_item_product_buttons_by_line_item_id_product_but async_req (bool): execute request asynchronously Returns: - ProductButtonResponse + ProductButtonListResponse If the method is called asynchronously, returns the request thread. """ @@ -5895,3 +5445,171 @@ def submit_proposal( id return self.submit_proposal_endpoint.call_with_http_info(**kwargs) + def update_campaign_budget_overrides( + self, + campaign_id, + **kwargs + ): + """update_campaign_budget_overrides # noqa: E501 + + Update campaign budget overrides by given external campaign id and new campaign budget overrides 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.update_campaign_budget_overrides(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (int): External campaign id. + + Keyword Args: + value_resource_input_of_campaign_budget_overrides (ValueResourceInputOfCampaignBudgetOverrides): New campaign budget overrides settings value resource input.. [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: + ValueResourceOutcomeOfCampaignBudgetOverrides + 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.update_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs) + + def update_line_item_budget_overrides( + self, + line_item_id, + **kwargs + ): + """update_line_item_budget_overrides # noqa: E501 + + Update line item budget overrides by given external line item id and new line item budget overrides 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.update_line_item_budget_overrides(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): Line item external id. + + Keyword Args: + value_resource_input_of_line_item_budget_overrides (ValueResourceInputOfLineItemBudgetOverrides): New line item budget overrides settings value resource input.. [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: + ValueResourceOutcomeOfLineItemBudgetOverrides + 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.update_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs) + 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 2c8d6cbc..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 ca91d232..2b131f5a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.230831/python' + self.user_agent = 'OpenAPI-Generator/0.0.231113/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - 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__() + api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint + api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.generate_async_campaign_report.callable or self.callable in this class + api_instance.generate_async_campaigns_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 b17d5e1e..e493147e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -394,8 +394,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: preview\n"\ - "SDK Package Version: 0.0.230831".\ + "Version of the API: Preview\n"\ + "SDK Package Version: 0.0.231113".\ 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 5b0463a5..56ddb6fe 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model.py index 31d1923d..319a30c7 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 3c4d8be8..e9eb76f8 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 3c46ce7a..6ce13f70 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report.py similarity index 80% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report.py index 106e88a7..326901b0 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class AsyncCampaignReport(ModelNormal): +class AsyncCampaignsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -70,10 +70,13 @@ class AsyncCampaignReport(ModelNormal): 'ROAS': "roas", 'UNIQUEVISITORS': "uniqueVisitors", 'FREQUENCY': "frequency", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", }, ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -83,23 +86,11 @@ class AsyncCampaignReport(ModelNormal): 'BRANDID': "brandId", 'BRANDNAME': "brandName", 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", 'KEYWORD': "keyword", 'SALESCHANNEL': "salesChannel", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", - }, - ('view_attribution_window',): { - 'None': None, - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", }, ('campaign_type',): { 'None': None, @@ -126,6 +117,23 @@ class AsyncCampaignReport(ModelNormal): 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", }, } @@ -157,15 +165,15 @@ def openapi_types(): 'end_date': (datetime,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 'format': (str, none_type,), # noqa: E501 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 'ids': ([str], none_type,), # noqa: E501 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -178,15 +186,15 @@ def discriminator(): '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 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'ids': 'ids', # noqa: E501 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -197,11 +205,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncCampaignReport - a model defined in OpenAPI + """AsyncCampaignsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,17 +242,17 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -299,11 +307,11 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 @convert_js_args_to_python_args def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncCampaignReport - a model defined in OpenAPI + """AsyncCampaignsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -336,17 +344,17 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # 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/async_campaigns_report_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report_request.py index 13bd773b..22aa3f81 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.line_item_report_resource import LineItemReportResource - globals()['LineItemReportResource'] = LineItemReportResource + from criteo_api_retailmedia_preview.model.async_campaigns_report_resource import AsyncCampaignsReportResource + globals()['AsyncCampaignsReportResource'] = AsyncCampaignsReportResource -class LineItemReportRequest(ModelNormal): +class AsyncCampaignsReportRequest(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': (LineItemReportResource,), # noqa: E501 + 'data': (AsyncCampaignsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LineItemReportRequest - a model defined in OpenAPI + """AsyncCampaignsReportRequest - 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,) - data (LineItemReportResource): [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [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 - """LineItemReportRequest - a model defined in OpenAPI + """AsyncCampaignsReportRequest - 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,) - data (LineItemReportResource): [optional] # noqa: E501 + data (AsyncCampaignsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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/async_campaigns_report_resource.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py index 44c83a4c..9bdc557d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.line_item_report import LineItemReport - globals()['LineItemReport'] = LineItemReport + from criteo_api_retailmedia_preview.model.async_campaigns_report import AsyncCampaignsReport + globals()['AsyncCampaignsReport'] = AsyncCampaignsReport -class LineItemReportResource(ModelNormal): +class AsyncCampaignsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (LineItemReport,), # noqa: E501 + 'attributes': (AsyncCampaignsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LineItemReportResource - a model defined in OpenAPI + """AsyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (LineItemReport): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LineItemReportResource - a model defined in OpenAPI + """AsyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (LineItemReport): [optional] # noqa: E501 + attributes (AsyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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_items_report.py similarity index 81% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report.py index 3735cdb6..ec72e532 100644 --- 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_items_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class AsyncLineItemReport(ModelNormal): +class AsyncLineItemsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -75,6 +75,7 @@ class AsyncLineItemReport(ModelNormal): ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -90,21 +91,7 @@ class AsyncLineItemReport(ModelNormal): 'KEYWORD': "keyword", 'PAGETYPENAME': "pageTypeName", 'SALESCHANNEL': "salesChannel", - }, - ('click_attribution_window',): { - 'None': None, - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", - }, - ('view_attribution_window',): { - 'None': None, - '1D': "1D", - '7D': "7D", - '14D': "14D", - '30D': "30D", - 'NONE': "none", + 'ENVIRONMENT': "environment", }, ('campaign_type',): { 'None': None, @@ -131,6 +118,23 @@ class AsyncLineItemReport(ModelNormal): 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", + }, + ('click_attribution_window',): { + 'None': None, + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + 'None': None, + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", }, } @@ -162,15 +166,15 @@ def openapi_types(): 'end_date': (datetime,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'click_attribution_window': (str, none_type,), # noqa: E501 - 'view_attribution_window': (str, none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 'format': (str, none_type,), # noqa: E501 'report_type': (str, none_type,), # noqa: E501 + 'click_attribution_window': (str, none_type,), # noqa: E501 + 'view_attribution_window': (str, none_type,), # noqa: E501 'ids': ([str], none_type,), # noqa: E501 'id': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -183,15 +187,15 @@ def discriminator(): '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 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'ids': 'ids', # noqa: E501 'id': 'id', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -202,11 +206,11 @@ def discriminator(): @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 + """AsyncLineItemsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -239,17 +243,17 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -304,11 +308,11 @@ def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E50 @convert_js_args_to_python_args def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 - """AsyncLineItemReport - a model defined in OpenAPI + """AsyncLineItemsReport - a model defined in OpenAPI Args: - start_date (datetime): - end_date (datetime): + start_date (datetime): Start date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -341,17 +345,17 @@ def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metrics ([str], none_type): [optional] # noqa: E501 - dimensions ([str], none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 - format (str, none_type): [optional] # noqa: E501 - report_type (str, none_type): [optional] # noqa: E501 - ids ([str], none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + ids ([str], none_type): Ids to report on. [optional] # noqa: E501 + id (str, none_type): Id to report on. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # 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/async_line_items_report_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report_request.py index 33c5d043..178ff7ab 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.campaign_report_resource import CampaignReportResource - globals()['CampaignReportResource'] = CampaignReportResource + from criteo_api_retailmedia_preview.model.async_line_items_report_resource import AsyncLineItemsReportResource + globals()['AsyncLineItemsReportResource'] = AsyncLineItemsReportResource -class CampaignReportRequest(ModelNormal): +class AsyncLineItemsReportRequest(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': (CampaignReportResource,), # noqa: E501 + 'data': (AsyncLineItemsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignReportRequest - a model defined in OpenAPI + """AsyncLineItemsReportRequest - 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,) - data (CampaignReportResource): [optional] # noqa: E501 + data (AsyncLineItemsReportResource): [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 - """CampaignReportRequest - a model defined in OpenAPI + """AsyncLineItemsReportRequest - 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,) - data (CampaignReportResource): [optional] # noqa: E501 + data (AsyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report_resource.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report_resource.py index 6a449e21..717d680c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_items_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.campaign_report import CampaignReport - globals()['CampaignReport'] = CampaignReport + from criteo_api_retailmedia_preview.model.async_line_items_report import AsyncLineItemsReport + globals()['AsyncLineItemsReport'] = AsyncLineItemsReport -class CampaignReportResource(ModelNormal): +class AsyncLineItemsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (CampaignReport,), # noqa: E501 + 'attributes': (AsyncLineItemsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CampaignReportResource - a model defined in OpenAPI + """AsyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (CampaignReport): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CampaignReportResource - a model defined in OpenAPI + """AsyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (CampaignReport): [optional] # noqa: E501 + attributes (AsyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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 index 4ee72f4c..ea94a5a5 100644 --- 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py index dd8deb14..012d8e92 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview.py index 0034813f..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 c3ca2c3c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_budget_overrides.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_budget_overrides.py index f9ced38c..4d8d0f73 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_budget_overrides.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_daily_budget_override.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py index 1d4a4710..af89a5d9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -110,7 +110,7 @@ def _from_openapi_data(cls, duration, max_daily_spend, *args, **kwargs): # noqa """CampaignDailyBudgetOverride - a model defined in OpenAPI Args: - duration (str): Daily budget override duration, e.g. \"1D\". Must be ending with D. + duration (str): The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. max_daily_spend (float): Daily budget override maximum daily spend amount. Keyword Args: @@ -203,7 +203,7 @@ def __init__(self, duration, max_daily_spend, *args, **kwargs): # noqa: E501 """CampaignDailyBudgetOverride - a model defined in OpenAPI Args: - duration (str): Daily budget override duration, e.g. \"1D\". Must be ending with D. + duration (str): The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. max_daily_spend (float): Daily budget override maximum daily spend amount. Keyword Args: diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py index 7e87d9a8..33405a29 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -110,7 +110,7 @@ def _from_openapi_data(cls, duration, max_monthly_spend, *args, **kwargs): # no """CampaignMonthlyBudgetOverride - a model defined in OpenAPI Args: - duration (str): Monthly budget override duration, e.g. \"1M\". Must be ending with \"M\". + duration (str): The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. max_monthly_spend (float): Monthly budget override maximum monthly spend amount. Keyword Args: @@ -203,7 +203,7 @@ def __init__(self, duration, max_monthly_spend, *args, **kwargs): # noqa: E501 """CampaignMonthlyBudgetOverride - a model defined in OpenAPI Args: - duration (str): Monthly budget override duration, e.g. \"1M\". Must be ending with \"M\". + duration (str): The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. max_monthly_spend (float): Monthly budget override maximum monthly spend amount. Keyword Args: diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py index 33e67fd4..da983423 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ 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 8c4042d0..7cffa4c5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_option.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_option.py index 88c23e84..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 9570994c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 e946d9de..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 46a620ba..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b428796a..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 48a987f2..9926296c 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 fb563c96..f6720299 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b5b1caea..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d13e4af1..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4de078d9..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py deleted file mode 100644 index 74af558e..00000000 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py +++ /dev/null @@ -1,287 +0,0 @@ -""" - 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.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_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 deleted file mode 100644 index 69c43df1..00000000 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py +++ /dev/null @@ -1,310 +0,0 @@ -""" - 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 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], none_type,), # noqa: E501 - 'category_ids': ([int], none_type,), # 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], none_type): The brands to target. [optional] # noqa: E501 - category_ids ([int], none_type): 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], none_type): The brands to target. [optional] # noqa: E501 - category_ids ([int], none_type): 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_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 deleted file mode 100644 index b6e02453..00000000 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.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_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 deleted file mode 100644 index ab26e751..00000000 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - 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_error import CommonError - from criteo_api_retailmedia_preview.model.common_warning import CommonWarning - from criteo_api_retailmedia_preview.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], none_type,), # noqa: E501 - 'warnings': ([CommonWarning], none_type,), # 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], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): 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], none_type): errors. [optional] # noqa: E501 - warnings ([CommonWarning], none_type): 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_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 e40299ad..e24ff670 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py index 4105941e..0f11abad 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5b90c8b5..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 1ec26ded..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 0514e7bc..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 436fc39c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 264d711c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py new file mode 100644 index 00000000..d3bdcb03 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/daily_line_item_budget_override.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 DailyLineItemBudgetOverride(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + 'EXPIRED': "Expired", + 'ACTIVE': "Active", + 'UPCOMING': "Upcoming", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type 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': (str,), # noqa: E501 + 'start_date': (datetime, none_type,), # noqa: E501 + 'max_daily_spend': (float, none_type,), # noqa: E501 + 'status': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'duration': 'duration', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'max_daily_spend': 'maxDailySpend', # noqa: E501 + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, duration, *args, **kwargs): # noqa: E501 + """DailyLineItemBudgetOverride - a model defined in OpenAPI + + Args: + duration (str): The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (datetime, none_type): Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence.. [optional] # noqa: E501 + max_daily_spend (float, none_type): Daily budget override maximum daily spend amount.. [optional] # noqa: E501 + status (str, none_type): Daily budget override computed status.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_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 + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = 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, *args, **kwargs): # noqa: E501 + """DailyLineItemBudgetOverride - a model defined in OpenAPI + + Args: + duration (str): The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (datetime, none_type): Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence.. [optional] # noqa: E501 + max_daily_spend (float, none_type): Daily budget override maximum daily spend amount.. [optional] # noqa: E501 + status (str, none_type): Daily budget override computed status.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_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 + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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/export_report_column.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_column.py index 2bf8988b..76612e53 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 0a4cab4c..bf4ef923 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 cf7e2feb..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_brand.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_brand.py index 7a063c70..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d9d36c45..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 ecf3174c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_request.py index 36a6348d..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 dee00906..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b127e020..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variable_value.py index e90cfca4..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 771a9c22..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4df3ce03..ac1f642a 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 93179541..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/input_keywords.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/input_keywords.py index 49c58829..60addbcf 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/input_keywords.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/input_keywords.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 50e9fe03..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d4aed137..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b859cfa7..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5cd7b28d..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 f77546a7..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 560ed241..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 15390f3e..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 03bd9922..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 6eafb1fc..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 a83b5993..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 71b709ef..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 95c36aa2..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/keywords.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/keywords.py index a932bc96..9b79dab8 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/keywords.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/keywords.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 7e979b2f..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 3014d899..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d8b25111..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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/line_item_budget_overrides.py similarity index 82% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_budget_overrides.py index a3ab9f2d..ab6ab783 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/line_item_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_retailmedia_preview.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody - globals()['CreateRetailMediaAudienceBody'] = CreateRetailMediaAudienceBody + from criteo_api_retailmedia_preview.model.daily_line_item_budget_override import DailyLineItemBudgetOverride + from criteo_api_retailmedia_preview.model.monthly_line_item_budeget_override import MonthlyLineItemBudegetOverride + globals()['DailyLineItemBudgetOverride'] = DailyLineItemBudgetOverride + globals()['MonthlyLineItemBudegetOverride'] = MonthlyLineItemBudegetOverride -class CreateRetailMediaAudienceRequest(ModelNormal): +class LineItemBudgetOverrides(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class CreateRetailMediaAudienceRequest(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False @@ -87,7 +82,8 @@ def openapi_types(): """ lazy_import() return { - 'data': (CreateRetailMediaAudienceBody,), # noqa: E501 + 'monthly_line_item_budget_overrides': ([MonthlyLineItemBudegetOverride],), # noqa: E501 + 'daily_line_item_budget_overrides': ([DailyLineItemBudgetOverride],), # noqa: E501 } @cached_property @@ -96,7 +92,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'monthly_line_item_budget_overrides': 'monthlyLineItemBudgetOverrides', # noqa: E501 + 'daily_line_item_budget_overrides': 'dailyLineItemBudgetOverrides', # noqa: E501 } read_only_vars = { @@ -106,11 +103,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """CreateRetailMediaAudienceRequest - a model defined in OpenAPI + def _from_openapi_data(cls, monthly_line_item_budget_overrides, daily_line_item_budget_overrides, *args, **kwargs): # noqa: E501 + """LineItemBudgetOverrides - a model defined in OpenAPI Args: - data (CreateRetailMediaAudienceBody): + monthly_line_item_budget_overrides ([MonthlyLineItemBudegetOverride]): Line item budget override monthly part, chronological order restricted. + daily_line_item_budget_overrides ([DailyLineItemBudgetOverride]): Line item budget override daily part, chronological order restricted. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -174,7 +172,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + self.monthly_line_item_budget_overrides = monthly_line_item_budget_overrides + self.daily_line_item_budget_overrides = daily_line_item_budget_overrides for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,11 +194,12 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """CreateRetailMediaAudienceRequest - a model defined in OpenAPI + def __init__(self, monthly_line_item_budget_overrides, daily_line_item_budget_overrides, *args, **kwargs): # noqa: E501 + """LineItemBudgetOverrides - a model defined in OpenAPI Args: - data (CreateRetailMediaAudienceBody): + monthly_line_item_budget_overrides ([MonthlyLineItemBudegetOverride]): Line item budget override monthly part, chronological order restricted. + daily_line_item_budget_overrides ([DailyLineItemBudgetOverride]): Line item budget override daily part, chronological order restricted. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -261,7 +261,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + self.monthly_line_item_budget_overrides = monthly_line_item_budget_overrides + self.daily_line_item_budget_overrides = daily_line_item_budget_overrides 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/monthly_line_item_budeget_override.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py new file mode 100644 index 00000000..17359e3b --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.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 MonthlyLineItemBudegetOverride(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_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',): { + 'None': None, + 'EXPIRED': "Expired", + 'ACTIVE': "Active", + 'UPCOMING': "Upcoming", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type 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': (str,), # noqa: E501 + 'max_monthly_spend': (float,), # noqa: E501 + 'start_month': (datetime, none_type,), # noqa: E501 + 'status': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'duration': 'duration', # noqa: E501 + 'max_monthly_spend': 'maxMonthlySpend', # noqa: E501 + 'start_month': 'startMonth', # noqa: E501 + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, duration, max_monthly_spend, *args, **kwargs): # noqa: E501 + """MonthlyLineItemBudegetOverride - a model defined in OpenAPI + + Args: + duration (str): The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. + max_monthly_spend (float): Monthly budget override maximum monthly spend amount. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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_month (datetime, none_type): Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence.. [optional] # noqa: E501 + status (str, none_type): Monthly budget override computed status.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_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.max_monthly_spend = max_monthly_spend + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = 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, max_monthly_spend, *args, **kwargs): # noqa: E501 + """MonthlyLineItemBudegetOverride - a model defined in OpenAPI + + Args: + duration (str): The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. + max_monthly_spend (float): Monthly budget override maximum monthly spend amount. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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_month (datetime, none_type): Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence.. [optional] # noqa: E501 + status (str, none_type): Monthly budget override computed status.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_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.max_monthly_spend = max_monthly_spend + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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/page_metadata.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_metadata.py index 5acf4747..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5e62e97e..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 341cb716..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 63c0a258..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 3fef4571..6802bf4d 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4702cd2d..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 74e3d8b7..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 aba1d50e..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 deleted file mode 100644 index 4e929517..00000000 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.problem_details import ProblemDetails - from criteo_api_retailmedia_preview.model.resource_of_product_button_response import ResourceOfProductButtonResponse - globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfProductButtonResponse'] = ResourceOfProductButtonResponse - - -class ProductButtonResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must 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': (ResourceOfProductButtonResponse,), # 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 - """ProductButtonResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (ResourceOfProductButtonResponse): [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 - """ProductButtonResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make 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 (ResourceOfProductButtonResponse): [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_preview/criteo_api_retailmedia_preview/model/suggested_keywords_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/recommended_keywords_result.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/suggested_keywords_result.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/recommended_keywords_result.py index e40871f7..678b2625 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/suggested_keywords_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/recommended_keywords_result.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['Keywords'] = Keywords -class SuggestedKeywordsResult(ModelNormal): +class RecommendedKeywordsResult(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -102,7 +102,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """SuggestedKeywordsResult - a model defined in OpenAPI + """RecommendedKeywordsResult - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -189,7 +189,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """SuggestedKeywordsResult - a model defined in OpenAPI + """RecommendedKeywordsResult - 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/report_data_response_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_data_response_resource.py index 5a7aff47..a353a286 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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, none_type): [optional] # noqa: E501 - attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): Data response format. [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, none_type): [optional] # noqa: E501 - attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): Data response format. [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 f65c5379..2e0fc256 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 187e0894..9a76499f 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_collection_outcome_of_sku_search_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_collection_outcome_of_sku_search_result.py index 8ee50724..807022f2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_collection_outcome_of_sku_search_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_collection_outcome_of_sku_search_result.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_brand_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_brand_preview.py index df770939..54f4226a 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_cpc_rate_card_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py index 1f43f523..e8659136 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_creative202210.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_creative202210.py index 341515be..fed98038 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 193dceb5..29321f35 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d3a4b49f..f50acb0c 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 6d96ed28..658e2d51 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 a014428d..0c505905 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5af9d6cf..e0449729 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 a98a238c..7a769cd3 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 0467737c..431bcf5f 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 df7b278e..777f92ea 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 bddacae4..2f331a5b 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_result.py index 5a75e67d..d6817ef1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_result.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 28cb8de8..acb58fae 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 956e60ca..825f2eac 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 324d930a..46f7d4ad 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience.py index 035b19fd..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 9e0982e6..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4d430cca..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 2c04eaa8..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py index da0196fe..59877579 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 a55e196e..aeeb1849 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b797d5bd..4d0e01c9 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 92f2e82a..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 42ddde0d..28e23baf 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 c6dbb6f8..973de85d 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 008ef192..493aec7c 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 9e88e9a6..db51e72b 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b2f94a02..d9f6b438 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 e3425924..4fb23fcc 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 dbc83bc9..b538106d 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5f82fe61..d43ef1d8 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 b34dcc50..ff8ea8ef 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d8e2e40e..ec4f61fd 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 eb476c43..82b41a89 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4083954b..f196c7ad 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 f1be5df9..a451561f 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 57ba66ab..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 cea52c79..5c051c67 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 c104b1ca..8af2a67f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 234a8ea7..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 9dd31a64..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d3b6e0fd..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 56e657a2..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request.py index ceff7ae7..cf396935 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_body.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_body.py index 9badcf28..c22a32f2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_body.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_body.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 2ad1b5b9..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 fbdae48b..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 231972a9..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 1209a2bd..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 eaf4b2a8..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 48d37100..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_result.py index 7fb4c336..b11f13ef 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_result.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 d4a7b989..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py index 0b12165c..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 0e631c61..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py index 20974def..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 index d8c70d66..0d3f774c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response_resource.py index 85048700..fbda47bb 100644 --- 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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py similarity index 89% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py index bc02c923..5a23aac2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class AttributedTransactionsReport(ModelNormal): +class SyncAttributedTransactionsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -94,6 +94,7 @@ class AttributedTransactionsReport(ModelNormal): '7D': "7D", '14D': "14D", '30D': "30D", + 'NONE': "none", }, ('view_attribution_window',): { 'None': None, @@ -103,6 +104,16 @@ class AttributedTransactionsReport(ModelNormal): '30D': "30D", 'NONE': "none", }, + ('campaign_type',): { + 'None': None, + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'None': None, + 'OFFLINE': "offline", + 'ONLINE': "online", + }, } validations = { @@ -136,9 +147,11 @@ def openapi_types(): 'line_item_ids': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'click_attribution_window': (str, none_type,), # noqa: E501 'view_attribution_window': (str, none_type,), # noqa: E501 + 'campaign_type': (str, none_type,), # noqa: E501 + 'sales_channel': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -154,9 +167,11 @@ def discriminator(): 'line_item_ids': 'lineItemIds', # noqa: E501 'dimensions': 'dimensions', # noqa: E501 'metrics': 'metrics', # 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 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -167,12 +182,12 @@ def discriminator(): @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 + """SyncAttributedTransactionsReport - a model defined in OpenAPI Args: account_id (str): Account id to report on start_date (datetime): Start date - end_date (datetime): End Date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -209,9 +224,11 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 timezone (str, none_type): 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, none_type): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str, none_type): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -267,12 +284,12 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): @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 + """SyncAttributedTransactionsReport - a model defined in OpenAPI Args: account_id (str): Account id to report on start_date (datetime): Start date - end_date (datetime): End Date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -309,9 +326,11 @@ def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 timezone (str, none_type): 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, none_type): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str, none_type): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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/sync_attributed_transactions_report_request.py similarity index 93% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_request.py index 56ad7610..4aca700b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.attributed_transaction_report_resource import AttributedTransactionReportResource - globals()['AttributedTransactionReportResource'] = AttributedTransactionReportResource + from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_resource import SyncAttributedTransactionsReportResource + globals()['SyncAttributedTransactionsReportResource'] = SyncAttributedTransactionsReportResource -class AttributedTransactionReportRequest(ModelNormal): +class SyncAttributedTransactionsReportRequest(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': (AttributedTransactionReportResource,), # noqa: E501 + 'data': (SyncAttributedTransactionsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AttributedTransactionReportRequest - a model defined in OpenAPI + """SyncAttributedTransactionsReportRequest - 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,) - data (AttributedTransactionReportResource): [optional] # noqa: E501 + data (SyncAttributedTransactionsReportResource): [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 - """AttributedTransactionReportRequest - a model defined in OpenAPI + """SyncAttributedTransactionsReportRequest - 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,) - data (AttributedTransactionReportResource): [optional] # noqa: E501 + data (SyncAttributedTransactionsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py similarity index 93% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py index 1b1bac9d..6535422f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.attributed_transactions_report import AttributedTransactionsReport - globals()['AttributedTransactionsReport'] = AttributedTransactionsReport + from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report import SyncAttributedTransactionsReport + globals()['SyncAttributedTransactionsReport'] = SyncAttributedTransactionsReport -class AttributedTransactionReportResource(ModelNormal): +class SyncAttributedTransactionsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (AttributedTransactionsReport,), # noqa: E501 + 'attributes': (SyncAttributedTransactionsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AttributedTransactionReportResource - a model defined in OpenAPI + """SyncAttributedTransactionsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AttributedTransactionsReport): [optional] # noqa: E501 + attributes (SyncAttributedTransactionsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AttributedTransactionReportResource - a model defined in OpenAPI + """SyncAttributedTransactionsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AttributedTransactionsReport): [optional] # noqa: E501 + attributes (SyncAttributedTransactionsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report.py similarity index 89% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report.py index 77f0557f..d787a1af 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class CampaignReport(ModelNormal): +class SyncCampaignsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +62,8 @@ class CampaignReport(ModelNormal): 'KEYWORD': "keyword", 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", }, ('metrics',): { 'None': None, @@ -78,10 +80,13 @@ class CampaignReport(ModelNormal): 'ROAS': "roas", 'UNIQUEVISITORS': "uniqueVisitors", 'FREQUENCY': "frequency", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", }, ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -91,14 +96,18 @@ class CampaignReport(ModelNormal): 'BRANDID': "brandId", 'BRANDNAME': "brandName", 'PAGETYPENAME': "pageTypeName", + 'ENVIRONMENT': "environment", 'KEYWORD': "keyword", 'SALESCHANNEL': "salesChannel", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", }, ('click_attribution_window',): { 'None': None, '7D': "7D", '14D': "14D", '30D': "30D", + 'NONE': "none", }, ('view_attribution_window',): { 'None': None, @@ -151,11 +160,11 @@ def openapi_types(): 'campaign_ids': ([str], none_type,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'click_attribution_window': (str, none_type,), # noqa: E501 'view_attribution_window': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -171,11 +180,11 @@ def discriminator(): '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 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -186,12 +195,12 @@ def discriminator(): @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 + """SyncCampaignsReport - a model defined in OpenAPI Args: account_id (str): Account id to report on start_date (datetime): Start date - end_date (datetime): End Date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -224,15 +233,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, none_type): [optional] # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 campaign_ids ([str], none_type): List of campaign Ids to filter. [optional] # noqa: E501 metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 timezone (str, none_type): 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, none_type): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str, none_type): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 - campaign_type (str, none_type): Filter the type of campaign to report on. [optional] # noqa: E501 - sales_channel (str, none_type): Filter on the channel of sales. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -288,12 +297,12 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): @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 + """SyncCampaignsReport - a model defined in OpenAPI Args: account_id (str): Account id to report on start_date (datetime): Start date - end_date (datetime): End Date + end_date (datetime): End date Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -326,15 +335,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, none_type): [optional] # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 campaign_ids ([str], none_type): List of campaign Ids to filter. [optional] # noqa: E501 metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 timezone (str, none_type): 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, none_type): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str, none_type): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 - campaign_type (str, none_type): Filter the type of campaign to report on. [optional] # noqa: E501 - sales_channel (str, none_type): 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/async_campaign_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report_request.py index 88bcbfbb..1821d620 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.async_campaign_report_resource import AsyncCampaignReportResource - globals()['AsyncCampaignReportResource'] = AsyncCampaignReportResource + from criteo_api_retailmedia_preview.model.sync_campaigns_report_resource import SyncCampaignsReportResource + globals()['SyncCampaignsReportResource'] = SyncCampaignsReportResource -class AsyncCampaignReportRequest(ModelNormal): +class SyncCampaignsReportRequest(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': (AsyncCampaignReportResource,), # noqa: E501 + 'data': (SyncCampaignsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportRequest - a model defined in OpenAPI + """SyncCampaignsReportRequest - 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,) - data (AsyncCampaignReportResource): [optional] # noqa: E501 + data (SyncCampaignsReportResource): [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 - """AsyncCampaignReportRequest - a model defined in OpenAPI + """SyncCampaignsReportRequest - 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,) - data (AsyncCampaignReportResource): [optional] # noqa: E501 + data (SyncCampaignsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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/sync_campaigns_report_resource.py similarity index 95% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py index c4ce06d2..97d6fe0e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.async_campaign_report import AsyncCampaignReport - globals()['AsyncCampaignReport'] = AsyncCampaignReport + from criteo_api_retailmedia_preview.model.sync_campaigns_report import SyncCampaignsReport + globals()['SyncCampaignsReport'] = SyncCampaignsReport -class AsyncCampaignReportResource(ModelNormal): +class SyncCampaignsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (AsyncCampaignReport,), # noqa: E501 + 'attributes': (SyncCampaignsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportResource - a model defined in OpenAPI + """SyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncCampaignReport): [optional] # noqa: E501 + attributes (SyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AsyncCampaignReportResource - a model defined in OpenAPI + """SyncCampaignsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncCampaignReport): [optional] # noqa: E501 + attributes (SyncCampaignsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report.py similarity index 82% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report.py index b33a3c2d..707716eb 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class LineItemReport(ModelNormal): +class SyncLineItemsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,6 +62,8 @@ class LineItemReport(ModelNormal): 'KEYWORD': "keyword", 'PRODUCTCATEGORY': "productCategory", 'PRODUCT': "product", + 'ENVIRONMENT': "environment", + 'SERVEDCATEGORY': "servedCategory", }, ('metrics',): { 'None': None, @@ -83,6 +85,7 @@ class LineItemReport(ModelNormal): ('dimensions',): { 'None': None, 'DATE': "date", + 'HOUR': "hour", 'CAMPAIGNID': "campaignId", 'CAMPAIGNNAME': "campaignName", 'CAMPAIGNTYPENAME': "campaignTypeName", @@ -98,6 +101,7 @@ class LineItemReport(ModelNormal): 'KEYWORD': "keyword", 'PAGETYPENAME': "pageTypeName", 'SALESCHANNEL': "salesChannel", + 'ENVIRONMENT': "environment", }, ('click_attribution_window',): { 'None': None, @@ -158,11 +162,11 @@ def openapi_types(): 'campaign_ids': ([str], none_type,), # noqa: E501 'metrics': ([str], none_type,), # noqa: E501 'dimensions': ([str], none_type,), # noqa: E501 - 'timezone': (str, none_type,), # noqa: E501 'click_attribution_window': (str, none_type,), # noqa: E501 'view_attribution_window': (str, none_type,), # noqa: E501 'campaign_type': (str, none_type,), # noqa: E501 'sales_channel': (str, none_type,), # noqa: E501 + 'timezone': (str, none_type,), # noqa: E501 } @cached_property @@ -179,11 +183,11 @@ def discriminator(): '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 + 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -194,12 +198,12 @@ def discriminator(): @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 + """SyncLineItemsReport - a model defined in OpenAPI Args: - account_id (str): - start_date (datetime): - end_date (datetime): + 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 @@ -232,16 +236,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,) - report_type (str, none_type): [optional] # noqa: E501 - line_item_ids ([str], none_type): [optional] # noqa: E501 - campaign_ids ([str], none_type): [optional] # noqa: E501 - metrics ([str], none_type): [optional] # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501 + campaign_ids ([str], none_type): Campaign ids to report on. [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -297,12 +301,12 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): @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 + """SyncLineItemsReport - a model defined in OpenAPI Args: - account_id (str): - start_date (datetime): - end_date (datetime): + 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 @@ -335,16 +339,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,) - report_type (str, none_type): [optional] # noqa: E501 - line_item_ids ([str], none_type): [optional] # noqa: E501 - campaign_ids ([str], none_type): [optional] # noqa: E501 - metrics ([str], none_type): [optional] # noqa: E501 + report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501 + line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501 + campaign_ids ([str], none_type): Campaign ids to report on. [optional] # noqa: E501 + metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501 dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501 - timezone (str, none_type): [optional] # noqa: E501 - click_attribution_window (str, none_type): [optional] # noqa: E501 - view_attribution_window (str, none_type): [optional] # noqa: E501 - campaign_type (str, none_type): [optional] # noqa: E501 - sales_channel (str, none_type): [optional] # noqa: E501 + click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501 + sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501 + timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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/sync_line_items_report_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report_request.py index ce90bfd9..684d2f1f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report_request.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.async_line_item_report_resource import AsyncLineItemReportResource - globals()['AsyncLineItemReportResource'] = AsyncLineItemReportResource + from criteo_api_retailmedia_preview.model.sync_line_items_report_resource import SyncLineItemsReportResource + globals()['SyncLineItemsReportResource'] = SyncLineItemsReportResource -class AsyncLineItemReportRequest(ModelNormal): +class SyncLineItemsReportRequest(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': (AsyncLineItemReportResource,), # noqa: E501 + 'data': (SyncLineItemsReportResource,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportRequest - a model defined in OpenAPI + """SyncLineItemsReportRequest - 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,) - data (AsyncLineItemReportResource): [optional] # noqa: E501 + data (SyncLineItemsReportResource): [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 - """AsyncLineItemReportRequest - a model defined in OpenAPI + """SyncLineItemsReportRequest - 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,) - data (AsyncLineItemReportResource): [optional] # noqa: E501 + data (SyncLineItemsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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/sync_line_items_report_resource.py similarity index 95% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py index 4e027052..3a4afa28 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.async_line_item_report import AsyncLineItemReport - globals()['AsyncLineItemReport'] = AsyncLineItemReport + from criteo_api_retailmedia_preview.model.sync_line_items_report import SyncLineItemsReport + globals()['SyncLineItemsReport'] = SyncLineItemsReport -class AsyncLineItemReportResource(ModelNormal): +class SyncLineItemsReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -88,7 +88,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (AsyncLineItemReport,), # noqa: E501 + 'attributes': (SyncLineItemsReport,), # noqa: E501 } @cached_property @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportResource - a model defined in OpenAPI + """SyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +143,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncLineItemReport): [optional] # noqa: E501 + attributes (SyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """AsyncLineItemReportResource - a model defined in OpenAPI + """SyncLineItemsReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (AsyncLineItemReport): [optional] # noqa: E501 + attributes (SyncLineItemsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) 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 ed3f75da..55daa20d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 5919b70f..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 43f8e49f..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 4cbc400d..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 cbd01b59..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 83dd264b..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 268905e6..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details.py index 2fa6f838..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 c9a63dd8..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 @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_campaign_budget_overrides.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_campaign_budget_overrides.py new file mode 100644 index 00000000..99ff24be --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_campaign_budget_overrides.py @@ -0,0 +1,262 @@ +""" + 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.value_resource_of_campaign_budget_overrides import ValueResourceOfCampaignBudgetOverrides + globals()['ValueResourceOfCampaignBudgetOverrides'] = ValueResourceOfCampaignBudgetOverrides + + +class ValueResourceInputOfCampaignBudgetOverrides(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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': (ValueResourceOfCampaignBudgetOverrides,), # 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 + """ValueResourceInputOfCampaignBudgetOverrides - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfCampaignBudgetOverrides): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceInputOfCampaignBudgetOverrides - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfCampaignBudgetOverrides): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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/value_resource_input_of_line_item_budget_overrides.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_line_item_budget_overrides.py new file mode 100644 index 00000000..e6020f1c --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_line_item_budget_overrides.py @@ -0,0 +1,262 @@ +""" + 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.value_resource_of_line_item_budget_overrides import ValueResourceOfLineItemBudgetOverrides + globals()['ValueResourceOfLineItemBudgetOverrides'] = ValueResourceOfLineItemBudgetOverrides + + +class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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': (ValueResourceOfLineItemBudgetOverrides,), # 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 + """ValueResourceInputOfLineItemBudgetOverrides - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfLineItemBudgetOverrides): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceInputOfLineItemBudgetOverrides - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfLineItemBudgetOverrides): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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/value_resource_of_campaign_budget_overrides.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.py index bc550e60..ff80c764 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_suggested_keywords_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_line_item_budget_overrides.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_suggested_keywords_result.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_line_item_budget_overrides.py index 77ea61bf..3f976a26 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_suggested_keywords_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_line_item_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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.suggested_keywords_result import SuggestedKeywordsResult - globals()['SuggestedKeywordsResult'] = SuggestedKeywordsResult + from criteo_api_retailmedia_preview.model.line_item_budget_overrides import LineItemBudgetOverrides + globals()['LineItemBudgetOverrides'] = LineItemBudgetOverrides -class ValueResourceOfSuggestedKeywordsResult(ModelNormal): +class ValueResourceOfLineItemBudgetOverrides(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,7 +81,7 @@ def openapi_types(): lazy_import() return { 'type': (str, none_type,), # noqa: E501 - 'attributes': (SuggestedKeywordsResult,), # noqa: E501 + 'attributes': (LineItemBudgetOverrides,), # noqa: E501 } @cached_property @@ -102,7 +102,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ValueResourceOfSuggestedKeywordsResult - a model defined in OpenAPI + """ValueResourceOfLineItemBudgetOverrides - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,7 +136,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (SuggestedKeywordsResult): [optional] # noqa: E501 + attributes (LineItemBudgetOverrides): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -189,7 +189,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ValueResourceOfSuggestedKeywordsResult - a model defined in OpenAPI + """ValueResourceOfLineItemBudgetOverrides - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,7 +223,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str, none_type): [optional] # noqa: E501 - attributes (SuggestedKeywordsResult): [optional] # noqa: E501 + attributes (LineItemBudgetOverrides): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py new file mode 100644 index 00000000..1ffa8fa5 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py @@ -0,0 +1,266 @@ +""" + 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.recommended_keywords_result import RecommendedKeywordsResult + globals()['RecommendedKeywordsResult'] = RecommendedKeywordsResult + + +class ValueResourceOfRecommendedKeywordsResult(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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, none_type,), # noqa: E501 + 'attributes': (RecommendedKeywordsResult,), # 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 + """ValueResourceOfRecommendedKeywordsResult - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (RecommendedKeywordsResult): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceOfRecommendedKeywordsResult - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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, none_type): [optional] # noqa: E501 + attributes (RecommendedKeywordsResult): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(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/value_resource_outcome_of_campaign_budget_overrides.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py index 99cfb3cc..3c3e1f17 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_suggested_keywords_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py similarity index 95% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_suggested_keywords_result.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py index 01b39b6d..478dc5a1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_suggested_keywords_result.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -31,12 +31,12 @@ def lazy_import(): from criteo_api_retailmedia_preview.model.common_problem import CommonProblem - from criteo_api_retailmedia_preview.model.value_resource_of_suggested_keywords_result import ValueResourceOfSuggestedKeywordsResult + from criteo_api_retailmedia_preview.model.value_resource_of_line_item_budget_overrides import ValueResourceOfLineItemBudgetOverrides globals()['CommonProblem'] = CommonProblem - globals()['ValueResourceOfSuggestedKeywordsResult'] = ValueResourceOfSuggestedKeywordsResult + globals()['ValueResourceOfLineItemBudgetOverrides'] = ValueResourceOfLineItemBudgetOverrides -class ValueResourceOutcomeOfSuggestedKeywordsResult(ModelNormal): +class ValueResourceOutcomeOfLineItemBudgetOverrides(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ValueResourceOfSuggestedKeywordsResult,), # noqa: E501 + 'data': (ValueResourceOfLineItemBudgetOverrides,), # noqa: E501 'warnings': ([CommonProblem], none_type,), # noqa: E501 'errors': ([CommonProblem], none_type,), # noqa: E501 } @@ -108,7 +108,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ValueResourceOutcomeOfSuggestedKeywordsResult - a model defined in OpenAPI + """ValueResourceOutcomeOfLineItemBudgetOverrides - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -141,7 +141,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,) - data (ValueResourceOfSuggestedKeywordsResult): [optional] # noqa: E501 + data (ValueResourceOfLineItemBudgetOverrides): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ValueResourceOutcomeOfSuggestedKeywordsResult - a model defined in OpenAPI + """ValueResourceOutcomeOfLineItemBudgetOverrides - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +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,) - data (ValueResourceOfSuggestedKeywordsResult): [optional] # noqa: E501 + data (ValueResourceOfLineItemBudgetOverrides): [optional] # noqa: E501 warnings ([CommonProblem], none_type): [optional] # noqa: E501 errors ([CommonProblem], none_type): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py new file mode 100644 index 00000000..fec43d6f --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py @@ -0,0 +1,274 @@ +""" + 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.value_resource_of_recommended_keywords_result import ValueResourceOfRecommendedKeywordsResult + globals()['CommonProblem'] = CommonProblem + globals()['ValueResourceOfRecommendedKeywordsResult'] = ValueResourceOfRecommendedKeywordsResult + + +class ValueResourceOutcomeOfRecommendedKeywordsResult(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must 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': (ValueResourceOfRecommendedKeywordsResult,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # 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 + """ValueResourceOutcomeOfRecommendedKeywordsResult - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfRecommendedKeywordsResult): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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 + """ValueResourceOutcomeOfRecommendedKeywordsResult - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make 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 (ValueResourceOfRecommendedKeywordsResult): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], 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_preview/criteo_api_retailmedia_preview/model_utils.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py index 61803ffb..e8a57113 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + 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 6cd2da20..5a45303e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py @@ -9,37 +9,24 @@ # 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.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_campaigns_report import AsyncCampaignsReport +from criteo_api_retailmedia_preview.model.async_campaigns_report_request import AsyncCampaignsReportRequest +from criteo_api_retailmedia_preview.model.async_campaigns_report_resource import AsyncCampaignsReportResource +from criteo_api_retailmedia_preview.model.async_line_items_report import AsyncLineItemsReport +from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest +from criteo_api_retailmedia_preview.model.async_line_items_report_resource import AsyncLineItemsReportResource 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_budget_overrides import CampaignBudgetOverrides from criteo_api_retailmedia_preview.model.campaign_daily_budget_override import CampaignDailyBudgetOverride from criteo_api_retailmedia_preview.model.campaign_monthly_budget_override import CampaignMonthlyBudgetOverride -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 @@ -50,16 +37,6 @@ 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 -from criteo_api_retailmedia_preview.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest -from criteo_api_retailmedia_preview.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request from criteo_api_retailmedia_preview.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2 from criteo_api_retailmedia_preview.model.creative202210 import Creative202210 from criteo_api_retailmedia_preview.model.creative202210_list_response import Creative202210ListResponse @@ -67,20 +44,16 @@ 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.daily_line_item_budget_override import DailyLineItemBudgetOverride 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 @@ -102,9 +75,8 @@ from criteo_api_retailmedia_preview.model.line_item_bid_multipliers import LineItemBidMultipliers from criteo_api_retailmedia_preview.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest from criteo_api_retailmedia_preview.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse -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.line_item_budget_overrides import LineItemBudgetOverrides +from criteo_api_retailmedia_preview.model.monthly_line_item_budeget_override import MonthlyLineItemBudegetOverride 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 @@ -113,17 +85,13 @@ from criteo_api_retailmedia_preview.model.product_button_list_request import ProductButtonListRequest from criteo_api_retailmedia_preview.model.product_button_list_response import ProductButtonListResponse from criteo_api_retailmedia_preview.model.product_button_request import ProductButtonRequest -from criteo_api_retailmedia_preview.model.product_button_response import ProductButtonResponse +from criteo_api_retailmedia_preview.model.recommended_keywords_result import RecommendedKeywordsResult 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_response import ReportResponse from criteo_api_retailmedia_preview.model.resource_collection_outcome_of_sku_search_result import ResourceCollectionOutcomeOfSkuSearchResult -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 @@ -138,13 +106,11 @@ 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 from criteo_api_retailmedia_preview.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse -from criteo_api_retailmedia_preview.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest @@ -183,7 +149,15 @@ 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.suggested_keywords_result import SuggestedKeywordsResult +from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report import SyncAttributedTransactionsReport +from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_request import SyncAttributedTransactionsReportRequest +from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_resource import SyncAttributedTransactionsReportResource +from criteo_api_retailmedia_preview.model.sync_campaigns_report import SyncCampaignsReport +from criteo_api_retailmedia_preview.model.sync_campaigns_report_request import SyncCampaignsReportRequest +from criteo_api_retailmedia_preview.model.sync_campaigns_report_resource import SyncCampaignsReportResource +from criteo_api_retailmedia_preview.model.sync_line_items_report import SyncLineItemsReport +from criteo_api_retailmedia_preview.model.sync_line_items_report_request import SyncLineItemsReportRequest +from criteo_api_retailmedia_preview.model.sync_line_items_report_resource import SyncLineItemsReportResource 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 @@ -191,10 +165,13 @@ 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 +from criteo_api_retailmedia_preview.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_input_of_line_item_budget_overrides import ValueResourceInputOfLineItemBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_of_campaign_budget_overrides import ValueResourceOfCampaignBudgetOverrides -from criteo_api_retailmedia_preview.model.value_resource_of_suggested_keywords_result import ValueResourceOfSuggestedKeywordsResult +from criteo_api_retailmedia_preview.model.value_resource_of_line_item_budget_overrides import ValueResourceOfLineItemBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_of_recommended_keywords_result import ValueResourceOfRecommendedKeywordsResult from criteo_api_retailmedia_preview.model.value_resource_outcome_of_campaign_budget_overrides import ValueResourceOutcomeOfCampaignBudgetOverrides -from criteo_api_retailmedia_preview.model.value_resource_outcome_of_suggested_keywords_result import ValueResourceOutcomeOfSuggestedKeywordsResult +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_line_item_budget_overrides import ValueResourceOutcomeOfLineItemBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py index 75539ecc..aefac895 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/retailmedia_preview/docs/AnalyticsApi.md b/sdks/retailmedia_preview/docs/AnalyticsApi.md index 8a501f91..d4e47f7c 100644 --- a/sdks/retailmedia_preview/docs/AnalyticsApi.md +++ b/sdks/retailmedia_preview/docs/AnalyticsApi.md @@ -4,23 +4,21 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**generate_async_campaign_report**](AnalyticsApi.md#generate_async_campaign_report) | **POST** /preview/retail-media/reports/campaigns | +[**generate_async_campaigns_report**](AnalyticsApi.md#generate_async_campaigns_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 | +[**generate_sync_attributed_transactions_report**](AnalyticsApi.md#generate_sync_attributed_transactions_report) | **POST** /preview/retail-media/reports/sync/attributed-transactions | +[**generate_sync_campaigns_report**](AnalyticsApi.md#generate_sync_campaigns_report) | **POST** /preview/retail-media/reports/sync/campaigns | +[**generate_sync_line_items_report**](AnalyticsApi.md#generate_sync_line_items_report) | **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_sku_by_product_id**](AnalyticsApi.md#get_sku_by_product_id) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | -# **generate_async_campaign_report** -> AsyncReportResponse generate_async_campaign_report(async_campaign_report_request) +# **generate_async_campaigns_report** +> AsyncReportResponse generate_async_campaigns_report(async_campaigns_report_request) -Return an async Campaign Report +Return an asynchronous Campaigns Report ### Example @@ -31,8 +29,8 @@ Return an async Campaign Report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -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.async_campaigns_report_request import AsyncCampaignsReportRequest 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 @@ -62,39 +60,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) - async_campaign_report_request = AsyncCampaignReportRequest( - data=AsyncCampaignReportResource( + async_campaigns_report_request = AsyncCampaignsReportRequest( + data=AsyncCampaignsReportResource( type="type_example", - attributes=AsyncCampaignReport( + attributes=AsyncCampaignsReport( metrics=[ "impressions", ], dimensions=[ "date", ], - 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="timezone_example", campaign_type="sponsoredProducts", sales_channel="offline", - format="json", + format="json-compact", report_type="summary", + click_attribution_window="none", + view_attribution_window="none", ids=[ "ids_example", ], id="id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", ), ), - ) # AsyncCampaignReportRequest | + ) # AsyncCampaignsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_async_campaign_report(async_campaign_report_request) + api_response = api_instance.generate_async_campaigns_report(async_campaigns_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->generate_async_campaign_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_campaigns_report: %s\n" % e) ``` @@ -102,7 +100,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **async_campaign_report_request** | [**AsyncCampaignReportRequest**](AsyncCampaignReportRequest.md)| | + **async_campaigns_report_request** | [**AsyncCampaignsReportRequest**](AsyncCampaignsReportRequest.md)| | ### Return type @@ -129,11 +127,11 @@ 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) # **generate_async_line_items_report** -> AsyncReportResponse generate_async_line_items_report(async_line_item_report_request) +> AsyncReportResponse generate_async_line_items_report(async_line_items_report_request) -Return an async Line Item Report +Returns an asynchronous Line Items Report ### Example @@ -145,7 +143,7 @@ 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_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest 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 @@ -175,153 +173,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) - async_line_item_report_request = AsyncLineItemReportRequest( - data=AsyncLineItemReportResource( + async_line_items_report_request = AsyncLineItemsReportRequest( + data=AsyncLineItemsReportResource( type="type_example", - attributes=AsyncLineItemReport( + attributes=AsyncLineItemsReport( metrics=[ "impressions", ], dimensions=[ "date", ], - 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="timezone_example", campaign_type="sponsoredProducts", sales_channel="offline", - format="json", + format="json-compact", report_type="summary", + click_attribution_window="none", + view_attribution_window="none", ids=[ "ids_example", ], id="id_example", - ), - ), - ) # AsyncLineItemReportRequest | - - # example passing only required values which don't have defaults set - try: - 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->generate_async_line_items_report: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **async_line_item_report_request** | [**AsyncLineItemReportRequest**](AsyncLineItemReportRequest.md)| | - -### Return type - -[**AsyncReportResponse**](AsyncReportResponse.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 | - | -**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_async_revenue_report** -> AsyncReportResponse generate_async_revenue_report(async_revenue_report_request) - - - -Return an async Revenue 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.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. -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) - 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", - sold_by="directSold", - campaign_sub_type="auctionAndPreferred", + timezone="UTC", ), ), - ) # AsyncRevenueReportRequest | + ) # AsyncLineItemsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_async_revenue_report(async_revenue_report_request) + api_response = api_instance.generate_async_line_items_report(async_line_items_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->generate_async_revenue_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) ``` @@ -329,7 +213,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **async_revenue_report_request** | [**AsyncRevenueReportRequest**](AsyncRevenueReportRequest.md)| | + **async_line_items_report_request** | [**AsyncLineItemsReportRequest**](AsyncLineItemsReportRequest.md)| | ### Return type @@ -355,12 +239,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) -# **generate_attributed_transactions_report** -> ReportResponse generate_attributed_transactions_report(attributed_transaction_report_request) +# **generate_sync_attributed_transactions_report** +> ReportResponse generate_sync_attributed_transactions_report(sync_attributed_transactions_report_request) -Return an Attributed Transactions Report +Returns a synchronous Attributed Transactions Report ### Example @@ -373,7 +257,7 @@ 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.report_outcome import ReportOutcome -from criteo_api_retailmedia_preview.model.attributed_transaction_report_request import AttributedTransactionReportRequest +from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_request import SyncAttributedTransactionsReportRequest 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. @@ -402,10 +286,10 @@ 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) - attributed_transaction_report_request = AttributedTransactionReportRequest( - data=AttributedTransactionReportResource( + sync_attributed_transactions_report_request = SyncAttributedTransactionsReportRequest( + data=SyncAttributedTransactionsReportResource( type="type_example", - attributes=AttributedTransactionsReport( + attributes=SyncAttributedTransactionsReport( campaign_ids=[ "campaign_ids_example", ], @@ -419,21 +303,23 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: "attributedUnits", ], account_id="account_id_example", + click_attribution_window="none", + view_attribution_window="none", + campaign_type="sponsoredProducts", + sales_channel="offline", 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 | + ) # SyncAttributedTransactionsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_attributed_transactions_report(attributed_transaction_report_request) + api_response = api_instance.generate_sync_attributed_transactions_report(sync_attributed_transactions_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->generate_attributed_transactions_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_sync_attributed_transactions_report: %s\n" % e) ``` @@ -441,7 +327,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributed_transaction_report_request** | [**AttributedTransactionReportRequest**](AttributedTransactionReportRequest.md)| | + **sync_attributed_transactions_report_request** | [**SyncAttributedTransactionsReportRequest**](SyncAttributedTransactionsReportRequest.md)| | ### Return type @@ -453,7 +339,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -467,12 +353,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) -# **generate_campaign_reports** -> ReportResponse generate_campaign_reports(campaign_report_request) +# **generate_sync_campaigns_report** +> ReportResponse generate_sync_campaigns_report(sync_campaigns_report_request) -Return a Campaign Report +Returns a synchronous Campaigns Report ### Example @@ -485,7 +371,7 @@ 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.report_outcome import ReportOutcome -from criteo_api_retailmedia_preview.model.campaign_report_request import CampaignReportRequest +from criteo_api_retailmedia_preview.model.sync_campaigns_report_request import SyncCampaignsReportRequest 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. @@ -514,10 +400,10 @@ 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( + sync_campaigns_report_request = SyncCampaignsReportRequest( + data=SyncCampaignsReportResource( type="type_example", - attributes=CampaignReport( + attributes=SyncCampaignsReport( report_type="summary", campaign_ids=[ "campaign_ids_example", @@ -529,23 +415,23 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: "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", + click_attribution_window="none", view_attribution_window="none", campaign_type="sponsoredProducts", sales_channel="offline", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", ), ), - ) # CampaignReportRequest | + ) # SyncCampaignsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_campaign_reports(campaign_report_request) + api_response = api_instance.generate_sync_campaigns_report(sync_campaigns_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->generate_campaign_reports: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_sync_campaigns_report: %s\n" % e) ``` @@ -553,7 +439,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_report_request** | [**CampaignReportRequest**](CampaignReportRequest.md)| | + **sync_campaigns_report_request** | [**SyncCampaignsReportRequest**](SyncCampaignsReportRequest.md)| | ### Return type @@ -565,7 +451,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -579,12 +465,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) -# **generate_line_items_reports** -> ReportResponse generate_line_items_reports(line_item_report_request) +# **generate_sync_line_items_report** +> ReportResponse generate_sync_line_items_report(sync_line_items_report_request) -Return a Line Item Report +Returns a synchronous Line Items Report ### Example @@ -595,9 +481,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.sync_line_items_report_request import SyncLineItemsReportRequest 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. @@ -626,10 +512,10 @@ 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( + sync_line_items_report_request = SyncLineItemsReportRequest( + data=SyncLineItemsReportResource( type="type_example", - attributes=LineItemReport( + attributes=SyncLineItemsReport( report_type="summary", line_item_ids=[ "line_item_ids_example", @@ -644,23 +530,23 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: "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", + click_attribution_window="none", + view_attribution_window="none", campaign_type="sponsoredProducts", sales_channel="offline", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", ), ), - ) # LineItemReportRequest | + ) # SyncLineItemsReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.generate_line_items_reports(line_item_report_request) + api_response = api_instance.generate_sync_line_items_report(sync_line_items_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->generate_line_items_reports: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_sync_line_items_report: %s\n" % e) ``` @@ -668,7 +554,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_report_request** | [**LineItemReportRequest**](LineItemReportRequest.md)| | + **sync_line_items_report_request** | [**SyncLineItemsReportRequest**](SyncLineItemsReportRequest.md)| | ### Return type @@ -680,7 +566,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -699,7 +585,7 @@ Name | Type | Description | Notes -Return the output of an async report +Returns the output of an async report ### Example @@ -785,7 +671,7 @@ Name | Type | Description | Notes -Return the status of an async report +Returns the status of an async report ### Example @@ -867,111 +753,3 @@ 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_sku_by_product_id** -> ResourceCollectionOutcomeOfSkuSearchResult get_sku_by_product_id(account_id, retailer_id) - - - -Gets a list of SKUs based on a privided list of Product Ids - -### 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.resource_collection_outcome_of_sku_search_result import ResourceCollectionOutcomeOfSkuSearchResult -from criteo_api_retailmedia_preview.model.sku_search_request import SkuSearchRequest -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) - account_id = "accountId_example" # str | account id - retailer_id = 1 # int | retailer id - offset = 0 # int | skip a number of matches before retrning results, used with limit (optional) if omitted the server will use the default value of 0 - limit = 100 # int | max number of results to return (optional) if omitted the server will use the default value of 100 - sku_search_request = SkuSearchRequest( - data=SkuSearchRequestBody( - product_id_type="SkuKey", - query_ids=[ - "query_ids_example", - ], - ), - ) # SkuSearchRequest | (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_sku_by_product_id(account_id, retailer_id) - pprint(api_response) - except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_sku_by_product_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.get_sku_by_product_id(account_id, retailer_id, offset=offset, limit=limit, sku_search_request=sku_search_request) - pprint(api_response) - except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_sku_by_product_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_id** | **str**| account id | - **retailer_id** | **int**| retailer id | - **offset** | **int**| skip a number of matches before retrning results, used with limit | [optional] if omitted the server will use the default value of 0 - **limit** | **int**| max number of results to return | [optional] if omitted the server will use the default value of 100 - **sku_search_request** | [**SkuSearchRequest**](SkuSearchRequest.md)| | [optional] - -### Return type - -[**ResourceCollectionOutcomeOfSkuSearchResult**](ResourceCollectionOutcomeOfSkuSearchResult.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 - - -### 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) - diff --git a/sdks/retailmedia_preview/docs/AsyncCampaignReport.md b/sdks/retailmedia_preview/docs/AsyncCampaignReport.md deleted file mode 100644 index af5adc33..00000000 --- a/sdks/retailmedia_preview/docs/AsyncCampaignReport.md +++ /dev/null @@ -1,25 +0,0 @@ -# AsyncCampaignReport - -Campaign report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | | [optional] -**click_attribution_window** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | | [optional] -**timezone** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **str, none_type** | | [optional] -**format** | **str, none_type** | | [optional] -**report_type** | **str, none_type** | | [optional] -**ids** | **[str], none_type** | | [optional] -**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_preview/docs/AsyncCampaignsReport.md b/sdks/retailmedia_preview/docs/AsyncCampaignsReport.md new file mode 100644 index 00000000..04625e77 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignsReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignsReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_preview/docs/AsyncCampaignsReportRequest.md b/sdks/retailmedia_preview/docs/AsyncCampaignsReportRequest.md new file mode 100644 index 00000000..a81e24db --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncCampaignsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncCampaignsReportResource**](AsyncCampaignsReportResource.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/AsyncCampaignsReportResource.md b/sdks/retailmedia_preview/docs/AsyncCampaignsReportResource.md new file mode 100644 index 00000000..946c021f --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignsReportResource.md @@ -0,0 +1,14 @@ +# AsyncCampaignsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncCampaignsReport**](AsyncCampaignsReport.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 deleted file mode 100644 index 1ba676e3..00000000 --- a/sdks/retailmedia_preview/docs/AsyncLineItemReport.md +++ /dev/null @@ -1,25 +0,0 @@ -# AsyncLineItemReport - -Line Item report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | | [optional] -**click_attribution_window** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | | [optional] -**timezone** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **str, none_type** | | [optional] -**format** | **str, none_type** | | [optional] -**report_type** | **str, none_type** | | [optional] -**ids** | **[str], none_type** | | [optional] -**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_preview/docs/AsyncLineItemsReport.md b/sdks/retailmedia_preview/docs/AsyncLineItemsReport.md new file mode 100644 index 00000000..223e1c26 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemsReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemsReport + +Line Items report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End date | +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**format** | **str, none_type** | Format of the output | [optional] if omitted the server will use the default value of "json-compact" +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**ids** | **[str], none_type** | Ids to report on | [optional] +**id** | **str, none_type** | Id to report on | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_preview/docs/AsyncLineItemsReportRequest.md b/sdks/retailmedia_preview/docs/AsyncLineItemsReportRequest.md new file mode 100644 index 00000000..0d20f088 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemsReportRequest.md @@ -0,0 +1,13 @@ +# AsyncLineItemsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncLineItemsReportResource**](AsyncLineItemsReportResource.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/AsyncLineItemsReportResource.md b/sdks/retailmedia_preview/docs/AsyncLineItemsReportResource.md new file mode 100644 index 00000000..464b8885 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemsReportResource.md @@ -0,0 +1,14 @@ +# AsyncLineItemsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**AsyncLineItemsReport**](AsyncLineItemsReport.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/AsyncRevenueReport.md b/sdks/retailmedia_preview/docs/AsyncRevenueReport.md deleted file mode 100644 index b957b0f3..00000000 --- a/sdks/retailmedia_preview/docs/AsyncRevenueReport.md +++ /dev/null @@ -1,26 +0,0 @@ -# AsyncRevenueReport - -Async Revenue report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**report_type** | **str, none_type** | | [optional] -**revenue_type** | **str, none_type** | | [optional] -**ids** | **[str], none_type** | | [optional] -**id** | **str, none_type** | | [optional] -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | | [optional] -**format** | **str, none_type** | | [optional] -**timezone** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **str, none_type** | | [optional] -**sold_by** | **str, none_type** | Filter on the type of seller | [optional] -**campaign_sub_type** | **str, none_type** | Filter on the campaign sub 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/AttributedTransactionReportRequest.md b/sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md deleted file mode 100644 index edf2ac7a..00000000 --- a/sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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 deleted file mode 100644 index f620b979..00000000 --- a/sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md +++ /dev/null @@ -1,14 +0,0 @@ -# AttributedTransactionReportResource - -A top-level object that encapsulates a Criteo API response for a single value - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str, none_type** | | [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/AudienceApi.md b/sdks/retailmedia_preview/docs/AudienceApi.md index 6977fb07..6d10ce9e 100644 --- a/sdks/retailmedia_preview/docs/AudienceApi.md +++ b/sdks/retailmedia_preview/docs/AudienceApi.md @@ -4,243 +4,10 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_audience**](AudienceApi.md#create_audience) | **POST** /preview/retail-media/accounts/{accountId}/audiences | -[**create_retail_media_audience_v2**](AudienceApi.md#create_retail_media_audience_v2) | **POST** /preview/retail-media/v2/accounts/{accountId}/audiences | [**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /preview/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** /preview/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_preview -from criteo_api_retailmedia_preview.api import audience_api -from criteo_api_retailmedia_preview.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse -from criteo_api_retailmedia_preview.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_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 = 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_preview.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_preview -from criteo_api_retailmedia_preview.api import audience_api -from criteo_api_retailmedia_preview.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response -from criteo_api_retailmedia_preview.model.common_status_code_response import CommonStatusCodeResponse -from criteo_api_retailmedia_preview.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request -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 = 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_preview.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) diff --git a/sdks/retailmedia_preview/docs/CampaignApi.md b/sdks/retailmedia_preview/docs/CampaignApi.md index d8d0dcee..dc4b923b 100644 --- a/sdks/retailmedia_preview/docs/CampaignApi.md +++ b/sdks/retailmedia_preview/docs/CampaignApi.md @@ -16,9 +16,7 @@ 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 | @@ -26,15 +24,13 @@ Method | HTTP request | Description [**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 | [**get_campaign_budget_overrides**](CampaignApi.md#get_campaign_budget_overrides) | **GET** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | -[**get_suggested_keywords**](CampaignApi.md#get_suggested_keywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | -[**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} | +[**get_line_item_budget_overrides**](CampaignApi.md#get_line_item_budget_overrides) | **GET** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | +[**get_recommended_keywords**](CampaignApi.md#get_recommended_keywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | +[**get_sku_by_product_id**](CampaignApi.md#get_sku_by_product_id) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | [**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} | @@ -44,6 +40,8 @@ Method | HTTP request | Description [**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** /preview/retail-media/line-items/{line-item-id}/bid-multipliers | [**set_keyword_bids**](CampaignApi.md#set_keyword_bids) | **POST** /preview/retail-media/line-items/{id}/keywords/set-bid | [**submit_proposal**](CampaignApi.md#submit_proposal) | **POST** /preview/retail-media/preferred-deal-line-items/{id}/proposal/submit | +[**update_campaign_budget_overrides**](CampaignApi.md#update_campaign_budget_overrides) | **PUT** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | +[**update_line_item_budget_overrides**](CampaignApi.md#update_line_item_budget_overrides) | **PUT** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | # **add_remove_keywords** @@ -753,7 +751,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) # **get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id** -> ProductButtonResponse get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id) +> ProductButtonListResponse get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id) @@ -768,7 +766,7 @@ Get a single product button import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import campaign_api -from criteo_api_retailmedia_preview.model.product_button_response import ProductButtonResponse +from criteo_api_retailmedia_preview.model.product_button_list_response import ProductButtonListResponse 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. @@ -818,7 +816,7 @@ Name | Type | Description | Notes ### Return type -[**ProductButtonResponse**](ProductButtonResponse.md) +[**ProductButtonListResponse**](ProductButtonListResponse.md) ### Authorization @@ -1089,106 +1087,6 @@ 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) @@ -1281,92 +1179,6 @@ 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 | @@ -2014,8 +1826,92 @@ 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_suggested_keywords** -> ValueResourceOutcomeOfSuggestedKeywordsResult get_suggested_keywords(external_line_item_id) +# **get_line_item_budget_overrides** +> ValueResourceOutcomeOfLineItemBudgetOverrides get_line_item_budget_overrides(line_item_id) + + + +Gets a collection of monthly and daily budget overrides for the provided line item. + +### 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.value_resource_outcome_of_line_item_budget_overrides import ValueResourceOutcomeOfLineItemBudgetOverrides +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) + line_item_id = "lineItemId_example" # str | The line item id to get budget overrides for. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_line_item_budget_overrides(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->get_line_item_budget_overrides: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item id to get budget overrides for. | + +### Return type + +[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.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_recommended_keywords** +> ValueResourceOutcomeOfRecommendedKeywordsResult get_recommended_keywords(external_line_item_id) @@ -2030,7 +1926,7 @@ Retrieves a collection of recommended keywords for a line item import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import campaign_api -from criteo_api_retailmedia_preview.model.value_resource_outcome_of_suggested_keywords_result import ValueResourceOutcomeOfSuggestedKeywordsResult +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult 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. @@ -2063,10 +1959,10 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set try: - api_response = api_instance.get_suggested_keywords(external_line_item_id) + api_response = api_instance.get_recommended_keywords(external_line_item_id) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling CampaignApi->get_suggested_keywords: %s\n" % e) + print("Exception when calling CampaignApi->get_recommended_keywords: %s\n" % e) ``` @@ -2078,7 +1974,7 @@ Name | Type | Description | Notes ### Return type -[**ValueResourceOutcomeOfSuggestedKeywordsResult**](ValueResourceOutcomeOfSuggestedKeywordsResult.md) +[**ValueResourceOutcomeOfRecommendedKeywordsResult**](ValueResourceOutcomeOfRecommendedKeywordsResult.md) ### Authorization @@ -2098,12 +1994,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) -# **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) +# **get_sku_by_product_id** +> ResourceCollectionOutcomeOfSkuSearchResult get_sku_by_product_id(account_id, retailer_id) -Modify a balance for the given account id +Gets a list of SKUs based on a privided list of Product Ids ### Example @@ -2114,8 +2010,8 @@ Modify a balance for the given account id 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 criteo_api_retailmedia_preview.model.resource_collection_outcome_of_sku_search_result import ResourceCollectionOutcomeOfSkuSearchResult +from criteo_api_retailmedia_preview.model.sku_search_request import SkuSearchRequest 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. @@ -2144,37 +2040,33 @@ 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 = 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", + account_id = "4" # str | account id + retailer_id = 1 # int | retailer id + offset = 0 # int | skip a number of matches before retrning results, used with limit (optional) if omitted the server will use the default value of 0 + limit = 100 # int | max number of results to return (optional) if omitted the server will use the default value of 100 + sku_search_request = SkuSearchRequest( + data=SkuSearchRequestBody( + product_id_type="SkuKey", + query_ids=[ + "query_ids_example", + ], ), - ) # UpdateBalanceModelRequest | (optional) + ) # SkuSearchRequest | (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) + api_response = api_instance.get_sku_by_product_id(account_id, retailer_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) + print("Exception when calling CampaignApi->get_sku_by_product_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) + api_response = api_instance.get_sku_by_product_id(account_id, retailer_id, offset=offset, limit=limit, sku_search_request=sku_search_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) + print("Exception when calling CampaignApi->get_sku_by_product_id: %s\n" % e) ``` @@ -2182,13 +2074,15 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: 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] + **account_id** | **str**| account id | + **retailer_id** | **int**| retailer id | + **offset** | **int**| skip a number of matches before retrning results, used with limit | [optional] if omitted the server will use the default value of 0 + **limit** | **int**| max number of results to return | [optional] if omitted the server will use the default value of 100 + **sku_search_request** | [**SkuSearchRequest**](SkuSearchRequest.md)| | [optional] ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**ResourceCollectionOutcomeOfSkuSearchResult**](ResourceCollectionOutcomeOfSkuSearchResult.md) ### Authorization @@ -2196,7 +2090,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: application/json @@ -2640,12 +2534,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) -# **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) +# **post_api_v1_external_catalogs_sku_retrieval** +> SkuDataPreviewListResponse post_api_v1_external_catalogs_sku_retrieval() -Add funds to a balance for the given account id +Endpoint to search skus by text, retailer and sellers/brands. ### Example @@ -2656,8 +2550,7 @@ Add funds to a balance for the given account id 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 criteo_api_retailmedia_preview.model.sku_data_preview_list_response import SkuDataPreviewListResponse 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. @@ -2686,337 +2579,14 @@ 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 = 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) + 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 + request_body = [ + "request_body_example", + ] # [str] | The list of SKU keys to retrieve sku information (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() - - - -Endpoint to search skus by text, retailer and sellers/brands. - -### 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.sku_data_preview_list_response import SkuDataPreviewListResponse -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) - 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 - request_body = [ - "request_body_example", - ] # [str] | The list of SKU keys to retrieve sku information (optional) - - # example passing only required values which don't have defaults set - # and optional values + # and optional values try: api_response = api_instance.post_api_v1_external_catalogs_sku_retrieval(page_index=page_index, page_size=page_size, request_body=request_body) pprint(api_response) @@ -3517,7 +3087,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) # **put_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id** -> ProductButtonResponse put_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id) +> ProductButtonListResponse put_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id(line_item_id, product_button_id) @@ -3533,7 +3103,7 @@ import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import campaign_api from criteo_api_retailmedia_preview.model.product_button_request import ProductButtonRequest -from criteo_api_retailmedia_preview.model.product_button_response import ProductButtonResponse +from criteo_api_retailmedia_preview.model.product_button_list_response import ProductButtonListResponse 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. @@ -3606,7 +3176,7 @@ Name | Type | Description | Notes ### Return type -[**ProductButtonResponse**](ProductButtonResponse.md) +[**ProductButtonListResponse**](ProductButtonListResponse.md) ### Authorization @@ -3932,3 +3502,237 @@ 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_campaign_budget_overrides** +> ValueResourceOutcomeOfCampaignBudgetOverrides update_campaign_budget_overrides(campaign_id) + + + +Update campaign budget overrides by given external campaign id and new campaign budget overrides settings. + +### 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.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_campaign_budget_overrides import ValueResourceOutcomeOfCampaignBudgetOverrides +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) + campaign_id = 1 # int | External campaign id. + value_resource_input_of_campaign_budget_overrides = ValueResourceInputOfCampaignBudgetOverrides( + data=ValueResourceOfCampaignBudgetOverrides( + type="type_example", + attributes=CampaignBudgetOverrides( + monthly_budget_overrides=[ + CampaignMonthlyBudgetOverride( + start_month=dateutil_parser('1970-01-01T00:00:00.00Z'), + duration="duration_example", + max_monthly_spend=3.14, + status="Expired", + ), + ], + daily_budget_overrides=[ + CampaignDailyBudgetOverride( + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + duration="duration_example", + max_daily_spend=3.14, + status="Expired", + ), + ], + ), + ), + ) # ValueResourceInputOfCampaignBudgetOverrides | New campaign budget overrides settings value resource input. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.update_campaign_budget_overrides(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->update_campaign_budget_overrides: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.update_campaign_budget_overrides(campaign_id, value_resource_input_of_campaign_budget_overrides=value_resource_input_of_campaign_budget_overrides) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->update_campaign_budget_overrides: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **int**| External campaign id. | + **value_resource_input_of_campaign_budget_overrides** | [**ValueResourceInputOfCampaignBudgetOverrides**](ValueResourceInputOfCampaignBudgetOverrides.md)| New campaign budget overrides settings value resource input. | [optional] + +### Return type + +[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.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 + + +### 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) + +# **update_line_item_budget_overrides** +> ValueResourceOutcomeOfLineItemBudgetOverrides update_line_item_budget_overrides(line_item_id) + + + +Update line item budget overrides by given external line item id and new line item budget overrides settings. + +### 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.value_resource_input_of_line_item_budget_overrides import ValueResourceInputOfLineItemBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_outcome_of_line_item_budget_overrides import ValueResourceOutcomeOfLineItemBudgetOverrides +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) + line_item_id = "lineItemId_example" # str | Line item external id. + value_resource_input_of_line_item_budget_overrides = ValueResourceInputOfLineItemBudgetOverrides( + data=ValueResourceOfLineItemBudgetOverrides( + type="type_example", + attributes=LineItemBudgetOverrides( + monthly_line_item_budget_overrides=[ + MonthlyLineItemBudegetOverride( + start_month=dateutil_parser('1970-01-01T00:00:00.00Z'), + duration="duration_example", + max_monthly_spend=3.14, + status="Expired", + ), + ], + daily_line_item_budget_overrides=[ + DailyLineItemBudgetOverride( + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + duration="duration_example", + max_daily_spend=3.14, + status="Expired", + ), + ], + ), + ), + ) # ValueResourceInputOfLineItemBudgetOverrides | New line item budget overrides settings value resource input. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.update_line_item_budget_overrides(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->update_line_item_budget_overrides: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.update_line_item_budget_overrides(line_item_id, value_resource_input_of_line_item_budget_overrides=value_resource_input_of_line_item_budget_overrides) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->update_line_item_budget_overrides: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| Line item external id. | + **value_resource_input_of_line_item_budget_overrides** | [**ValueResourceInputOfLineItemBudgetOverrides**](ValueResourceInputOfLineItemBudgetOverrides.md)| New line item budget overrides settings value resource input. | [optional] + +### Return type + +[**ValueResourceOutcomeOfLineItemBudgetOverrides**](ValueResourceOutcomeOfLineItemBudgetOverrides.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 + + +### 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) + diff --git a/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md b/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md index 1010cc28..b544ef9a 100644 --- a/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md +++ b/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md @@ -5,7 +5,7 @@ Campaign daily budget override. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**duration** | **str** | Daily budget override duration, e.g. \"1D\". Must be ending with D. | +**duration** | **str** | The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. | **max_daily_spend** | **float** | Daily budget override maximum daily spend amount. | **start_date** | **datetime, none_type** | Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence. | [optional] **status** | **str, none_type** | Daily budget override computed status. | [optional] diff --git a/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md b/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md index 1480f54f..53f223d9 100644 --- a/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md +++ b/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md @@ -5,7 +5,7 @@ Campaign monthly budget override. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**duration** | **str** | Monthly budget override duration, e.g. \"1M\". Must be ending with \"M\". | +**duration** | **str** | The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. | **max_monthly_spend** | **float** | Monthly budget override maximum monthly spend amount. | **start_month** | **datetime, none_type** | Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence. | [optional] **status** | **str, none_type** | Monthly budget override computed status. | [optional] diff --git a/sdks/retailmedia_preview/docs/CreateRetailMediaAudience.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudience.md deleted file mode 100644 index b7c5ada9..00000000 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudience.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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_preview/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md deleted file mode 100644 index 7eb6f422..00000000 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md +++ /dev/null @@ -1,18 +0,0 @@ -# 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], none_type** | The brands to target | [optional] -**category_ids** | **[int], none_type** | 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/CreateRetailMediaAudienceBody.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceBody.md deleted file mode 100644 index bab4473a..00000000 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceBody.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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_preview/docs/CreateRetailMediaAudienceRequest.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceRequest.md deleted file mode 100644 index 8afcf915..00000000 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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_preview/docs/CreateRetailMediaAudienceResponse.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceResponse.md deleted file mode 100644 index 66346fd7..00000000 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateRetailMediaAudienceResponse - -Response of CreateAudienceRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CreateRetailMediaAudience**](CreateRetailMediaAudience.md) | | [optional] -**errors** | [**[CommonError], none_type**](CommonError.md) | errors | [optional] [readonly] -**warnings** | [**[CommonWarning], none_type**](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_preview/docs/DailyLineItemBudgetOverride.md b/sdks/retailmedia_preview/docs/DailyLineItemBudgetOverride.md new file mode 100644 index 00000000..6ee78b17 --- /dev/null +++ b/sdks/retailmedia_preview/docs/DailyLineItemBudgetOverride.md @@ -0,0 +1,15 @@ +# DailyLineItemBudgetOverride + +The details for a daily budget override + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **str** | The number of DAYs that the override is active from StartDate, e.g. \"1D\". Must end with 'D' or 'd'. | +**start_date** | **datetime, none_type** | Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence. | [optional] +**max_daily_spend** | **float, none_type** | Daily budget override maximum daily spend amount. | [optional] +**status** | **str, none_type** | Daily budget override computed status. | [optional] + +[[Back to Model list]](../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/LineItemBudgetOverrides.md b/sdks/retailmedia_preview/docs/LineItemBudgetOverrides.md new file mode 100644 index 00000000..89cddb7c --- /dev/null +++ b/sdks/retailmedia_preview/docs/LineItemBudgetOverrides.md @@ -0,0 +1,13 @@ +# LineItemBudgetOverrides + +Line item budget overrides including Monthly and Daily budget overrides. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**monthly_line_item_budget_overrides** | [**[MonthlyLineItemBudegetOverride]**](MonthlyLineItemBudegetOverride.md) | Line item budget override monthly part, chronological order restricted. | +**daily_line_item_budget_overrides** | [**[DailyLineItemBudgetOverride]**](DailyLineItemBudgetOverride.md) | Line item budget override daily part, chronological order restricted. | + +[[Back to Model list]](../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 deleted file mode 100644 index b171a1d0..00000000 --- a/sdks/retailmedia_preview/docs/LineItemReport.md +++ /dev/null @@ -1,25 +0,0 @@ -# LineItemReport - -Line item report body request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **str** | | -**start_date** | **datetime** | | -**end_date** | **datetime** | | -**report_type** | **str, none_type** | | [optional] -**line_item_ids** | **[str], none_type** | | [optional] -**campaign_ids** | **[str], none_type** | | [optional] -**metrics** | **[str], none_type** | | [optional] -**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] -**timezone** | **str, none_type** | | [optional] -**click_attribution_window** | **str, none_type** | | [optional] -**view_attribution_window** | **str, none_type** | | [optional] -**campaign_type** | **str, none_type** | | [optional] -**sales_channel** | **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/MonthlyLineItemBudegetOverride.md b/sdks/retailmedia_preview/docs/MonthlyLineItemBudegetOverride.md new file mode 100644 index 00000000..1b842fc3 --- /dev/null +++ b/sdks/retailmedia_preview/docs/MonthlyLineItemBudegetOverride.md @@ -0,0 +1,15 @@ +# MonthlyLineItemBudegetOverride + +The details for a monthly budget override + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **str** | The number of MONTHs that the override is active from StartMonth, e.g. \"1M\". Must end with 'M' or 'm'. | +**max_monthly_spend** | **float** | Monthly budget override maximum monthly spend amount. | +**start_month** | **datetime, none_type** | Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence. | [optional] +**status** | **str, none_type** | Monthly budget override computed status. | [optional] + +[[Back to Model list]](../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/ProductButtonResponse.md b/sdks/retailmedia_preview/docs/ProductButtonResponse.md deleted file mode 100644 index 1fe41613..00000000 --- a/sdks/retailmedia_preview/docs/ProductButtonResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# ProductButtonResponse - -Data model for response resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ResourceOfProductButtonResponse**](ResourceOfProductButtonResponse.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_preview/docs/SuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/RecommendedKeywordsResult.md similarity index 88% rename from sdks/retailmedia_preview/docs/SuggestedKeywordsResult.md rename to sdks/retailmedia_preview/docs/RecommendedKeywordsResult.md index 9b12f5a8..dc5261ed 100644 --- a/sdks/retailmedia_preview/docs/SuggestedKeywordsResult.md +++ b/sdks/retailmedia_preview/docs/RecommendedKeywordsResult.md @@ -1,6 +1,6 @@ -# SuggestedKeywordsResult +# RecommendedKeywordsResult -Response model for suggested keywords +Response model for recommended keywords ## Properties Name | Type | Description | Notes diff --git a/sdks/retailmedia_preview/docs/ReportDataResponseResource.md b/sdks/retailmedia_preview/docs/ReportDataResponseResource.md index ca265ca3..95d7dadf 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, none_type** | | [optional] -**attributes** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type** | | [optional] +**attributes** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type** | Data response 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/retailmedia_preview/docs/AttributedTransactionsReport.md b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReport.md similarity index 68% rename from sdks/retailmedia_preview/docs/AttributedTransactionsReport.md rename to sdks/retailmedia_preview/docs/SyncAttributedTransactionsReport.md index e573e7ab..b51194aa 100644 --- a/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md +++ b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReport.md @@ -1,4 +1,4 @@ -# AttributedTransactionsReport +# SyncAttributedTransactionsReport Attributed transactions report body request @@ -7,14 +7,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_id** | **str** | Account id to report on | **start_date** | **datetime** | Start date | -**end_date** | **datetime** | End Date | +**end_date** | **datetime** | End date | **campaign_ids** | **[str], none_type** | Campaign ids to report on | [optional] **line_item_ids** | **[str], none_type** | Line item ids to report on | [optional] **dimensions** | **[str], none_type** | List of dimensions to report on | [optional] **metrics** | **[str], none_type** | List of metrics to report on | [optional] +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] **timezone** | **str, none_type** | 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, none_type** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" -**view_attribution_window** | **str, none_type** | 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/SyncAttributedTransactionsReportRequest.md b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportRequest.md new file mode 100644 index 00000000..8f60b035 --- /dev/null +++ b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportRequest.md @@ -0,0 +1,13 @@ +# SyncAttributedTransactionsReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**SyncAttributedTransactionsReportResource**](SyncAttributedTransactionsReportResource.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/SyncAttributedTransactionsReportResource.md b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportResource.md new file mode 100644 index 00000000..3ee97400 --- /dev/null +++ b/sdks/retailmedia_preview/docs/SyncAttributedTransactionsReportResource.md @@ -0,0 +1,14 @@ +# SyncAttributedTransactionsReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**SyncAttributedTransactionsReport**](SyncAttributedTransactionsReport.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/CampaignReport.md b/sdks/retailmedia_preview/docs/SyncCampaignsReport.md similarity index 63% rename from sdks/retailmedia_preview/docs/CampaignReport.md rename to sdks/retailmedia_preview/docs/SyncCampaignsReport.md index 485ee17c..6ea79df3 100644 --- a/sdks/retailmedia_preview/docs/CampaignReport.md +++ b/sdks/retailmedia_preview/docs/SyncCampaignsReport.md @@ -1,4 +1,4 @@ -# CampaignReport +# SyncCampaignsReport Campaign report body request @@ -7,16 +7,16 @@ 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, none_type** | | [optional] +**end_date** | **datetime** | End date | +**report_type** | **str, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" **campaign_ids** | **[str], none_type** | List of campaign Ids to filter | [optional] **metrics** | **[str], none_type** | List of Metrics to report on | [optional] **dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] **timezone** | **str, none_type** | 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, none_type** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" -**view_attribution_window** | **str, none_type** | View Attribution window | [optional] if omitted the server will use the default value of "none" -**campaign_type** | **str, none_type** | Filter the type of campaign to report on | [optional] -**sales_channel** | **str, none_type** | 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/AsyncCampaignReportRequest.md b/sdks/retailmedia_preview/docs/SyncCampaignsReportRequest.md similarity index 85% rename from sdks/retailmedia_2023-07/docs/AsyncCampaignReportRequest.md rename to sdks/retailmedia_preview/docs/SyncCampaignsReportRequest.md index b89dea58..d31777ad 100644 --- a/sdks/retailmedia_2023-07/docs/AsyncCampaignReportRequest.md +++ b/sdks/retailmedia_preview/docs/SyncCampaignsReportRequest.md @@ -1,11 +1,11 @@ -# AsyncCampaignReportRequest +# SyncCampaignsReportRequest A top-level object that encapsulates a Criteo API request for a single value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**AsyncCampaignReportResource**](AsyncCampaignReportResource.md) | | [optional] +**data** | [**SyncCampaignsReportResource**](SyncCampaignsReportResource.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/AsyncLineItemReportResource.md b/sdks/retailmedia_preview/docs/SyncCampaignsReportResource.md similarity index 86% rename from sdks/retailmedia_2023-07/docs/AsyncLineItemReportResource.md rename to sdks/retailmedia_preview/docs/SyncCampaignsReportResource.md index 1eda515d..df9730c7 100644 --- a/sdks/retailmedia_2023-07/docs/AsyncLineItemReportResource.md +++ b/sdks/retailmedia_preview/docs/SyncCampaignsReportResource.md @@ -1,4 +1,4 @@ -# AsyncLineItemReportResource +# SyncCampaignsReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str, none_type** | | [optional] -**attributes** | [**AsyncLineItemReport**](AsyncLineItemReport.md) | | [optional] +**attributes** | [**SyncCampaignsReport**](SyncCampaignsReport.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/SyncLineItemsReport.md b/sdks/retailmedia_preview/docs/SyncLineItemsReport.md new file mode 100644 index 00000000..7bab212e --- /dev/null +++ b/sdks/retailmedia_preview/docs/SyncLineItemsReport.md @@ -0,0 +1,25 @@ +# SyncLineItemsReport + +Line Items 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, none_type** | Type of report, if no dimensions/metrics are provided, falls back to summary reportType | [optional] if omitted the server will use the default value of "summary" +**line_item_ids** | **[str], none_type** | Line item ids to report on | [optional] +**campaign_ids** | **[str], none_type** | Campaign ids to report on | [optional] +**metrics** | **[str], none_type** | List of metrics to report on | [optional] +**dimensions** | **[str], none_type** | List of dimensions to report on | [optional] +**click_attribution_window** | **str, none_type** | Click attribution window | [optional] if omitted the server will use the default value of "none" +**view_attribution_window** | **str, none_type** | View attribution window | [optional] if omitted the server will use the default value of "none" +**campaign_type** | **str, none_type** | Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays | [optional] +**sales_channel** | **str, none_type** | Filter on specific sales channel: offline or online | [optional] +**timezone** | **str, none_type** | Time zone : see criteo developer portal for supported time zones | [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/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md b/sdks/retailmedia_preview/docs/SyncLineItemsReportRequest.md similarity index 85% rename from sdks/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md rename to sdks/retailmedia_preview/docs/SyncLineItemsReportRequest.md index 3f923cd9..e8f2f4e4 100644 --- a/sdks/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md +++ b/sdks/retailmedia_preview/docs/SyncLineItemsReportRequest.md @@ -1,11 +1,11 @@ -# AsyncLineItemReportRequest +# SyncLineItemsReportRequest A top-level object that encapsulates a Criteo API request for a single value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**AsyncLineItemReportResource**](AsyncLineItemReportResource.md) | | [optional] +**data** | [**SyncLineItemsReportResource**](SyncLineItemsReportResource.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/SyncLineItemsReportResource.md similarity index 86% rename from sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md rename to sdks/retailmedia_preview/docs/SyncLineItemsReportResource.md index 3421ba06..64bfa4d1 100644 --- a/sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md +++ b/sdks/retailmedia_preview/docs/SyncLineItemsReportResource.md @@ -1,4 +1,4 @@ -# AsyncCampaignReportResource +# SyncLineItemsReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str, none_type** | | [optional] -**attributes** | [**AsyncCampaignReport**](AsyncCampaignReport.md) | | [optional] +**attributes** | [**SyncLineItemsReport**](SyncLineItemsReport.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/CampaignReportRequest.md b/sdks/retailmedia_preview/docs/ValueResourceInputOfCampaignBudgetOverrides.md similarity index 53% rename from sdks/retailmedia_preview/docs/CampaignReportRequest.md rename to sdks/retailmedia_preview/docs/ValueResourceInputOfCampaignBudgetOverrides.md index 2201a08f..068a79ae 100644 --- a/sdks/retailmedia_preview/docs/CampaignReportRequest.md +++ b/sdks/retailmedia_preview/docs/ValueResourceInputOfCampaignBudgetOverrides.md @@ -1,12 +1,11 @@ -# CampaignReportRequest +# ValueResourceInputOfCampaignBudgetOverrides -A top-level object that encapsulates a Criteo API request for a single value +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] +**data** | [**ValueResourceOfCampaignBudgetOverrides**](ValueResourceOfCampaignBudgetOverrides.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/LineItemReportRequest.md b/sdks/retailmedia_preview/docs/ValueResourceInputOfLineItemBudgetOverrides.md similarity index 53% rename from sdks/retailmedia_preview/docs/LineItemReportRequest.md rename to sdks/retailmedia_preview/docs/ValueResourceInputOfLineItemBudgetOverrides.md index 30e22b94..43c73838 100644 --- a/sdks/retailmedia_preview/docs/LineItemReportRequest.md +++ b/sdks/retailmedia_preview/docs/ValueResourceInputOfLineItemBudgetOverrides.md @@ -1,12 +1,11 @@ -# LineItemReportRequest +# ValueResourceInputOfLineItemBudgetOverrides -A top-level object that encapsulates a Criteo API request for a single value +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] +**data** | [**ValueResourceOfLineItemBudgetOverrides**](ValueResourceOfLineItemBudgetOverrides.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOfLineItemBudgetOverrides.md similarity index 75% rename from sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md rename to sdks/retailmedia_preview/docs/ValueResourceOfLineItemBudgetOverrides.md index 79e0b4db..4e3b78dc 100644 --- a/sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md +++ b/sdks/retailmedia_preview/docs/ValueResourceOfLineItemBudgetOverrides.md @@ -1,4 +1,4 @@ -# ValueResourceOfSuggestedKeywordsResult +# ValueResourceOfLineItemBudgetOverrides A top-level object that encapsulates a Criteo API response for a single value. @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str, none_type** | | [optional] -**attributes** | [**SuggestedKeywordsResult**](SuggestedKeywordsResult.md) | | [optional] +**attributes** | [**LineItemBudgetOverrides**](LineItemBudgetOverrides.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfRecommendedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOfRecommendedKeywordsResult.md new file mode 100644 index 00000000..0bc7a95b --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOfRecommendedKeywordsResult.md @@ -0,0 +1,13 @@ +# ValueResourceOfRecommendedKeywordsResult + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**RecommendedKeywordsResult**](RecommendedKeywordsResult.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md similarity index 76% rename from sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md rename to sdks/retailmedia_preview/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md index 740e4176..1ea50409 100644 --- a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md +++ b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md @@ -1,11 +1,11 @@ -# ValueResourceOutcomeOfSuggestedKeywordsResult +# ValueResourceOutcomeOfLineItemBudgetOverrides A top-level object that encapsulates a Criteo API response for a single value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ValueResourceOfSuggestedKeywordsResult**](ValueResourceOfSuggestedKeywordsResult.md) | | [optional] +**data** | [**ValueResourceOfLineItemBudgetOverrides**](ValueResourceOfLineItemBudgetOverrides.md) | | [optional] **warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md new file mode 100644 index 00000000..8f71d271 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md @@ -0,0 +1,14 @@ +# ValueResourceOutcomeOfRecommendedKeywordsResult + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueResourceOfRecommendedKeywordsResult**](ValueResourceOfRecommendedKeywordsResult.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] + +[[Back to Model list]](../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 eae9d82d..3345f940 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.230831" +VERSION = "0.0.231113" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==0.0.230831 +pip install criteo-api-retailmedia-sdk==0.0.231113 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230831`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.231113`) Then import the package: ```python