criteo-api-retailmedia-sdk 0.0.240808__py3-none-any.whl → 0.0.241029__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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +148 -0
- criteo_api_retailmedia_preview/api/analytics_api.py +3 -3
- criteo_api_retailmedia_preview/api/audience_api.py +89 -232
- criteo_api_retailmedia_preview/api/campaign_api.py +0 -564
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +186 -0
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/bot_message.py +277 -0
- criteo_api_retailmedia_preview/model/botmessage.py +329 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_list_response.py → entity_resource_collection_outcome_of_retail_media_account.py} +8 -8
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_resource.py → entity_resource_of_retail_media_account.py} +9 -18
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2.py → external_retail_media_account.py} +54 -32
- criteo_api_retailmedia_preview/model/{value_resource_input_of_line_item_budget_overrides.py → http_validation_error.py} +17 -10
- criteo_api_retailmedia_preview/model/inbot_discussion.py +272 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → inbot_discussion_body_model.py} +17 -17
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_user_behavior_details_v2.py → inbot_discussion_data_instance_model.py} +17 -17
- criteo_api_retailmedia_preview/model/{value_resource_input_of_campaign_budget_overrides.py → location_inner.py} +10 -13
- criteo_api_retailmedia_preview/model/message.py +273 -0
- criteo_api_retailmedia_preview/model/message_body_model.py +275 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_line_item_budget_overrides.py → message_data_instance_model.py} +27 -14
- criteo_api_retailmedia_preview/model/message_error.py +275 -0
- criteo_api_retailmedia_preview/model/product.py +4 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v1.py → product_recommendation.py} +46 -47
- criteo_api_retailmedia_preview/model/report_detail_warning.py +285 -0
- criteo_api_retailmedia_preview/model/report_detail_warnings.py +281 -0
- criteo_api_retailmedia_preview/model/report_ok_response.py +16 -2
- criteo_api_retailmedia_preview/model/retail_media_account.py +6 -2
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +6 -2
- criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +275 -0
- criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +307 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_resource.py → rm_audience_entity_v1_resource.py} +8 -8
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_list_response.py → rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py} +14 -8
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +271 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_campaign_budget_overrides.py → rm_audience_search_entity_v1_resource.py} +16 -9
- criteo_api_retailmedia_preview/model/rm_audience_search_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +271 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +17 -9
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +7 -7
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +5 -5
- criteo_api_retailmedia_preview/model/{rm_user_behavior_v1.py → rm_events_v1.py} +3 -3
- criteo_api_retailmedia_preview/model/validation_error.py +287 -0
- criteo_api_retailmedia_preview/models/__init__.py +27 -23
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/RECORD +50 -45
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/campaign_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py +0 -281
- criteo_api_retailmedia_preview/model/line_item_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py +0 -283
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +0 -291
- criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py +0 -311
- criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py +0 -274
- criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py +0 -274
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/top_level.txt +0 -0
|
@@ -29,14 +29,8 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
|
|
34
|
-
from criteo_api_retailmedia_preview.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
|
|
35
|
-
globals()['RmLegacyAudienceUserBehaviorDetailsV2'] = RmLegacyAudienceUserBehaviorDetailsV2
|
|
36
|
-
globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
33
|
+
class ExternalRetailMediaAccount(ModelNormal):
|
|
40
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
35
|
Ref: https://openapi-generator.tech
|
|
42
36
|
|
|
@@ -61,6 +55,16 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
61
55
|
"""
|
|
62
56
|
|
|
63
57
|
allowed_values = {
|
|
58
|
+
('type',): {
|
|
59
|
+
'UNKNOWN': "Unknown",
|
|
60
|
+
'SUPPLY': "Supply",
|
|
61
|
+
'DEMAND': "Demand",
|
|
62
|
+
},
|
|
63
|
+
('sub_type',): {
|
|
64
|
+
'UNKNOWN': "Unknown",
|
|
65
|
+
'BRAND': "Brand",
|
|
66
|
+
'SELLER': "Seller",
|
|
67
|
+
},
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
validations = {
|
|
@@ -72,7 +76,6 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
72
76
|
This must be a method because a model may have properties that are
|
|
73
77
|
of type self, this must run after the class is loaded
|
|
74
78
|
"""
|
|
75
|
-
lazy_import()
|
|
76
79
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
77
80
|
|
|
78
81
|
_nullable = False
|
|
@@ -87,12 +90,16 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
87
90
|
openapi_types (dict): The key is attribute name
|
|
88
91
|
and the value is attribute type.
|
|
89
92
|
"""
|
|
90
|
-
lazy_import()
|
|
91
93
|
return {
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
94
|
+
'type': (str,), # noqa: E501
|
|
95
|
+
'sub_type': (str,), # noqa: E501
|
|
96
|
+
'name': (str, none_type,), # noqa: E501
|
|
97
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
98
|
+
'on_behalf_company_name': (str, none_type,), # noqa: E501
|
|
99
|
+
'country_ids': ([str], none_type,), # noqa: E501
|
|
100
|
+
'currency_id': (str, none_type,), # noqa: E501
|
|
101
|
+
'parent_account_label': (str, none_type,), # noqa: E501
|
|
102
|
+
'time_zone': (str, none_type,), # noqa: E501
|
|
96
103
|
}
|
|
97
104
|
|
|
98
105
|
@cached_property
|
|
@@ -101,10 +108,15 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
101
108
|
|
|
102
109
|
|
|
103
110
|
attribute_map = {
|
|
104
|
-
'
|
|
111
|
+
'type': 'type', # noqa: E501
|
|
112
|
+
'sub_type': 'subType', # noqa: E501
|
|
105
113
|
'name': 'name', # noqa: E501
|
|
106
|
-
'
|
|
107
|
-
'
|
|
114
|
+
'company_name': 'companyName', # noqa: E501
|
|
115
|
+
'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
|
|
116
|
+
'country_ids': 'countryIds', # noqa: E501
|
|
117
|
+
'currency_id': 'currencyId', # noqa: E501
|
|
118
|
+
'parent_account_label': 'parentAccountLabel', # noqa: E501
|
|
119
|
+
'time_zone': 'timeZone', # noqa: E501
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
read_only_vars = {
|
|
@@ -114,12 +126,12 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
114
126
|
|
|
115
127
|
@classmethod
|
|
116
128
|
@convert_js_args_to_python_args
|
|
117
|
-
def _from_openapi_data(cls,
|
|
118
|
-
"""
|
|
129
|
+
def _from_openapi_data(cls, type, sub_type, *args, **kwargs): # noqa: E501
|
|
130
|
+
"""ExternalRetailMediaAccount - a model defined in OpenAPI
|
|
119
131
|
|
|
120
132
|
Args:
|
|
121
|
-
|
|
122
|
-
|
|
133
|
+
type (str):
|
|
134
|
+
sub_type (str):
|
|
123
135
|
|
|
124
136
|
Keyword Args:
|
|
125
137
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -152,8 +164,13 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
152
164
|
Animal class but this time we won't travel
|
|
153
165
|
through its discriminator because we passed in
|
|
154
166
|
_visited_composed_classes = (Animal,)
|
|
155
|
-
|
|
156
|
-
|
|
167
|
+
name (str, none_type): [optional] # noqa: E501
|
|
168
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
169
|
+
on_behalf_company_name (str, none_type): [optional] # noqa: E501
|
|
170
|
+
country_ids ([str], none_type): [optional] # noqa: E501
|
|
171
|
+
currency_id (str, none_type): [optional] # noqa: E501
|
|
172
|
+
parent_account_label (str, none_type): [optional] # noqa: E501
|
|
173
|
+
time_zone (str, none_type): [optional] # noqa: E501
|
|
157
174
|
"""
|
|
158
175
|
|
|
159
176
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -185,8 +202,8 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
185
202
|
self._configuration = _configuration
|
|
186
203
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
187
204
|
|
|
188
|
-
self.
|
|
189
|
-
self.
|
|
205
|
+
self.type = type
|
|
206
|
+
self.sub_type = sub_type
|
|
190
207
|
for var_name, var_value in kwargs.items():
|
|
191
208
|
if var_name not in self.attribute_map and \
|
|
192
209
|
self._configuration is not None and \
|
|
@@ -207,12 +224,12 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
207
224
|
])
|
|
208
225
|
|
|
209
226
|
@convert_js_args_to_python_args
|
|
210
|
-
def __init__(self,
|
|
211
|
-
"""
|
|
227
|
+
def __init__(self, type, sub_type, *args, **kwargs): # noqa: E501
|
|
228
|
+
"""ExternalRetailMediaAccount - a model defined in OpenAPI
|
|
212
229
|
|
|
213
230
|
Args:
|
|
214
|
-
|
|
215
|
-
|
|
231
|
+
type (str):
|
|
232
|
+
sub_type (str):
|
|
216
233
|
|
|
217
234
|
Keyword Args:
|
|
218
235
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -245,8 +262,13 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
245
262
|
Animal class but this time we won't travel
|
|
246
263
|
through its discriminator because we passed in
|
|
247
264
|
_visited_composed_classes = (Animal,)
|
|
248
|
-
|
|
249
|
-
|
|
265
|
+
name (str, none_type): [optional] # noqa: E501
|
|
266
|
+
company_name (str, none_type): [optional] # noqa: E501
|
|
267
|
+
on_behalf_company_name (str, none_type): [optional] # noqa: E501
|
|
268
|
+
country_ids ([str], none_type): [optional] # noqa: E501
|
|
269
|
+
currency_id (str, none_type): [optional] # noqa: E501
|
|
270
|
+
parent_account_label (str, none_type): [optional] # noqa: E501
|
|
271
|
+
time_zone (str, none_type): [optional] # noqa: E501
|
|
250
272
|
"""
|
|
251
273
|
|
|
252
274
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -276,8 +298,8 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
276
298
|
self._configuration = _configuration
|
|
277
299
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
278
300
|
|
|
279
|
-
self.
|
|
280
|
-
self.
|
|
301
|
+
self.type = type
|
|
302
|
+
self.sub_type = sub_type
|
|
281
303
|
for var_name, var_value in kwargs.items():
|
|
282
304
|
if var_name not in self.attribute_map and \
|
|
283
305
|
self._configuration is not None and \
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.validation_error import ValidationError
|
|
34
|
+
globals()['ValidationError'] = ValidationError
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class HttpValidationError(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -64,7 +64,14 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
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
|
|
68
75
|
|
|
69
76
|
_nullable = False
|
|
70
77
|
|
|
@@ -80,7 +87,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
80
87
|
"""
|
|
81
88
|
lazy_import()
|
|
82
89
|
return {
|
|
83
|
-
'
|
|
90
|
+
'detail': ([ValidationError], none_type,), # noqa: E501
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
@cached_property
|
|
@@ -89,7 +96,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
89
96
|
|
|
90
97
|
|
|
91
98
|
attribute_map = {
|
|
92
|
-
'
|
|
99
|
+
'detail': 'detail', # noqa: E501
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
read_only_vars = {
|
|
@@ -100,7 +107,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
100
107
|
@classmethod
|
|
101
108
|
@convert_js_args_to_python_args
|
|
102
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
103
|
-
"""
|
|
110
|
+
"""HttpValidationError - a model defined in OpenAPI
|
|
104
111
|
|
|
105
112
|
Keyword Args:
|
|
106
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -133,7 +140,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
133
140
|
Animal class but this time we won't travel
|
|
134
141
|
through its discriminator because we passed in
|
|
135
142
|
_visited_composed_classes = (Animal,)
|
|
136
|
-
|
|
143
|
+
detail ([ValidationError], none_type): [optional] # noqa: E501
|
|
137
144
|
"""
|
|
138
145
|
|
|
139
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -186,7 +193,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
186
193
|
|
|
187
194
|
@convert_js_args_to_python_args
|
|
188
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
189
|
-
"""
|
|
196
|
+
"""HttpValidationError - a model defined in OpenAPI
|
|
190
197
|
|
|
191
198
|
Keyword Args:
|
|
192
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -219,7 +226,7 @@ class ValueResourceInputOfLineItemBudgetOverrides(ModelNormal):
|
|
|
219
226
|
Animal class but this time we won't travel
|
|
220
227
|
through its discriminator because we passed in
|
|
221
228
|
_visited_composed_classes = (Animal,)
|
|
222
|
-
|
|
229
|
+
detail ([ValidationError], none_type): [optional] # noqa: E501
|
|
223
230
|
"""
|
|
224
231
|
|
|
225
232
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -0,0 +1,272 @@
|
|
|
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.message import Message
|
|
34
|
+
globals()['Message'] = Message
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class InbotDiscussion(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
|
+
('messages',): {
|
|
66
|
+
'min_items': 1,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@cached_property
|
|
71
|
+
def additional_properties_type():
|
|
72
|
+
"""
|
|
73
|
+
This must be a method because a model may have properties that are
|
|
74
|
+
of type self, this must run after the class is loaded
|
|
75
|
+
"""
|
|
76
|
+
lazy_import()
|
|
77
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
78
|
+
|
|
79
|
+
_nullable = False
|
|
80
|
+
|
|
81
|
+
@cached_property
|
|
82
|
+
def openapi_types():
|
|
83
|
+
"""
|
|
84
|
+
This must be a method because a model may have properties that are
|
|
85
|
+
of type self, this must run after the class is loaded
|
|
86
|
+
|
|
87
|
+
Returns
|
|
88
|
+
openapi_types (dict): The key is attribute name
|
|
89
|
+
and the value is attribute type.
|
|
90
|
+
"""
|
|
91
|
+
lazy_import()
|
|
92
|
+
return {
|
|
93
|
+
'messages': ([Message], none_type,), # noqa: E501
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@cached_property
|
|
97
|
+
def discriminator():
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
attribute_map = {
|
|
102
|
+
'messages': 'messages', # noqa: E501
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
read_only_vars = {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
_composed_schemas = {}
|
|
109
|
+
|
|
110
|
+
@classmethod
|
|
111
|
+
@convert_js_args_to_python_args
|
|
112
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
113
|
+
"""InbotDiscussion - a model defined in OpenAPI
|
|
114
|
+
|
|
115
|
+
Keyword Args:
|
|
116
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
117
|
+
will be type checked and a TypeError will be
|
|
118
|
+
raised if the wrong type is input.
|
|
119
|
+
Defaults to True
|
|
120
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
121
|
+
drill down to the model in received_data
|
|
122
|
+
when deserializing a response
|
|
123
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
124
|
+
are serialized names, as specified in the OpenAPI document.
|
|
125
|
+
False if the variable names in the input data
|
|
126
|
+
are pythonic names, e.g. snake case (default)
|
|
127
|
+
_configuration (Configuration): the instance to use when
|
|
128
|
+
deserializing a file_type parameter.
|
|
129
|
+
If passed, type conversion is attempted
|
|
130
|
+
If omitted no type conversion is done.
|
|
131
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
132
|
+
classes that we have traveled through so that
|
|
133
|
+
if we see that class again we will not use its
|
|
134
|
+
discriminator again.
|
|
135
|
+
When traveling through a discriminator, the
|
|
136
|
+
composed schema that is
|
|
137
|
+
is traveled through is added to this set.
|
|
138
|
+
For example if Animal has a discriminator
|
|
139
|
+
petType and we pass in "Dog", and the class Dog
|
|
140
|
+
allOf includes Animal, we move through Animal
|
|
141
|
+
once using the discriminator, and pick Dog.
|
|
142
|
+
Then in Dog, we will make an instance of the
|
|
143
|
+
Animal class but this time we won't travel
|
|
144
|
+
through its discriminator because we passed in
|
|
145
|
+
_visited_composed_classes = (Animal,)
|
|
146
|
+
messages ([Message], none_type): ordered list of previous messages, alternating between user prompts and bot answers. [optional] # noqa: E501
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
150
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
151
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
152
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
153
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
154
|
+
|
|
155
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
156
|
+
|
|
157
|
+
if args:
|
|
158
|
+
for arg in args:
|
|
159
|
+
if isinstance(arg, dict):
|
|
160
|
+
kwargs.update(arg)
|
|
161
|
+
else:
|
|
162
|
+
raise ApiTypeError(
|
|
163
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
164
|
+
args,
|
|
165
|
+
self.__class__.__name__,
|
|
166
|
+
),
|
|
167
|
+
path_to_item=_path_to_item,
|
|
168
|
+
valid_classes=(self.__class__,),
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
self._data_store = {}
|
|
172
|
+
self._check_type = _check_type
|
|
173
|
+
self._spec_property_naming = _spec_property_naming
|
|
174
|
+
self._path_to_item = _path_to_item
|
|
175
|
+
self._configuration = _configuration
|
|
176
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
177
|
+
|
|
178
|
+
for var_name, var_value in kwargs.items():
|
|
179
|
+
if var_name not in self.attribute_map and \
|
|
180
|
+
self._configuration is not None and \
|
|
181
|
+
self._configuration.discard_unknown_keys and \
|
|
182
|
+
self.additional_properties_type is None:
|
|
183
|
+
# discard variable.
|
|
184
|
+
continue
|
|
185
|
+
setattr(self, var_name, var_value)
|
|
186
|
+
return self
|
|
187
|
+
|
|
188
|
+
required_properties = set([
|
|
189
|
+
'_data_store',
|
|
190
|
+
'_check_type',
|
|
191
|
+
'_spec_property_naming',
|
|
192
|
+
'_path_to_item',
|
|
193
|
+
'_configuration',
|
|
194
|
+
'_visited_composed_classes',
|
|
195
|
+
])
|
|
196
|
+
|
|
197
|
+
@convert_js_args_to_python_args
|
|
198
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""InbotDiscussion - a model defined in OpenAPI
|
|
200
|
+
|
|
201
|
+
Keyword Args:
|
|
202
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
203
|
+
will be type checked and a TypeError will be
|
|
204
|
+
raised if the wrong type is input.
|
|
205
|
+
Defaults to True
|
|
206
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
207
|
+
drill down to the model in received_data
|
|
208
|
+
when deserializing a response
|
|
209
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
210
|
+
are serialized names, as specified in the OpenAPI document.
|
|
211
|
+
False if the variable names in the input data
|
|
212
|
+
are pythonic names, e.g. snake case (default)
|
|
213
|
+
_configuration (Configuration): the instance to use when
|
|
214
|
+
deserializing a file_type parameter.
|
|
215
|
+
If passed, type conversion is attempted
|
|
216
|
+
If omitted no type conversion is done.
|
|
217
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
218
|
+
classes that we have traveled through so that
|
|
219
|
+
if we see that class again we will not use its
|
|
220
|
+
discriminator again.
|
|
221
|
+
When traveling through a discriminator, the
|
|
222
|
+
composed schema that is
|
|
223
|
+
is traveled through is added to this set.
|
|
224
|
+
For example if Animal has a discriminator
|
|
225
|
+
petType and we pass in "Dog", and the class Dog
|
|
226
|
+
allOf includes Animal, we move through Animal
|
|
227
|
+
once using the discriminator, and pick Dog.
|
|
228
|
+
Then in Dog, we will make an instance of the
|
|
229
|
+
Animal class but this time we won't travel
|
|
230
|
+
through its discriminator because we passed in
|
|
231
|
+
_visited_composed_classes = (Animal,)
|
|
232
|
+
messages ([Message], none_type): ordered list of previous messages, alternating between user prompts and bot answers. [optional] # noqa: E501
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
236
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
237
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
238
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
239
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
240
|
+
|
|
241
|
+
if args:
|
|
242
|
+
for arg in args:
|
|
243
|
+
if isinstance(arg, dict):
|
|
244
|
+
kwargs.update(arg)
|
|
245
|
+
else:
|
|
246
|
+
raise ApiTypeError(
|
|
247
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
248
|
+
args,
|
|
249
|
+
self.__class__.__name__,
|
|
250
|
+
),
|
|
251
|
+
path_to_item=_path_to_item,
|
|
252
|
+
valid_classes=(self.__class__,),
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
self._data_store = {}
|
|
256
|
+
self._check_type = _check_type
|
|
257
|
+
self._spec_property_naming = _spec_property_naming
|
|
258
|
+
self._path_to_item = _path_to_item
|
|
259
|
+
self._configuration = _configuration
|
|
260
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
261
|
+
|
|
262
|
+
for var_name, var_value in kwargs.items():
|
|
263
|
+
if var_name not in self.attribute_map and \
|
|
264
|
+
self._configuration is not None and \
|
|
265
|
+
self._configuration.discard_unknown_keys and \
|
|
266
|
+
self.additional_properties_type is None:
|
|
267
|
+
# discard variable.
|
|
268
|
+
continue
|
|
269
|
+
setattr(self, var_name, var_value)
|
|
270
|
+
if var_name in self.read_only_vars:
|
|
271
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
272
|
+
f"class with read only attributes.")
|
|
@@ -29,8 +29,12 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.inbot_discussion_data_instance_model import InbotDiscussionDataInstanceModel
|
|
34
|
+
globals()['InbotDiscussionDataInstanceModel'] = InbotDiscussionDataInstanceModel
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
class InbotDiscussionBodyModel(ModelNormal):
|
|
34
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
39
|
Ref: https://openapi-generator.tech
|
|
36
40
|
|
|
@@ -66,6 +70,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
66
70
|
This must be a method because a model may have properties that are
|
|
67
71
|
of type self, this must run after the class is loaded
|
|
68
72
|
"""
|
|
73
|
+
lazy_import()
|
|
69
74
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
75
|
|
|
71
76
|
_nullable = False
|
|
@@ -80,9 +85,9 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
80
85
|
openapi_types (dict): The key is attribute name
|
|
81
86
|
and the value is attribute type.
|
|
82
87
|
"""
|
|
88
|
+
lazy_import()
|
|
83
89
|
return {
|
|
84
|
-
'
|
|
85
|
-
'is_shared': (bool,), # noqa: E501
|
|
90
|
+
'data': (InbotDiscussionDataInstanceModel,), # noqa: E501
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
@cached_property
|
|
@@ -91,8 +96,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
91
96
|
|
|
92
97
|
|
|
93
98
|
attribute_map = {
|
|
94
|
-
'
|
|
95
|
-
'is_shared': 'isShared', # noqa: E501
|
|
99
|
+
'data': 'data', # noqa: E501
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
read_only_vars = {
|
|
@@ -102,12 +106,11 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
102
106
|
|
|
103
107
|
@classmethod
|
|
104
108
|
@convert_js_args_to_python_args
|
|
105
|
-
def _from_openapi_data(cls,
|
|
106
|
-
"""
|
|
109
|
+
def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
|
|
110
|
+
"""InbotDiscussionBodyModel - a model defined in OpenAPI
|
|
107
111
|
|
|
108
112
|
Args:
|
|
109
|
-
|
|
110
|
-
is_shared (bool): Indicate if the audience is shared.
|
|
113
|
+
data (InbotDiscussionDataInstanceModel):
|
|
111
114
|
|
|
112
115
|
Keyword Args:
|
|
113
116
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -171,8 +174,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
171
174
|
self._configuration = _configuration
|
|
172
175
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
173
176
|
|
|
174
|
-
self.
|
|
175
|
-
self.is_shared = is_shared
|
|
177
|
+
self.data = data
|
|
176
178
|
for var_name, var_value in kwargs.items():
|
|
177
179
|
if var_name not in self.attribute_map and \
|
|
178
180
|
self._configuration is not None and \
|
|
@@ -193,12 +195,11 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
193
195
|
])
|
|
194
196
|
|
|
195
197
|
@convert_js_args_to_python_args
|
|
196
|
-
def __init__(self,
|
|
197
|
-
"""
|
|
198
|
+
def __init__(self, data, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""InbotDiscussionBodyModel - a model defined in OpenAPI
|
|
198
200
|
|
|
199
201
|
Args:
|
|
200
|
-
|
|
201
|
-
is_shared (bool): Indicate if the audience is shared.
|
|
202
|
+
data (InbotDiscussionDataInstanceModel):
|
|
202
203
|
|
|
203
204
|
Keyword Args:
|
|
204
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -260,8 +261,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
|
|
|
260
261
|
self._configuration = _configuration
|
|
261
262
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
262
263
|
|
|
263
|
-
self.
|
|
264
|
-
self.is_shared = is_shared
|
|
264
|
+
self.data = data
|
|
265
265
|
for var_name, var_value in kwargs.items():
|
|
266
266
|
if var_name not in self.attribute_map and \
|
|
267
267
|
self._configuration is not None and \
|