criteo-api-retailmedia-sdk 0.0.250425__py3-none-any.whl → 0.0.250618__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_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
- criteo_api_retailmedia_preview/api/campaign_api.py +1205 -147
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/async_accounts_report.py +11 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +11 -0
- criteo_api_retailmedia_preview/model/async_line_items_report.py +11 -0
- criteo_api_retailmedia_preview/model/categories_search_request_v1.py +270 -0
- criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
- criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
- criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
- criteo_api_retailmedia_preview/model/flight_leg.py +287 -0
- criteo_api_retailmedia_preview/model/flight_schedule.py +262 -0
- criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
- criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
- criteo_api_retailmedia_preview/model/recommended_categories_request_v1.py +272 -0
- criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
- criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
- criteo_api_retailmedia_preview/model/rm_audience_bulk_create_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_bulk_delete_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
- criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
- criteo_api_retailmedia_preview/model/rm_audience_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
- criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
- criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
- criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
- criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +335 -0
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +335 -0
- criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
- criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
- criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
- criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_response_v1.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +62 -0
- {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/RECORD +77 -15
- {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/WHEEL +1 -1
- {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/top_level.txt +0 -0
|
@@ -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/0.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.0.250618/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: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.250618".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -70,6 +70,12 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
70
70
|
'14D': "14D",
|
|
71
71
|
'30D': "30D",
|
|
72
72
|
},
|
|
73
|
+
('conquesting_types',): {
|
|
74
|
+
'UNKNOWN': "unknown",
|
|
75
|
+
'GENERIC': "generic",
|
|
76
|
+
'BRANDED': "branded",
|
|
77
|
+
'CONQUESTING': "conquesting",
|
|
78
|
+
},
|
|
73
79
|
('dimensions',): {
|
|
74
80
|
'DATE': "date",
|
|
75
81
|
'HOUR': "hour",
|
|
@@ -103,6 +109,7 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
103
109
|
'CREATIVETYPENAME': "creativeTypeName",
|
|
104
110
|
'CREATIVETEMPLATEID': "creativeTemplateId",
|
|
105
111
|
'CREATIVETEMPLATENAME': "creativeTemplateName",
|
|
112
|
+
'CONQUESTINGTYPE': "conquestingType",
|
|
106
113
|
},
|
|
107
114
|
('format',): {
|
|
108
115
|
'JSON': "json",
|
|
@@ -214,6 +221,7 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
214
221
|
'aggregation_level': (str,), # noqa: E501
|
|
215
222
|
'campaign_type': (str,), # noqa: E501
|
|
216
223
|
'click_attribution_window': (str,), # noqa: E501
|
|
224
|
+
'conquesting_types': ([str],), # noqa: E501
|
|
217
225
|
'dimensions': ([str],), # noqa: E501
|
|
218
226
|
'format': (str,), # noqa: E501
|
|
219
227
|
'metrics': ([str],), # noqa: E501
|
|
@@ -237,6 +245,7 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
237
245
|
'aggregation_level': 'aggregationLevel', # noqa: E501
|
|
238
246
|
'campaign_type': 'campaignType', # noqa: E501
|
|
239
247
|
'click_attribution_window': 'clickAttributionWindow', # noqa: E501
|
|
248
|
+
'conquesting_types': 'conquestingTypes', # noqa: E501
|
|
240
249
|
'dimensions': 'dimensions', # noqa: E501
|
|
241
250
|
'format': 'format', # noqa: E501
|
|
242
251
|
'metrics': 'metrics', # noqa: E501
|
|
@@ -297,6 +306,7 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
297
306
|
aggregation_level (str): Level of aggregation, if no dimensions and metrics are provided, falls back to campaign aggregationLevel. [optional] if omitted the server will use the default value of "campaign" # noqa: E501
|
|
298
307
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
299
308
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
309
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
300
310
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
301
311
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
302
312
|
metrics ([str]): List of metrics to report on. [optional] # noqa: E501
|
|
@@ -402,6 +412,7 @@ class AsyncAccountsReport(ModelNormal):
|
|
|
402
412
|
aggregation_level (str): Level of aggregation, if no dimensions and metrics are provided, falls back to campaign aggregationLevel. [optional] if omitted the server will use the default value of "campaign" # noqa: E501
|
|
403
413
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
404
414
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
415
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
405
416
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
406
417
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
407
418
|
metrics ([str]): List of metrics to report on. [optional] # noqa: E501
|
|
@@ -66,6 +66,12 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
66
66
|
'14D': "14D",
|
|
67
67
|
'30D': "30D",
|
|
68
68
|
},
|
|
69
|
+
('conquesting_types',): {
|
|
70
|
+
'UNKNOWN': "unknown",
|
|
71
|
+
'GENERIC': "generic",
|
|
72
|
+
'BRANDED': "branded",
|
|
73
|
+
'CONQUESTING': "conquesting",
|
|
74
|
+
},
|
|
69
75
|
('dimensions',): {
|
|
70
76
|
'DATE': "date",
|
|
71
77
|
'HOUR': "hour",
|
|
@@ -99,6 +105,7 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
99
105
|
'CREATIVETYPENAME': "creativeTypeName",
|
|
100
106
|
'CREATIVETEMPLATEID': "creativeTemplateId",
|
|
101
107
|
'CREATIVETEMPLATENAME': "creativeTemplateName",
|
|
108
|
+
'CONQUESTINGTYPE': "conquestingType",
|
|
102
109
|
},
|
|
103
110
|
('format',): {
|
|
104
111
|
'JSON': "json",
|
|
@@ -208,6 +215,7 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
208
215
|
'start_date': (datetime,), # noqa: E501
|
|
209
216
|
'campaign_type': (str,), # noqa: E501
|
|
210
217
|
'click_attribution_window': (str,), # noqa: E501
|
|
218
|
+
'conquesting_types': ([str],), # noqa: E501
|
|
211
219
|
'dimensions': ([str],), # noqa: E501
|
|
212
220
|
'format': (str,), # noqa: E501
|
|
213
221
|
'id': (str,), # noqa: E501
|
|
@@ -231,6 +239,7 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
231
239
|
'start_date': 'startDate', # noqa: E501
|
|
232
240
|
'campaign_type': 'campaignType', # noqa: E501
|
|
233
241
|
'click_attribution_window': 'clickAttributionWindow', # noqa: E501
|
|
242
|
+
'conquesting_types': 'conquestingTypes', # noqa: E501
|
|
234
243
|
'dimensions': 'dimensions', # noqa: E501
|
|
235
244
|
'format': 'format', # noqa: E501
|
|
236
245
|
'id': 'id', # noqa: E501
|
|
@@ -291,6 +300,7 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
291
300
|
_visited_composed_classes = (Animal,)
|
|
292
301
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
293
302
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
303
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
294
304
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
295
305
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
296
306
|
id (str): Campaign id to report on. [optional] # noqa: E501
|
|
@@ -395,6 +405,7 @@ class AsyncCampaignsReport(ModelNormal):
|
|
|
395
405
|
_visited_composed_classes = (Animal,)
|
|
396
406
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
397
407
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
408
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
398
409
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
399
410
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
400
411
|
id (str): Campaign id to report on. [optional] # noqa: E501
|
|
@@ -66,6 +66,12 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
66
66
|
'14D': "14D",
|
|
67
67
|
'30D': "30D",
|
|
68
68
|
},
|
|
69
|
+
('conquesting_types',): {
|
|
70
|
+
'UNKNOWN': "unknown",
|
|
71
|
+
'GENERIC': "generic",
|
|
72
|
+
'BRANDED': "branded",
|
|
73
|
+
'CONQUESTING': "conquesting",
|
|
74
|
+
},
|
|
69
75
|
('dimensions',): {
|
|
70
76
|
'DATE': "date",
|
|
71
77
|
'HOUR': "hour",
|
|
@@ -99,6 +105,7 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
99
105
|
'CREATIVETYPENAME': "creativeTypeName",
|
|
100
106
|
'CREATIVETEMPLATEID': "creativeTemplateId",
|
|
101
107
|
'CREATIVETEMPLATENAME': "creativeTemplateName",
|
|
108
|
+
'CONQUESTINGTYPE': "conquestingType",
|
|
102
109
|
},
|
|
103
110
|
('format',): {
|
|
104
111
|
'JSON': "json",
|
|
@@ -208,6 +215,7 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
208
215
|
'start_date': (datetime,), # noqa: E501
|
|
209
216
|
'campaign_type': (str,), # noqa: E501
|
|
210
217
|
'click_attribution_window': (str,), # noqa: E501
|
|
218
|
+
'conquesting_types': ([str],), # noqa: E501
|
|
211
219
|
'dimensions': ([str],), # noqa: E501
|
|
212
220
|
'format': (str,), # noqa: E501
|
|
213
221
|
'id': (str,), # noqa: E501
|
|
@@ -231,6 +239,7 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
231
239
|
'start_date': 'startDate', # noqa: E501
|
|
232
240
|
'campaign_type': 'campaignType', # noqa: E501
|
|
233
241
|
'click_attribution_window': 'clickAttributionWindow', # noqa: E501
|
|
242
|
+
'conquesting_types': 'conquestingTypes', # noqa: E501
|
|
234
243
|
'dimensions': 'dimensions', # noqa: E501
|
|
235
244
|
'format': 'format', # noqa: E501
|
|
236
245
|
'id': 'id', # noqa: E501
|
|
@@ -291,6 +300,7 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
291
300
|
_visited_composed_classes = (Animal,)
|
|
292
301
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
293
302
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
303
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
294
304
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
295
305
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
296
306
|
id (str): Line Item id to report on. [optional] # noqa: E501
|
|
@@ -395,6 +405,7 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
395
405
|
_visited_composed_classes = (Animal,)
|
|
396
406
|
campaign_type (str): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
|
|
397
407
|
click_attribution_window (str): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
408
|
+
conquesting_types ([str]): Filter on conquesting type: unknown, generic, branded, conquesting. [optional] # noqa: E501
|
|
398
409
|
dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501
|
|
399
410
|
format (str): Format of the output. [optional] if omitted the server will use the default value of "json-compact" # noqa: E501
|
|
400
411
|
id (str): Line Item id to report on. [optional] # noqa: E501
|
|
@@ -0,0 +1,270 @@
|
|
|
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
|
+
|
|
33
|
+
class CategoriesSearchRequestV1(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
|
+
}
|
|
59
|
+
|
|
60
|
+
validations = {
|
|
61
|
+
('category_ids',): {
|
|
62
|
+
'min_items': 1,
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@cached_property
|
|
67
|
+
def additional_properties_type():
|
|
68
|
+
"""
|
|
69
|
+
This must be a method because a model may have properties that are
|
|
70
|
+
of type self, this must run after the class is loaded
|
|
71
|
+
"""
|
|
72
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
73
|
+
|
|
74
|
+
_nullable = False
|
|
75
|
+
|
|
76
|
+
@cached_property
|
|
77
|
+
def openapi_types():
|
|
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
|
+
Returns
|
|
83
|
+
openapi_types (dict): The key is attribute name
|
|
84
|
+
and the value is attribute type.
|
|
85
|
+
"""
|
|
86
|
+
return {
|
|
87
|
+
'category_ids': ([str], none_type,), # noqa: E501
|
|
88
|
+
'text_substring': (str, none_type,), # noqa: E501
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def discriminator():
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
attribute_map = {
|
|
97
|
+
'category_ids': 'categoryIds', # noqa: E501
|
|
98
|
+
'text_substring': 'textSubstring', # noqa: E501
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
read_only_vars = {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
_composed_schemas = {}
|
|
105
|
+
|
|
106
|
+
@classmethod
|
|
107
|
+
@convert_js_args_to_python_args
|
|
108
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
109
|
+
"""CategoriesSearchRequestV1 - a model defined in OpenAPI
|
|
110
|
+
|
|
111
|
+
Keyword Args:
|
|
112
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
113
|
+
will be type checked and a TypeError will be
|
|
114
|
+
raised if the wrong type is input.
|
|
115
|
+
Defaults to True
|
|
116
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
117
|
+
drill down to the model in received_data
|
|
118
|
+
when deserializing a response
|
|
119
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
120
|
+
are serialized names, as specified in the OpenAPI document.
|
|
121
|
+
False if the variable names in the input data
|
|
122
|
+
are pythonic names, e.g. snake case (default)
|
|
123
|
+
_configuration (Configuration): the instance to use when
|
|
124
|
+
deserializing a file_type parameter.
|
|
125
|
+
If passed, type conversion is attempted
|
|
126
|
+
If omitted no type conversion is done.
|
|
127
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
128
|
+
classes that we have traveled through so that
|
|
129
|
+
if we see that class again we will not use its
|
|
130
|
+
discriminator again.
|
|
131
|
+
When traveling through a discriminator, the
|
|
132
|
+
composed schema that is
|
|
133
|
+
is traveled through is added to this set.
|
|
134
|
+
For example if Animal has a discriminator
|
|
135
|
+
petType and we pass in "Dog", and the class Dog
|
|
136
|
+
allOf includes Animal, we move through Animal
|
|
137
|
+
once using the discriminator, and pick Dog.
|
|
138
|
+
Then in Dog, we will make an instance of the
|
|
139
|
+
Animal class but this time we won't travel
|
|
140
|
+
through its discriminator because we passed in
|
|
141
|
+
_visited_composed_classes = (Animal,)
|
|
142
|
+
category_ids ([str], none_type): Categories search category ids criteria.. [optional] # noqa: E501
|
|
143
|
+
text_substring (str, none_type): Categories search text substring criteria.. [optional] # noqa: E501
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
147
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
148
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
149
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
150
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
151
|
+
|
|
152
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
153
|
+
|
|
154
|
+
if args:
|
|
155
|
+
for arg in args:
|
|
156
|
+
if isinstance(arg, dict):
|
|
157
|
+
kwargs.update(arg)
|
|
158
|
+
else:
|
|
159
|
+
raise ApiTypeError(
|
|
160
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
161
|
+
args,
|
|
162
|
+
self.__class__.__name__,
|
|
163
|
+
),
|
|
164
|
+
path_to_item=_path_to_item,
|
|
165
|
+
valid_classes=(self.__class__,),
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
self._data_store = {}
|
|
169
|
+
self._check_type = _check_type
|
|
170
|
+
self._spec_property_naming = _spec_property_naming
|
|
171
|
+
self._path_to_item = _path_to_item
|
|
172
|
+
self._configuration = _configuration
|
|
173
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
174
|
+
|
|
175
|
+
for var_name, var_value in kwargs.items():
|
|
176
|
+
if var_name not in self.attribute_map and \
|
|
177
|
+
self._configuration is not None and \
|
|
178
|
+
self._configuration.discard_unknown_keys and \
|
|
179
|
+
self.additional_properties_type is None:
|
|
180
|
+
# discard variable.
|
|
181
|
+
continue
|
|
182
|
+
setattr(self, var_name, var_value)
|
|
183
|
+
return self
|
|
184
|
+
|
|
185
|
+
required_properties = set([
|
|
186
|
+
'_data_store',
|
|
187
|
+
'_check_type',
|
|
188
|
+
'_spec_property_naming',
|
|
189
|
+
'_path_to_item',
|
|
190
|
+
'_configuration',
|
|
191
|
+
'_visited_composed_classes',
|
|
192
|
+
])
|
|
193
|
+
|
|
194
|
+
@convert_js_args_to_python_args
|
|
195
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
+
"""CategoriesSearchRequestV1 - a model defined in OpenAPI
|
|
197
|
+
|
|
198
|
+
Keyword Args:
|
|
199
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
200
|
+
will be type checked and a TypeError will be
|
|
201
|
+
raised if the wrong type is input.
|
|
202
|
+
Defaults to True
|
|
203
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
204
|
+
drill down to the model in received_data
|
|
205
|
+
when deserializing a response
|
|
206
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
207
|
+
are serialized names, as specified in the OpenAPI document.
|
|
208
|
+
False if the variable names in the input data
|
|
209
|
+
are pythonic names, e.g. snake case (default)
|
|
210
|
+
_configuration (Configuration): the instance to use when
|
|
211
|
+
deserializing a file_type parameter.
|
|
212
|
+
If passed, type conversion is attempted
|
|
213
|
+
If omitted no type conversion is done.
|
|
214
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
215
|
+
classes that we have traveled through so that
|
|
216
|
+
if we see that class again we will not use its
|
|
217
|
+
discriminator again.
|
|
218
|
+
When traveling through a discriminator, the
|
|
219
|
+
composed schema that is
|
|
220
|
+
is traveled through is added to this set.
|
|
221
|
+
For example if Animal has a discriminator
|
|
222
|
+
petType and we pass in "Dog", and the class Dog
|
|
223
|
+
allOf includes Animal, we move through Animal
|
|
224
|
+
once using the discriminator, and pick Dog.
|
|
225
|
+
Then in Dog, we will make an instance of the
|
|
226
|
+
Animal class but this time we won't travel
|
|
227
|
+
through its discriminator because we passed in
|
|
228
|
+
_visited_composed_classes = (Animal,)
|
|
229
|
+
category_ids ([str], none_type): Categories search category ids criteria.. [optional] # noqa: E501
|
|
230
|
+
text_substring (str, none_type): Categories search text substring criteria.. [optional] # noqa: E501
|
|
231
|
+
"""
|
|
232
|
+
|
|
233
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
234
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
235
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
236
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
237
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
238
|
+
|
|
239
|
+
if args:
|
|
240
|
+
for arg in args:
|
|
241
|
+
if isinstance(arg, dict):
|
|
242
|
+
kwargs.update(arg)
|
|
243
|
+
else:
|
|
244
|
+
raise ApiTypeError(
|
|
245
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
246
|
+
args,
|
|
247
|
+
self.__class__.__name__,
|
|
248
|
+
),
|
|
249
|
+
path_to_item=_path_to_item,
|
|
250
|
+
valid_classes=(self.__class__,),
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
self._data_store = {}
|
|
254
|
+
self._check_type = _check_type
|
|
255
|
+
self._spec_property_naming = _spec_property_naming
|
|
256
|
+
self._path_to_item = _path_to_item
|
|
257
|
+
self._configuration = _configuration
|
|
258
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
259
|
+
|
|
260
|
+
for var_name, var_value in kwargs.items():
|
|
261
|
+
if var_name not in self.attribute_map and \
|
|
262
|
+
self._configuration is not None and \
|
|
263
|
+
self._configuration.discard_unknown_keys and \
|
|
264
|
+
self.additional_properties_type is None:
|
|
265
|
+
# discard variable.
|
|
266
|
+
continue
|
|
267
|
+
setattr(self, var_name, var_value)
|
|
268
|
+
if var_name in self.read_only_vars:
|
|
269
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
270
|
+
f"class with read only attributes.")
|