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,266 @@
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.private_market_fees import PrivateMarketFees
34
+ globals()['PrivateMarketFees'] = PrivateMarketFees
35
+
36
+
37
+ class PrivateMarketAccountFees(ModelNormal):
38
+ """NOTE: This class is auto generated by OpenAPI Generator.
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+
43
+ Attributes:
44
+ allowed_values (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ with a capitalized key describing the allowed value and an allowed
47
+ value. These dicts store the allowed enum values.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ discriminator_value_class_map (dict): A dict to go from the discriminator
51
+ variable value to the discriminator class name.
52
+ validations (dict): The key is the tuple path to the attribute
53
+ and the for var_name this is (var_name,). The value is a dict
54
+ that stores validations for max_length, min_length, max_items,
55
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
+ inclusive_minimum, and regex.
57
+ additional_properties_type (tuple): A tuple of classes accepted
58
+ as additional properties values.
59
+ """
60
+
61
+ allowed_values = {
62
+ }
63
+
64
+ validations = {
65
+ }
66
+
67
+ additional_properties_type = None
68
+
69
+ _nullable = True
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
+ lazy_import()
82
+ return {
83
+ 'account_id': (str, none_type,), # noqa: E501
84
+ 'fees': (PrivateMarketFees,), # noqa: E501
85
+ }
86
+
87
+ @cached_property
88
+ def discriminator():
89
+ return None
90
+
91
+
92
+ attribute_map = {
93
+ 'account_id': 'accountId', # noqa: E501
94
+ 'fees': 'fees', # noqa: E501
95
+ }
96
+
97
+ read_only_vars = {
98
+ }
99
+
100
+ _composed_schemas = {}
101
+
102
+ @classmethod
103
+ @convert_js_args_to_python_args
104
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
105
+ """PrivateMarketAccountFees - a model defined in OpenAPI
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
+ account_id (str, none_type): The account Id. [optional] # noqa: E501
139
+ fees (PrivateMarketFees): [optional] # noqa: E501
140
+ """
141
+
142
+ _check_type = kwargs.pop('_check_type', True)
143
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
144
+ _path_to_item = kwargs.pop('_path_to_item', ())
145
+ _configuration = kwargs.pop('_configuration', None)
146
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
147
+
148
+ self = super(OpenApiModel, cls).__new__(cls)
149
+
150
+ if args:
151
+ for arg in args:
152
+ if isinstance(arg, dict):
153
+ kwargs.update(arg)
154
+ else:
155
+ raise ApiTypeError(
156
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
157
+ args,
158
+ self.__class__.__name__,
159
+ ),
160
+ path_to_item=_path_to_item,
161
+ valid_classes=(self.__class__,),
162
+ )
163
+
164
+ self._data_store = {}
165
+ self._check_type = _check_type
166
+ self._spec_property_naming = _spec_property_naming
167
+ self._path_to_item = _path_to_item
168
+ self._configuration = _configuration
169
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
+
171
+ for var_name, var_value in kwargs.items():
172
+ if var_name not in self.attribute_map and \
173
+ self._configuration is not None and \
174
+ self._configuration.discard_unknown_keys and \
175
+ self.additional_properties_type is None:
176
+ # discard variable.
177
+ continue
178
+ setattr(self, var_name, var_value)
179
+ return self
180
+
181
+ required_properties = set([
182
+ '_data_store',
183
+ '_check_type',
184
+ '_spec_property_naming',
185
+ '_path_to_item',
186
+ '_configuration',
187
+ '_visited_composed_classes',
188
+ ])
189
+
190
+ @convert_js_args_to_python_args
191
+ def __init__(self, *args, **kwargs): # noqa: E501
192
+ """PrivateMarketAccountFees - a model defined in OpenAPI
193
+
194
+ Keyword Args:
195
+ _check_type (bool): if True, values for parameters in openapi_types
196
+ will be type checked and a TypeError will be
197
+ raised if the wrong type is input.
198
+ Defaults to True
199
+ _path_to_item (tuple/list): This is a list of keys or values to
200
+ drill down to the model in received_data
201
+ when deserializing a response
202
+ _spec_property_naming (bool): True if the variable names in the input data
203
+ are serialized names, as specified in the OpenAPI document.
204
+ False if the variable names in the input data
205
+ are pythonic names, e.g. snake case (default)
206
+ _configuration (Configuration): the instance to use when
207
+ deserializing a file_type parameter.
208
+ If passed, type conversion is attempted
209
+ If omitted no type conversion is done.
210
+ _visited_composed_classes (tuple): This stores a tuple of
211
+ classes that we have traveled through so that
212
+ if we see that class again we will not use its
213
+ discriminator again.
214
+ When traveling through a discriminator, the
215
+ composed schema that is
216
+ is traveled through is added to this set.
217
+ For example if Animal has a discriminator
218
+ petType and we pass in "Dog", and the class Dog
219
+ allOf includes Animal, we move through Animal
220
+ once using the discriminator, and pick Dog.
221
+ Then in Dog, we will make an instance of the
222
+ Animal class but this time we won't travel
223
+ through its discriminator because we passed in
224
+ _visited_composed_classes = (Animal,)
225
+ account_id (str, none_type): The account Id. [optional] # noqa: E501
226
+ fees (PrivateMarketFees): [optional] # noqa: E501
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
+ for var_name, var_value in kwargs.items():
257
+ if var_name not in self.attribute_map and \
258
+ self._configuration is not None and \
259
+ self._configuration.discard_unknown_keys and \
260
+ self.additional_properties_type is None:
261
+ # discard variable.
262
+ continue
263
+ setattr(self, var_name, var_value)
264
+ if var_name in self.read_only_vars:
265
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
266
+ f"class with read only attributes.")
@@ -0,0 +1,276 @@
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.demand_managed_fee import DemandManagedFee
34
+ from criteo_api_retailmedia_preview.model.managed_service_fee import ManagedServiceFee
35
+ globals()['DemandManagedFee'] = DemandManagedFee
36
+ globals()['ManagedServiceFee'] = ManagedServiceFee
37
+
38
+
39
+ class PrivateMarketFees(ModelNormal):
40
+ """NOTE: This class is auto generated by OpenAPI Generator.
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+
45
+ Attributes:
46
+ allowed_values (dict): The key is the tuple path to the attribute
47
+ and the for var_name this is (var_name,). The value is a dict
48
+ with a capitalized key describing the allowed value and an allowed
49
+ value. These dicts store the allowed enum values.
50
+ attribute_map (dict): The key is attribute name
51
+ and the value is json key in definition.
52
+ discriminator_value_class_map (dict): A dict to go from the discriminator
53
+ variable value to the discriminator class name.
54
+ validations (dict): The key is the tuple path to the attribute
55
+ and the for var_name this is (var_name,). The value is a dict
56
+ that stores validations for max_length, min_length, max_items,
57
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
+ inclusive_minimum, and regex.
59
+ additional_properties_type (tuple): A tuple of classes accepted
60
+ as additional properties values.
61
+ """
62
+
63
+ allowed_values = {
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
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
+ lazy_import()
84
+ return {
85
+ 'demand_managed': (DemandManagedFee,), # noqa: E501
86
+ 'managed_service': (ManagedServiceFee,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'demand_managed': 'demandManaged', # noqa: E501
96
+ 'managed_service': 'managedService', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, demand_managed, managed_service, *args, **kwargs): # noqa: E501
107
+ """PrivateMarketFees - a model defined in OpenAPI
108
+
109
+ Args:
110
+ demand_managed (DemandManagedFee):
111
+ managed_service (ManagedServiceFee):
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ """
145
+
146
+ _check_type = kwargs.pop('_check_type', True)
147
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
148
+ _path_to_item = kwargs.pop('_path_to_item', ())
149
+ _configuration = kwargs.pop('_configuration', None)
150
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
151
+
152
+ self = super(OpenApiModel, cls).__new__(cls)
153
+
154
+ if args:
155
+ for arg in args:
156
+ if isinstance(arg, dict):
157
+ kwargs.update(arg)
158
+ else:
159
+ raise ApiTypeError(
160
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
161
+ args,
162
+ self.__class__.__name__,
163
+ ),
164
+ path_to_item=_path_to_item,
165
+ valid_classes=(self.__class__,),
166
+ )
167
+
168
+ self._data_store = {}
169
+ self._check_type = _check_type
170
+ self._spec_property_naming = _spec_property_naming
171
+ self._path_to_item = _path_to_item
172
+ self._configuration = _configuration
173
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
174
+
175
+ self.demand_managed = demand_managed
176
+ self.managed_service = managed_service
177
+ for var_name, var_value in kwargs.items():
178
+ if var_name not in self.attribute_map and \
179
+ self._configuration is not None and \
180
+ self._configuration.discard_unknown_keys and \
181
+ self.additional_properties_type is None:
182
+ # discard variable.
183
+ continue
184
+ setattr(self, var_name, var_value)
185
+ return self
186
+
187
+ required_properties = set([
188
+ '_data_store',
189
+ '_check_type',
190
+ '_spec_property_naming',
191
+ '_path_to_item',
192
+ '_configuration',
193
+ '_visited_composed_classes',
194
+ ])
195
+
196
+ @convert_js_args_to_python_args
197
+ def __init__(self, demand_managed, managed_service, *args, **kwargs): # noqa: E501
198
+ """PrivateMarketFees - a model defined in OpenAPI
199
+
200
+ Args:
201
+ demand_managed (DemandManagedFee):
202
+ managed_service (ManagedServiceFee):
203
+
204
+ Keyword Args:
205
+ _check_type (bool): if True, values for parameters in openapi_types
206
+ will be type checked and a TypeError will be
207
+ raised if the wrong type is input.
208
+ Defaults to True
209
+ _path_to_item (tuple/list): This is a list of keys or values to
210
+ drill down to the model in received_data
211
+ when deserializing a response
212
+ _spec_property_naming (bool): True if the variable names in the input data
213
+ are serialized names, as specified in the OpenAPI document.
214
+ False if the variable names in the input data
215
+ are pythonic names, e.g. snake case (default)
216
+ _configuration (Configuration): the instance to use when
217
+ deserializing a file_type parameter.
218
+ If passed, type conversion is attempted
219
+ If omitted no type conversion is done.
220
+ _visited_composed_classes (tuple): This stores a tuple of
221
+ classes that we have traveled through so that
222
+ if we see that class again we will not use its
223
+ discriminator again.
224
+ When traveling through a discriminator, the
225
+ composed schema that is
226
+ is traveled through is added to this set.
227
+ For example if Animal has a discriminator
228
+ petType and we pass in "Dog", and the class Dog
229
+ allOf includes Animal, we move through Animal
230
+ once using the discriminator, and pick Dog.
231
+ Then in Dog, we will make an instance of the
232
+ Animal class but this time we won't travel
233
+ through its discriminator because we passed in
234
+ _visited_composed_classes = (Animal,)
235
+ """
236
+
237
+ _check_type = kwargs.pop('_check_type', True)
238
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+ _configuration = kwargs.pop('_configuration', None)
241
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
+
243
+ if args:
244
+ for arg in args:
245
+ if isinstance(arg, dict):
246
+ kwargs.update(arg)
247
+ else:
248
+ raise ApiTypeError(
249
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
+ args,
251
+ self.__class__.__name__,
252
+ ),
253
+ path_to_item=_path_to_item,
254
+ valid_classes=(self.__class__,),
255
+ )
256
+
257
+ self._data_store = {}
258
+ self._check_type = _check_type
259
+ self._spec_property_naming = _spec_property_naming
260
+ self._path_to_item = _path_to_item
261
+ self._configuration = _configuration
262
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
+
264
+ self.demand_managed = demand_managed
265
+ self.managed_service = managed_service
266
+ for var_name, var_value in kwargs.items():
267
+ if var_name not in self.attribute_map and \
268
+ self._configuration is not None and \
269
+ self._configuration.discard_unknown_keys and \
270
+ self.additional_properties_type is None:
271
+ # discard variable.
272
+ continue
273
+ setattr(self, var_name, var_value)
274
+ if var_name in self.read_only_vars:
275
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
276
+ f"class with read only attributes.")
@@ -91,15 +91,15 @@ class ProblemDetails(ModelNormal):
91
91
  and the value is attribute type.
92
92
  """
93
93
  return {
94
- 'trace_id': (str, none_type,), # noqa: E501
95
- 'trace_identifier': (str, none_type,), # noqa: E501
96
- 'type': (str,), # noqa: E501
97
94
  'code': (str,), # noqa: E501
98
- 'instance': (str,), # noqa: E501
99
- 'title': (str,), # noqa: E501
100
95
  'detail': (str,), # noqa: E501
96
+ 'instance': (str,), # noqa: E501
101
97
  'source': ({str: (str,)},), # noqa: E501
102
98
  'stack_trace': (str,), # noqa: E501
99
+ 'title': (str,), # noqa: E501
100
+ 'trace_id': (str, none_type,), # noqa: E501
101
+ 'trace_identifier': (str, none_type,), # noqa: E501
102
+ 'type': (str,), # noqa: E501
103
103
  }
104
104
 
105
105
  @cached_property
@@ -108,15 +108,15 @@ class ProblemDetails(ModelNormal):
108
108
 
109
109
 
110
110
  attribute_map = {
111
- 'trace_id': 'traceId', # noqa: E501
112
- 'trace_identifier': 'traceIdentifier', # noqa: E501
113
- 'type': 'type', # noqa: E501
114
111
  'code': 'code', # noqa: E501
115
- 'instance': 'instance', # noqa: E501
116
- 'title': 'title', # noqa: E501
117
112
  'detail': 'detail', # noqa: E501
113
+ 'instance': 'instance', # noqa: E501
118
114
  'source': 'source', # noqa: E501
119
115
  'stack_trace': 'stackTrace', # noqa: E501
116
+ 'title': 'title', # noqa: E501
117
+ 'trace_id': 'traceId', # noqa: E501
118
+ 'trace_identifier': 'traceIdentifier', # noqa: E501
119
+ 'type': 'type', # noqa: E501
120
120
  }
121
121
 
122
122
  read_only_vars = {
@@ -160,15 +160,15 @@ class ProblemDetails(ModelNormal):
160
160
  Animal class but this time we won't travel
161
161
  through its discriminator because we passed in
162
162
  _visited_composed_classes = (Animal,)
163
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
164
- trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
165
- type (str): The problem's category.. [optional] # noqa: E501
166
163
  code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
167
- instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
168
- title (str): A short human-readable description of the problem type. [optional] # noqa: E501
169
164
  detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
165
+ instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
170
166
  source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
171
167
  stack_trace (str): Technical information, only used in non-prod environments. [optional] # noqa: E501
168
+ title (str): A short human-readable description of the problem type. [optional] # noqa: E501
169
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
170
+ trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
171
+ type (str): The problem's category.. [optional] # noqa: E501
172
172
  """
173
173
 
174
174
  _check_type = kwargs.pop('_check_type', True)
@@ -254,15 +254,15 @@ class ProblemDetails(ModelNormal):
254
254
  Animal class but this time we won't travel
255
255
  through its discriminator because we passed in
256
256
  _visited_composed_classes = (Animal,)
257
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
258
- trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
259
- type (str): The problem's category.. [optional] # noqa: E501
260
257
  code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
261
- instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
262
- title (str): A short human-readable description of the problem type. [optional] # noqa: E501
263
258
  detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
259
+ instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
264
260
  source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
265
261
  stack_trace (str): Technical information, only used in non-prod environments. [optional] # noqa: E501
262
+ title (str): A short human-readable description of the problem type. [optional] # noqa: E501
263
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
264
+ trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
265
+ type (str): The problem's category.. [optional] # noqa: E501
266
266
  """
267
267
 
268
268
  _check_type = kwargs.pop('_check_type', True)