criteo-api-retailmedia-sdk 0.0.250317__py3-none-any.whl → 0.0.250320__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 (20) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/campaign_api.py +300 -17
  3. criteo_api_retailmedia_preview/api_client.py +1 -1
  4. criteo_api_retailmedia_preview/configuration.py +1 -1
  5. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +284 -0
  6. criteo_api_retailmedia_preview/model/{external_catalog_status.py → catalog_status_v2.py} +15 -29
  7. criteo_api_retailmedia_preview/model/catalog_status_v2_response.py +281 -0
  8. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py} +10 -16
  9. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py → json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py} +8 -8
  10. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request.py → json_api_request_of_brand_catalog_request_v2.py} +8 -8
  11. criteo_api_retailmedia_preview/model/{seller_catalog_request.py → json_api_request_of_seller_catalog_request_v2.py} +9 -9
  12. criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py +277 -0
  13. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +286 -0
  14. criteo_api_retailmedia_preview/model/{seller_identifier.py → seller_identifier_v2.py} +3 -3
  15. criteo_api_retailmedia_preview/models/__init__.py +10 -7
  16. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/METADATA +4 -4
  17. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/RECORD +19 -16
  18. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/WHEEL +1 -1
  19. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
  20. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
- criteo_api_retailmedia_preview/__init__.py,sha256=eF1McwM5QYyHMKfAjWaXMYcvY4WlMF-9JJvOEf7VtYw,1023
2
- criteo_api_retailmedia_preview/api_client.py,sha256=O8UVYBseETXae4YGOvsnR3HxwVpi5ipzUaPaahakSE8,39425
1
+ criteo_api_retailmedia_preview/__init__.py,sha256=FDtDvyEqxy4tv9PO1ewp6_N-372o1rfn9Wr6Mw8kDvc,1023
2
+ criteo_api_retailmedia_preview/api_client.py,sha256=Sg0kWJUOHLt5HUmaHq4yq4uq8yc90iTuAc8hH1NdEGw,39425
3
3
  criteo_api_retailmedia_preview/api_client_builder.py,sha256=GA_82AyTtGhe8KsCV4WRibYrDshmKbXDRLdELNYmBEo,1504
4
- criteo_api_retailmedia_preview/configuration.py,sha256=QkiM0oxUDJgsQlsMac7_d2qri4Bzc0Ct99JEJ9JA6ug,16714
4
+ criteo_api_retailmedia_preview/configuration.py,sha256=wzATs6WDEIxHEbLWjwj4E8QwULUQOSS-02blZSKoYFo,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
@@ -15,7 +15,7 @@ criteo_api_retailmedia_preview/api/analytics_api.py,sha256=PMjZIfOcvQRv501NC5kRu
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
17
  criteo_api_retailmedia_preview/api/billing_api.py,sha256=R6wrFFopBkdZKz_Fnl9WEazHHkAph79R2OiB1X8Hhcc,17744
18
- criteo_api_retailmedia_preview/api/campaign_api.py,sha256=4QQpNGfrO9Mrq6TgMhgIwqsPzkUg8EqMYerUe4kBk1k,213003
18
+ criteo_api_retailmedia_preview/api/campaign_api.py,sha256=nJRunC-zwGLaF1dPdgji1HxXGFjLhaKbeesfWkXxp1I,224523
19
19
  criteo_api_retailmedia_preview/api/catalog_api.py,sha256=J-flsW5g2qeVtJagiEK_eB4UiQSZ8hYNJXDjVWL5h8o,12384
20
20
  criteo_api_retailmedia_preview/api/gateway_api.py,sha256=kEmtDyfACdByE6SbIMwV0OH7HsRvtN7jnmc1qDCtiLs,5693
21
21
  criteo_api_retailmedia_preview/api/on_site_recommendation_api.py,sha256=yeEY6PXg4HoGYcEStM2kPLKPTSSLY3NLMbdHSCK8KtU,6779
@@ -49,10 +49,13 @@ criteo_api_retailmedia_preview/model/balance_response_v2_response.py,sha256=xY5s
49
49
  criteo_api_retailmedia_preview/model/batch_accepted_response.py,sha256=bBuOkSoDlxj1sDE86tMZuIVEot_1Xb4RNeS2szir1q4,11568
50
50
  criteo_api_retailmedia_preview/model/bot_message.py,sha256=3zZtL6okWfcMh-uR3DJQxVd_MMM5Ox_95IMylwh6ydE,12482
51
51
  criteo_api_retailmedia_preview/model/brand.py,sha256=_eZuERoRGO5ixpbs42eTN64G22CKJ247z4vtw7IwcLg,11498
52
+ criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py,sha256=xhbg64sw5v5Y95OoMavU7Rc9FFlyHxpc3SUb0iH9bAs,12993
52
53
  criteo_api_retailmedia_preview/model/brand_id_search_request.py,sha256=1z1xVB2hcziHgJci2vf3Z6bMzymPwXU1XnZQP4EAdiE,12225
53
54
  criteo_api_retailmedia_preview/model/brand_id_search_result.py,sha256=MDOGFUERjrkKYCfAh6pArJ-l9NnClIMvOGdy_AJpU4A,12068
54
55
  criteo_api_retailmedia_preview/model/brand_preview.py,sha256=eD5AyGW_mA3QfgXjjawGZXdI8G1_WR0p0dj3rnrriQI,11443
55
56
  criteo_api_retailmedia_preview/model/brand_preview_list_response.py,sha256=arU9tb_BI-qIK24ohvSWDSNLHzQ7fDdLfQn8B5joNxw,12372
57
+ criteo_api_retailmedia_preview/model/catalog_status_v2.py,sha256=Ih2pGuNX6Re5ODgfb-2h6hetXFH80vpv_HFESj6oK5w,13989
58
+ criteo_api_retailmedia_preview/model/catalog_status_v2_response.py,sha256=Nfv-gv2BdBrvEhOV9TjE7Fii9b5LSaYMhR-4Fv3cpyw,12440
56
59
  criteo_api_retailmedia_preview/model/category.py,sha256=Hf3Ks-OgO0-BT4kC1hxjhXtx1rW-As2ZfW25ifqLmyU,11605
57
60
  criteo_api_retailmedia_preview/model/category202204.py,sha256=DJv42pWNu2y7gohuXk7gjeYmfmNuz_DK-6yPqZxSnuM,11953
58
61
  criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py,sha256=w8R1pUnk4ebp9S5Z_PzSVC6pjO3NiZ5kQ2MM75JQGDs,12134
@@ -84,7 +87,6 @@ criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_stat
84
87
  criteo_api_retailmedia_preview/model/error_code_response.py,sha256=i297dGb7D2BSog6iXDmiuyWgSsWvebChP5c43h_mnrE,12097
85
88
  criteo_api_retailmedia_preview/model/export_report_column.py,sha256=KMKMqDm8EllhpWkU6Ra-1-g_rSf3w2-4i8h3xnDzOO8,14152
86
89
  criteo_api_retailmedia_preview/model/export_report_meta_data.py,sha256=pHG9f9pB40uVxE-153oPIHY9LHCHP7t8iFDbX2mvOx8,11926
87
- criteo_api_retailmedia_preview/model/external_catalog_status.py,sha256=_RbjL20e3C_X-K-q9K7t4m-qe7-QT9RynIc-oJUJl-g,14646
88
90
  criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py,sha256=gARSVwqvdBqIvz1pHn0IIDDKT8LtIbk9H7kp7Twt7S0,14967
89
91
  criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py,sha256=B2iP1OPwE8rxxAFOtF8CUf6DfSOY39oD-3A9YfrOdoI,11843
90
92
  criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py,sha256=lOc2yOstBocufGy99s3nCoK071Ww8HbVkiFULVPa2zw,11905
@@ -108,11 +110,11 @@ criteo_api_retailmedia_preview/model/input_keywords.py,sha256=ZEsllXbNVKTc2yMGRs
108
110
  criteo_api_retailmedia_preview/model/input_keywords_model.py,sha256=xZVcGVle1DuxMImGXFkve8dkSTmEIjzaGKyv9hLEsvA,11742
109
111
  criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py,sha256=FrE-7VBNsqKQwqp5haITWWI0-XzywikD0DqlUV5aSDY,12089
110
112
  criteo_api_retailmedia_preview/model/installment.py,sha256=tW9B6C4IeoKJGPn1Hbif-8jW98_t1aLcmWh-Lnax-BU,11840
111
- criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py,sha256=zSkXTSu-xR4YW7gvsteeoAbKzsvpEpVVZzugSI5GZgc,12209
112
113
  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,sha256=SIOTPv_li7q1FsceRjOIRURN-rr3lsPwMdZP6IPcxSI,12187
113
- criteo_api_retailmedia_preview/model/json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py,sha256=0ayhimUVdAr-XYdXpk8HZDb_b6ApOb7wHLTBEZvlWKo,12061
114
- criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py,sha256=S50JtKpc9OJEguJNlHX8I04-MY7zNWyMkcilccsHdro,12048
115
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py,sha256=clA6n_n7HQWqdmY1cctC7tfA3Z4InY3bEuChqIzXh7I,12730
114
+ criteo_api_retailmedia_preview/model/json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py,sha256=qFveXiVAVEFB9J6jVn8peQZdxv2t-YzTlvLHs4Uracs,12075
115
+ criteo_api_retailmedia_preview/model/json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py,sha256=oXTkx-ef-lpQFXVLARqp_gDhn0Kr7nhtcwyWwwcRW3M,12088
116
+ criteo_api_retailmedia_preview/model/json_api_request_of_brand_catalog_request_v2.py,sha256=vmVo26QbTpoZwLDHYw3k8ViRCZTuGaRj9oIbRTwUdLc,12067
117
+ criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request_v2.py,sha256=IF6vOl39xW_DnWerveIIdqM9uyuY9Qp6-hgk-rwGpow,12084
116
118
  criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers_v2.py,sha256=RX0vn_wbGvdplG1Bcl95Im_wFgirvBLxQN9eca6NbH4,12989
117
119
  criteo_api_retailmedia_preview/model/keyword_data_model.py,sha256=-3YIousV3eDrTJUoHLi5-zbu-WCvAir6657elq2WCto,12830
118
120
  criteo_api_retailmedia_preview/model/keywords.py,sha256=rM1hsycsqJ2UrEffGKLWbw0qMPWwtx8jsF2L3HECbOY,13580
@@ -178,6 +180,7 @@ criteo_api_retailmedia_preview/model/report_outcome.py,sha256=zgTlVEcV7dZR86f8q3
178
180
  criteo_api_retailmedia_preview/model/report_response.py,sha256=E3HQREgn8jzl94zkkD-foJ39egnprpuKGwfP68HdgxA,12808
179
181
  criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py,sha256=eO1CAtXKu05EQ3dx118WHV77l-WqxyfM1UsTX02JTO4,12223
180
182
  criteo_api_retailmedia_preview/model/resource_of_brand_preview.py,sha256=KTeRDayJmqqFLceq2Ad2eHnDiIgTe95QJ_lL02AfCLM,12173
183
+ criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py,sha256=ux04c_HH55FfHJFvFHLIzS_YmYxCrBNM4HgNu4jWTbE,12203
181
184
  criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py,sha256=iv_qmEYTQT9zC4gn-aIKDuYGEeF5N41RNnDIrrd_O6g,12210
182
185
  criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py,sha256=ceLVlMEUx9TngS4I1q_SLaGdcnFmgo65gVio6Y8aQmw,12235
183
186
  criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py,sha256=qgh7iYrQNx6__miUGI3KeJodvDUMLOMT1i4wLd5g14o,12138
@@ -238,8 +241,8 @@ criteo_api_retailmedia_preview/model/rm_contact_list_v1.py,sha256=XOBDEYwt6evCVl
238
241
  criteo_api_retailmedia_preview/model/rm_events_v1.py,sha256=MQOewmL4yXQm_CE9aYO-0plmtKyz5kJaosKYo6566wo,13735
239
242
  criteo_api_retailmedia_preview/model/rmca_common_problem.py,sha256=yuWQCDawbizrQFXPc4NvCPVyLQeaviZdr7VsT8jqVsQ,14551
240
243
  criteo_api_retailmedia_preview/model/sdk_api_rest_common_problem.py,sha256=jQq1VFF6HSCYK-mfTVuqjxEs90y9HJrhSqD8Y2t154k,14015
241
- criteo_api_retailmedia_preview/model/seller_catalog_request.py,sha256=am_cHaYo1BYoTVYvpte51gR4RIlz8-UUsDMeSVOUYco,11759
242
- criteo_api_retailmedia_preview/model/seller_identifier.py,sha256=mVgHGPdZHhFAE0dU7XTGf7mF5CBoVJYkiBCXQoX9UzM,11963
244
+ criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py,sha256=hlyZ8cCX81n4uDtw-8M6eU8YkcKdlO5JK3NvRJAeWfI,12889
245
+ criteo_api_retailmedia_preview/model/seller_identifier_v2.py,sha256=tdgkYO_9YZKoIHPxc31HEjpLPe6_DyQzAoSB4NsC5fM,11969
243
246
  criteo_api_retailmedia_preview/model/seller_preview.py,sha256=A8Vb2EbGLv7NGw8k0-W5fHs3gFVppckrA350-bG2y-w,11408
244
247
  criteo_api_retailmedia_preview/model/seller_preview_response.py,sha256=hAt_ejRP_-Yf_YxncSlRtCFEgiv_cl7iVFj_Ie_MWjE,12364
245
248
  criteo_api_retailmedia_preview/model/seller_search.py,sha256=i8VJW3FlfUJAyn-uiCopQXAR_DIAJ_sCs2apGKkVSEA,12051
@@ -291,8 +294,8 @@ criteo_api_retailmedia_preview/model/value_resource_outcome_cpc_min_bids_respons
291
294
  criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py,sha256=cqCHsE0Mm9mtucMUr66weV_Y1ckkYQnnaULRTKcrTaA,12322
292
295
  criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py,sha256=kMw1ql_Iur92c4yxs5kTWvb_AEgZhrwOswq6C2ttcVI,11797
293
296
  criteo_api_retailmedia_preview/model/video_variable_value.py,sha256=xpa4xZIxtjrx0EquQ_SxzHc8ZrLl2PoUdcVBILNytaA,12078
294
- criteo_api_retailmedia_preview/models/__init__.py,sha256=aYJ-baMlbo-vIyaCkt1b_TATf1yfVjWdEW0hVvwO1_8,29051
295
- criteo_api_retailmedia_sdk-0.0.250317.dist-info/METADATA,sha256=8Qxtzy0MOvaTAppVZI6GGPTtC9iGeMdT_pbvFHcsLjk,1848
296
- criteo_api_retailmedia_sdk-0.0.250317.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
297
- criteo_api_retailmedia_sdk-0.0.250317.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
298
- criteo_api_retailmedia_sdk-0.0.250317.dist-info/RECORD,,
297
+ criteo_api_retailmedia_preview/models/__init__.py,sha256=LtGG2PtC1nQrBEb-BPEomhRnvSs7cXnC3I6vOZWH4EU,29392
298
+ criteo_api_retailmedia_sdk-0.0.250320.dist-info/METADATA,sha256=Ub48IM9m7h05jhfR2bFDuxrcs5oa4wMN3-5hRaPWzdg,1848
299
+ criteo_api_retailmedia_sdk-0.0.250320.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
300
+ criteo_api_retailmedia_sdk-0.0.250320.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
301
+ criteo_api_retailmedia_sdk-0.0.250320.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (77.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,287 +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.common_error import CommonError
34
- from criteo_api_retailmedia_preview.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus
36
- globals()['CommonError'] = CommonError
37
- globals()['CommonWarning'] = CommonWarning
38
- globals()['JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus'] = JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus
39
-
40
-
41
- class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
42
- """NOTE: This class is auto generated by OpenAPI Generator.
43
- Ref: https://openapi-generator.tech
44
-
45
- Do not edit the class manually.
46
-
47
- Attributes:
48
- allowed_values (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- with a capitalized key describing the allowed value and an allowed
51
- value. These dicts store the allowed enum values.
52
- attribute_map (dict): The key is attribute name
53
- and the value is json key in definition.
54
- discriminator_value_class_map (dict): A dict to go from the discriminator
55
- variable value to the discriminator class name.
56
- validations (dict): The key is the tuple path to the attribute
57
- and the for var_name this is (var_name,). The value is a dict
58
- that stores validations for max_length, min_length, max_items,
59
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
- inclusive_minimum, and regex.
61
- additional_properties_type (tuple): A tuple of classes accepted
62
- as additional properties values.
63
- """
64
-
65
- allowed_values = {
66
- }
67
-
68
- validations = {
69
- }
70
-
71
- @cached_property
72
- def additional_properties_type():
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
- lazy_import()
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = False
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- lazy_import()
93
- return {
94
- 'data': (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus,), # noqa: E501
95
- 'errors': ([CommonError],), # noqa: E501
96
- 'warnings': ([CommonWarning],), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'data': 'data', # noqa: E501
106
- 'errors': 'errors', # noqa: E501
107
- 'warnings': 'warnings', # noqa: E501
108
- }
109
-
110
- read_only_vars = {
111
- }
112
-
113
- _composed_schemas = {}
114
-
115
- @classmethod
116
- @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
118
- """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI
119
-
120
- Args:
121
- data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus):
122
-
123
- Keyword Args:
124
- _check_type (bool): if True, values for parameters in openapi_types
125
- will be type checked and a TypeError will be
126
- raised if the wrong type is input.
127
- Defaults to True
128
- _path_to_item (tuple/list): This is a list of keys or values to
129
- drill down to the model in received_data
130
- when deserializing a response
131
- _spec_property_naming (bool): True if the variable names in the input data
132
- are serialized names, as specified in the OpenAPI document.
133
- False if the variable names in the input data
134
- are pythonic names, e.g. snake case (default)
135
- _configuration (Configuration): the instance to use when
136
- deserializing a file_type parameter.
137
- If passed, type conversion is attempted
138
- If omitted no type conversion is done.
139
- _visited_composed_classes (tuple): This stores a tuple of
140
- classes that we have traveled through so that
141
- if we see that class again we will not use its
142
- discriminator again.
143
- When traveling through a discriminator, the
144
- composed schema that is
145
- is traveled through is added to this set.
146
- For example if Animal has a discriminator
147
- petType and we pass in "Dog", and the class Dog
148
- allOf includes Animal, we move through Animal
149
- once using the discriminator, and pick Dog.
150
- Then in Dog, we will make an instance of the
151
- Animal class but this time we won't travel
152
- through its discriminator because we passed in
153
- _visited_composed_classes = (Animal,)
154
- errors ([CommonError]): [optional] # noqa: E501
155
- warnings ([CommonWarning]): [optional] # noqa: E501
156
- """
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
- _path_to_item = kwargs.pop('_path_to_item', ())
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- self = super(OpenApiModel, cls).__new__(cls)
165
-
166
- if args:
167
- for arg in args:
168
- if isinstance(arg, dict):
169
- kwargs.update(arg)
170
- else:
171
- raise ApiTypeError(
172
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
- args,
174
- self.__class__.__name__,
175
- ),
176
- path_to_item=_path_to_item,
177
- valid_classes=(self.__class__,),
178
- )
179
-
180
- self._data_store = {}
181
- self._check_type = _check_type
182
- self._spec_property_naming = _spec_property_naming
183
- self._path_to_item = _path_to_item
184
- self._configuration = _configuration
185
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
-
187
- self.data = data
188
- for var_name, var_value in kwargs.items():
189
- if var_name not in self.attribute_map and \
190
- self._configuration is not None and \
191
- self._configuration.discard_unknown_keys and \
192
- self.additional_properties_type is None:
193
- # discard variable.
194
- continue
195
- setattr(self, var_name, var_value)
196
- return self
197
-
198
- required_properties = set([
199
- '_data_store',
200
- '_check_type',
201
- '_spec_property_naming',
202
- '_path_to_item',
203
- '_configuration',
204
- '_visited_composed_classes',
205
- ])
206
-
207
- @convert_js_args_to_python_args
208
- def __init__(self, data, *args, **kwargs): # noqa: E501
209
- """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI
210
-
211
- Args:
212
- data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus):
213
-
214
- Keyword Args:
215
- _check_type (bool): if True, values for parameters in openapi_types
216
- will be type checked and a TypeError will be
217
- raised if the wrong type is input.
218
- Defaults to True
219
- _path_to_item (tuple/list): This is a list of keys or values to
220
- drill down to the model in received_data
221
- when deserializing a response
222
- _spec_property_naming (bool): True if the variable names in the input data
223
- are serialized names, as specified in the OpenAPI document.
224
- False if the variable names in the input data
225
- are pythonic names, e.g. snake case (default)
226
- _configuration (Configuration): the instance to use when
227
- deserializing a file_type parameter.
228
- If passed, type conversion is attempted
229
- If omitted no type conversion is done.
230
- _visited_composed_classes (tuple): This stores a tuple of
231
- classes that we have traveled through so that
232
- if we see that class again we will not use its
233
- discriminator again.
234
- When traveling through a discriminator, the
235
- composed schema that is
236
- is traveled through is added to this set.
237
- For example if Animal has a discriminator
238
- petType and we pass in "Dog", and the class Dog
239
- allOf includes Animal, we move through Animal
240
- once using the discriminator, and pick Dog.
241
- Then in Dog, we will make an instance of the
242
- Animal class but this time we won't travel
243
- through its discriminator because we passed in
244
- _visited_composed_classes = (Animal,)
245
- errors ([CommonError]): [optional] # noqa: E501
246
- warnings ([CommonWarning]): [optional] # noqa: E501
247
- """
248
-
249
- _check_type = kwargs.pop('_check_type', True)
250
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
251
- _path_to_item = kwargs.pop('_path_to_item', ())
252
- _configuration = kwargs.pop('_configuration', None)
253
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
254
-
255
- if args:
256
- for arg in args:
257
- if isinstance(arg, dict):
258
- kwargs.update(arg)
259
- else:
260
- raise ApiTypeError(
261
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
262
- args,
263
- self.__class__.__name__,
264
- ),
265
- path_to_item=_path_to_item,
266
- valid_classes=(self.__class__,),
267
- )
268
-
269
- self._data_store = {}
270
- self._check_type = _check_type
271
- self._spec_property_naming = _spec_property_naming
272
- self._path_to_item = _path_to_item
273
- self._configuration = _configuration
274
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
-
276
- self.data = data
277
- for var_name, var_value in kwargs.items():
278
- if var_name not in self.attribute_map and \
279
- self._configuration is not None and \
280
- self._configuration.discard_unknown_keys and \
281
- self.additional_properties_type is None:
282
- # discard variable.
283
- continue
284
- setattr(self, var_name, var_value)
285
- if var_name in self.read_only_vars:
286
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
287
- f"class with read only attributes.")