criteo-api-retailmedia-sdk 0.0.250320__py3-none-any.whl → 0.0.250409__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 (209) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +302 -6
  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 +387 -76
  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 +274 -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 +71 -71
  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/async_offsite_report.py +434 -0
  25. criteo_api_retailmedia_preview/model/async_offsite_report_request.py +269 -0
  26. criteo_api_retailmedia_preview/model/async_offsite_report_resource.py +273 -0
  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 +4 -4
  36. criteo_api_retailmedia_preview/model/brand_id_search_result.py +8 -8
  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_error.py +16 -16
  43. criteo_api_retailmedia_preview/model/common_problem.py +20 -20
  44. criteo_api_retailmedia_preview/model/common_warning.py +16 -16
  45. criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +4 -4
  46. criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py +5 -5
  47. criteo_api_retailmedia_preview/model/create_balance_v2.py +12 -12
  48. criteo_api_retailmedia_preview/model/creative2.py +50 -50
  49. criteo_api_retailmedia_preview/model/creative2_list_response.py +5 -5
  50. criteo_api_retailmedia_preview/model/creative2_response.py +5 -5
  51. criteo_api_retailmedia_preview/model/demand_managed_fee.py +267 -0
  52. criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +4 -4
  53. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +9 -9
  54. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +280 -0
  55. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py +9 -9
  56. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +270 -0
  57. criteo_api_retailmedia_preview/model/{resource_of_catalog_status_v2.py → entity_resource_of_catalog_status_v2.py} +7 -7
  58. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +4 -4
  59. criteo_api_retailmedia_preview/model/{catalog_status_v2_response.py → entity_resource_outcome_of_catalog_status_v2.py} +18 -18
  60. criteo_api_retailmedia_preview/model/entity_resource_outcome_partner_billing_report_status_v1.py +5 -5
  61. criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +4 -4
  62. criteo_api_retailmedia_preview/model/export_report_column.py +30 -30
  63. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +28 -28
  64. criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py +9 -9
  65. criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
  66. criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +24 -24
  67. criteo_api_retailmedia_preview/model/external_preferred_line_item_update_model_v2.py +20 -20
  68. criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +36 -36
  69. criteo_api_retailmedia_preview/model/external_product_button_request.py +8 -8
  70. criteo_api_retailmedia_preview/model/external_product_button_response.py +14 -14
  71. criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +22 -22
  72. criteo_api_retailmedia_preview/model/grant_consent_model.py +8 -8
  73. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +4 -4
  74. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +4 -4
  75. criteo_api_retailmedia_preview/model/installment.py +4 -4
  76. criteo_api_retailmedia_preview/model/keyword_data_model.py +12 -12
  77. criteo_api_retailmedia_preview/model/keywords.py +18 -18
  78. criteo_api_retailmedia_preview/model/keywords_model_resource.py +4 -4
  79. criteo_api_retailmedia_preview/model/keywords_model_response.py +4 -4
  80. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +5 -5
  81. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +311 -0
  82. criteo_api_retailmedia_preview/model/managed_service_fee.py +279 -0
  83. criteo_api_retailmedia_preview/model/message.py +4 -4
  84. criteo_api_retailmedia_preview/model/message_error.py +8 -8
  85. criteo_api_retailmedia_preview/model/metadata.py +8 -8
  86. criteo_api_retailmedia_preview/model/outcome.py +5 -5
  87. criteo_api_retailmedia_preview/model/page_metadata.py +16 -16
  88. criteo_api_retailmedia_preview/model/page_of_balance_history_change_data_capture_v1.py +8 -8
  89. criteo_api_retailmedia_preview/model/page_type_environment2.py +14 -14
  90. criteo_api_retailmedia_preview/model/paged_resource_collection_outcome_of_balance_response_v2.py +9 -9
  91. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +8 -8
  92. criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +12 -14
  93. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +12 -12
  94. criteo_api_retailmedia_preview/model/placement_preview.py +24 -24
  95. criteo_api_retailmedia_preview/model/placement_preview_list_response.py +5 -5
  96. criteo_api_retailmedia_preview/model/preferred_line_item_v2_paged_list_response.py +9 -9
  97. criteo_api_retailmedia_preview/model/preferred_line_item_v2_response.py +5 -5
  98. criteo_api_retailmedia_preview/model/private_market_account_fees.py +266 -0
  99. criteo_api_retailmedia_preview/model/private_market_fees.py +276 -0
  100. criteo_api_retailmedia_preview/model/problem_details.py +20 -20
  101. criteo_api_retailmedia_preview/model/product.py +242 -242
  102. criteo_api_retailmedia_preview/model/product_button_list_response.py +5 -5
  103. criteo_api_retailmedia_preview/model/product_importer_error.py +20 -20
  104. criteo_api_retailmedia_preview/model/product_importer_warning.py +20 -20
  105. criteo_api_retailmedia_preview/model/product_metadata.py +8 -8
  106. criteo_api_retailmedia_preview/model/product_recommendation.py +16 -16
  107. criteo_api_retailmedia_preview/model/product_shipping.py +16 -16
  108. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +4 -4
  109. criteo_api_retailmedia_preview/model/product_shipping_weight.py +4 -4
  110. criteo_api_retailmedia_preview/model/product_tax.py +12 -12
  111. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +4 -4
  112. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +4 -4
  113. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +8 -8
  114. criteo_api_retailmedia_preview/model/promoted_product.py +4 -4
  115. criteo_api_retailmedia_preview/model/promoted_product_resource.py +4 -4
  116. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +8 -8
  117. criteo_api_retailmedia_preview/model/report_data_response_resource.py +4 -4
  118. criteo_api_retailmedia_preview/model/report_detail_error.py +14 -14
  119. criteo_api_retailmedia_preview/model/report_detail_errors.py +8 -8
  120. criteo_api_retailmedia_preview/model/report_detail_warning.py +14 -14
  121. criteo_api_retailmedia_preview/model/report_ok_response.py +20 -20
  122. criteo_api_retailmedia_preview/model/report_outcome.py +5 -5
  123. criteo_api_retailmedia_preview/model/report_response.py +9 -9
  124. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +4 -4
  125. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +4 -4
  126. criteo_api_retailmedia_preview/model/resource_of_seller_preview.py +4 -4
  127. criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py +4 -4
  128. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +4 -4
  129. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +8 -8
  130. criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +271 -0
  131. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +271 -0
  132. criteo_api_retailmedia_preview/model/retail_media_seller.py +8 -8
  133. criteo_api_retailmedia_preview/model/review_set_state.py +278 -0
  134. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +8 -8
  135. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +20 -20
  136. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py +9 -9
  137. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +4 -4
  138. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +4 -4
  139. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +4 -4
  140. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +4 -4
  141. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +4 -4
  142. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +30 -30
  143. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_list_response.py +5 -5
  144. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +9 -9
  145. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_list_response.py +5 -5
  146. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +4 -4
  147. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +4 -4
  148. criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +4 -4
  149. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +8 -8
  150. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +4 -4
  151. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_response.py +5 -5
  152. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +4 -4
  153. criteo_api_retailmedia_preview/model/rm_events_v1.py +23 -23
  154. criteo_api_retailmedia_preview/model/rmca_common_problem.py +16 -16
  155. criteo_api_retailmedia_preview/model/sdk_api_rest_common_problem.py +16 -16
  156. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +8 -8
  157. criteo_api_retailmedia_preview/model/seller_preview_response.py +5 -5
  158. criteo_api_retailmedia_preview/model/set_bid_model.py +4 -4
  159. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +4 -4
  160. criteo_api_retailmedia_preview/model/sku_data_preview.py +60 -60
  161. criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py +5 -5
  162. criteo_api_retailmedia_preview/model/sku_min_bid.py +8 -8
  163. criteo_api_retailmedia_preview/model/sku_search_request_preview.py +17 -17
  164. criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +8 -8
  165. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +30 -30
  166. criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +5 -5
  167. criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +24 -24
  168. criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +5 -5
  169. criteo_api_retailmedia_preview/model/status_response.py +20 -20
  170. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +41 -41
  171. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +4 -4
  172. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +48 -48
  173. criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +4 -4
  174. criteo_api_retailmedia_preview/model/sync_line_items_report.py +52 -52
  175. criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +4 -4
  176. criteo_api_retailmedia_preview/model/template_variable_value.py +4 -4
  177. criteo_api_retailmedia_preview/model/update_balance_model_v2.py +8 -8
  178. criteo_api_retailmedia_preview/model/value_resource_account_fees_search_request.py +266 -0
  179. criteo_api_retailmedia_preview/model/value_resource_account_fees_update_request.py +266 -0
  180. criteo_api_retailmedia_preview/model/value_resource_account_fees_update_result.py +266 -0
  181. criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +4 -4
  182. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_seller_search_result.py +5 -5
  183. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_private_market_account_fees.py +274 -0
  184. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_request.py +4 -4
  185. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +4 -4
  186. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_search_request.py +262 -0
  187. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_update_request.py +262 -0
  188. criteo_api_retailmedia_preview/model/{json_api_request_of_brand_catalog_request_v2.py → value_resource_input_of_brand_catalog_request_v2.py} +8 -8
  189. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request_v2.py → value_resource_input_of_seller_catalog_request_v2.py} +8 -8
  190. criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +262 -0
  191. 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
  192. criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +4 -4
  193. 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
  194. criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py +4 -4
  195. criteo_api_retailmedia_preview/model/value_resource_of_seller_search_result.py +4 -4
  196. criteo_api_retailmedia_preview/model/value_resource_outcome_account_fees_update_result.py +274 -0
  197. criteo_api_retailmedia_preview/model/value_resource_outcome_cpc_min_bids_response.py +5 -5
  198. criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py +5 -5
  199. criteo_api_retailmedia_preview/model/value_resource_outcome_retail_media_keywords_review_result.py +274 -0
  200. criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +4 -4
  201. criteo_api_retailmedia_preview/model/value_resource_private_market_account_fees.py +266 -0
  202. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +266 -0
  203. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +266 -0
  204. criteo_api_retailmedia_preview/model/video_variable_value.py +16 -16
  205. criteo_api_retailmedia_preview/models/__init__.py +34 -6
  206. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/METADATA +3 -3
  207. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/RECORD +209 -181
  208. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/WHEEL +1 -1
  209. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,267 @@
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 DemandManagedFee(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
+ ('rate',): {
62
+ 'inclusive_maximum': 1,
63
+ 'inclusive_minimum': 0,
64
+ },
65
+ }
66
+
67
+ additional_properties_type = None
68
+
69
+ _nullable = False
70
+
71
+ @cached_property
72
+ def openapi_types():
73
+ """
74
+ This must be a method because a model may have properties that are
75
+ of type self, this must run after the class is loaded
76
+
77
+ Returns
78
+ openapi_types (dict): The key is attribute name
79
+ and the value is attribute type.
80
+ """
81
+ return {
82
+ 'rate': (float,), # noqa: E501
83
+ }
84
+
85
+ @cached_property
86
+ def discriminator():
87
+ return None
88
+
89
+
90
+ attribute_map = {
91
+ 'rate': 'rate', # noqa: E501
92
+ }
93
+
94
+ read_only_vars = {
95
+ }
96
+
97
+ _composed_schemas = {}
98
+
99
+ @classmethod
100
+ @convert_js_args_to_python_args
101
+ def _from_openapi_data(cls, rate, *args, **kwargs): # noqa: E501
102
+ """DemandManagedFee - a model defined in OpenAPI
103
+
104
+ Args:
105
+ rate (float): decimal fee rate between 0 and 1
106
+
107
+ Keyword Args:
108
+ _check_type (bool): if True, values for parameters in openapi_types
109
+ will be type checked and a TypeError will be
110
+ raised if the wrong type is input.
111
+ Defaults to True
112
+ _path_to_item (tuple/list): This is a list of keys or values to
113
+ drill down to the model in received_data
114
+ when deserializing a response
115
+ _spec_property_naming (bool): True if the variable names in the input data
116
+ are serialized names, as specified in the OpenAPI document.
117
+ False if the variable names in the input data
118
+ are pythonic names, e.g. snake case (default)
119
+ _configuration (Configuration): the instance to use when
120
+ deserializing a file_type parameter.
121
+ If passed, type conversion is attempted
122
+ If omitted no type conversion is done.
123
+ _visited_composed_classes (tuple): This stores a tuple of
124
+ classes that we have traveled through so that
125
+ if we see that class again we will not use its
126
+ discriminator again.
127
+ When traveling through a discriminator, the
128
+ composed schema that is
129
+ is traveled through is added to this set.
130
+ For example if Animal has a discriminator
131
+ petType and we pass in "Dog", and the class Dog
132
+ allOf includes Animal, we move through Animal
133
+ once using the discriminator, and pick Dog.
134
+ Then in Dog, we will make an instance of the
135
+ Animal class but this time we won't travel
136
+ through its discriminator because we passed in
137
+ _visited_composed_classes = (Animal,)
138
+ """
139
+
140
+ _check_type = kwargs.pop('_check_type', True)
141
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
142
+ _path_to_item = kwargs.pop('_path_to_item', ())
143
+ _configuration = kwargs.pop('_configuration', None)
144
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
145
+
146
+ self = super(OpenApiModel, cls).__new__(cls)
147
+
148
+ if args:
149
+ for arg in args:
150
+ if isinstance(arg, dict):
151
+ kwargs.update(arg)
152
+ else:
153
+ raise ApiTypeError(
154
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
155
+ args,
156
+ self.__class__.__name__,
157
+ ),
158
+ path_to_item=_path_to_item,
159
+ valid_classes=(self.__class__,),
160
+ )
161
+
162
+ self._data_store = {}
163
+ self._check_type = _check_type
164
+ self._spec_property_naming = _spec_property_naming
165
+ self._path_to_item = _path_to_item
166
+ self._configuration = _configuration
167
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
168
+
169
+ self.rate = rate
170
+ for var_name, var_value in kwargs.items():
171
+ if var_name not in self.attribute_map and \
172
+ self._configuration is not None and \
173
+ self._configuration.discard_unknown_keys and \
174
+ self.additional_properties_type is None:
175
+ # discard variable.
176
+ continue
177
+ setattr(self, var_name, var_value)
178
+ return self
179
+
180
+ required_properties = set([
181
+ '_data_store',
182
+ '_check_type',
183
+ '_spec_property_naming',
184
+ '_path_to_item',
185
+ '_configuration',
186
+ '_visited_composed_classes',
187
+ ])
188
+
189
+ @convert_js_args_to_python_args
190
+ def __init__(self, rate, *args, **kwargs): # noqa: E501
191
+ """DemandManagedFee - a model defined in OpenAPI
192
+
193
+ Args:
194
+ rate (float): decimal fee rate between 0 and 1
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ """
228
+
229
+ _check_type = kwargs.pop('_check_type', True)
230
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
231
+ _path_to_item = kwargs.pop('_path_to_item', ())
232
+ _configuration = kwargs.pop('_configuration', None)
233
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
234
+
235
+ if args:
236
+ for arg in args:
237
+ if isinstance(arg, dict):
238
+ kwargs.update(arg)
239
+ else:
240
+ raise ApiTypeError(
241
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
242
+ args,
243
+ self.__class__.__name__,
244
+ ),
245
+ path_to_item=_path_to_item,
246
+ valid_classes=(self.__class__,),
247
+ )
248
+
249
+ self._data_store = {}
250
+ self._check_type = _check_type
251
+ self._spec_property_naming = _spec_property_naming
252
+ self._path_to_item = _path_to_item
253
+ self._configuration = _configuration
254
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
255
+
256
+ self.rate = rate
257
+ for var_name, var_value in kwargs.items():
258
+ if var_name not in self.attribute_map and \
259
+ self._configuration is not None and \
260
+ self._configuration.discard_unknown_keys and \
261
+ self.additional_properties_type is None:
262
+ # discard variable.
263
+ continue
264
+ setattr(self, var_name, var_value)
265
+ if var_name in self.read_only_vars:
266
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
267
+ f"class with read only attributes.")
@@ -80,9 +80,9 @@ class EntityResourceBrandIdSearchResult(ModelNormal):
80
80
  """
81
81
  lazy_import()
82
82
  return {
83
+ 'attributes': (BrandIdSearchResult,), # noqa: E501
83
84
  'id': (str, none_type,), # noqa: E501
84
85
  'type': (str, none_type,), # noqa: E501
85
- 'attributes': (BrandIdSearchResult,), # noqa: E501
86
86
  }
87
87
 
88
88
  @cached_property
@@ -91,9 +91,9 @@ class EntityResourceBrandIdSearchResult(ModelNormal):
91
91
 
92
92
 
93
93
  attribute_map = {
94
+ 'attributes': 'attributes', # noqa: E501
94
95
  'id': 'id', # noqa: E501
95
96
  'type': 'type', # noqa: E501
96
- 'attributes': 'attributes', # noqa: E501
97
97
  }
98
98
 
99
99
  read_only_vars = {
@@ -137,9 +137,9 @@ class EntityResourceBrandIdSearchResult(ModelNormal):
137
137
  Animal class but this time we won't travel
138
138
  through its discriminator because we passed in
139
139
  _visited_composed_classes = (Animal,)
140
+ attributes (BrandIdSearchResult): [optional] # noqa: E501
140
141
  id (str, none_type): Unique id of the entity.. [optional] # noqa: E501
141
142
  type (str, none_type): Type of the resource.. [optional] # noqa: E501
142
- attributes (BrandIdSearchResult): [optional] # noqa: E501
143
143
  """
144
144
 
145
145
  _check_type = kwargs.pop('_check_type', True)
@@ -225,9 +225,9 @@ class EntityResourceBrandIdSearchResult(ModelNormal):
225
225
  Animal class but this time we won't travel
226
226
  through its discriminator because we passed in
227
227
  _visited_composed_classes = (Animal,)
228
+ attributes (BrandIdSearchResult): [optional] # noqa: E501
228
229
  id (str, none_type): Unique id of the entity.. [optional] # noqa: E501
229
230
  type (str, none_type): Type of the resource.. [optional] # noqa: E501
230
- attributes (BrandIdSearchResult): [optional] # noqa: E501
231
231
  """
232
232
 
233
233
  _check_type = kwargs.pop('_check_type', True)
@@ -84,10 +84,10 @@ class EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadat
84
84
  """
85
85
  lazy_import()
86
86
  return {
87
- 'metadata': (PagingOffsetLimitMetadata,), # noqa: E501
88
87
  'data': ([EntityResourceBrandIdSearchResult], none_type,), # noqa: E501
89
- 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
90
88
  'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
89
+ 'metadata': (PagingOffsetLimitMetadata,), # noqa: E501
90
+ 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -96,15 +96,15 @@ class EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadat
96
96
 
97
97
 
98
98
  attribute_map = {
99
- 'metadata': 'metadata', # noqa: E501
100
99
  'data': 'data', # noqa: E501
101
- 'warnings': 'warnings', # noqa: E501
102
100
  'errors': 'errors', # noqa: E501
101
+ 'metadata': 'metadata', # noqa: E501
102
+ 'warnings': 'warnings', # noqa: E501
103
103
  }
104
104
 
105
105
  read_only_vars = {
106
- 'warnings', # noqa: E501
107
106
  'errors', # noqa: E501
107
+ 'warnings', # noqa: E501
108
108
  }
109
109
 
110
110
  _composed_schemas = {}
@@ -145,10 +145,10 @@ class EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadat
145
145
  Animal class but this time we won't travel
146
146
  through its discriminator because we passed in
147
147
  _visited_composed_classes = (Animal,)
148
- metadata (PagingOffsetLimitMetadata): [optional] # noqa: E501
149
148
  data ([EntityResourceBrandIdSearchResult], none_type): [optional] # noqa: E501
150
- warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
151
149
  errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
150
+ metadata (PagingOffsetLimitMetadata): [optional] # noqa: E501
151
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
152
152
  """
153
153
 
154
154
  _check_type = kwargs.pop('_check_type', True)
@@ -234,10 +234,10 @@ class EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadat
234
234
  Animal class but this time we won't travel
235
235
  through its discriminator because we passed in
236
236
  _visited_composed_classes = (Animal,)
237
- metadata (PagingOffsetLimitMetadata): [optional] # noqa: E501
238
237
  data ([EntityResourceBrandIdSearchResult], none_type): [optional] # noqa: E501
239
- warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
240
238
  errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
239
+ metadata (PagingOffsetLimitMetadata): [optional] # noqa: E501
240
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
241
241
  """
242
242
 
243
243
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,280 @@
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
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.entity_resource_line_item_keyword_review_report import EntityResourceLineItemKeywordReviewReport
34
+ from criteo_api_retailmedia_preview.model.metadata import Metadata
35
+ from criteo_api_retailmedia_preview.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
36
+ globals()['EntityResourceLineItemKeywordReviewReport'] = EntityResourceLineItemKeywordReviewReport
37
+ globals()['Metadata'] = Metadata
38
+ globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
39
+
40
+
41
+ class EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata(ModelNormal):
42
+ """NOTE: This class is auto generated by OpenAPI Generator.
43
+ Ref: https://openapi-generator.tech
44
+
45
+ Do not edit the class manually.
46
+
47
+ Attributes:
48
+ allowed_values (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
+ with a capitalized key describing the allowed value and an allowed
51
+ value. These dicts store the allowed enum values.
52
+ attribute_map (dict): The key is attribute name
53
+ and the value is json key in definition.
54
+ discriminator_value_class_map (dict): A dict to go from the discriminator
55
+ variable value to the discriminator class name.
56
+ validations (dict): The key is the tuple path to the attribute
57
+ and the for var_name this is (var_name,). The value is a dict
58
+ that stores validations for max_length, min_length, max_items,
59
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
+ inclusive_minimum, and regex.
61
+ additional_properties_type (tuple): A tuple of classes accepted
62
+ as additional properties values.
63
+ """
64
+
65
+ allowed_values = {
66
+ }
67
+
68
+ validations = {
69
+ }
70
+
71
+ additional_properties_type = None
72
+
73
+ _nullable = False
74
+
75
+ @cached_property
76
+ def openapi_types():
77
+ """
78
+ This must be a method because a model may have properties that are
79
+ of type self, this must run after the class is loaded
80
+
81
+ Returns
82
+ openapi_types (dict): The key is attribute name
83
+ and the value is attribute type.
84
+ """
85
+ lazy_import()
86
+ return {
87
+ 'data': ([EntityResourceLineItemKeywordReviewReport], none_type,), # noqa: E501
88
+ 'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
89
+ 'meta': (Metadata,), # noqa: E501
90
+ 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
91
+ }
92
+
93
+ @cached_property
94
+ def discriminator():
95
+ return None
96
+
97
+
98
+ attribute_map = {
99
+ 'data': 'data', # noqa: E501
100
+ 'errors': 'errors', # noqa: E501
101
+ 'meta': 'meta', # noqa: E501
102
+ 'warnings': 'warnings', # noqa: E501
103
+ }
104
+
105
+ read_only_vars = {
106
+ 'errors', # noqa: E501
107
+ 'warnings', # noqa: E501
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
149
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
150
+ meta (Metadata): [optional] # noqa: E501
151
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
152
+ """
153
+
154
+ _check_type = kwargs.pop('_check_type', True)
155
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
156
+ _path_to_item = kwargs.pop('_path_to_item', ())
157
+ _configuration = kwargs.pop('_configuration', None)
158
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
159
+
160
+ self = super(OpenApiModel, cls).__new__(cls)
161
+
162
+ if args:
163
+ for arg in args:
164
+ if isinstance(arg, dict):
165
+ kwargs.update(arg)
166
+ else:
167
+ raise ApiTypeError(
168
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
169
+ args,
170
+ self.__class__.__name__,
171
+ ),
172
+ path_to_item=_path_to_item,
173
+ valid_classes=(self.__class__,),
174
+ )
175
+
176
+ self._data_store = {}
177
+ self._check_type = _check_type
178
+ self._spec_property_naming = _spec_property_naming
179
+ self._path_to_item = _path_to_item
180
+ self._configuration = _configuration
181
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
+
183
+ for var_name, var_value in kwargs.items():
184
+ if var_name not in self.attribute_map and \
185
+ self._configuration is not None and \
186
+ self._configuration.discard_unknown_keys and \
187
+ self.additional_properties_type is None:
188
+ # discard variable.
189
+ continue
190
+ setattr(self, var_name, var_value)
191
+ return self
192
+
193
+ required_properties = set([
194
+ '_data_store',
195
+ '_check_type',
196
+ '_spec_property_naming',
197
+ '_path_to_item',
198
+ '_configuration',
199
+ '_visited_composed_classes',
200
+ ])
201
+
202
+ @convert_js_args_to_python_args
203
+ def __init__(self, *args, **kwargs): # noqa: E501
204
+ """EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
205
+
206
+ Keyword Args:
207
+ _check_type (bool): if True, values for parameters in openapi_types
208
+ will be type checked and a TypeError will be
209
+ raised if the wrong type is input.
210
+ Defaults to True
211
+ _path_to_item (tuple/list): This is a list of keys or values to
212
+ drill down to the model in received_data
213
+ when deserializing a response
214
+ _spec_property_naming (bool): True if the variable names in the input data
215
+ are serialized names, as specified in the OpenAPI document.
216
+ False if the variable names in the input data
217
+ are pythonic names, e.g. snake case (default)
218
+ _configuration (Configuration): the instance to use when
219
+ deserializing a file_type parameter.
220
+ If passed, type conversion is attempted
221
+ If omitted no type conversion is done.
222
+ _visited_composed_classes (tuple): This stores a tuple of
223
+ classes that we have traveled through so that
224
+ if we see that class again we will not use its
225
+ discriminator again.
226
+ When traveling through a discriminator, the
227
+ composed schema that is
228
+ is traveled through is added to this set.
229
+ For example if Animal has a discriminator
230
+ petType and we pass in "Dog", and the class Dog
231
+ allOf includes Animal, we move through Animal
232
+ once using the discriminator, and pick Dog.
233
+ Then in Dog, we will make an instance of the
234
+ Animal class but this time we won't travel
235
+ through its discriminator because we passed in
236
+ _visited_composed_classes = (Animal,)
237
+ data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
238
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
239
+ meta (Metadata): [optional] # noqa: E501
240
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
241
+ """
242
+
243
+ _check_type = kwargs.pop('_check_type', True)
244
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
245
+ _path_to_item = kwargs.pop('_path_to_item', ())
246
+ _configuration = kwargs.pop('_configuration', None)
247
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
248
+
249
+ if args:
250
+ for arg in args:
251
+ if isinstance(arg, dict):
252
+ kwargs.update(arg)
253
+ else:
254
+ raise ApiTypeError(
255
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
256
+ args,
257
+ self.__class__.__name__,
258
+ ),
259
+ path_to_item=_path_to_item,
260
+ valid_classes=(self.__class__,),
261
+ )
262
+
263
+ self._data_store = {}
264
+ self._check_type = _check_type
265
+ self._spec_property_naming = _spec_property_naming
266
+ self._path_to_item = _path_to_item
267
+ self._configuration = _configuration
268
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
269
+
270
+ for var_name, var_value in kwargs.items():
271
+ if var_name not in self.attribute_map and \
272
+ self._configuration is not None and \
273
+ self._configuration.discard_unknown_keys and \
274
+ self.additional_properties_type is None:
275
+ # discard variable.
276
+ continue
277
+ setattr(self, var_name, var_value)
278
+ if var_name in self.read_only_vars:
279
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
280
+ f"class with read only attributes.")