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,297 +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
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.input_keywords import InputKeywords
34
- globals()['InputKeywords'] = InputKeywords
35
-
36
-
37
- class Keywords(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
- ('review_state',): {
63
- 'INREVIEW': "InReview",
64
- 'RECOMMENDED': "Recommended",
65
- 'APPROVED': "Approved",
66
- 'AUTOAPPROVED': "AutoApproved",
67
- 'REJECTED': "Rejected",
68
- 'AUTOREJECTED': "AutoRejected",
69
- 'UNKOWN': "Unkown",
70
- },
71
- ('match_type',): {
72
- 'POSITIVEEXACTMATCH': "PositiveExactMatch",
73
- 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
74
- 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
75
- 'UNKNOWN': "Unknown",
76
- },
77
- }
78
-
79
- validations = {
80
- }
81
-
82
- additional_properties_type = None
83
-
84
- _nullable = False
85
-
86
- @cached_property
87
- def openapi_types():
88
- """
89
- This must be a method because a model may have properties that are
90
- of type self, this must run after the class is loaded
91
-
92
- Returns
93
- openapi_types (dict): The key is attribute name
94
- and the value is attribute type.
95
- """
96
- lazy_import()
97
- return {
98
- 'review_state': (str,), # noqa: E501
99
- 'match_type': (str,), # noqa: E501
100
- 'bid': (float, none_type,), # noqa: E501
101
- 'input_keywords': (InputKeywords,), # noqa: E501
102
- 'created_at': (datetime,), # noqa: E501
103
- 'updated_at': (datetime,), # noqa: E501
104
- }
105
-
106
- @cached_property
107
- def discriminator():
108
- return None
109
-
110
-
111
- attribute_map = {
112
- 'review_state': 'reviewState', # noqa: E501
113
- 'match_type': 'matchType', # noqa: E501
114
- 'bid': 'bid', # noqa: E501
115
- 'input_keywords': 'inputKeywords', # noqa: E501
116
- 'created_at': 'createdAt', # noqa: E501
117
- 'updated_at': 'updatedAt', # 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
- """Keywords - 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
- review_state (str): Review status of the keyword. [optional] # noqa: E501
162
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
163
- bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
164
- input_keywords (InputKeywords): [optional] # noqa: E501
165
- created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
166
- updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
167
- """
168
-
169
- _check_type = kwargs.pop('_check_type', True)
170
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
171
- _path_to_item = kwargs.pop('_path_to_item', ())
172
- _configuration = kwargs.pop('_configuration', None)
173
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
174
-
175
- self = super(OpenApiModel, cls).__new__(cls)
176
-
177
- if args:
178
- for arg in args:
179
- if isinstance(arg, dict):
180
- kwargs.update(arg)
181
- else:
182
- raise ApiTypeError(
183
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
184
- args,
185
- self.__class__.__name__,
186
- ),
187
- path_to_item=_path_to_item,
188
- valid_classes=(self.__class__,),
189
- )
190
-
191
- self._data_store = {}
192
- self._check_type = _check_type
193
- self._spec_property_naming = _spec_property_naming
194
- self._path_to_item = _path_to_item
195
- self._configuration = _configuration
196
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
197
-
198
- for var_name, var_value in kwargs.items():
199
- if var_name not in self.attribute_map and \
200
- self._configuration is not None and \
201
- self._configuration.discard_unknown_keys and \
202
- self.additional_properties_type is None:
203
- # discard variable.
204
- continue
205
- setattr(self, var_name, var_value)
206
- return self
207
-
208
- required_properties = set([
209
- '_data_store',
210
- '_check_type',
211
- '_spec_property_naming',
212
- '_path_to_item',
213
- '_configuration',
214
- '_visited_composed_classes',
215
- ])
216
-
217
- @convert_js_args_to_python_args
218
- def __init__(self, *args, **kwargs): # noqa: E501
219
- """Keywords - a model defined in OpenAPI
220
-
221
- Keyword Args:
222
- _check_type (bool): if True, values for parameters in openapi_types
223
- will be type checked and a TypeError will be
224
- raised if the wrong type is input.
225
- Defaults to True
226
- _path_to_item (tuple/list): This is a list of keys or values to
227
- drill down to the model in received_data
228
- when deserializing a response
229
- _spec_property_naming (bool): True if the variable names in the input data
230
- are serialized names, as specified in the OpenAPI document.
231
- False if the variable names in the input data
232
- are pythonic names, e.g. snake case (default)
233
- _configuration (Configuration): the instance to use when
234
- deserializing a file_type parameter.
235
- If passed, type conversion is attempted
236
- If omitted no type conversion is done.
237
- _visited_composed_classes (tuple): This stores a tuple of
238
- classes that we have traveled through so that
239
- if we see that class again we will not use its
240
- discriminator again.
241
- When traveling through a discriminator, the
242
- composed schema that is
243
- is traveled through is added to this set.
244
- For example if Animal has a discriminator
245
- petType and we pass in "Dog", and the class Dog
246
- allOf includes Animal, we move through Animal
247
- once using the discriminator, and pick Dog.
248
- Then in Dog, we will make an instance of the
249
- Animal class but this time we won't travel
250
- through its discriminator because we passed in
251
- _visited_composed_classes = (Animal,)
252
- review_state (str): Review status of the keyword. [optional] # noqa: E501
253
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
254
- bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
255
- input_keywords (InputKeywords): [optional] # noqa: E501
256
- created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
257
- updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
258
- """
259
-
260
- _check_type = kwargs.pop('_check_type', True)
261
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
262
- _path_to_item = kwargs.pop('_path_to_item', ())
263
- _configuration = kwargs.pop('_configuration', None)
264
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
265
-
266
- if args:
267
- for arg in args:
268
- if isinstance(arg, dict):
269
- kwargs.update(arg)
270
- else:
271
- raise ApiTypeError(
272
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
273
- args,
274
- self.__class__.__name__,
275
- ),
276
- path_to_item=_path_to_item,
277
- valid_classes=(self.__class__,),
278
- )
279
-
280
- self._data_store = {}
281
- self._check_type = _check_type
282
- self._spec_property_naming = _spec_property_naming
283
- self._path_to_item = _path_to_item
284
- self._configuration = _configuration
285
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
286
-
287
- for var_name, var_value in kwargs.items():
288
- if var_name not in self.attribute_map and \
289
- self._configuration is not None and \
290
- self._configuration.discard_unknown_keys and \
291
- self.additional_properties_type is None:
292
- # discard variable.
293
- continue
294
- setattr(self, var_name, var_value)
295
- if var_name in self.read_only_vars:
296
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
297
- f"class with read only attributes.")
@@ -1,277 +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
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.external_line_item_bid_multipliers_v2 import ExternalLineItemBidMultipliersV2
34
- globals()['ExternalLineItemBidMultipliersV2'] = ExternalLineItemBidMultipliersV2
35
-
36
-
37
- class ResourceOfLineItemBidMultipliersV2(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
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
-
76
- _nullable = True
77
-
78
- @cached_property
79
- def openapi_types():
80
- """
81
- This must be a method because a model may have properties that are
82
- of type self, this must run after the class is loaded
83
-
84
- Returns
85
- openapi_types (dict): The key is attribute name
86
- and the value is attribute type.
87
- """
88
- lazy_import()
89
- return {
90
- 'attributes': (ExternalLineItemBidMultipliersV2,), # noqa: E501
91
- 'id': (str, none_type,), # noqa: E501
92
- 'type': (str, none_type,), # noqa: E501
93
- }
94
-
95
- @cached_property
96
- def discriminator():
97
- return None
98
-
99
-
100
- attribute_map = {
101
- 'attributes': 'attributes', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
- 'type': 'type', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """ResourceOfLineItemBidMultipliersV2 - a model defined in OpenAPI
115
-
116
- Keyword Args:
117
- _check_type (bool): if True, values for parameters in openapi_types
118
- will be type checked and a TypeError will be
119
- raised if the wrong type is input.
120
- Defaults to True
121
- _path_to_item (tuple/list): This is a list of keys or values to
122
- drill down to the model in received_data
123
- when deserializing a response
124
- _spec_property_naming (bool): True if the variable names in the input data
125
- are serialized names, as specified in the OpenAPI document.
126
- False if the variable names in the input data
127
- are pythonic names, e.g. snake case (default)
128
- _configuration (Configuration): the instance to use when
129
- deserializing a file_type parameter.
130
- If passed, type conversion is attempted
131
- If omitted no type conversion is done.
132
- _visited_composed_classes (tuple): This stores a tuple of
133
- classes that we have traveled through so that
134
- if we see that class again we will not use its
135
- discriminator again.
136
- When traveling through a discriminator, the
137
- composed schema that is
138
- is traveled through is added to this set.
139
- For example if Animal has a discriminator
140
- petType and we pass in "Dog", and the class Dog
141
- allOf includes Animal, we move through Animal
142
- once using the discriminator, and pick Dog.
143
- Then in Dog, we will make an instance of the
144
- Animal class but this time we won't travel
145
- through its discriminator because we passed in
146
- _visited_composed_classes = (Animal,)
147
- attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
148
- id (str, none_type): Id of the entity. [optional] # noqa: E501
149
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
150
- """
151
-
152
- _check_type = kwargs.pop('_check_type', True)
153
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
154
- _path_to_item = kwargs.pop('_path_to_item', ())
155
- _configuration = kwargs.pop('_configuration', None)
156
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
157
-
158
- self = super(OpenApiModel, cls).__new__(cls)
159
-
160
- if args:
161
- for arg in args:
162
- if isinstance(arg, dict):
163
- kwargs.update(arg)
164
- else:
165
- raise ApiTypeError(
166
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
167
- args,
168
- self.__class__.__name__,
169
- ),
170
- path_to_item=_path_to_item,
171
- valid_classes=(self.__class__,),
172
- )
173
-
174
- self._data_store = {}
175
- self._check_type = _check_type
176
- self._spec_property_naming = _spec_property_naming
177
- self._path_to_item = _path_to_item
178
- self._configuration = _configuration
179
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
180
-
181
- for var_name, var_value in kwargs.items():
182
- if var_name not in self.attribute_map and \
183
- self._configuration is not None and \
184
- self._configuration.discard_unknown_keys and \
185
- self.additional_properties_type is None:
186
- # discard variable.
187
- continue
188
- setattr(self, var_name, var_value)
189
- return self
190
-
191
- required_properties = set([
192
- '_data_store',
193
- '_check_type',
194
- '_spec_property_naming',
195
- '_path_to_item',
196
- '_configuration',
197
- '_visited_composed_classes',
198
- ])
199
-
200
- @convert_js_args_to_python_args
201
- def __init__(self, *args, **kwargs): # noqa: E501
202
- """ResourceOfLineItemBidMultipliersV2 - a model defined in OpenAPI
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
- attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
236
- id (str, none_type): Id of the entity. [optional] # noqa: E501
237
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
238
- """
239
-
240
- _check_type = kwargs.pop('_check_type', True)
241
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
242
- _path_to_item = kwargs.pop('_path_to_item', ())
243
- _configuration = kwargs.pop('_configuration', None)
244
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
245
-
246
- if args:
247
- for arg in args:
248
- if isinstance(arg, dict):
249
- kwargs.update(arg)
250
- else:
251
- raise ApiTypeError(
252
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
253
- args,
254
- self.__class__.__name__,
255
- ),
256
- path_to_item=_path_to_item,
257
- valid_classes=(self.__class__,),
258
- )
259
-
260
- self._data_store = {}
261
- self._check_type = _check_type
262
- self._spec_property_naming = _spec_property_naming
263
- self._path_to_item = _path_to_item
264
- self._configuration = _configuration
265
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
266
-
267
- for var_name, var_value in kwargs.items():
268
- if var_name not in self.attribute_map and \
269
- self._configuration is not None and \
270
- self._configuration.discard_unknown_keys and \
271
- self.additional_properties_type is None:
272
- # discard variable.
273
- continue
274
- setattr(self, var_name, var_value)
275
- if var_name in self.read_only_vars:
276
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
277
- f"class with read only attributes.")