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.

Files changed (77) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
  3. criteo_api_retailmedia_preview/api/campaign_api.py +1205 -147
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/configuration.py +1 -1
  6. criteo_api_retailmedia_preview/model/async_accounts_report.py +11 -0
  7. criteo_api_retailmedia_preview/model/async_campaigns_report.py +11 -0
  8. criteo_api_retailmedia_preview/model/async_line_items_report.py +11 -0
  9. criteo_api_retailmedia_preview/model/categories_search_request_v1.py +270 -0
  10. criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
  11. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
  12. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
  13. criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
  14. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
  15. criteo_api_retailmedia_preview/model/flight_leg.py +287 -0
  16. criteo_api_retailmedia_preview/model/flight_schedule.py +262 -0
  17. criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
  18. criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
  19. criteo_api_retailmedia_preview/model/recommended_categories_request_v1.py +272 -0
  20. criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
  21. criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
  22. criteo_api_retailmedia_preview/model/rm_audience_bulk_create_input_v1.py +269 -0
  23. criteo_api_retailmedia_preview/model/rm_audience_bulk_delete_input_v1.py +269 -0
  24. criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
  25. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
  26. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
  27. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
  28. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
  29. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1_resource.py +273 -0
  30. criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
  31. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_list_response.py +281 -0
  32. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
  33. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
  34. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
  35. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
  36. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
  37. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
  38. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
  39. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
  40. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
  41. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
  42. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
  43. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
  44. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_resource.py +277 -0
  45. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
  48. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
  49. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
  50. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
  51. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
  52. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
  53. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
  54. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_response.py +281 -0
  55. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
  56. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1_resource.py +277 -0
  57. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
  58. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
  59. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
  60. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
  61. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +335 -0
  62. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +335 -0
  63. criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
  64. criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
  65. criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
  66. criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
  67. criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
  68. criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
  69. criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
  70. criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
  71. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
  72. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_response_v1.py +266 -0
  73. criteo_api_retailmedia_preview/models/__init__.py +62 -0
  74. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/METADATA +3 -3
  75. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/RECORD +77 -15
  76. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/WHEEL +1 -1
  77. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250618.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,277 @@
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.rm_audience_update_entity_v1 import RmAudienceUpdateEntityV1
34
+ globals()['RmAudienceUpdateEntityV1'] = RmAudienceUpdateEntityV1
35
+
36
+
37
+ class RmAudienceUpdateEntityV1Resource(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
+ }
66
+
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
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
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
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ lazy_import()
89
+ return {
90
+ 'attributes': (RmAudienceUpdateEntityV1,), # noqa: E501
91
+ 'id': (str,), # noqa: E501
92
+ 'type': (str,), # noqa: E501
93
+ }
94
+
95
+ @cached_property
96
+ def discriminator():
97
+ return None
98
+
99
+
100
+ attribute_map = {
101
+ 'attributes': 'attributes', # noqa: E501
102
+ 'id': 'id', # noqa: E501
103
+ 'type': 'type', # noqa: E501
104
+ }
105
+
106
+ read_only_vars = {
107
+ }
108
+
109
+ _composed_schemas = {}
110
+
111
+ @classmethod
112
+ @convert_js_args_to_python_args
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """RmAudienceUpdateEntityV1Resource - a model defined in OpenAPI
115
+
116
+ Keyword Args:
117
+ _check_type (bool): if True, values for parameters in openapi_types
118
+ will be type checked and a TypeError will be
119
+ raised if the wrong type is input.
120
+ Defaults to True
121
+ _path_to_item (tuple/list): This is a list of keys or values to
122
+ drill down to the model in received_data
123
+ when deserializing a response
124
+ _spec_property_naming (bool): True if the variable names in the input data
125
+ are serialized names, as specified in the OpenAPI document.
126
+ False if the variable names in the input data
127
+ are pythonic names, e.g. snake case (default)
128
+ _configuration (Configuration): the instance to use when
129
+ deserializing a file_type parameter.
130
+ If passed, type conversion is attempted
131
+ If omitted no type conversion is done.
132
+ _visited_composed_classes (tuple): This stores a tuple of
133
+ classes that we have traveled through so that
134
+ if we see that class again we will not use its
135
+ discriminator again.
136
+ When traveling through a discriminator, the
137
+ composed schema that is
138
+ is traveled through is added to this set.
139
+ For example if Animal has a discriminator
140
+ petType and we pass in "Dog", and the class Dog
141
+ allOf includes Animal, we move through Animal
142
+ once using the discriminator, and pick Dog.
143
+ Then in Dog, we will make an instance of the
144
+ Animal class but this time we won't travel
145
+ through its discriminator because we passed in
146
+ _visited_composed_classes = (Animal,)
147
+ attributes (RmAudienceUpdateEntityV1): [optional] # noqa: E501
148
+ id (str): Id of the entity. [optional] # noqa: E501
149
+ type (str): [optional] # noqa: E501
150
+ """
151
+
152
+ _check_type = kwargs.pop('_check_type', True)
153
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
154
+ _path_to_item = kwargs.pop('_path_to_item', ())
155
+ _configuration = kwargs.pop('_configuration', None)
156
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
157
+
158
+ self = super(OpenApiModel, cls).__new__(cls)
159
+
160
+ if args:
161
+ for arg in args:
162
+ if isinstance(arg, dict):
163
+ kwargs.update(arg)
164
+ else:
165
+ raise ApiTypeError(
166
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
167
+ args,
168
+ self.__class__.__name__,
169
+ ),
170
+ path_to_item=_path_to_item,
171
+ valid_classes=(self.__class__,),
172
+ )
173
+
174
+ self._data_store = {}
175
+ self._check_type = _check_type
176
+ self._spec_property_naming = _spec_property_naming
177
+ self._path_to_item = _path_to_item
178
+ self._configuration = _configuration
179
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
180
+
181
+ for var_name, var_value in kwargs.items():
182
+ if var_name not in self.attribute_map and \
183
+ self._configuration is not None and \
184
+ self._configuration.discard_unknown_keys and \
185
+ self.additional_properties_type is None:
186
+ # discard variable.
187
+ continue
188
+ setattr(self, var_name, var_value)
189
+ return self
190
+
191
+ required_properties = set([
192
+ '_data_store',
193
+ '_check_type',
194
+ '_spec_property_naming',
195
+ '_path_to_item',
196
+ '_configuration',
197
+ '_visited_composed_classes',
198
+ ])
199
+
200
+ @convert_js_args_to_python_args
201
+ def __init__(self, *args, **kwargs): # noqa: E501
202
+ """RmAudienceUpdateEntityV1Resource - a model defined in OpenAPI
203
+
204
+ Keyword Args:
205
+ _check_type (bool): if True, values for parameters in openapi_types
206
+ will be type checked and a TypeError will be
207
+ raised if the wrong type is input.
208
+ Defaults to True
209
+ _path_to_item (tuple/list): This is a list of keys or values to
210
+ drill down to the model in received_data
211
+ when deserializing a response
212
+ _spec_property_naming (bool): True if the variable names in the input data
213
+ are serialized names, as specified in the OpenAPI document.
214
+ False if the variable names in the input data
215
+ are pythonic names, e.g. snake case (default)
216
+ _configuration (Configuration): the instance to use when
217
+ deserializing a file_type parameter.
218
+ If passed, type conversion is attempted
219
+ If omitted no type conversion is done.
220
+ _visited_composed_classes (tuple): This stores a tuple of
221
+ classes that we have traveled through so that
222
+ if we see that class again we will not use its
223
+ discriminator again.
224
+ When traveling through a discriminator, the
225
+ composed schema that is
226
+ is traveled through is added to this set.
227
+ For example if Animal has a discriminator
228
+ petType and we pass in "Dog", and the class Dog
229
+ allOf includes Animal, we move through Animal
230
+ once using the discriminator, and pick Dog.
231
+ Then in Dog, we will make an instance of the
232
+ Animal class but this time we won't travel
233
+ through its discriminator because we passed in
234
+ _visited_composed_classes = (Animal,)
235
+ attributes (RmAudienceUpdateEntityV1): [optional] # noqa: E501
236
+ id (str): Id of the entity. [optional] # noqa: E501
237
+ type (str): [optional] # noqa: E501
238
+ """
239
+
240
+ _check_type = kwargs.pop('_check_type', True)
241
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
242
+ _path_to_item = kwargs.pop('_path_to_item', ())
243
+ _configuration = kwargs.pop('_configuration', None)
244
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
245
+
246
+ if args:
247
+ for arg in args:
248
+ if isinstance(arg, dict):
249
+ kwargs.update(arg)
250
+ else:
251
+ raise ApiTypeError(
252
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
253
+ args,
254
+ self.__class__.__name__,
255
+ ),
256
+ path_to_item=_path_to_item,
257
+ valid_classes=(self.__class__,),
258
+ )
259
+
260
+ self._data_store = {}
261
+ self._check_type = _check_type
262
+ self._spec_property_naming = _spec_property_naming
263
+ self._path_to_item = _path_to_item
264
+ self._configuration = _configuration
265
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
266
+
267
+ for var_name, var_value in kwargs.items():
268
+ if var_name not in self.attribute_map and \
269
+ self._configuration is not None and \
270
+ self._configuration.discard_unknown_keys and \
271
+ self.additional_properties_type is None:
272
+ # discard variable.
273
+ continue
274
+ setattr(self, var_name, var_value)
275
+ if var_name in self.read_only_vars:
276
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
277
+ f"class with read only attributes.")
@@ -0,0 +1,305 @@
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 RmEventsCreateV1(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
+ ('lookback_days',): {
59
+ 'UNKNOWN': "Unknown",
60
+ 'LAST7DAYS': "Last7Days",
61
+ 'LAST14DAYS': "Last14Days",
62
+ 'LAST30DAYS': "Last30Days",
63
+ 'LAST45DAYS': "Last45Days",
64
+ 'LAST60DAYS': "Last60Days",
65
+ 'LAST90DAYS': "Last90Days",
66
+ 'LAST120DAYS': "Last120Days",
67
+ 'LAST150DAYS': "Last150Days",
68
+ 'LAST180DAYS': "Last180Days",
69
+ },
70
+ ('shopper_activity',): {
71
+ 'UNKNOWN': "Unknown",
72
+ 'VIEW': "View",
73
+ 'BUY': "Buy",
74
+ 'ADDTOCART': "AddToCart",
75
+ },
76
+ }
77
+
78
+ validations = {
79
+ ('brand_ids',): {
80
+ },
81
+ ('category_ids',): {
82
+ },
83
+ }
84
+
85
+ @cached_property
86
+ def additional_properties_type():
87
+ """
88
+ This must be a method because a model may have properties that are
89
+ of type self, this must run after the class is loaded
90
+ """
91
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
92
+
93
+ _nullable = False
94
+
95
+ @cached_property
96
+ def openapi_types():
97
+ """
98
+ This must be a method because a model may have properties that are
99
+ of type self, this must run after the class is loaded
100
+
101
+ Returns
102
+ openapi_types (dict): The key is attribute name
103
+ and the value is attribute type.
104
+ """
105
+ return {
106
+ 'brand_ids': ([str],), # noqa: E501
107
+ 'category_ids': ([str],), # noqa: E501
108
+ 'lookback_days': (str,), # noqa: E501
109
+ 'max_price': (float,), # noqa: E501
110
+ 'min_price': (float,), # noqa: E501
111
+ 'shopper_activity': (str,), # noqa: E501
112
+ }
113
+
114
+ @cached_property
115
+ def discriminator():
116
+ return None
117
+
118
+
119
+ attribute_map = {
120
+ 'brand_ids': 'brandIds', # noqa: E501
121
+ 'category_ids': 'categoryIds', # noqa: E501
122
+ 'lookback_days': 'lookbackDays', # noqa: E501
123
+ 'max_price': 'maxPrice', # noqa: E501
124
+ 'min_price': 'minPrice', # noqa: E501
125
+ 'shopper_activity': 'shopperActivity', # noqa: E501
126
+ }
127
+
128
+ read_only_vars = {
129
+ }
130
+
131
+ _composed_schemas = {}
132
+
133
+ @classmethod
134
+ @convert_js_args_to_python_args
135
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
136
+ """RmEventsCreateV1 - a model defined in OpenAPI
137
+
138
+ Keyword Args:
139
+ _check_type (bool): if True, values for parameters in openapi_types
140
+ will be type checked and a TypeError will be
141
+ raised if the wrong type is input.
142
+ Defaults to True
143
+ _path_to_item (tuple/list): This is a list of keys or values to
144
+ drill down to the model in received_data
145
+ when deserializing a response
146
+ _spec_property_naming (bool): True if the variable names in the input data
147
+ are serialized names, as specified in the OpenAPI document.
148
+ False if the variable names in the input data
149
+ are pythonic names, e.g. snake case (default)
150
+ _configuration (Configuration): the instance to use when
151
+ deserializing a file_type parameter.
152
+ If passed, type conversion is attempted
153
+ If omitted no type conversion is done.
154
+ _visited_composed_classes (tuple): This stores a tuple of
155
+ classes that we have traveled through so that
156
+ if we see that class again we will not use its
157
+ discriminator again.
158
+ When traveling through a discriminator, the
159
+ composed schema that is
160
+ is traveled through is added to this set.
161
+ For example if Animal has a discriminator
162
+ petType and we pass in "Dog", and the class Dog
163
+ allOf includes Animal, we move through Animal
164
+ once using the discriminator, and pick Dog.
165
+ Then in Dog, we will make an instance of the
166
+ Animal class but this time we won't travel
167
+ through its discriminator because we passed in
168
+ _visited_composed_classes = (Animal,)
169
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
170
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
171
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
172
+ max_price (float): Reach people who’ve shown interest in products with a maximum price. [optional] # noqa: E501
173
+ min_price (float): Reach people who’ve shown interest in products with a minimum price. [optional] # noqa: E501
174
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
175
+ """
176
+
177
+ _check_type = kwargs.pop('_check_type', True)
178
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
179
+ _path_to_item = kwargs.pop('_path_to_item', ())
180
+ _configuration = kwargs.pop('_configuration', None)
181
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
182
+
183
+ self = super(OpenApiModel, cls).__new__(cls)
184
+
185
+ if args:
186
+ for arg in args:
187
+ if isinstance(arg, dict):
188
+ kwargs.update(arg)
189
+ else:
190
+ raise ApiTypeError(
191
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
192
+ args,
193
+ self.__class__.__name__,
194
+ ),
195
+ path_to_item=_path_to_item,
196
+ valid_classes=(self.__class__,),
197
+ )
198
+
199
+ self._data_store = {}
200
+ self._check_type = _check_type
201
+ self._spec_property_naming = _spec_property_naming
202
+ self._path_to_item = _path_to_item
203
+ self._configuration = _configuration
204
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
205
+
206
+ for var_name, var_value in kwargs.items():
207
+ if var_name not in self.attribute_map and \
208
+ self._configuration is not None and \
209
+ self._configuration.discard_unknown_keys and \
210
+ self.additional_properties_type is None:
211
+ # discard variable.
212
+ continue
213
+ setattr(self, var_name, var_value)
214
+ return self
215
+
216
+ required_properties = set([
217
+ '_data_store',
218
+ '_check_type',
219
+ '_spec_property_naming',
220
+ '_path_to_item',
221
+ '_configuration',
222
+ '_visited_composed_classes',
223
+ ])
224
+
225
+ @convert_js_args_to_python_args
226
+ def __init__(self, *args, **kwargs): # noqa: E501
227
+ """RmEventsCreateV1 - a model defined in OpenAPI
228
+
229
+ Keyword Args:
230
+ _check_type (bool): if True, values for parameters in openapi_types
231
+ will be type checked and a TypeError will be
232
+ raised if the wrong type is input.
233
+ Defaults to True
234
+ _path_to_item (tuple/list): This is a list of keys or values to
235
+ drill down to the model in received_data
236
+ when deserializing a response
237
+ _spec_property_naming (bool): True if the variable names in the input data
238
+ are serialized names, as specified in the OpenAPI document.
239
+ False if the variable names in the input data
240
+ are pythonic names, e.g. snake case (default)
241
+ _configuration (Configuration): the instance to use when
242
+ deserializing a file_type parameter.
243
+ If passed, type conversion is attempted
244
+ If omitted no type conversion is done.
245
+ _visited_composed_classes (tuple): This stores a tuple of
246
+ classes that we have traveled through so that
247
+ if we see that class again we will not use its
248
+ discriminator again.
249
+ When traveling through a discriminator, the
250
+ composed schema that is
251
+ is traveled through is added to this set.
252
+ For example if Animal has a discriminator
253
+ petType and we pass in "Dog", and the class Dog
254
+ allOf includes Animal, we move through Animal
255
+ once using the discriminator, and pick Dog.
256
+ Then in Dog, we will make an instance of the
257
+ Animal class but this time we won't travel
258
+ through its discriminator because we passed in
259
+ _visited_composed_classes = (Animal,)
260
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
261
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
262
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
263
+ max_price (float): Reach people who’ve shown interest in products with a maximum price. [optional] # noqa: E501
264
+ min_price (float): Reach people who’ve shown interest in products with a minimum price. [optional] # noqa: E501
265
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
266
+ """
267
+
268
+ _check_type = kwargs.pop('_check_type', True)
269
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
270
+ _path_to_item = kwargs.pop('_path_to_item', ())
271
+ _configuration = kwargs.pop('_configuration', None)
272
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
273
+
274
+ if args:
275
+ for arg in args:
276
+ if isinstance(arg, dict):
277
+ kwargs.update(arg)
278
+ else:
279
+ raise ApiTypeError(
280
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
281
+ args,
282
+ self.__class__.__name__,
283
+ ),
284
+ path_to_item=_path_to_item,
285
+ valid_classes=(self.__class__,),
286
+ )
287
+
288
+ self._data_store = {}
289
+ self._check_type = _check_type
290
+ self._spec_property_naming = _spec_property_naming
291
+ self._path_to_item = _path_to_item
292
+ self._configuration = _configuration
293
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
294
+
295
+ for var_name, var_value in kwargs.items():
296
+ if var_name not in self.attribute_map and \
297
+ self._configuration is not None and \
298
+ self._configuration.discard_unknown_keys and \
299
+ self.additional_properties_type is None:
300
+ # discard variable.
301
+ continue
302
+ setattr(self, var_name, var_value)
303
+ if var_name in self.read_only_vars:
304
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
305
+ f"class with read only attributes.")