criteo-api-retailmedia-sdk 2024.10.0.250129__py3-none-any.whl → 2024.10.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.
- {criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/RECORD +13 -14
- criteo_api_retailmedia_v2024_10/__init__.py +1 -1
- criteo_api_retailmedia_v2024_10/api/campaign_api.py +4 -3
- criteo_api_retailmedia_v2024_10/api_client.py +1 -1
- criteo_api_retailmedia_v2024_10/configuration.py +1 -1
- criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +4 -0
- criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +4 -0
- criteo_api_retailmedia_v2024_10/model/external_retailer.py +2 -0
- criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py +31 -18
- criteo_api_retailmedia_v2024_10/models/__init__.py +0 -1
- criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_attributes.py +0 -292
- {criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: criteo-api-retailmedia-sdk
|
|
3
|
-
Version: 2024.10.0.
|
|
3
|
+
Version: 2024.10.0.250205
|
|
4
4
|
Summary: Criteo API SDK
|
|
5
5
|
Home-page: https://github.com/criteo/criteo-api-python-sdk
|
|
6
6
|
Author: Criteo
|
|
@@ -35,9 +35,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
pip install criteo-api-retailmedia-sdk==2024.10.0.
|
|
38
|
+
pip install criteo-api-retailmedia-sdk==2024.10.0.250205
|
|
39
39
|
```
|
|
40
|
-
(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.10.0.
|
|
40
|
+
(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.10.0.250205`)
|
|
41
41
|
|
|
42
42
|
Then import the package:
|
|
43
43
|
```python
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
criteo_api_retailmedia_v2024_10/__init__.py,sha256=
|
|
2
|
-
criteo_api_retailmedia_v2024_10/api_client.py,sha256=
|
|
1
|
+
criteo_api_retailmedia_v2024_10/__init__.py,sha256=eULbHnDQRNDnriNoC_Tg98psseBEQ1XgycJh545KnLo,1040
|
|
2
|
+
criteo_api_retailmedia_v2024_10/api_client.py,sha256=GudmfU7V1GRzdyZZQgBRl5x7VoSbuBJjIBqkSAxoCPM,39191
|
|
3
3
|
criteo_api_retailmedia_v2024_10/api_client_builder.py,sha256=ZCLz9pop_T23o389WSILSqkazMFZlq7cdDAVtoE7zh4,1507
|
|
4
|
-
criteo_api_retailmedia_v2024_10/configuration.py,sha256=
|
|
4
|
+
criteo_api_retailmedia_v2024_10/configuration.py,sha256=0Oxjpbhqlme9oQNMEy-scxdI7_PHlGF6ZWvq-OWzX-0,16722
|
|
5
5
|
criteo_api_retailmedia_v2024_10/criteo_api_client.py,sha256=7pyh5LfVmEHbUyDXFwQfTC7gIb5TWnNX-To85iyu45M,654
|
|
6
6
|
criteo_api_retailmedia_v2024_10/criteo_auth.py,sha256=b_dprtST7RVtOtwlD_98A8bO0lWnU98kw2Za9nOgZ1M,4696
|
|
7
7
|
criteo_api_retailmedia_v2024_10/criteo_rest.py,sha256=uthl4t2dcWQRJqVkQWruvYMT8RVx7ksfarqkyLAtnng,3413
|
|
@@ -14,7 +14,7 @@ criteo_api_retailmedia_v2024_10/api/accounts_api.py,sha256=ivbxy6sdiu-uVqqx2Xgg4
|
|
|
14
14
|
criteo_api_retailmedia_v2024_10/api/analytics_api.py,sha256=r32jR4vGuk8SWLHQYfkxbAwPpF5HtI8KRaXfn6wQyd8,28503
|
|
15
15
|
criteo_api_retailmedia_v2024_10/api/audience_api.py,sha256=mIoJpiteoPgYMIGqJbDNW8dFM9Tk7hJwl8-IXf2OcjM,52404
|
|
16
16
|
criteo_api_retailmedia_v2024_10/api/balance_api.py,sha256=8lOrdpaP0ZG_FE2nka2y6EshnS9w9q_FcCn304wDOx8,52564
|
|
17
|
-
criteo_api_retailmedia_v2024_10/api/campaign_api.py,sha256=
|
|
17
|
+
criteo_api_retailmedia_v2024_10/api/campaign_api.py,sha256=vktOqf8a9kw_Gil0v4NE50_i4VzRHn2krR6BpCtZPX8,362844
|
|
18
18
|
criteo_api_retailmedia_v2024_10/api/gateway_api.py,sha256=ZjTg3X8GAgZ5z899vdRB4sSi6rFKFurYiGrzrUK7P98,5696
|
|
19
19
|
criteo_api_retailmedia_v2024_10/apis/__init__.py,sha256=qQwfiY5gc6ftQ8Hngtg725YqLuNeB1vw8YOmT56I76E,882
|
|
20
20
|
criteo_api_retailmedia_v2024_10/model/__init__.py,sha256=a7uZRgIo8W2P40TYS5TAN0LcSaPAbX8wO5wOwbHn3zE,365
|
|
@@ -33,10 +33,10 @@ criteo_api_retailmedia_v2024_10/model/application_summary_model_response.py,sha2
|
|
|
33
33
|
criteo_api_retailmedia_v2024_10/model/asset.py,sha256=E5VR7w_f8sWYn8P6unnTkUASGj8VrhYHpW7o9lcq9E8,12253
|
|
34
34
|
criteo_api_retailmedia_v2024_10/model/asset_resource.py,sha256=eru7ik0QyaTi6kx1pu2LK3d67B9hq6OaxhcYgkR5q_I,11993
|
|
35
35
|
criteo_api_retailmedia_v2024_10/model/asset_response.py,sha256=kVhsRqmLLlwZ4KzVxKKS6NVvs0MDYPC64pfAIhcM4Dk,12398
|
|
36
|
-
criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py,sha256=
|
|
36
|
+
criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py,sha256=GLoAu65sazY3UH6LzegUvDeVkNttCaPyaILcT5HH03M,22206
|
|
37
37
|
criteo_api_retailmedia_v2024_10/model/async_campaigns_report_request.py,sha256=P5icD-egCCxygG6OK3g_1Zn3wi2rubfIAmMeOQyEu0o,11757
|
|
38
38
|
criteo_api_retailmedia_v2024_10/model/async_campaigns_report_resource.py,sha256=zgqN2IyOby3W112yS_ubrPY1TOgg4HOyOHG9yrJ2IcY,11944
|
|
39
|
-
criteo_api_retailmedia_v2024_10/model/async_line_items_report.py,sha256=
|
|
39
|
+
criteo_api_retailmedia_v2024_10/model/async_line_items_report.py,sha256=G8c31LfsEph6uie4p_TjvjQMgKCVyyrNoWcrp8ePJtY,22210
|
|
40
40
|
criteo_api_retailmedia_v2024_10/model/async_line_items_report_request.py,sha256=iPoV46G14DqbUpTx5e8TJvrz984T8zqLb-le__Smw-Q,11758
|
|
41
41
|
criteo_api_retailmedia_v2024_10/model/async_line_items_report_resource.py,sha256=0sHIkPc7ik3vrzzH3XyJ4BcK1Fsm646UuFZLOJ-LI_U,11945
|
|
42
42
|
criteo_api_retailmedia_v2024_10/model/async_report_response.py,sha256=-v4iKO65wYcY3mtjz1tgqGvNAqXKUgdamhhnCG5Zyp0,12410
|
|
@@ -117,7 +117,7 @@ criteo_api_retailmedia_v2024_10/model/external_retail_media_brand_account_creati
|
|
|
117
117
|
criteo_api_retailmedia_v2024_10/model/external_retail_media_brands.py,sha256=CvyKCCkqp1eTMCc5ulg-9IDPsbvXkh4gRuP4cuovKeM,11450
|
|
118
118
|
criteo_api_retailmedia_v2024_10/model/external_retail_media_seller.py,sha256=xlKVgQbA-toCdn9jG8kAqowcxV69U-uUl8XZyblNW0Y,11655
|
|
119
119
|
criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py,sha256=mS7sVjZ2Sy1nO05zoYGIVroyfMjIFBvn3r44cIUaTV8,12554
|
|
120
|
-
criteo_api_retailmedia_v2024_10/model/external_retailer.py,sha256=
|
|
120
|
+
criteo_api_retailmedia_v2024_10/model/external_retailer.py,sha256=QPSLvWsrjE5aeNxmdd4DUm73Sytg8kDApViAyGR0oZs,12001
|
|
121
121
|
criteo_api_retailmedia_v2024_10/model/external_retailer_pages202110.py,sha256=mfV_WBZkgB4Jlyxgg32q9Ij7cPNT1jE-ZhtbXy2-Wf4,11533
|
|
122
122
|
criteo_api_retailmedia_v2024_10/model/external_store_ids_update_model202110.py,sha256=1VMcYc5eT-n44cYkU33f_u6mUMJnDWfb571E_dFJ9I4,11614
|
|
123
123
|
criteo_api_retailmedia_v2024_10/model/external_store_target202110.py,sha256=RI1JCQhFJj-8xItefxGtXmjAXS33D-8dBXtsStMvVyU,11978
|
|
@@ -195,8 +195,7 @@ criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_v2.py,sha2
|
|
|
195
195
|
criteo_api_retailmedia_v2024_10/model/resource_of_template.py,sha256=bkK_FgMvYsGvhZsPFFIHG8YavTC1F_wrtROOZlvbt28,11837
|
|
196
196
|
criteo_api_retailmedia_v2024_10/model/resource_of_update_balance_model_v2.py,sha256=yga_7EYku5W70scND3FcQB6ozJ7FZczKjySkYFwmS80,12258
|
|
197
197
|
criteo_api_retailmedia_v2024_10/model/resource_outcome.py,sha256=STrxkJFJSKxwLAthsWpYEKgwsuMWCtpsxF3v0tNdmTg,11740
|
|
198
|
-
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py,sha256=
|
|
199
|
-
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_attributes.py,sha256=ONOLXPvFrlDcJp0Z-zMZGmTvApfQkJ9VrLaNmmm0jyE,12743
|
|
198
|
+
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py,sha256=u53suYI6lRSkmzTJA8sGSopRddKA9j-vEegVxYQ8eDA,12713
|
|
200
199
|
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_request.py,sha256=E4QSemJUFFO_VROCZdLZ59dHlo6Uj9YvzT2J7d3AXM8,11853
|
|
201
200
|
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_operation.py,sha256=hDCUzefRmSQ_-ZdeCF3b3wM1V3xjfYH6p8UP2znDnPw,12752
|
|
202
201
|
criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_operation_response_attributes.py,sha256=ho56kwFUWIacK_3Ugi9KEZMcy9AABsCeH6y7iQqorHw,12397
|
|
@@ -278,8 +277,8 @@ criteo_api_retailmedia_v2024_10/model/value_type_resource_of_keyword_target20211
|
|
|
278
277
|
criteo_api_retailmedia_v2024_10/model/value_type_resource_of_store_ids_update_model202110.py,sha256=Di7hT30JxdFLRN54kvDbJkedmmTMhFW396VFB1BBHyg,12052
|
|
279
278
|
criteo_api_retailmedia_v2024_10/model/value_type_resource_of_store_target202110.py,sha256=V1OYLzkp5UKNXSjJKviHnxqzmMGSklBORb1Cxt8kdfM,11970
|
|
280
279
|
criteo_api_retailmedia_v2024_10/model/video_variable_value.py,sha256=WGlfSGhMvyP_vr3YoRGl8H-jLIc8MLpcg0EVDPpy80w,12081
|
|
281
|
-
criteo_api_retailmedia_v2024_10/models/__init__.py,sha256=
|
|
282
|
-
criteo_api_retailmedia_sdk-2024.10.0.
|
|
283
|
-
criteo_api_retailmedia_sdk-2024.10.0.
|
|
284
|
-
criteo_api_retailmedia_sdk-2024.10.0.
|
|
285
|
-
criteo_api_retailmedia_sdk-2024.10.0.
|
|
280
|
+
criteo_api_retailmedia_v2024_10/models/__init__.py,sha256=1mCUQtOGxJ422OCeljPn85ZDrarQU9I6X6kCBvFyTxk,29713
|
|
281
|
+
criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info/METADATA,sha256=u0oG4wX1Pcos6J2LIvDEAYgY4qS3sabcPcv9YSemdBk,1867
|
|
282
|
+
criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
283
|
+
criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info/top_level.txt,sha256=HR6xhbn8J-YE3VaF4y0PdrS1R4XyNb3CaDqMTibE1ZM,32
|
|
284
|
+
criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info/RECORD,,
|
|
@@ -1447,6 +1447,7 @@ class CampaignApi(object):
|
|
|
1447
1447
|
'account_id',
|
|
1448
1448
|
],
|
|
1449
1449
|
'nullable': [
|
|
1450
|
+
'limit_to_type',
|
|
1450
1451
|
],
|
|
1451
1452
|
'enum': [
|
|
1452
1453
|
'limit_to_type',
|
|
@@ -1459,7 +1460,7 @@ class CampaignApi(object):
|
|
|
1459
1460
|
},
|
|
1460
1461
|
'allowed_values': {
|
|
1461
1462
|
('limit_to_type',): {
|
|
1462
|
-
|
|
1463
|
+
'None': None,
|
|
1463
1464
|
"UNKNOWN": "Unknown",
|
|
1464
1465
|
"AUCTION": "Auction",
|
|
1465
1466
|
"PREFERRED": "Preferred"
|
|
@@ -1471,7 +1472,7 @@ class CampaignApi(object):
|
|
|
1471
1472
|
'limit_to_campaign_id':
|
|
1472
1473
|
([str],),
|
|
1473
1474
|
'limit_to_type':
|
|
1474
|
-
(str,),
|
|
1475
|
+
(str, none_type,),
|
|
1475
1476
|
'limit_to_id':
|
|
1476
1477
|
([str],),
|
|
1477
1478
|
'page_index':
|
|
@@ -5614,7 +5615,7 @@ class CampaignApi(object):
|
|
|
5614
5615
|
|
|
5615
5616
|
Keyword Args:
|
|
5616
5617
|
limit_to_campaign_id ([str]): The campaign ids that you would like to limit your result set to. [optional]
|
|
5617
|
-
limit_to_type (str): The campaign types that you would like to limit your result set to. [optional]
|
|
5618
|
+
limit_to_type (str, none_type): The campaign types that you would like to limit your result set to. [optional]
|
|
5618
5619
|
limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
|
|
5619
5620
|
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
|
|
5620
5621
|
page_size (int): The maximum number of items you would like to receive in this request. [optional]
|
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/2024.10.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/2024.10.0.250205/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: 2024-10\n"\
|
|
398
|
-
"SDK Package Version: 2024.10.0.
|
|
398
|
+
"SDK Package Version: 2024.10.0.250205".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -181,6 +181,10 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
181
181
|
'VIDEOSTARTINGRATE': "videoStartingRate",
|
|
182
182
|
'VIDEOCPC': "videoCPC",
|
|
183
183
|
'VIDEOCPCV': "videoCPCV",
|
|
184
|
+
'NEWTOBRANDATTRIBUTEDSALES': "newToBrandAttributedSales",
|
|
185
|
+
'NEWTOBRANDATTRIBUTEDSALESRATE': "newToBrandAttributedSalesRate",
|
|
186
|
+
'NEWTOBRANDATTRIBUTEDUNITS': "newToBrandAttributedUnits",
|
|
187
|
+
'NEWTOBRANDATTRIBUTEDUNITSRATE': "newToBrandAttributedUnitsRate",
|
|
184
188
|
'UNIQUEVISITORS': "uniqueVisitors",
|
|
185
189
|
'FREQUENCY': "frequency",
|
|
186
190
|
},
|
|
@@ -181,6 +181,10 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
181
181
|
'VIDEOSTARTINGRATE': "videoStartingRate",
|
|
182
182
|
'VIDEOCPC': "videoCPC",
|
|
183
183
|
'VIDEOCPCV': "videoCPCV",
|
|
184
|
+
'NEWTOBRANDATTRIBUTEDSALES': "newToBrandAttributedSales",
|
|
185
|
+
'NEWTOBRANDATTRIBUTEDSALESRATE': "newToBrandAttributedSalesRate",
|
|
186
|
+
'NEWTOBRANDATTRIBUTEDUNITS': "newToBrandAttributedUnits",
|
|
187
|
+
'NEWTOBRANDATTRIBUTEDUNITSRATE': "newToBrandAttributedUnitsRate",
|
|
184
188
|
'UNIQUEVISITORS': "uniqueVisitors",
|
|
185
189
|
'FREQUENCY': "frequency",
|
|
186
190
|
},
|
|
@@ -29,10 +29,6 @@ from criteo_api_retailmedia_v2024_10.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_amendment_attributes import RetailMediaContactlistAmendmentAttributes
|
|
34
|
-
globals()['RetailMediaContactlistAmendmentAttributes'] = RetailMediaContactlistAmendmentAttributes
|
|
35
|
-
|
|
36
32
|
|
|
37
33
|
class RetailMediaContactlistAmendment(ModelNormal):
|
|
38
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -59,6 +55,19 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
59
55
|
"""
|
|
60
56
|
|
|
61
57
|
allowed_values = {
|
|
58
|
+
('operation',): {
|
|
59
|
+
'ADD': "add",
|
|
60
|
+
'REMOVE': "remove",
|
|
61
|
+
},
|
|
62
|
+
('identifier_type',): {
|
|
63
|
+
'None': None,
|
|
64
|
+
'EMAIL': "Email",
|
|
65
|
+
'USERIDENTIFIER': "UserIdentifier",
|
|
66
|
+
'IDENTITYLINK': "IdentityLink",
|
|
67
|
+
'GUM': "Gum",
|
|
68
|
+
'CUSTOMERID': "CustomerId",
|
|
69
|
+
'PHONENUMBER': "PhoneNumber",
|
|
70
|
+
},
|
|
62
71
|
}
|
|
63
72
|
|
|
64
73
|
validations = {
|
|
@@ -70,7 +79,6 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
70
79
|
This must be a method because a model may have properties that are
|
|
71
80
|
of type self, this must run after the class is loaded
|
|
72
81
|
"""
|
|
73
|
-
lazy_import()
|
|
74
82
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
83
|
|
|
76
84
|
_nullable = False
|
|
@@ -85,10 +93,10 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
85
93
|
openapi_types (dict): The key is attribute name
|
|
86
94
|
and the value is attribute type.
|
|
87
95
|
"""
|
|
88
|
-
lazy_import()
|
|
89
96
|
return {
|
|
90
|
-
'
|
|
91
|
-
'
|
|
97
|
+
'operation': (str,), # noqa: E501
|
|
98
|
+
'identifiers': ([str],), # noqa: E501
|
|
99
|
+
'identifier_type': (str, none_type,), # noqa: E501
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
@cached_property
|
|
@@ -97,8 +105,9 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
97
105
|
|
|
98
106
|
|
|
99
107
|
attribute_map = {
|
|
100
|
-
'
|
|
101
|
-
'
|
|
108
|
+
'operation': 'operation', # noqa: E501
|
|
109
|
+
'identifiers': 'identifiers', # noqa: E501
|
|
110
|
+
'identifier_type': 'identifierType', # noqa: E501
|
|
102
111
|
}
|
|
103
112
|
|
|
104
113
|
read_only_vars = {
|
|
@@ -108,11 +117,12 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
108
117
|
|
|
109
118
|
@classmethod
|
|
110
119
|
@convert_js_args_to_python_args
|
|
111
|
-
def _from_openapi_data(cls,
|
|
120
|
+
def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501
|
|
112
121
|
"""RetailMediaContactlistAmendment - a model defined in OpenAPI
|
|
113
122
|
|
|
114
123
|
Args:
|
|
115
|
-
|
|
124
|
+
operation (str): Whether to add or remove users
|
|
125
|
+
identifiers ([str]): The users to add or remove, each in the schema specified
|
|
116
126
|
|
|
117
127
|
Keyword Args:
|
|
118
128
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -145,7 +155,7 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
145
155
|
Animal class but this time we won't travel
|
|
146
156
|
through its discriminator because we passed in
|
|
147
157
|
_visited_composed_classes = (Animal,)
|
|
148
|
-
|
|
158
|
+
identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
|
|
149
159
|
"""
|
|
150
160
|
|
|
151
161
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -177,7 +187,8 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
177
187
|
self._configuration = _configuration
|
|
178
188
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
179
189
|
|
|
180
|
-
self.
|
|
190
|
+
self.operation = operation
|
|
191
|
+
self.identifiers = identifiers
|
|
181
192
|
for var_name, var_value in kwargs.items():
|
|
182
193
|
if var_name not in self.attribute_map and \
|
|
183
194
|
self._configuration is not None and \
|
|
@@ -198,11 +209,12 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
198
209
|
])
|
|
199
210
|
|
|
200
211
|
@convert_js_args_to_python_args
|
|
201
|
-
def __init__(self,
|
|
212
|
+
def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501
|
|
202
213
|
"""RetailMediaContactlistAmendment - a model defined in OpenAPI
|
|
203
214
|
|
|
204
215
|
Args:
|
|
205
|
-
|
|
216
|
+
operation (str): Whether to add or remove users
|
|
217
|
+
identifiers ([str]): The users to add or remove, each in the schema specified
|
|
206
218
|
|
|
207
219
|
Keyword Args:
|
|
208
220
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -235,7 +247,7 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
235
247
|
Animal class but this time we won't travel
|
|
236
248
|
through its discriminator because we passed in
|
|
237
249
|
_visited_composed_classes = (Animal,)
|
|
238
|
-
|
|
250
|
+
identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
|
|
239
251
|
"""
|
|
240
252
|
|
|
241
253
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -265,7 +277,8 @@ class RetailMediaContactlistAmendment(ModelNormal):
|
|
|
265
277
|
self._configuration = _configuration
|
|
266
278
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
267
279
|
|
|
268
|
-
self.
|
|
280
|
+
self.operation = operation
|
|
281
|
+
self.identifiers = identifiers
|
|
269
282
|
for var_name, var_value in kwargs.items():
|
|
270
283
|
if var_name not in self.attribute_map and \
|
|
271
284
|
self._configuration is not None and \
|
|
@@ -187,7 +187,6 @@ from criteo_api_retailmedia_v2024_10.model.resource_of_template import ResourceO
|
|
|
187
187
|
from criteo_api_retailmedia_v2024_10.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2
|
|
188
188
|
from criteo_api_retailmedia_v2024_10.model.resource_outcome import ResourceOutcome
|
|
189
189
|
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_amendment import RetailMediaContactlistAmendment
|
|
190
|
-
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_amendment_attributes import RetailMediaContactlistAmendmentAttributes
|
|
191
190
|
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_amendment_request import RetailMediaContactlistAmendmentRequest
|
|
192
191
|
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_operation import RetailMediaContactlistOperation
|
|
193
192
|
from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_operation_response_attributes import RetailMediaContactlistOperationResponseAttributes
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - RetailMedia # noqa: E501
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2024-10
|
|
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_v2024_10.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_v2024_10.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class RetailMediaContactlistAmendmentAttributes(ModelNormal):
|
|
34
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
-
Ref: https://openapi-generator.tech
|
|
36
|
-
|
|
37
|
-
Do not edit the class manually.
|
|
38
|
-
|
|
39
|
-
Attributes:
|
|
40
|
-
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
-
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
-
with a capitalized key describing the allowed value and an allowed
|
|
43
|
-
value. These dicts store the allowed enum values.
|
|
44
|
-
attribute_map (dict): The key is attribute name
|
|
45
|
-
and the value is json key in definition.
|
|
46
|
-
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
-
variable value to the discriminator class name.
|
|
48
|
-
validations (dict): The key is the tuple path to the attribute
|
|
49
|
-
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
-
that stores validations for max_length, min_length, max_items,
|
|
51
|
-
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
-
inclusive_minimum, and regex.
|
|
53
|
-
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
-
as additional properties values.
|
|
55
|
-
"""
|
|
56
|
-
|
|
57
|
-
allowed_values = {
|
|
58
|
-
('operation',): {
|
|
59
|
-
'ADD': "add",
|
|
60
|
-
'REMOVE': "remove",
|
|
61
|
-
},
|
|
62
|
-
('identifier_type',): {
|
|
63
|
-
'None': None,
|
|
64
|
-
'EMAIL': "Email",
|
|
65
|
-
'USERIDENTIFIER': "UserIdentifier",
|
|
66
|
-
'IDENTITYLINK': "IdentityLink",
|
|
67
|
-
'GUM': "Gum",
|
|
68
|
-
'CUSTOMERID': "CustomerId",
|
|
69
|
-
'PHONENUMBER': "PhoneNumber",
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
validations = {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@cached_property
|
|
77
|
-
def additional_properties_type():
|
|
78
|
-
"""
|
|
79
|
-
This must be a method because a model may have properties that are
|
|
80
|
-
of type self, this must run after the class is loaded
|
|
81
|
-
"""
|
|
82
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
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
|
-
return {
|
|
97
|
-
'operation': (str,), # noqa: E501
|
|
98
|
-
'identifiers': ([str],), # noqa: E501
|
|
99
|
-
'identifier_type': (str, none_type,), # noqa: E501
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@cached_property
|
|
103
|
-
def discriminator():
|
|
104
|
-
return None
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
attribute_map = {
|
|
108
|
-
'operation': 'operation', # noqa: E501
|
|
109
|
-
'identifiers': 'identifiers', # noqa: E501
|
|
110
|
-
'identifier_type': 'identifierType', # noqa: E501
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
read_only_vars = {
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
_composed_schemas = {}
|
|
117
|
-
|
|
118
|
-
@classmethod
|
|
119
|
-
@convert_js_args_to_python_args
|
|
120
|
-
def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501
|
|
121
|
-
"""RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
|
|
122
|
-
|
|
123
|
-
Args:
|
|
124
|
-
operation (str): Whether to add or remove users
|
|
125
|
-
identifiers ([str]): The users to add or remove, each in the schema specified
|
|
126
|
-
|
|
127
|
-
Keyword Args:
|
|
128
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
129
|
-
will be type checked and a TypeError will be
|
|
130
|
-
raised if the wrong type is input.
|
|
131
|
-
Defaults to True
|
|
132
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
133
|
-
drill down to the model in received_data
|
|
134
|
-
when deserializing a response
|
|
135
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
136
|
-
are serialized names, as specified in the OpenAPI document.
|
|
137
|
-
False if the variable names in the input data
|
|
138
|
-
are pythonic names, e.g. snake case (default)
|
|
139
|
-
_configuration (Configuration): the instance to use when
|
|
140
|
-
deserializing a file_type parameter.
|
|
141
|
-
If passed, type conversion is attempted
|
|
142
|
-
If omitted no type conversion is done.
|
|
143
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
144
|
-
classes that we have traveled through so that
|
|
145
|
-
if we see that class again we will not use its
|
|
146
|
-
discriminator again.
|
|
147
|
-
When traveling through a discriminator, the
|
|
148
|
-
composed schema that is
|
|
149
|
-
is traveled through is added to this set.
|
|
150
|
-
For example if Animal has a discriminator
|
|
151
|
-
petType and we pass in "Dog", and the class Dog
|
|
152
|
-
allOf includes Animal, we move through Animal
|
|
153
|
-
once using the discriminator, and pick Dog.
|
|
154
|
-
Then in Dog, we will make an instance of the
|
|
155
|
-
Animal class but this time we won't travel
|
|
156
|
-
through its discriminator because we passed in
|
|
157
|
-
_visited_composed_classes = (Animal,)
|
|
158
|
-
identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
|
|
159
|
-
"""
|
|
160
|
-
|
|
161
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
162
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
163
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
164
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
165
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
166
|
-
|
|
167
|
-
self = super(OpenApiModel, cls).__new__(cls)
|
|
168
|
-
|
|
169
|
-
if args:
|
|
170
|
-
for arg in args:
|
|
171
|
-
if isinstance(arg, dict):
|
|
172
|
-
kwargs.update(arg)
|
|
173
|
-
else:
|
|
174
|
-
raise ApiTypeError(
|
|
175
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
176
|
-
args,
|
|
177
|
-
self.__class__.__name__,
|
|
178
|
-
),
|
|
179
|
-
path_to_item=_path_to_item,
|
|
180
|
-
valid_classes=(self.__class__,),
|
|
181
|
-
)
|
|
182
|
-
|
|
183
|
-
self._data_store = {}
|
|
184
|
-
self._check_type = _check_type
|
|
185
|
-
self._spec_property_naming = _spec_property_naming
|
|
186
|
-
self._path_to_item = _path_to_item
|
|
187
|
-
self._configuration = _configuration
|
|
188
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
189
|
-
|
|
190
|
-
self.operation = operation
|
|
191
|
-
self.identifiers = identifiers
|
|
192
|
-
for var_name, var_value in kwargs.items():
|
|
193
|
-
if var_name not in self.attribute_map and \
|
|
194
|
-
self._configuration is not None and \
|
|
195
|
-
self._configuration.discard_unknown_keys and \
|
|
196
|
-
self.additional_properties_type is None:
|
|
197
|
-
# discard variable.
|
|
198
|
-
continue
|
|
199
|
-
setattr(self, var_name, var_value)
|
|
200
|
-
return self
|
|
201
|
-
|
|
202
|
-
required_properties = set([
|
|
203
|
-
'_data_store',
|
|
204
|
-
'_check_type',
|
|
205
|
-
'_spec_property_naming',
|
|
206
|
-
'_path_to_item',
|
|
207
|
-
'_configuration',
|
|
208
|
-
'_visited_composed_classes',
|
|
209
|
-
])
|
|
210
|
-
|
|
211
|
-
@convert_js_args_to_python_args
|
|
212
|
-
def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501
|
|
213
|
-
"""RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
|
|
214
|
-
|
|
215
|
-
Args:
|
|
216
|
-
operation (str): Whether to add or remove users
|
|
217
|
-
identifiers ([str]): The users to add or remove, each in the schema specified
|
|
218
|
-
|
|
219
|
-
Keyword Args:
|
|
220
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
221
|
-
will be type checked and a TypeError will be
|
|
222
|
-
raised if the wrong type is input.
|
|
223
|
-
Defaults to True
|
|
224
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
225
|
-
drill down to the model in received_data
|
|
226
|
-
when deserializing a response
|
|
227
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
228
|
-
are serialized names, as specified in the OpenAPI document.
|
|
229
|
-
False if the variable names in the input data
|
|
230
|
-
are pythonic names, e.g. snake case (default)
|
|
231
|
-
_configuration (Configuration): the instance to use when
|
|
232
|
-
deserializing a file_type parameter.
|
|
233
|
-
If passed, type conversion is attempted
|
|
234
|
-
If omitted no type conversion is done.
|
|
235
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
236
|
-
classes that we have traveled through so that
|
|
237
|
-
if we see that class again we will not use its
|
|
238
|
-
discriminator again.
|
|
239
|
-
When traveling through a discriminator, the
|
|
240
|
-
composed schema that is
|
|
241
|
-
is traveled through is added to this set.
|
|
242
|
-
For example if Animal has a discriminator
|
|
243
|
-
petType and we pass in "Dog", and the class Dog
|
|
244
|
-
allOf includes Animal, we move through Animal
|
|
245
|
-
once using the discriminator, and pick Dog.
|
|
246
|
-
Then in Dog, we will make an instance of the
|
|
247
|
-
Animal class but this time we won't travel
|
|
248
|
-
through its discriminator because we passed in
|
|
249
|
-
_visited_composed_classes = (Animal,)
|
|
250
|
-
identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
|
|
251
|
-
"""
|
|
252
|
-
|
|
253
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
254
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
255
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
256
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
257
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
258
|
-
|
|
259
|
-
if args:
|
|
260
|
-
for arg in args:
|
|
261
|
-
if isinstance(arg, dict):
|
|
262
|
-
kwargs.update(arg)
|
|
263
|
-
else:
|
|
264
|
-
raise ApiTypeError(
|
|
265
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
266
|
-
args,
|
|
267
|
-
self.__class__.__name__,
|
|
268
|
-
),
|
|
269
|
-
path_to_item=_path_to_item,
|
|
270
|
-
valid_classes=(self.__class__,),
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
self._data_store = {}
|
|
274
|
-
self._check_type = _check_type
|
|
275
|
-
self._spec_property_naming = _spec_property_naming
|
|
276
|
-
self._path_to_item = _path_to_item
|
|
277
|
-
self._configuration = _configuration
|
|
278
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
279
|
-
|
|
280
|
-
self.operation = operation
|
|
281
|
-
self.identifiers = identifiers
|
|
282
|
-
for var_name, var_value in kwargs.items():
|
|
283
|
-
if var_name not in self.attribute_map and \
|
|
284
|
-
self._configuration is not None and \
|
|
285
|
-
self._configuration.discard_unknown_keys and \
|
|
286
|
-
self.additional_properties_type is None:
|
|
287
|
-
# discard variable.
|
|
288
|
-
continue
|
|
289
|
-
setattr(self, var_name, var_value)
|
|
290
|
-
if var_name in self.read_only_vars:
|
|
291
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
292
|
-
f"class with read only attributes.")
|
|
File without changes
|