criteo-api-retailmedia-sdk 0.0.250129__py3-none-any.whl → 0.0.250205__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 (22) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
  3. criteo_api_retailmedia_preview/api/campaign_api.py +161 -0
  4. criteo_api_retailmedia_preview/api/catalog_api.py +0 -161
  5. criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +0 -1
  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/async_accounts_report.py +4 -0
  9. criteo_api_retailmedia_preview/model/async_campaigns_report.py +4 -0
  10. criteo_api_retailmedia_preview/model/{retail_media_contactlist_amendment_attributes.py → async_fill_rate_report.py} +80 -31
  11. criteo_api_retailmedia_preview/model/{http_validation_error.py → async_fill_rate_report_request.py} +9 -9
  12. criteo_api_retailmedia_preview/model/{location_inner.py → async_fill_rate_report_resource.py} +17 -3
  13. criteo_api_retailmedia_preview/model/async_line_items_report.py +4 -0
  14. criteo_api_retailmedia_preview/model/message.py +5 -5
  15. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py +31 -18
  16. criteo_api_retailmedia_preview/models/__init__.py +3 -5
  17. {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/METADATA +3 -3
  18. {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/RECORD +20 -22
  19. criteo_api_retailmedia_preview/model/botmessage.py +0 -329
  20. criteo_api_retailmedia_preview/model/validation_error.py +0 -287
  21. {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/WHEEL +0 -0
  22. {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
- criteo_api_retailmedia_preview/__init__.py,sha256=-Ki83wdSCM-itmL1Eh_EfoKLc8FtOvYp-xIds4Jax0E,1023
2
- criteo_api_retailmedia_preview/api_client.py,sha256=KcJNzqquOyfFN_graTkbUwFwX1nMjUjPkP8Gv4JlKwY,39425
1
+ criteo_api_retailmedia_preview/__init__.py,sha256=ceqvUAQnvLsHi-io_YbZhlKivbh7OT8Re40u8SOQgII,1023
2
+ criteo_api_retailmedia_preview/api_client.py,sha256=KYSgf25ma9vi_wzjXs23VSPolL6xDJ5sf_TioKCQHeo,39425
3
3
  criteo_api_retailmedia_preview/api_client_builder.py,sha256=GA_82AyTtGhe8KsCV4WRibYrDshmKbXDRLdELNYmBEo,1504
4
- criteo_api_retailmedia_preview/configuration.py,sha256=BT9hdTv8OgBmhy5wq69Mc1dWB1FOImhbEkk_X_mCGX4,16714
4
+ criteo_api_retailmedia_preview/configuration.py,sha256=pdSbzT0jajnxubpgd1JK92dk2FJm5jw6TSqSwXXxwx0,16714
5
5
  criteo_api_retailmedia_preview/criteo_api_client.py,sha256=OMLOZH6PXNNHEZ-9_X1b-jNJT80YCrfQrxln-6rWo3k,652
6
6
  criteo_api_retailmedia_preview/criteo_auth.py,sha256=1pjObPpytC72QM8YxL3NmwDI0ePSXuRFIiMpq6j3LF0,4693
7
7
  criteo_api_retailmedia_preview/criteo_rest.py,sha256=7fjy1FXDYlgRVnUqEvXaa3daGnZAB0rUPqmFxgBeRmk,3410
@@ -11,13 +11,13 @@ criteo_api_retailmedia_preview/model_utils.py,sha256=cRqlVb6eq5limHgox0OVy9OgyVz
11
11
  criteo_api_retailmedia_preview/rest.py,sha256=QxPwwAVXwOGPybdM9wkJDT2zT9ehe-PRby_ZwtIagl0,14241
12
12
  criteo_api_retailmedia_preview/api/__init__.py,sha256=PFuWrNYpBsqByMl7orspJxVAv0aLDjlUrEbAR3TBJJg,235
13
13
  criteo_api_retailmedia_preview/api/accounts_api.py,sha256=w_0KDBKk9Gl3CyZtgW5hNLbsLf0Dq80nnM1kev_UEcA,18449
14
- criteo_api_retailmedia_preview/api/analytics_api.py,sha256=_tN_0tIRwDJkbWVfpegBswyot99SgY0debSXy89q3JU,45856
14
+ criteo_api_retailmedia_preview/api/analytics_api.py,sha256=PMjZIfOcvQRv501NC5kRuqN2bTqyW_j2MxOmQFZuotA,51578
15
15
  criteo_api_retailmedia_preview/api/audience_api.py,sha256=DMfTswhVaacqu87DO0yyfgvXLiwqNnojuaojOHkZ7bk,52389
16
16
  criteo_api_retailmedia_preview/api/balance_api.py,sha256=wQ2BsZrR52QTqtyVoKuA-nHn-BKeBtY51gVOJaB7Tl8,39445
17
- criteo_api_retailmedia_preview/api/campaign_api.py,sha256=rgf1UlPDXcb2sZdVDdvDIJYjp44cF4VEhaH4l6HLVLA,206080
18
- criteo_api_retailmedia_preview/api/catalog_api.py,sha256=WBhmTq079g26MVqhTS3E0EOEx1GRFYycrHwYJ1j34t4,19164
17
+ criteo_api_retailmedia_preview/api/campaign_api.py,sha256=mCfAyqVmHuZCrNbjLtpjtSKbkJft0ozzzNUhaNp5YgQ,212860
18
+ criteo_api_retailmedia_preview/api/catalog_api.py,sha256=J-flsW5g2qeVtJagiEK_eB4UiQSZ8hYNJXDjVWL5h8o,12384
19
19
  criteo_api_retailmedia_preview/api/gateway_api.py,sha256=kEmtDyfACdByE6SbIMwV0OH7HsRvtN7jnmc1qDCtiLs,5693
20
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py,sha256=WwQGOy5sh7d8BINIBBx8bII1aJAG_BAGRe12u-_otS0,6870
20
+ criteo_api_retailmedia_preview/api/on_site_recommendation_api.py,sha256=yeEY6PXg4HoGYcEStM2kPLKPTSSLY3NLMbdHSCK8KtU,6779
21
21
  criteo_api_retailmedia_preview/apis/__init__.py,sha256=2eEgeFQ_NGY-P3IsiPKhORtEtd39_IwaEay6wyaTTlc,1043
22
22
  criteo_api_retailmedia_preview/model/__init__.py,sha256=bT9TCy7p9BdziIRXh21nOFnDrB8GHCJHOvSpCwfZuts,364
23
23
  criteo_api_retailmedia_preview/model/add_remove_keyword_model.py,sha256=TnucoGGlkOCMc47bhpnN4bT9aBqleTZDQ41pZ4dBoZo,11927
@@ -27,13 +27,16 @@ criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py,sha25
27
27
  criteo_api_retailmedia_preview/model/application_summary_model.py,sha256=AgBX2ZJe_Gcyqs0Hy39v54ifl06PLLQIoPmGBP2tS8w,12476
28
28
  criteo_api_retailmedia_preview/model/application_summary_model_resource.py,sha256=s6EpEKUpf19xAzslqjJOglaar1wuLRAGh_VjnLwrUnY,11971
29
29
  criteo_api_retailmedia_preview/model/application_summary_model_response.py,sha256=WOuxZ1Y1a13p-8wUjHvxW4ascMRovTtlC4zf6ynrTI0,12506
30
- criteo_api_retailmedia_preview/model/async_accounts_report.py,sha256=sJiVsWeEbFtDHFnPf3__kjvu5eWK2g2hOJLB9PCYeQs,22456
30
+ criteo_api_retailmedia_preview/model/async_accounts_report.py,sha256=C7clAUUjmDY4ROH2kWs6LT0GqW3D_aHolE_3XV-VWTM,22752
31
31
  criteo_api_retailmedia_preview/model/async_accounts_report_request.py,sha256=jDwnEVvlmZK3-wQtZHlAdfesVbcQWoy93Ou0P1B3xhc,11744
32
32
  criteo_api_retailmedia_preview/model/async_accounts_report_resource.py,sha256=6DPxnS33xd_wCn2cSkdWM5cX-j1Rcksm49cmCMD_LIk,11931
33
- criteo_api_retailmedia_preview/model/async_campaigns_report.py,sha256=pmdlghXs1ZlwFVgDlc8c5C_qtRJhPOLT6XpulQNevzw,21908
33
+ criteo_api_retailmedia_preview/model/async_campaigns_report.py,sha256=qUI1ol7ofvFCzVF9EY5iK0UMrZa1TDd5rnyP7xXep20,22204
34
34
  criteo_api_retailmedia_preview/model/async_campaigns_report_request.py,sha256=_I4JAtoCxG52O5QfqCXHAJFQ4CyPI-oae8zdeB8em9U,11754
35
35
  criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py,sha256=5H51NAlhO26uAc2lvwEinYQCDtgNjzmls7bNQOBPoKc,11941
36
- criteo_api_retailmedia_preview/model/async_line_items_report.py,sha256=p2uHZUnc2U_bZzBgTGJFtQezSBPSl8WPSCP58baqgdk,21912
36
+ criteo_api_retailmedia_preview/model/async_fill_rate_report.py,sha256=MVobJw_Y5pdDr0fFGjXrtfiXDAJCMDN6xE9MrwNDpDg,15363
37
+ criteo_api_retailmedia_preview/model/async_fill_rate_report_request.py,sha256=NgWZOwlD13nLopSqBcFMRkJlAAs46qiZoXLo1f3ZC_k,11745
38
+ criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py,sha256=0sNz4M7ya3OBOA5t77okJhkF-9G8gPooRuab9306dQE,11932
39
+ criteo_api_retailmedia_preview/model/async_line_items_report.py,sha256=X1QALu1qQpHRb46OvEM1vvrzvQlKjOmqdgP4oQNFHsk,22208
37
40
  criteo_api_retailmedia_preview/model/async_line_items_report_request.py,sha256=znMn3HlUxa8bwnf9ehEFnjHEUjWnI7Xc-JN4w-9FSWU,11755
38
41
  criteo_api_retailmedia_preview/model/async_line_items_report_resource.py,sha256=dFwReTscSjFK3YCGi9T1wvpgog3RxC6_QH6lrZMzzf8,11942
39
42
  criteo_api_retailmedia_preview/model/async_report_response.py,sha256=XXK1G4USAMy6-S3BbifPQ29LnMZjBFbVvoG0sMfosmg,12406
@@ -44,7 +47,6 @@ criteo_api_retailmedia_preview/model/balance_response_v2.py,sha256=j2KCj3rxbjffg
44
47
  criteo_api_retailmedia_preview/model/balance_response_v2_response.py,sha256=xY5sYtI47Q39e4qye0_nWOq2_83POx0kz5IRBxKeVFk,12394
45
48
  criteo_api_retailmedia_preview/model/batch_accepted_response.py,sha256=bBuOkSoDlxj1sDE86tMZuIVEot_1Xb4RNeS2szir1q4,11568
46
49
  criteo_api_retailmedia_preview/model/bot_message.py,sha256=xq7I_yPVss6WHGGgtm9A96jaL-yUKvL77mM-6B8ss7s,12483
47
- criteo_api_retailmedia_preview/model/botmessage.py,sha256=nq_rdvXg29TdLegcRDorZ1l47fRqNij5z9vdhu88xTU,14587
48
50
  criteo_api_retailmedia_preview/model/brand.py,sha256=_eZuERoRGO5ixpbs42eTN64G22CKJ247z4vtw7IwcLg,11498
49
51
  criteo_api_retailmedia_preview/model/brand_id_search_request.py,sha256=8sXvE6nPmzyk6IoAovRbZlBDpOcAw2gusHH6_wAjf5A,12161
50
52
  criteo_api_retailmedia_preview/model/brand_id_search_result.py,sha256=EjE6P9QLgpw_qqt5U0oC1Qr9QW1AQetxeNGskPNV5DA,12069
@@ -95,7 +97,6 @@ criteo_api_retailmedia_preview/model/files_variable_value.py,sha256=U8FB8C3jpLk8
95
97
  criteo_api_retailmedia_preview/model/grant_consent_input.py,sha256=-Sikyn_QNW3t49Y1LvG7RFSKgWYTOJkxxy7qsOHHwUw,11739
96
98
  criteo_api_retailmedia_preview/model/grant_consent_model.py,sha256=KLg6VUzDsrQEDKpZg6KUvVFp0bo_0R7Ik26Yi5ePxmY,12027
97
99
  criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py,sha256=K3cNJRHrgZ8sDwQrXY5dpm4O8tc4S8NyXb_vNx7BcJ8,11926
98
- criteo_api_retailmedia_preview/model/http_validation_error.py,sha256=R09vDSUFv5IbytPc1KppUeuqIbNVPpFxfpZY6y8tVoM,11686
99
100
  criteo_api_retailmedia_preview/model/hyperlink_variable_value.py,sha256=AvsQCJ3S3JKYfteiKuHSDs5VTinuTJhsU8Pb-kol7gQ,11209
100
101
  criteo_api_retailmedia_preview/model/inbot_discussion.py,sha256=xHixHSBbIa7Q8DwyAuWmHeUBHwKGhevs8MP6ZleidqY,11861
101
102
  criteo_api_retailmedia_preview/model/inbot_discussion_body_model.py,sha256=vqqxcKLT4OAAZizC19OeH8FBz1CUDJ8GhPg6CYIoV9k,11816
@@ -118,10 +119,9 @@ criteo_api_retailmedia_preview/model/keywords_model_response.py,sha256=8V12nzBeC
118
119
  criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_request.py,sha256=b-ZaENnEcGLjPGlMr-NGW7i-o-nQyE8pCOWRLlpgU1U,11810
119
120
  criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py,sha256=7ytia2_7yeiJABEiISB35viPLQe0Dd1KF9bYRXMPY14,12532
120
121
  criteo_api_retailmedia_preview/model/line_item_product_status.py,sha256=kSEGbArDhiF3mRkaSR--FycuUm40TlbktAPqZp1pZu0,12271
121
- criteo_api_retailmedia_preview/model/location_inner.py,sha256=YB7d5ojkJllGy6r2PWuDKercU5eK_xl45HUDUlNu-hk,11204
122
122
  criteo_api_retailmedia_preview/model/loyalty_points.py,sha256=gtfOxAG1AR1-zjfRu5Dl8Z2sl96EApKRAwKJvrnoFoM,12531
123
123
  criteo_api_retailmedia_preview/model/match_type_model.py,sha256=3IsdmtGAVIe5Wg8tZbTnRsWEX6bnpvDkRStokqc2Wy4,12312
124
- criteo_api_retailmedia_preview/model/message.py,sha256=vCKepqbF59dkNG5EAekBUN-ECGbijA_g_hNenuBfGXo,11875
124
+ criteo_api_retailmedia_preview/model/message.py,sha256=Ma07pczRMrzovhlEq_mXSrxRT8gqF7rWDSRZ0MH2-tE,11876
125
125
  criteo_api_retailmedia_preview/model/message_body_model.py,sha256=Be1_9qhSKpqbH1OQQeXTUP1WpVHUuQ0NVaC7P9MyPOg,12072
126
126
  criteo_api_retailmedia_preview/model/message_data_instance_model.py,sha256=x27S9ouj1ca6NsO7Le1H_7Fdocy8dOcbwg5X8-vI6j0,12038
127
127
  criteo_api_retailmedia_preview/model/message_error.py,sha256=nSVsvBc5aj2_W8SZexJ0hwSwGWue4RqxD2C8ehqzSIQ,12292
@@ -192,8 +192,7 @@ criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py,sha256
192
192
  criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py,sha256=_VP101HEL58mw-1yDdV6Fx-jYXqxNGEwX1stpXEXrT8,12185
193
193
  criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py,sha256=HqjhYHcdZnuhkXiTpKQtumkIGRHQZz4Y32zFOkWZTc4,12255
194
194
  criteo_api_retailmedia_preview/model/resource_outcome.py,sha256=O1MTsL3eJ3YPdrPJVE5hpzalbyoJuRiSGyX-2xtqkj0,11737
195
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py,sha256=IXWSHnrUT8c3KdMMirRwnJCGmdWQpLhULHRyotYJg9w,12199
196
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py,sha256=gtOq0Kg-vEInSnVf_6TgIEH8yUinLC44MJ8XMJawaNY,12741
195
+ criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py,sha256=FsZW3pcKamq3KibL2e6blmR56CEqPYaOmORB1kD90bo,12711
197
196
  criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py,sha256=Dt7-rKYZaqvqWsPSjJ2u5_aCsIf-DXNEy9xkson_jLo,11850
198
197
  criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py,sha256=UZM-kgcKuCqyKksMJxHdtNQs3PncEMbI3hrQDUg5NWM,12747
199
198
  criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes.py,sha256=rbEpF1KaEmKTQej6s34PX_xlijjictK4tv4UIUBtlVw,12394
@@ -271,7 +270,6 @@ criteo_api_retailmedia_preview/model/template_variable_value.py,sha256=SEUFUHSzs
271
270
  criteo_api_retailmedia_preview/model/text_variable_value.py,sha256=FjtOzwe7-3yivJ3bcbs6QOrFLsIKstaDpSBWtB4QNAw,11191
272
271
  criteo_api_retailmedia_preview/model/update_balance_model_v2.py,sha256=IWZ_eSYEzFnDsbzUESQEKWPPwwcWiV7Un4adEyYXa5o,12666
273
272
  criteo_api_retailmedia_preview/model/update_balance_model_v2_request.py,sha256=9MTeMopI44fjDLWl6K9O_KvopcwiRlbXrnK6toD_aK0,11770
274
- criteo_api_retailmedia_preview/model/validation_error.py,sha256=ehwUJLH9e6GKjXk-nnv1jjqKcXJdHEbhPM9o4n7VJZY,12017
275
273
  criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py,sha256=r6UJbmuRigUW-V_JzXVWLVbyrHocd4QDUopti2L6iZQ,11706
276
274
  criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py,sha256=rUq5dzGaJDgYJjNEa3dRewuDpgn-7XK1c-1OvbypdZU,12574
277
275
  criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_request.py,sha256=ULdnjBmj6DojYaW7ytSe2_KqeXC6fPtDDmzr35AVwXg,11676
@@ -285,8 +283,8 @@ criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py,sha256=_
285
283
  criteo_api_retailmedia_preview/model/value_resource_outcome_cpc_min_bids_response.py,sha256=MwoPHKj-aEEJB3DTTLsKiI02-tWCAZjx7Ti32fWe-uc,12495
286
284
  criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py,sha256=cqCHsE0Mm9mtucMUr66weV_Y1ckkYQnnaULRTKcrTaA,12322
287
285
  criteo_api_retailmedia_preview/model/video_variable_value.py,sha256=OfIDeWfVxiRT2PDgF90bDlS5Bp0ejXJ8FvXS2ROH00c,12079
288
- criteo_api_retailmedia_preview/models/__init__.py,sha256=nGgqbbuO0k-SHoOysnMJ5DYiMgWQHwbWwBg0Ah0V7I4,28240
289
- criteo_api_retailmedia_sdk-0.0.250129.dist-info/METADATA,sha256=DKay8bh-TUAajkk5yGkJg-3hDsvM7ovEqgEYLQQdIq8,1848
290
- criteo_api_retailmedia_sdk-0.0.250129.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
291
- criteo_api_retailmedia_sdk-0.0.250129.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
292
- criteo_api_retailmedia_sdk-0.0.250129.dist-info/RECORD,,
286
+ criteo_api_retailmedia_preview/models/__init__.py,sha256=QSwXaAAixOQ7C41omyNxGwGhRr-bRHPs-Jsx56E2vMU,28089
287
+ criteo_api_retailmedia_sdk-0.0.250205.dist-info/METADATA,sha256=32b_NqE2Zm_vzeJ82FfYyE2WdP6deaBj0QskG-HvELc,1848
288
+ criteo_api_retailmedia_sdk-0.0.250205.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
289
+ criteo_api_retailmedia_sdk-0.0.250205.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
290
+ criteo_api_retailmedia_sdk-0.0.250205.dist-info/RECORD,,
@@ -1,329 +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.bot_message import BotMessage
34
- from criteo_api_retailmedia_preview.model.product_recommendation import ProductRecommendation
35
- globals()['BotMessage'] = BotMessage
36
- globals()['ProductRecommendation'] = ProductRecommendation
37
-
38
-
39
- class Botmessage(ModelComposed):
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
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
-
78
- _nullable = True
79
-
80
- @cached_property
81
- def openapi_types():
82
- """
83
- This must be a method because a model may have properties that are
84
- of type self, this must run after the class is loaded
85
-
86
- Returns
87
- openapi_types (dict): The key is attribute name
88
- and the value is attribute type.
89
- """
90
- lazy_import()
91
- return {
92
- 'opening': (str, none_type,), # noqa: E501
93
- 'product_recos': ([ProductRecommendation], none_type,), # noqa: E501
94
- 'closing': (str, none_type,), # noqa: E501
95
- }
96
-
97
- @cached_property
98
- def discriminator():
99
- return None
100
-
101
-
102
- attribute_map = {
103
- 'opening': 'opening', # noqa: E501
104
- 'product_recos': 'productRecos', # noqa: E501
105
- 'closing': 'closing', # noqa: E501
106
- }
107
-
108
- read_only_vars = {
109
- }
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """Botmessage - 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
- opening (str, none_type): opening comment from the bot, introducing the list of recommended products if relevant.. [optional] # noqa: E501
148
- product_recos ([ProductRecommendation], none_type): list of recommended products. [optional] # noqa: E501
149
- closing (str, none_type): closing remark from the bot. [optional] # noqa: E501
150
- """
151
-
152
- _check_type = kwargs.pop('_check_type', True)
153
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
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
- constant_args = {
182
- '_check_type': _check_type,
183
- '_path_to_item': _path_to_item,
184
- '_spec_property_naming': _spec_property_naming,
185
- '_configuration': _configuration,
186
- '_visited_composed_classes': self._visited_composed_classes,
187
- }
188
- composed_info = validate_get_composed_info(
189
- constant_args, kwargs, self)
190
- self._composed_instances = composed_info[0]
191
- self._var_name_to_model_instances = composed_info[1]
192
- self._additional_properties_model_instances = composed_info[2]
193
- discarded_args = composed_info[3]
194
-
195
- for var_name, var_value in kwargs.items():
196
- if var_name in discarded_args and \
197
- self._configuration is not None and \
198
- self._configuration.discard_unknown_keys and \
199
- self._additional_properties_model_instances:
200
- # discard variable.
201
- continue
202
- setattr(self, var_name, var_value)
203
-
204
- return self
205
-
206
- required_properties = set([
207
- '_data_store',
208
- '_check_type',
209
- '_spec_property_naming',
210
- '_path_to_item',
211
- '_configuration',
212
- '_visited_composed_classes',
213
- '_composed_instances',
214
- '_var_name_to_model_instances',
215
- '_additional_properties_model_instances',
216
- ])
217
-
218
- @convert_js_args_to_python_args
219
- def __init__(self, *args, **kwargs): # noqa: E501
220
- """Botmessage - a model defined in OpenAPI
221
-
222
- Keyword Args:
223
- _check_type (bool): if True, values for parameters in openapi_types
224
- will be type checked and a TypeError will be
225
- raised if the wrong type is input.
226
- Defaults to True
227
- _path_to_item (tuple/list): This is a list of keys or values to
228
- drill down to the model in received_data
229
- when deserializing a response
230
- _spec_property_naming (bool): True if the variable names in the input data
231
- are serialized names, as specified in the OpenAPI document.
232
- False if the variable names in the input data
233
- are pythonic names, e.g. snake case (default)
234
- _configuration (Configuration): the instance to use when
235
- deserializing a file_type parameter.
236
- If passed, type conversion is attempted
237
- If omitted no type conversion is done.
238
- _visited_composed_classes (tuple): This stores a tuple of
239
- classes that we have traveled through so that
240
- if we see that class again we will not use its
241
- discriminator again.
242
- When traveling through a discriminator, the
243
- composed schema that is
244
- is traveled through is added to this set.
245
- For example if Animal has a discriminator
246
- petType and we pass in "Dog", and the class Dog
247
- allOf includes Animal, we move through Animal
248
- once using the discriminator, and pick Dog.
249
- Then in Dog, we will make an instance of the
250
- Animal class but this time we won't travel
251
- through its discriminator because we passed in
252
- _visited_composed_classes = (Animal,)
253
- opening (str, none_type): opening comment from the bot, introducing the list of recommended products if relevant.. [optional] # noqa: E501
254
- product_recos ([ProductRecommendation], none_type): list of recommended products. [optional] # noqa: E501
255
- closing (str, none_type): closing remark from the bot. [optional] # noqa: E501
256
- """
257
-
258
- _check_type = kwargs.pop('_check_type', True)
259
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
260
- _path_to_item = kwargs.pop('_path_to_item', ())
261
- _configuration = kwargs.pop('_configuration', None)
262
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
263
-
264
- if args:
265
- for arg in args:
266
- if isinstance(arg, dict):
267
- kwargs.update(arg)
268
- else:
269
- raise ApiTypeError(
270
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
271
- args,
272
- self.__class__.__name__,
273
- ),
274
- path_to_item=_path_to_item,
275
- valid_classes=(self.__class__,),
276
- )
277
-
278
- self._data_store = {}
279
- self._check_type = _check_type
280
- self._spec_property_naming = _spec_property_naming
281
- self._path_to_item = _path_to_item
282
- self._configuration = _configuration
283
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284
-
285
- constant_args = {
286
- '_check_type': _check_type,
287
- '_path_to_item': _path_to_item,
288
- '_spec_property_naming': _spec_property_naming,
289
- '_configuration': _configuration,
290
- '_visited_composed_classes': self._visited_composed_classes,
291
- }
292
- composed_info = validate_get_composed_info(
293
- constant_args, kwargs, self)
294
- self._composed_instances = composed_info[0]
295
- self._var_name_to_model_instances = composed_info[1]
296
- self._additional_properties_model_instances = composed_info[2]
297
- discarded_args = composed_info[3]
298
-
299
- for var_name, var_value in kwargs.items():
300
- if var_name in discarded_args and \
301
- self._configuration is not None and \
302
- self._configuration.discard_unknown_keys and \
303
- self._additional_properties_model_instances:
304
- # discard variable.
305
- continue
306
- setattr(self, var_name, var_value)
307
- if var_name in self.read_only_vars:
308
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
309
- f"class with read only attributes.")
310
-
311
- @cached_property
312
- def _composed_schemas():
313
- # we need this here to make our import statements work
314
- # we must store _composed_schemas in here so the code is only run
315
- # when we invoke this method. If we kept this at the class
316
- # level we would get an error because the class level
317
- # code would be run when this module is imported, and these composed
318
- # classes don't exist yet because their module has not finished
319
- # loading
320
- lazy_import()
321
- return {
322
- 'anyOf': [
323
- ],
324
- 'allOf': [
325
- BotMessage,
326
- ],
327
- 'oneOf': [
328
- ],
329
- }