criteo-api-retailmedia-sdk 0.0.250327__py3-none-any.whl → 0.0.250425__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (205) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +187 -35
  3. criteo_api_retailmedia_preview/api/analytics_api.py +144 -2
  4. criteo_api_retailmedia_preview/api/balance_api.py +12 -12
  5. criteo_api_retailmedia_preview/api/campaign_api.py +88 -509
  6. criteo_api_retailmedia_preview/api_client.py +1 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/account_fees_search_request.py +257 -0
  9. criteo_api_retailmedia_preview/model/account_fees_update_request.py +278 -0
  10. criteo_api_retailmedia_preview/model/account_fees_update_result.py +261 -0
  11. criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +8 -8
  12. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +4 -4
  13. criteo_api_retailmedia_preview/model/application_summary_model.py +8 -8
  14. criteo_api_retailmedia_preview/model/application_summary_model_resource.py +4 -4
  15. criteo_api_retailmedia_preview/model/application_summary_model_response.py +5 -5
  16. criteo_api_retailmedia_preview/model/async_accounts_report.py +73 -73
  17. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +4 -4
  18. criteo_api_retailmedia_preview/model/async_campaigns_report.py +79 -79
  19. criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +4 -4
  20. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +14 -14
  21. criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py +4 -4
  22. criteo_api_retailmedia_preview/model/async_line_items_report.py +79 -79
  23. criteo_api_retailmedia_preview/model/async_line_items_report_resource.py +4 -4
  24. criteo_api_retailmedia_preview/model/{common_error.py → async_offsite_report.py} +185 -45
  25. criteo_api_retailmedia_preview/model/{grant_consent_input.py → async_offsite_report_request.py} +8 -8
  26. criteo_api_retailmedia_preview/model/{grant_consent_model_value_resource.py → async_offsite_report_resource.py} +9 -9
  27. criteo_api_retailmedia_preview/model/async_report_response.py +5 -5
  28. criteo_api_retailmedia_preview/model/audience_error.py +16 -16
  29. criteo_api_retailmedia_preview/model/audience_warning.py +22 -22
  30. criteo_api_retailmedia_preview/model/balance_history_change_data_capture_v1.py +14 -14
  31. criteo_api_retailmedia_preview/model/balance_response_v2.py +45 -45
  32. criteo_api_retailmedia_preview/model/balance_response_v2_response.py +5 -5
  33. criteo_api_retailmedia_preview/model/bot_message.py +4 -4
  34. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +9 -9
  35. criteo_api_retailmedia_preview/model/brand_id_search_request.py +11 -5
  36. criteo_api_retailmedia_preview/model/brand_id_search_result.py +15 -9
  37. criteo_api_retailmedia_preview/model/brand_preview_list_response.py +5 -5
  38. criteo_api_retailmedia_preview/model/catalog_status_v2.py +12 -12
  39. criteo_api_retailmedia_preview/model/category202204.py +8 -8
  40. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +4 -4
  41. criteo_api_retailmedia_preview/model/change_details_v1.py +8 -8
  42. criteo_api_retailmedia_preview/model/common_problem.py +20 -20
  43. criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +4 -4
  44. criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py +5 -5
  45. criteo_api_retailmedia_preview/model/create_balance_v2.py +12 -12
  46. criteo_api_retailmedia_preview/model/creative2.py +50 -50
  47. criteo_api_retailmedia_preview/model/creative2_list_response.py +5 -5
  48. criteo_api_retailmedia_preview/model/creative2_response.py +5 -5
  49. criteo_api_retailmedia_preview/model/demand_managed_fee.py +267 -0
  50. criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +12 -5
  51. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +17 -10
  52. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +9 -9
  53. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py +9 -9
  54. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +4 -4
  55. criteo_api_retailmedia_preview/model/{resource_of_catalog_status_v2.py → entity_resource_of_catalog_status_v2.py} +7 -7
  56. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +4 -4
  57. criteo_api_retailmedia_preview/model/{catalog_status_v2_response.py → entity_resource_outcome_of_catalog_status_v2.py} +18 -18
  58. criteo_api_retailmedia_preview/model/entity_resource_outcome_partner_billing_report_status_v1.py +5 -5
  59. criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +4 -4
  60. criteo_api_retailmedia_preview/model/export_report_column.py +30 -30
  61. criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py +9 -9
  62. criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
  63. criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +24 -24
  64. criteo_api_retailmedia_preview/model/external_preferred_line_item_update_model_v2.py +20 -20
  65. criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +36 -36
  66. criteo_api_retailmedia_preview/model/external_product_button_request.py +8 -8
  67. criteo_api_retailmedia_preview/model/external_product_button_response.py +14 -14
  68. criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +22 -22
  69. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +4 -4
  70. criteo_api_retailmedia_preview/model/installment.py +4 -4
  71. criteo_api_retailmedia_preview/model/keyword_data_model.py +12 -12
  72. criteo_api_retailmedia_preview/model/keywords_model_resource.py +4 -4
  73. criteo_api_retailmedia_preview/model/keywords_model_response.py +4 -4
  74. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +32 -32
  75. criteo_api_retailmedia_preview/model/{input_keywords.py → managed_service_fee.py} +31 -17
  76. criteo_api_retailmedia_preview/model/message.py +4 -4
  77. criteo_api_retailmedia_preview/model/message_error.py +8 -8
  78. criteo_api_retailmedia_preview/model/metadata.py +8 -8
  79. criteo_api_retailmedia_preview/model/outcome.py +5 -5
  80. criteo_api_retailmedia_preview/model/page_metadata.py +16 -16
  81. criteo_api_retailmedia_preview/model/page_of_balance_history_change_data_capture_v1.py +8 -8
  82. criteo_api_retailmedia_preview/model/page_type_environment2.py +14 -14
  83. criteo_api_retailmedia_preview/model/paged_resource_collection_outcome_of_balance_response_v2.py +9 -9
  84. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +15 -9
  85. criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +12 -14
  86. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +8 -8
  87. criteo_api_retailmedia_preview/model/placement_preview.py +24 -24
  88. criteo_api_retailmedia_preview/model/placement_preview_list_response.py +5 -5
  89. criteo_api_retailmedia_preview/model/preferred_line_item_v2_paged_list_response.py +9 -9
  90. criteo_api_retailmedia_preview/model/preferred_line_item_v2_response.py +5 -5
  91. criteo_api_retailmedia_preview/model/{recommended_keywords_result.py → private_market_account_fees.py} +13 -13
  92. criteo_api_retailmedia_preview/model/private_market_fees.py +276 -0
  93. criteo_api_retailmedia_preview/model/problem_details.py +20 -20
  94. criteo_api_retailmedia_preview/model/product.py +242 -242
  95. criteo_api_retailmedia_preview/model/product_button_list_response.py +5 -5
  96. criteo_api_retailmedia_preview/model/product_importer_error.py +20 -20
  97. criteo_api_retailmedia_preview/model/product_importer_warning.py +20 -20
  98. criteo_api_retailmedia_preview/model/product_metadata.py +8 -8
  99. criteo_api_retailmedia_preview/model/product_recommendation.py +16 -16
  100. criteo_api_retailmedia_preview/model/product_shipping.py +16 -16
  101. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +4 -4
  102. criteo_api_retailmedia_preview/model/product_shipping_weight.py +4 -4
  103. criteo_api_retailmedia_preview/model/product_tax.py +12 -12
  104. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +4 -4
  105. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +4 -4
  106. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +8 -8
  107. criteo_api_retailmedia_preview/model/promoted_product.py +4 -4
  108. criteo_api_retailmedia_preview/model/promoted_product_resource.py +4 -4
  109. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +8 -8
  110. criteo_api_retailmedia_preview/model/report_data_response_resource.py +4 -4
  111. criteo_api_retailmedia_preview/model/report_detail_error.py +14 -14
  112. criteo_api_retailmedia_preview/model/report_detail_errors.py +8 -8
  113. criteo_api_retailmedia_preview/model/report_detail_warning.py +14 -14
  114. criteo_api_retailmedia_preview/model/report_ok_response.py +20 -20
  115. criteo_api_retailmedia_preview/model/report_outcome.py +5 -5
  116. criteo_api_retailmedia_preview/model/report_response.py +9 -9
  117. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +4 -4
  118. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +4 -4
  119. criteo_api_retailmedia_preview/model/resource_of_seller_preview.py +4 -4
  120. criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py +4 -4
  121. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +4 -4
  122. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +8 -8
  123. criteo_api_retailmedia_preview/model/retail_media_seller.py +8 -8
  124. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +8 -8
  125. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +20 -20
  126. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py +9 -9
  127. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +4 -4
  128. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +4 -4
  129. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +4 -4
  130. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +4 -4
  131. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +4 -4
  132. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +30 -30
  133. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_list_response.py +5 -5
  134. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +9 -9
  135. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_list_response.py +5 -5
  136. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +4 -4
  137. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +4 -4
  138. criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +4 -4
  139. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +8 -8
  140. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +4 -4
  141. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_response.py +5 -5
  142. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +4 -4
  143. criteo_api_retailmedia_preview/model/rm_events_v1.py +23 -23
  144. criteo_api_retailmedia_preview/model/rmca_common_problem.py +16 -16
  145. criteo_api_retailmedia_preview/model/sdk_api_rest_common_problem.py +16 -16
  146. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +8 -8
  147. criteo_api_retailmedia_preview/model/seller_preview_response.py +5 -5
  148. criteo_api_retailmedia_preview/model/set_bid_model.py +4 -4
  149. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +4 -4
  150. criteo_api_retailmedia_preview/model/sku_data_preview.py +60 -60
  151. criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py +5 -5
  152. criteo_api_retailmedia_preview/model/sku_min_bid.py +8 -8
  153. criteo_api_retailmedia_preview/model/sku_search_request_preview.py +17 -17
  154. criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +8 -8
  155. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +30 -30
  156. criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +5 -5
  157. criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +24 -24
  158. criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +5 -5
  159. criteo_api_retailmedia_preview/model/status_response.py +20 -20
  160. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +41 -41
  161. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +4 -4
  162. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +48 -48
  163. criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +4 -4
  164. criteo_api_retailmedia_preview/model/sync_line_items_report.py +52 -52
  165. criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +4 -4
  166. criteo_api_retailmedia_preview/model/template_variable_value.py +4 -4
  167. criteo_api_retailmedia_preview/model/update_balance_model_v2.py +8 -8
  168. criteo_api_retailmedia_preview/model/value_resource_account_fees_search_request.py +266 -0
  169. criteo_api_retailmedia_preview/model/value_resource_account_fees_update_request.py +266 -0
  170. criteo_api_retailmedia_preview/model/{value_resource_of_recommended_keywords_result.py → value_resource_account_fees_update_result.py} +11 -11
  171. criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +12 -5
  172. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_seller_search_result.py +5 -5
  173. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_response.py → value_resource_collection_outcome_private_market_account_fees_and_metadata.py} +26 -27
  174. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_request.py +4 -4
  175. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +4 -4
  176. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_search_request.py +262 -0
  177. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_update_request.py +262 -0
  178. criteo_api_retailmedia_preview/model/value_resource_input_brand_id_search_request.py +8 -1
  179. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_request.py → value_resource_input_of_brand_catalog_request_v2.py} +8 -8
  180. criteo_api_retailmedia_preview/model/{json_api_request_of_brand_catalog_request_v2.py → value_resource_input_of_seller_catalog_request_v2.py} +8 -8
  181. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py → value_resource_of_brand_catalog_request_v2.py} +10 -16
  182. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py → value_resource_of_seller_catalog_request_v2.py} +10 -16
  183. criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py +4 -4
  184. criteo_api_retailmedia_preview/model/value_resource_of_seller_search_result.py +4 -4
  185. criteo_api_retailmedia_preview/model/{value_resource_outcome_of_recommended_keywords_result.py → value_resource_outcome_account_fees_update_result.py} +18 -18
  186. criteo_api_retailmedia_preview/model/value_resource_outcome_cpc_min_bids_response.py +5 -5
  187. criteo_api_retailmedia_preview/model/value_resource_outcome_retail_media_keywords_review_result.py +5 -5
  188. criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +4 -4
  189. criteo_api_retailmedia_preview/model/value_resource_private_market_account_fees.py +266 -0
  190. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +4 -4
  191. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +4 -4
  192. criteo_api_retailmedia_preview/model/video_variable_value.py +16 -16
  193. criteo_api_retailmedia_preview/models/__init__.py +24 -22
  194. {criteo_api_retailmedia_sdk-0.0.250327.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/METADATA +3 -3
  195. {criteo_api_retailmedia_sdk-0.0.250327.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/RECORD +197 -195
  196. {criteo_api_retailmedia_sdk-0.0.250327.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/WHEEL +1 -1
  197. criteo_api_retailmedia_preview/model/common_warning.py +0 -301
  198. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +0 -307
  199. criteo_api_retailmedia_preview/model/grant_consent_model.py +0 -279
  200. criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py +0 -279
  201. criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request_v2.py +0 -269
  202. criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers_v2.py +0 -287
  203. criteo_api_retailmedia_preview/model/keywords.py +0 -297
  204. criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers_v2.py +0 -277
  205. {criteo_api_retailmedia_sdk-0.0.250327.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/top_level.txt +0 -0
@@ -1,301 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class CommonWarning(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- ('type',): {
59
- 'UNKNOWN': "unknown",
60
- 'ACCESS-CONTROL': "access-control",
61
- 'AUTHENTICATION': "authentication",
62
- 'AUTHORIZATION': "authorization",
63
- 'AVAILABILITY': "availability",
64
- 'DEPRECATION': "deprecation",
65
- 'QUOTA': "quota",
66
- 'VALIDATION': "validation",
67
- },
68
- }
69
-
70
- validations = {
71
- }
72
-
73
- @cached_property
74
- def additional_properties_type():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
- """
79
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
80
-
81
- _nullable = False
82
-
83
- @cached_property
84
- def openapi_types():
85
- """
86
- This must be a method because a model may have properties that are
87
- of type self, this must run after the class is loaded
88
-
89
- Returns
90
- openapi_types (dict): The key is attribute name
91
- and the value is attribute type.
92
- """
93
- return {
94
- 'trace_id': (str,), # noqa: E501
95
- 'type': (str,), # noqa: E501
96
- 'code': (str,), # noqa: E501
97
- 'instance': (str,), # noqa: E501
98
- 'title': (str,), # noqa: E501
99
- 'detail': (str,), # noqa: E501
100
- 'source': ({str: (str,)},), # noqa: E501
101
- 'stack_trace': (str,), # noqa: E501
102
- }
103
-
104
- @cached_property
105
- def discriminator():
106
- return None
107
-
108
-
109
- attribute_map = {
110
- 'trace_id': 'traceId', # noqa: E501
111
- 'type': 'type', # noqa: E501
112
- 'code': 'code', # noqa: E501
113
- 'instance': 'instance', # noqa: E501
114
- 'title': 'title', # noqa: E501
115
- 'detail': 'detail', # noqa: E501
116
- 'source': 'source', # noqa: E501
117
- 'stack_trace': 'stackTrace', # noqa: E501
118
- }
119
-
120
- read_only_vars = {
121
- }
122
-
123
- _composed_schemas = {}
124
-
125
- @classmethod
126
- @convert_js_args_to_python_args
127
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
128
- """CommonWarning - a model defined in OpenAPI
129
-
130
- Keyword Args:
131
- _check_type (bool): if True, values for parameters in openapi_types
132
- will be type checked and a TypeError will be
133
- raised if the wrong type is input.
134
- Defaults to True
135
- _path_to_item (tuple/list): This is a list of keys or values to
136
- drill down to the model in received_data
137
- when deserializing a response
138
- _spec_property_naming (bool): True if the variable names in the input data
139
- are serialized names, as specified in the OpenAPI document.
140
- False if the variable names in the input data
141
- are pythonic names, e.g. snake case (default)
142
- _configuration (Configuration): the instance to use when
143
- deserializing a file_type parameter.
144
- If passed, type conversion is attempted
145
- If omitted no type conversion is done.
146
- _visited_composed_classes (tuple): This stores a tuple of
147
- classes that we have traveled through so that
148
- if we see that class again we will not use its
149
- discriminator again.
150
- When traveling through a discriminator, the
151
- composed schema that is
152
- is traveled through is added to this set.
153
- For example if Animal has a discriminator
154
- petType and we pass in "Dog", and the class Dog
155
- allOf includes Animal, we move through Animal
156
- once using the discriminator, and pick Dog.
157
- Then in Dog, we will make an instance of the
158
- Animal class but this time we won't travel
159
- through its discriminator because we passed in
160
- _visited_composed_classes = (Animal,)
161
- 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
162
- type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501
163
- code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501
164
- instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501
165
- title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501
166
- detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
167
- source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
168
- stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501
169
- """
170
-
171
- _check_type = kwargs.pop('_check_type', True)
172
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
173
- _path_to_item = kwargs.pop('_path_to_item', ())
174
- _configuration = kwargs.pop('_configuration', None)
175
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
176
-
177
- self = super(OpenApiModel, cls).__new__(cls)
178
-
179
- if args:
180
- for arg in args:
181
- if isinstance(arg, dict):
182
- kwargs.update(arg)
183
- else:
184
- raise ApiTypeError(
185
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
186
- args,
187
- self.__class__.__name__,
188
- ),
189
- path_to_item=_path_to_item,
190
- valid_classes=(self.__class__,),
191
- )
192
-
193
- self._data_store = {}
194
- self._check_type = _check_type
195
- self._spec_property_naming = _spec_property_naming
196
- self._path_to_item = _path_to_item
197
- self._configuration = _configuration
198
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
199
-
200
- for var_name, var_value in kwargs.items():
201
- if var_name not in self.attribute_map and \
202
- self._configuration is not None and \
203
- self._configuration.discard_unknown_keys and \
204
- self.additional_properties_type is None:
205
- # discard variable.
206
- continue
207
- setattr(self, var_name, var_value)
208
- return self
209
-
210
- required_properties = set([
211
- '_data_store',
212
- '_check_type',
213
- '_spec_property_naming',
214
- '_path_to_item',
215
- '_configuration',
216
- '_visited_composed_classes',
217
- ])
218
-
219
- @convert_js_args_to_python_args
220
- def __init__(self, *args, **kwargs): # noqa: E501
221
- """CommonWarning - a model defined in OpenAPI
222
-
223
- Keyword Args:
224
- _check_type (bool): if True, values for parameters in openapi_types
225
- will be type checked and a TypeError will be
226
- raised if the wrong type is input.
227
- Defaults to True
228
- _path_to_item (tuple/list): This is a list of keys or values to
229
- drill down to the model in received_data
230
- when deserializing a response
231
- _spec_property_naming (bool): True if the variable names in the input data
232
- are serialized names, as specified in the OpenAPI document.
233
- False if the variable names in the input data
234
- are pythonic names, e.g. snake case (default)
235
- _configuration (Configuration): the instance to use when
236
- deserializing a file_type parameter.
237
- If passed, type conversion is attempted
238
- If omitted no type conversion is done.
239
- _visited_composed_classes (tuple): This stores a tuple of
240
- classes that we have traveled through so that
241
- if we see that class again we will not use its
242
- discriminator again.
243
- When traveling through a discriminator, the
244
- composed schema that is
245
- is traveled through is added to this set.
246
- For example if Animal has a discriminator
247
- petType and we pass in "Dog", and the class Dog
248
- allOf includes Animal, we move through Animal
249
- once using the discriminator, and pick Dog.
250
- Then in Dog, we will make an instance of the
251
- Animal class but this time we won't travel
252
- through its discriminator because we passed in
253
- _visited_composed_classes = (Animal,)
254
- 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
255
- type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501
256
- code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501
257
- instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501
258
- title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501
259
- detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
260
- source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
261
- stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501
262
- """
263
-
264
- _check_type = kwargs.pop('_check_type', True)
265
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
266
- _path_to_item = kwargs.pop('_path_to_item', ())
267
- _configuration = kwargs.pop('_configuration', None)
268
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
269
-
270
- if args:
271
- for arg in args:
272
- if isinstance(arg, dict):
273
- kwargs.update(arg)
274
- else:
275
- raise ApiTypeError(
276
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
277
- args,
278
- self.__class__.__name__,
279
- ),
280
- path_to_item=_path_to_item,
281
- valid_classes=(self.__class__,),
282
- )
283
-
284
- self._data_store = {}
285
- self._check_type = _check_type
286
- self._spec_property_naming = _spec_property_naming
287
- self._path_to_item = _path_to_item
288
- self._configuration = _configuration
289
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
290
-
291
- for var_name, var_value in kwargs.items():
292
- if var_name not in self.attribute_map and \
293
- self._configuration is not None and \
294
- self._configuration.discard_unknown_keys and \
295
- self.additional_properties_type is None:
296
- # discard variable.
297
- continue
298
- setattr(self, var_name, var_value)
299
- if var_name in self.read_only_vars:
300
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
301
- f"class with read only attributes.")
@@ -1,307 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalLineItemBidMultipliersV2(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- }
59
-
60
- validations = {
61
- }
62
-
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
-
71
- _nullable = True
72
-
73
- @cached_property
74
- def openapi_types():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
-
79
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'search': (float, none_type,), # noqa: E501
85
- 'home': (float, none_type,), # noqa: E501
86
- 'category': (float, none_type,), # noqa: E501
87
- 'product_detail': (float, none_type,), # noqa: E501
88
- 'confirmation': (float, none_type,), # noqa: E501
89
- 'merchandising': (float, none_type,), # noqa: E501
90
- 'deals': (float, none_type,), # noqa: E501
91
- 'checkout': (float, none_type,), # noqa: E501
92
- 'favorites': (float, none_type,), # noqa: E501
93
- 'search_bar': (float, none_type,), # noqa: E501
94
- 'category_menu': (float, none_type,), # noqa: E501
95
- 'id': (str, none_type,), # noqa: E501
96
- }
97
-
98
- @cached_property
99
- def discriminator():
100
- return None
101
-
102
-
103
- attribute_map = {
104
- 'search': 'search', # noqa: E501
105
- 'home': 'home', # noqa: E501
106
- 'category': 'category', # noqa: E501
107
- 'product_detail': 'productDetail', # noqa: E501
108
- 'confirmation': 'confirmation', # noqa: E501
109
- 'merchandising': 'merchandising', # noqa: E501
110
- 'deals': 'deals', # noqa: E501
111
- 'checkout': 'checkout', # noqa: E501
112
- 'favorites': 'favorites', # noqa: E501
113
- 'search_bar': 'searchBar', # noqa: E501
114
- 'category_menu': 'categoryMenu', # noqa: E501
115
- 'id': 'id', # noqa: E501
116
- }
117
-
118
- read_only_vars = {
119
- }
120
-
121
- _composed_schemas = {}
122
-
123
- @classmethod
124
- @convert_js_args_to_python_args
125
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
126
- """ExternalLineItemBidMultipliersV2 - a model defined in OpenAPI
127
-
128
- Keyword Args:
129
- _check_type (bool): if True, values for parameters in openapi_types
130
- will be type checked and a TypeError will be
131
- raised if the wrong type is input.
132
- Defaults to True
133
- _path_to_item (tuple/list): This is a list of keys or values to
134
- drill down to the model in received_data
135
- when deserializing a response
136
- _spec_property_naming (bool): True if the variable names in the input data
137
- are serialized names, as specified in the OpenAPI document.
138
- False if the variable names in the input data
139
- are pythonic names, e.g. snake case (default)
140
- _configuration (Configuration): the instance to use when
141
- deserializing a file_type parameter.
142
- If passed, type conversion is attempted
143
- If omitted no type conversion is done.
144
- _visited_composed_classes (tuple): This stores a tuple of
145
- classes that we have traveled through so that
146
- if we see that class again we will not use its
147
- discriminator again.
148
- When traveling through a discriminator, the
149
- composed schema that is
150
- is traveled through is added to this set.
151
- For example if Animal has a discriminator
152
- petType and we pass in "Dog", and the class Dog
153
- allOf includes Animal, we move through Animal
154
- once using the discriminator, and pick Dog.
155
- Then in Dog, we will make an instance of the
156
- Animal class but this time we won't travel
157
- through its discriminator because we passed in
158
- _visited_composed_classes = (Animal,)
159
- search (float, none_type): Search Page Type Bid Multiplier. [optional] # noqa: E501
160
- home (float, none_type): Home Page Type Bid Multiplier. [optional] # noqa: E501
161
- category (float, none_type): Categories Page Type Bid Multiplier. [optional] # noqa: E501
162
- product_detail (float, none_type): ProductDetail Page Type Bid Multiplier. [optional] # noqa: E501
163
- confirmation (float, none_type): Confirmation Page Type Bid Multiplier. [optional] # noqa: E501
164
- merchandising (float, none_type): Merchandising Page Type Bid Multiplier. [optional] # noqa: E501
165
- deals (float, none_type): Deals Page Type Bid Multiplier. [optional] # noqa: E501
166
- checkout (float, none_type): Checkout Page Type Bid Multiplier. [optional] # noqa: E501
167
- favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
168
- search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
169
- category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
170
- id (str, none_type): Id of the entity. [optional] # noqa: E501
171
- """
172
-
173
- _check_type = kwargs.pop('_check_type', True)
174
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
175
- _path_to_item = kwargs.pop('_path_to_item', ())
176
- _configuration = kwargs.pop('_configuration', None)
177
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
178
-
179
- self = super(OpenApiModel, cls).__new__(cls)
180
-
181
- if args:
182
- for arg in args:
183
- if isinstance(arg, dict):
184
- kwargs.update(arg)
185
- else:
186
- raise ApiTypeError(
187
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
188
- args,
189
- self.__class__.__name__,
190
- ),
191
- path_to_item=_path_to_item,
192
- valid_classes=(self.__class__,),
193
- )
194
-
195
- self._data_store = {}
196
- self._check_type = _check_type
197
- self._spec_property_naming = _spec_property_naming
198
- self._path_to_item = _path_to_item
199
- self._configuration = _configuration
200
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
201
-
202
- for var_name, var_value in kwargs.items():
203
- if var_name not in self.attribute_map and \
204
- self._configuration is not None and \
205
- self._configuration.discard_unknown_keys and \
206
- self.additional_properties_type is None:
207
- # discard variable.
208
- continue
209
- setattr(self, var_name, var_value)
210
- return self
211
-
212
- required_properties = set([
213
- '_data_store',
214
- '_check_type',
215
- '_spec_property_naming',
216
- '_path_to_item',
217
- '_configuration',
218
- '_visited_composed_classes',
219
- ])
220
-
221
- @convert_js_args_to_python_args
222
- def __init__(self, *args, **kwargs): # noqa: E501
223
- """ExternalLineItemBidMultipliersV2 - a model defined in OpenAPI
224
-
225
- Keyword Args:
226
- _check_type (bool): if True, values for parameters in openapi_types
227
- will be type checked and a TypeError will be
228
- raised if the wrong type is input.
229
- Defaults to True
230
- _path_to_item (tuple/list): This is a list of keys or values to
231
- drill down to the model in received_data
232
- when deserializing a response
233
- _spec_property_naming (bool): True if the variable names in the input data
234
- are serialized names, as specified in the OpenAPI document.
235
- False if the variable names in the input data
236
- are pythonic names, e.g. snake case (default)
237
- _configuration (Configuration): the instance to use when
238
- deserializing a file_type parameter.
239
- If passed, type conversion is attempted
240
- If omitted no type conversion is done.
241
- _visited_composed_classes (tuple): This stores a tuple of
242
- classes that we have traveled through so that
243
- if we see that class again we will not use its
244
- discriminator again.
245
- When traveling through a discriminator, the
246
- composed schema that is
247
- is traveled through is added to this set.
248
- For example if Animal has a discriminator
249
- petType and we pass in "Dog", and the class Dog
250
- allOf includes Animal, we move through Animal
251
- once using the discriminator, and pick Dog.
252
- Then in Dog, we will make an instance of the
253
- Animal class but this time we won't travel
254
- through its discriminator because we passed in
255
- _visited_composed_classes = (Animal,)
256
- search (float, none_type): Search Page Type Bid Multiplier. [optional] # noqa: E501
257
- home (float, none_type): Home Page Type Bid Multiplier. [optional] # noqa: E501
258
- category (float, none_type): Categories Page Type Bid Multiplier. [optional] # noqa: E501
259
- product_detail (float, none_type): ProductDetail Page Type Bid Multiplier. [optional] # noqa: E501
260
- confirmation (float, none_type): Confirmation Page Type Bid Multiplier. [optional] # noqa: E501
261
- merchandising (float, none_type): Merchandising Page Type Bid Multiplier. [optional] # noqa: E501
262
- deals (float, none_type): Deals Page Type Bid Multiplier. [optional] # noqa: E501
263
- checkout (float, none_type): Checkout Page Type Bid Multiplier. [optional] # noqa: E501
264
- favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
265
- search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
266
- category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
267
- id (str, none_type): Id of the entity. [optional] # noqa: E501
268
- """
269
-
270
- _check_type = kwargs.pop('_check_type', True)
271
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
272
- _path_to_item = kwargs.pop('_path_to_item', ())
273
- _configuration = kwargs.pop('_configuration', None)
274
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
275
-
276
- if args:
277
- for arg in args:
278
- if isinstance(arg, dict):
279
- kwargs.update(arg)
280
- else:
281
- raise ApiTypeError(
282
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
283
- args,
284
- self.__class__.__name__,
285
- ),
286
- path_to_item=_path_to_item,
287
- valid_classes=(self.__class__,),
288
- )
289
-
290
- self._data_store = {}
291
- self._check_type = _check_type
292
- self._spec_property_naming = _spec_property_naming
293
- self._path_to_item = _path_to_item
294
- self._configuration = _configuration
295
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
296
-
297
- for var_name, var_value in kwargs.items():
298
- if var_name not in self.attribute_map and \
299
- self._configuration is not None and \
300
- self._configuration.discard_unknown_keys and \
301
- self.additional_properties_type is None:
302
- # discard variable.
303
- continue
304
- setattr(self, var_name, var_value)
305
- if var_name in self.read_only_vars:
306
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
307
- f"class with read only attributes.")