criteo-api-retailmedia-sdk 0.0.240626__py3-none-any.whl → 0.0.240808__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (81) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +50 -343
  3. criteo_api_retailmedia_preview/api/audience_api.py +835 -58
  4. criteo_api_retailmedia_preview/api/balance_api.py +1134 -0
  5. criteo_api_retailmedia_preview/api/campaign_api.py +175 -168
  6. criteo_api_retailmedia_preview/api_client.py +4 -4
  7. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  8. criteo_api_retailmedia_preview/configuration.py +1 -1
  9. criteo_api_retailmedia_preview/model/add_funds_to_balance_v2.py +277 -0
  10. criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_brand_account_creation.py → add_funds_to_balance_v2_request.py} +16 -9
  11. criteo_api_retailmedia_preview/model/application_summary_model_response.py +0 -4
  12. criteo_api_retailmedia_preview/model/async_accounts_report.py +2 -0
  13. criteo_api_retailmedia_preview/model/async_campaigns_report.py +2 -0
  14. criteo_api_retailmedia_preview/model/async_line_items_report.py +2 -0
  15. criteo_api_retailmedia_preview/model/{insertion_order_history_change_data_capture.py → balance_history_change_data_capture_v1.py} +11 -11
  16. criteo_api_retailmedia_preview/model/balance_response_v2.py +351 -0
  17. criteo_api_retailmedia_preview/model/balance_response_v2_response.py +281 -0
  18. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +271 -0
  19. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2_request.py +269 -0
  20. criteo_api_retailmedia_preview/model/{change_details.py → change_details_v1.py} +3 -3
  21. criteo_api_retailmedia_preview/model/change_details_v2.py +275 -0
  22. criteo_api_retailmedia_preview/model/common_problem.py +2 -2
  23. criteo_api_retailmedia_preview/model/create_balance_v2.py +302 -0
  24. criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_brands.py → create_balance_v2_request.py} +16 -9
  25. criteo_api_retailmedia_preview/model/external_catalog_status.py +312 -0
  26. criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture_v2.py +303 -0
  27. criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +285 -0
  28. criteo_api_retailmedia_preview/model/json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py +279 -0
  29. criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +8 -6
  30. criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +8 -6
  31. criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +8 -6
  32. criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py +269 -0
  33. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +287 -0
  34. criteo_api_retailmedia_preview/model/{retail_media_brands.py → nillable_string.py} +14 -8
  35. criteo_api_retailmedia_preview/model/page_of_balance_history_change_data_capture_v1.py +276 -0
  36. criteo_api_retailmedia_preview/model/{page_of_insertion_order_history_change_data_capture.py → page_of_insertion_order_history_change_data_capture_v2.py} +8 -8
  37. criteo_api_retailmedia_preview/model/paged_resource_collection_outcome_of_balance_response_v2.py +287 -0
  38. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +6 -4
  39. criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance_v2.py +277 -0
  40. criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py +277 -0
  41. criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py +277 -0
  42. criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py +277 -0
  43. criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py +277 -0
  44. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +6 -6
  45. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py +269 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py +269 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_update_input_v1.py +269 -0
  48. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +281 -0
  49. criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_brand_account_creation.py → rm_audience_segment_create_entity_v1_resource.py} +16 -9
  50. criteo_api_retailmedia_preview/model/rm_audience_segment_delete_entity_v1_resource.py +271 -0
  51. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +323 -0
  52. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_list_response.py +281 -0
  53. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_resource.py +277 -0
  54. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +287 -0
  55. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_list_response.py +281 -0
  56. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_resource.py +271 -0
  57. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +277 -0
  58. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +273 -0
  59. criteo_api_retailmedia_preview/model/rm_audience_segment_search_input_v1.py +269 -0
  60. criteo_api_retailmedia_preview/model/{retail_media_brand_account_creation.py → rm_audience_segment_search_metadata_v1.py} +22 -16
  61. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +277 -0
  62. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1_resource.py +277 -0
  63. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +270 -0
  64. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +271 -0
  65. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_resource.py +277 -0
  66. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_response.py +281 -0
  67. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +286 -0
  68. criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py +303 -0
  69. criteo_api_retailmedia_preview/model/seller_catalog_request.py +269 -0
  70. criteo_api_retailmedia_preview/model/seller_identifier.py +275 -0
  71. criteo_api_retailmedia_preview/model/sku_data_preview.py +8 -6
  72. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +8 -6
  73. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +2 -0
  74. criteo_api_retailmedia_preview/model/sync_line_items_report.py +2 -0
  75. criteo_api_retailmedia_preview/model/update_balance_model_v2.py +279 -0
  76. criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_brands.py → update_balance_model_v2_request.py} +17 -14
  77. criteo_api_retailmedia_preview/models/__init__.py +54 -9
  78. {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/METADATA +3 -3
  79. {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/RECORD +81 -35
  80. {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/WHEEL +1 -1
  81. {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,286 @@
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 RmContactListV1(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
+ ('type',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "Unknown",
61
+ 'EMAIL': "Email",
62
+ 'USERIDENTIFIER': "UserIdentifier",
63
+ 'IDENTITYLINK': "IdentityLink",
64
+ 'CUSTOMERID': "CustomerId",
65
+ },
66
+ ('sharing_status',): {
67
+ 'None': None,
68
+ 'UNKNOWN': "Unknown",
69
+ 'NOTSHARED': "NotShared",
70
+ 'SHAREDWITHALL': "SharedWithAll",
71
+ 'SHAREDWITHDEMANDACCOUNTS': "SharedWithDemandAccounts",
72
+ },
73
+ }
74
+
75
+ validations = {
76
+ }
77
+
78
+ @cached_property
79
+ def additional_properties_type():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+ """
84
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
85
+
86
+ _nullable = False
87
+
88
+ @cached_property
89
+ def openapi_types():
90
+ """
91
+ This must be a method because a model may have properties that are
92
+ of type self, this must run after the class is loaded
93
+
94
+ Returns
95
+ openapi_types (dict): The key is attribute name
96
+ and the value is attribute type.
97
+ """
98
+ return {
99
+ 'is_read_only': (bool, none_type,), # noqa: E501
100
+ 'type': (str, none_type,), # noqa: E501
101
+ 'sharing_status': (str, none_type,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'is_read_only': 'isReadOnly', # noqa: E501
111
+ 'type': 'type', # noqa: E501
112
+ 'sharing_status': 'sharingStatus', # noqa: E501
113
+ }
114
+
115
+ read_only_vars = {
116
+ }
117
+
118
+ _composed_schemas = {}
119
+
120
+ @classmethod
121
+ @convert_js_args_to_python_args
122
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
123
+ """RmContactListV1 - a model defined in OpenAPI
124
+
125
+ Keyword Args:
126
+ _check_type (bool): if True, values for parameters in openapi_types
127
+ will be type checked and a TypeError will be
128
+ raised if the wrong type is input.
129
+ Defaults to True
130
+ _path_to_item (tuple/list): This is a list of keys or values to
131
+ drill down to the model in received_data
132
+ when deserializing a response
133
+ _spec_property_naming (bool): True if the variable names in the input data
134
+ are serialized names, as specified in the OpenAPI document.
135
+ False if the variable names in the input data
136
+ are pythonic names, e.g. snake case (default)
137
+ _configuration (Configuration): the instance to use when
138
+ deserializing a file_type parameter.
139
+ If passed, type conversion is attempted
140
+ If omitted no type conversion is done.
141
+ _visited_composed_classes (tuple): This stores a tuple of
142
+ classes that we have traveled through so that
143
+ if we see that class again we will not use its
144
+ discriminator again.
145
+ When traveling through a discriminator, the
146
+ composed schema that is
147
+ is traveled through is added to this set.
148
+ For example if Animal has a discriminator
149
+ petType and we pass in "Dog", and the class Dog
150
+ allOf includes Animal, we move through Animal
151
+ once using the discriminator, and pick Dog.
152
+ Then in Dog, we will make an instance of the
153
+ Animal class but this time we won't travel
154
+ through its discriminator because we passed in
155
+ _visited_composed_classes = (Animal,)
156
+ is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501
157
+ type (str, none_type): Indicates contact list type. [optional] # noqa: E501
158
+ sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [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
+ for var_name, var_value in kwargs.items():
191
+ if var_name not in self.attribute_map and \
192
+ self._configuration is not None and \
193
+ self._configuration.discard_unknown_keys and \
194
+ self.additional_properties_type is None:
195
+ # discard variable.
196
+ continue
197
+ setattr(self, var_name, var_value)
198
+ return self
199
+
200
+ required_properties = set([
201
+ '_data_store',
202
+ '_check_type',
203
+ '_spec_property_naming',
204
+ '_path_to_item',
205
+ '_configuration',
206
+ '_visited_composed_classes',
207
+ ])
208
+
209
+ @convert_js_args_to_python_args
210
+ def __init__(self, *args, **kwargs): # noqa: E501
211
+ """RmContactListV1 - a model defined in OpenAPI
212
+
213
+ Keyword Args:
214
+ _check_type (bool): if True, values for parameters in openapi_types
215
+ will be type checked and a TypeError will be
216
+ raised if the wrong type is input.
217
+ Defaults to True
218
+ _path_to_item (tuple/list): This is a list of keys or values to
219
+ drill down to the model in received_data
220
+ when deserializing a response
221
+ _spec_property_naming (bool): True if the variable names in the input data
222
+ are serialized names, as specified in the OpenAPI document.
223
+ False if the variable names in the input data
224
+ are pythonic names, e.g. snake case (default)
225
+ _configuration (Configuration): the instance to use when
226
+ deserializing a file_type parameter.
227
+ If passed, type conversion is attempted
228
+ If omitted no type conversion is done.
229
+ _visited_composed_classes (tuple): This stores a tuple of
230
+ classes that we have traveled through so that
231
+ if we see that class again we will not use its
232
+ discriminator again.
233
+ When traveling through a discriminator, the
234
+ composed schema that is
235
+ is traveled through is added to this set.
236
+ For example if Animal has a discriminator
237
+ petType and we pass in "Dog", and the class Dog
238
+ allOf includes Animal, we move through Animal
239
+ once using the discriminator, and pick Dog.
240
+ Then in Dog, we will make an instance of the
241
+ Animal class but this time we won't travel
242
+ through its discriminator because we passed in
243
+ _visited_composed_classes = (Animal,)
244
+ is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501
245
+ type (str, none_type): Indicates contact list type. [optional] # noqa: E501
246
+ sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [optional] # noqa: E501
247
+ """
248
+
249
+ _check_type = kwargs.pop('_check_type', True)
250
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
251
+ _path_to_item = kwargs.pop('_path_to_item', ())
252
+ _configuration = kwargs.pop('_configuration', None)
253
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
254
+
255
+ if args:
256
+ for arg in args:
257
+ if isinstance(arg, dict):
258
+ kwargs.update(arg)
259
+ else:
260
+ raise ApiTypeError(
261
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
262
+ args,
263
+ self.__class__.__name__,
264
+ ),
265
+ path_to_item=_path_to_item,
266
+ valid_classes=(self.__class__,),
267
+ )
268
+
269
+ self._data_store = {}
270
+ self._check_type = _check_type
271
+ self._spec_property_naming = _spec_property_naming
272
+ self._path_to_item = _path_to_item
273
+ self._configuration = _configuration
274
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
+
276
+ for var_name, var_value in kwargs.items():
277
+ if var_name not in self.attribute_map and \
278
+ self._configuration is not None and \
279
+ self._configuration.discard_unknown_keys and \
280
+ self.additional_properties_type is None:
281
+ # discard variable.
282
+ continue
283
+ setattr(self, var_name, var_value)
284
+ if var_name in self.read_only_vars:
285
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
286
+ f"class with read only attributes.")
@@ -0,0 +1,303 @@
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 RmUserBehaviorV1(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
+ ('shopper_activity',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "Unknown",
61
+ 'VIEW': "View",
62
+ 'BUY': "Buy",
63
+ 'ADDTOCART': "AddToCart",
64
+ },
65
+ ('lookback_days',): {
66
+ 'None': None,
67
+ 'UNKNOWN': "Unknown",
68
+ 'LAST7DAYS': "Last7Days",
69
+ 'LAST14DAYS': "Last14Days",
70
+ 'LAST30DAYS': "Last30Days",
71
+ 'LAST45DAYS': "Last45Days",
72
+ 'LAST60DAYS': "Last60Days",
73
+ 'LAST90DAYS': "Last90Days",
74
+ 'LAST120DAYS': "Last120Days",
75
+ 'LAST150DAYS': "Last150Days",
76
+ 'LAST180DAYS': "Last180Days",
77
+ },
78
+ }
79
+
80
+ validations = {
81
+ }
82
+
83
+ @cached_property
84
+ def additional_properties_type():
85
+ """
86
+ This must be a method because a model may have properties that are
87
+ of type self, this must run after the class is loaded
88
+ """
89
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
90
+
91
+ _nullable = False
92
+
93
+ @cached_property
94
+ def openapi_types():
95
+ """
96
+ This must be a method because a model may have properties that are
97
+ of type self, this must run after the class is loaded
98
+
99
+ Returns
100
+ openapi_types (dict): The key is attribute name
101
+ and the value is attribute type.
102
+ """
103
+ return {
104
+ 'shopper_activity': (str, none_type,), # noqa: E501
105
+ 'lookback_days': (str, none_type,), # noqa: E501
106
+ 'category_ids': ([str], none_type,), # noqa: E501
107
+ 'brand_ids': ([str], none_type,), # noqa: E501
108
+ 'min_price': (float, none_type,), # noqa: E501
109
+ 'max_price': (float, none_type,), # noqa: E501
110
+ }
111
+
112
+ @cached_property
113
+ def discriminator():
114
+ return None
115
+
116
+
117
+ attribute_map = {
118
+ 'shopper_activity': 'shopperActivity', # noqa: E501
119
+ 'lookback_days': 'lookbackDays', # noqa: E501
120
+ 'category_ids': 'categoryIds', # noqa: E501
121
+ 'brand_ids': 'brandIds', # noqa: E501
122
+ 'min_price': 'minPrice', # noqa: E501
123
+ 'max_price': 'maxPrice', # noqa: E501
124
+ }
125
+
126
+ read_only_vars = {
127
+ }
128
+
129
+ _composed_schemas = {}
130
+
131
+ @classmethod
132
+ @convert_js_args_to_python_args
133
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
134
+ """RmUserBehaviorV1 - a model defined in OpenAPI
135
+
136
+ Keyword Args:
137
+ _check_type (bool): if True, values for parameters in openapi_types
138
+ will be type checked and a TypeError will be
139
+ raised if the wrong type is input.
140
+ Defaults to True
141
+ _path_to_item (tuple/list): This is a list of keys or values to
142
+ drill down to the model in received_data
143
+ when deserializing a response
144
+ _spec_property_naming (bool): True if the variable names in the input data
145
+ are serialized names, as specified in the OpenAPI document.
146
+ False if the variable names in the input data
147
+ are pythonic names, e.g. snake case (default)
148
+ _configuration (Configuration): the instance to use when
149
+ deserializing a file_type parameter.
150
+ If passed, type conversion is attempted
151
+ If omitted no type conversion is done.
152
+ _visited_composed_classes (tuple): This stores a tuple of
153
+ classes that we have traveled through so that
154
+ if we see that class again we will not use its
155
+ discriminator again.
156
+ When traveling through a discriminator, the
157
+ composed schema that is
158
+ is traveled through is added to this set.
159
+ For example if Animal has a discriminator
160
+ petType and we pass in "Dog", and the class Dog
161
+ allOf includes Animal, we move through Animal
162
+ once using the discriminator, and pick Dog.
163
+ Then in Dog, we will make an instance of the
164
+ Animal class but this time we won't travel
165
+ through its discriminator because we passed in
166
+ _visited_composed_classes = (Animal,)
167
+ shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
168
+ lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
169
+ category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
170
+ brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
171
+ min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
172
+ max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
173
+ """
174
+
175
+ _check_type = kwargs.pop('_check_type', True)
176
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
177
+ _path_to_item = kwargs.pop('_path_to_item', ())
178
+ _configuration = kwargs.pop('_configuration', None)
179
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
180
+
181
+ self = super(OpenApiModel, cls).__new__(cls)
182
+
183
+ if args:
184
+ for arg in args:
185
+ if isinstance(arg, dict):
186
+ kwargs.update(arg)
187
+ else:
188
+ raise ApiTypeError(
189
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
190
+ args,
191
+ self.__class__.__name__,
192
+ ),
193
+ path_to_item=_path_to_item,
194
+ valid_classes=(self.__class__,),
195
+ )
196
+
197
+ self._data_store = {}
198
+ self._check_type = _check_type
199
+ self._spec_property_naming = _spec_property_naming
200
+ self._path_to_item = _path_to_item
201
+ self._configuration = _configuration
202
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
203
+
204
+ for var_name, var_value in kwargs.items():
205
+ if var_name not in self.attribute_map and \
206
+ self._configuration is not None and \
207
+ self._configuration.discard_unknown_keys and \
208
+ self.additional_properties_type is None:
209
+ # discard variable.
210
+ continue
211
+ setattr(self, var_name, var_value)
212
+ return self
213
+
214
+ required_properties = set([
215
+ '_data_store',
216
+ '_check_type',
217
+ '_spec_property_naming',
218
+ '_path_to_item',
219
+ '_configuration',
220
+ '_visited_composed_classes',
221
+ ])
222
+
223
+ @convert_js_args_to_python_args
224
+ def __init__(self, *args, **kwargs): # noqa: E501
225
+ """RmUserBehaviorV1 - a model defined in OpenAPI
226
+
227
+ Keyword Args:
228
+ _check_type (bool): if True, values for parameters in openapi_types
229
+ will be type checked and a TypeError will be
230
+ raised if the wrong type is input.
231
+ Defaults to True
232
+ _path_to_item (tuple/list): This is a list of keys or values to
233
+ drill down to the model in received_data
234
+ when deserializing a response
235
+ _spec_property_naming (bool): True if the variable names in the input data
236
+ are serialized names, as specified in the OpenAPI document.
237
+ False if the variable names in the input data
238
+ are pythonic names, e.g. snake case (default)
239
+ _configuration (Configuration): the instance to use when
240
+ deserializing a file_type parameter.
241
+ If passed, type conversion is attempted
242
+ If omitted no type conversion is done.
243
+ _visited_composed_classes (tuple): This stores a tuple of
244
+ classes that we have traveled through so that
245
+ if we see that class again we will not use its
246
+ discriminator again.
247
+ When traveling through a discriminator, the
248
+ composed schema that is
249
+ is traveled through is added to this set.
250
+ For example if Animal has a discriminator
251
+ petType and we pass in "Dog", and the class Dog
252
+ allOf includes Animal, we move through Animal
253
+ once using the discriminator, and pick Dog.
254
+ Then in Dog, we will make an instance of the
255
+ Animal class but this time we won't travel
256
+ through its discriminator because we passed in
257
+ _visited_composed_classes = (Animal,)
258
+ shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
259
+ lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
260
+ category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
261
+ brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
262
+ min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
263
+ max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
264
+ """
265
+
266
+ _check_type = kwargs.pop('_check_type', True)
267
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
268
+ _path_to_item = kwargs.pop('_path_to_item', ())
269
+ _configuration = kwargs.pop('_configuration', None)
270
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
271
+
272
+ if args:
273
+ for arg in args:
274
+ if isinstance(arg, dict):
275
+ kwargs.update(arg)
276
+ else:
277
+ raise ApiTypeError(
278
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
279
+ args,
280
+ self.__class__.__name__,
281
+ ),
282
+ path_to_item=_path_to_item,
283
+ valid_classes=(self.__class__,),
284
+ )
285
+
286
+ self._data_store = {}
287
+ self._check_type = _check_type
288
+ self._spec_property_naming = _spec_property_naming
289
+ self._path_to_item = _path_to_item
290
+ self._configuration = _configuration
291
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
292
+
293
+ for var_name, var_value in kwargs.items():
294
+ if var_name not in self.attribute_map and \
295
+ self._configuration is not None and \
296
+ self._configuration.discard_unknown_keys and \
297
+ self.additional_properties_type is None:
298
+ # discard variable.
299
+ continue
300
+ setattr(self, var_name, var_value)
301
+ if var_name in self.read_only_vars:
302
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
303
+ f"class with read only attributes.")