criteo-api-retailmedia-sdk 0.0.250409__py3-none-any.whl → 0.0.250606__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.
Files changed (96) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +3 -147
  3. criteo_api_retailmedia_preview/api/analytics_api.py +1 -1
  4. criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
  5. criteo_api_retailmedia_preview/api/campaign_api.py +741 -104
  6. criteo_api_retailmedia_preview/api_client.py +1 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/account_fees_update_request.py +4 -0
  9. criteo_api_retailmedia_preview/model/async_accounts_report.py +6 -6
  10. criteo_api_retailmedia_preview/model/async_campaigns_report.py +4 -4
  11. criteo_api_retailmedia_preview/model/async_line_items_report.py +4 -4
  12. criteo_api_retailmedia_preview/model/async_offsite_report.py +25 -18
  13. criteo_api_retailmedia_preview/model/brand_id_search_request.py +7 -1
  14. criteo_api_retailmedia_preview/model/brand_id_search_result.py +7 -1
  15. criteo_api_retailmedia_preview/model/categories_search_request_v1.py +270 -0
  16. criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +8 -1
  17. criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
  18. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +8 -1
  19. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
  20. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
  21. criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
  22. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
  23. criteo_api_retailmedia_preview/model/{input_keywords.py → flight_leg.py} +39 -17
  24. criteo_api_retailmedia_preview/model/{recommended_keywords_result.py → flight_schedule.py} +9 -13
  25. criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
  26. criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
  27. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +7 -1
  28. criteo_api_retailmedia_preview/model/{grant_consent_model.py → recommended_categories_request_v1.py} +14 -21
  29. criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
  30. criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
  31. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_request.py → rm_audience_bulk_create_input_v1.py} +9 -9
  32. criteo_api_retailmedia_preview/model/{grant_consent_input.py → rm_audience_bulk_delete_input_v1.py} +8 -8
  33. criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
  34. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
  35. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
  36. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
  37. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
  38. criteo_api_retailmedia_preview/model/{grant_consent_model_value_resource.py → rm_audience_create_entity_v1_resource.py} +8 -8
  39. criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
  40. criteo_api_retailmedia_preview/model/{value_resource_outcome_of_recommended_keywords_result.py → rm_audience_entity_v1_list_response.py} +16 -9
  41. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
  42. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
  43. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
  44. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
  45. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
  48. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
  49. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
  50. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
  51. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
  52. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
  53. criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers_v2.py → rm_audience_segment_size_entity_v1_resource.py} +11 -11
  54. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
  55. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
  56. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
  57. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
  58. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
  59. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
  60. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
  61. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
  62. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
  63. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_response.py → rm_audience_size_estimation_v1_response.py} +9 -9
  64. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
  65. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py → rm_audience_update_entity_v1_resource.py} +17 -19
  66. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
  67. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
  68. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
  69. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +6 -6
  70. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
  71. criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers_v2.py → sponsored_products_line_item_create_request_model.py} +81 -33
  72. criteo_api_retailmedia_preview/model/{keywords.py → sponsored_products_line_item_update_request_model.py} +82 -44
  73. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +2 -2
  74. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +4 -4
  75. criteo_api_retailmedia_preview/model/sync_line_items_report.py +4 -4
  76. criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +8 -1
  77. criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
  78. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_private_market_account_fees.py → value_resource_collection_outcome_private_market_account_fees_and_metadata.py} +9 -3
  79. criteo_api_retailmedia_preview/model/value_resource_input_brand_id_search_request.py +8 -1
  80. criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
  81. criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
  82. criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
  83. criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
  84. criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
  85. criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
  86. criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
  87. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
  88. criteo_api_retailmedia_preview/model/{value_resource_of_recommended_keywords_result.py → value_resource_recommended_keywords_response_v1.py} +10 -10
  89. criteo_api_retailmedia_preview/models/__init__.py +63 -17
  90. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/METADATA +3 -3
  91. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/RECORD +93 -47
  92. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/WHEEL +1 -1
  93. criteo_api_retailmedia_preview/model/common_error.py +0 -301
  94. criteo_api_retailmedia_preview/model/common_warning.py +0 -301
  95. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +0 -307
  96. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,266 @@
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 RecommendedKeywordsRequestV1(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
+ ('sku_ids',): {
62
+ 'min_items': 1,
63
+ },
64
+ }
65
+
66
+ additional_properties_type = None
67
+
68
+ _nullable = False
69
+
70
+ @cached_property
71
+ def openapi_types():
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
+ Returns
77
+ openapi_types (dict): The key is attribute name
78
+ and the value is attribute type.
79
+ """
80
+ return {
81
+ 'sku_ids': ([str],), # noqa: E501
82
+ }
83
+
84
+ @cached_property
85
+ def discriminator():
86
+ return None
87
+
88
+
89
+ attribute_map = {
90
+ 'sku_ids': 'skuIds', # noqa: E501
91
+ }
92
+
93
+ read_only_vars = {
94
+ }
95
+
96
+ _composed_schemas = {}
97
+
98
+ @classmethod
99
+ @convert_js_args_to_python_args
100
+ def _from_openapi_data(cls, sku_ids, *args, **kwargs): # noqa: E501
101
+ """RecommendedKeywordsRequestV1 - a model defined in OpenAPI
102
+
103
+ Args:
104
+ sku_ids ([str]): Sku Id list that the recommended keywords generated on.
105
+
106
+ Keyword Args:
107
+ _check_type (bool): if True, values for parameters in openapi_types
108
+ will be type checked and a TypeError will be
109
+ raised if the wrong type is input.
110
+ Defaults to True
111
+ _path_to_item (tuple/list): This is a list of keys or values to
112
+ drill down to the model in received_data
113
+ when deserializing a response
114
+ _spec_property_naming (bool): True if the variable names in the input data
115
+ are serialized names, as specified in the OpenAPI document.
116
+ False if the variable names in the input data
117
+ are pythonic names, e.g. snake case (default)
118
+ _configuration (Configuration): the instance to use when
119
+ deserializing a file_type parameter.
120
+ If passed, type conversion is attempted
121
+ If omitted no type conversion is done.
122
+ _visited_composed_classes (tuple): This stores a tuple of
123
+ classes that we have traveled through so that
124
+ if we see that class again we will not use its
125
+ discriminator again.
126
+ When traveling through a discriminator, the
127
+ composed schema that is
128
+ is traveled through is added to this set.
129
+ For example if Animal has a discriminator
130
+ petType and we pass in "Dog", and the class Dog
131
+ allOf includes Animal, we move through Animal
132
+ once using the discriminator, and pick Dog.
133
+ Then in Dog, we will make an instance of the
134
+ Animal class but this time we won't travel
135
+ through its discriminator because we passed in
136
+ _visited_composed_classes = (Animal,)
137
+ """
138
+
139
+ _check_type = kwargs.pop('_check_type', True)
140
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
141
+ _path_to_item = kwargs.pop('_path_to_item', ())
142
+ _configuration = kwargs.pop('_configuration', None)
143
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
144
+
145
+ self = super(OpenApiModel, cls).__new__(cls)
146
+
147
+ if args:
148
+ for arg in args:
149
+ if isinstance(arg, dict):
150
+ kwargs.update(arg)
151
+ else:
152
+ raise ApiTypeError(
153
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
154
+ args,
155
+ self.__class__.__name__,
156
+ ),
157
+ path_to_item=_path_to_item,
158
+ valid_classes=(self.__class__,),
159
+ )
160
+
161
+ self._data_store = {}
162
+ self._check_type = _check_type
163
+ self._spec_property_naming = _spec_property_naming
164
+ self._path_to_item = _path_to_item
165
+ self._configuration = _configuration
166
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
167
+
168
+ self.sku_ids = sku_ids
169
+ for var_name, var_value in kwargs.items():
170
+ if var_name not in self.attribute_map and \
171
+ self._configuration is not None and \
172
+ self._configuration.discard_unknown_keys and \
173
+ self.additional_properties_type is None:
174
+ # discard variable.
175
+ continue
176
+ setattr(self, var_name, var_value)
177
+ return self
178
+
179
+ required_properties = set([
180
+ '_data_store',
181
+ '_check_type',
182
+ '_spec_property_naming',
183
+ '_path_to_item',
184
+ '_configuration',
185
+ '_visited_composed_classes',
186
+ ])
187
+
188
+ @convert_js_args_to_python_args
189
+ def __init__(self, sku_ids, *args, **kwargs): # noqa: E501
190
+ """RecommendedKeywordsRequestV1 - a model defined in OpenAPI
191
+
192
+ Args:
193
+ sku_ids ([str]): Sku Id list that the recommended keywords generated on.
194
+
195
+ Keyword Args:
196
+ _check_type (bool): if True, values for parameters in openapi_types
197
+ will be type checked and a TypeError will be
198
+ raised if the wrong type is input.
199
+ Defaults to True
200
+ _path_to_item (tuple/list): This is a list of keys or values to
201
+ drill down to the model in received_data
202
+ when deserializing a response
203
+ _spec_property_naming (bool): True if the variable names in the input data
204
+ are serialized names, as specified in the OpenAPI document.
205
+ False if the variable names in the input data
206
+ are pythonic names, e.g. snake case (default)
207
+ _configuration (Configuration): the instance to use when
208
+ deserializing a file_type parameter.
209
+ If passed, type conversion is attempted
210
+ If omitted no type conversion is done.
211
+ _visited_composed_classes (tuple): This stores a tuple of
212
+ classes that we have traveled through so that
213
+ if we see that class again we will not use its
214
+ discriminator again.
215
+ When traveling through a discriminator, the
216
+ composed schema that is
217
+ is traveled through is added to this set.
218
+ For example if Animal has a discriminator
219
+ petType and we pass in "Dog", and the class Dog
220
+ allOf includes Animal, we move through Animal
221
+ once using the discriminator, and pick Dog.
222
+ Then in Dog, we will make an instance of the
223
+ Animal class but this time we won't travel
224
+ through its discriminator because we passed in
225
+ _visited_composed_classes = (Animal,)
226
+ """
227
+
228
+ _check_type = kwargs.pop('_check_type', True)
229
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
230
+ _path_to_item = kwargs.pop('_path_to_item', ())
231
+ _configuration = kwargs.pop('_configuration', None)
232
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
233
+
234
+ if args:
235
+ for arg in args:
236
+ if isinstance(arg, dict):
237
+ kwargs.update(arg)
238
+ else:
239
+ raise ApiTypeError(
240
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
241
+ args,
242
+ self.__class__.__name__,
243
+ ),
244
+ path_to_item=_path_to_item,
245
+ valid_classes=(self.__class__,),
246
+ )
247
+
248
+ self._data_store = {}
249
+ self._check_type = _check_type
250
+ self._spec_property_naming = _spec_property_naming
251
+ self._path_to_item = _path_to_item
252
+ self._configuration = _configuration
253
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
254
+
255
+ self.sku_ids = sku_ids
256
+ for var_name, var_value in kwargs.items():
257
+ if var_name not in self.attribute_map and \
258
+ self._configuration is not None and \
259
+ self._configuration.discard_unknown_keys and \
260
+ self.additional_properties_type is None:
261
+ # discard variable.
262
+ continue
263
+ setattr(self, var_name, var_value)
264
+ if var_name in self.read_only_vars:
265
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
266
+ f"class with read only attributes.")
@@ -0,0 +1,263 @@
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 RecommendedKeywordsResponseV1(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
+ }
62
+
63
+ additional_properties_type = None
64
+
65
+ _nullable = True
66
+
67
+ @cached_property
68
+ def openapi_types():
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
+ Returns
74
+ openapi_types (dict): The key is attribute name
75
+ and the value is attribute type.
76
+ """
77
+ return {
78
+ 'recommended_keywords': ([str],), # noqa: E501
79
+ }
80
+
81
+ @cached_property
82
+ def discriminator():
83
+ return None
84
+
85
+
86
+ attribute_map = {
87
+ 'recommended_keywords': 'recommendedKeywords', # noqa: E501
88
+ }
89
+
90
+ read_only_vars = {
91
+ }
92
+
93
+ _composed_schemas = {}
94
+
95
+ @classmethod
96
+ @convert_js_args_to_python_args
97
+ def _from_openapi_data(cls, recommended_keywords, *args, **kwargs): # noqa: E501
98
+ """RecommendedKeywordsResponseV1 - a model defined in OpenAPI
99
+
100
+ Args:
101
+ recommended_keywords ([str]): Recommended keywords generated by given retailer Id and sku Ids.
102
+
103
+ Keyword Args:
104
+ _check_type (bool): if True, values for parameters in openapi_types
105
+ will be type checked and a TypeError will be
106
+ raised if the wrong type is input.
107
+ Defaults to True
108
+ _path_to_item (tuple/list): This is a list of keys or values to
109
+ drill down to the model in received_data
110
+ when deserializing a response
111
+ _spec_property_naming (bool): True if the variable names in the input data
112
+ are serialized names, as specified in the OpenAPI document.
113
+ False if the variable names in the input data
114
+ are pythonic names, e.g. snake case (default)
115
+ _configuration (Configuration): the instance to use when
116
+ deserializing a file_type parameter.
117
+ If passed, type conversion is attempted
118
+ If omitted no type conversion is done.
119
+ _visited_composed_classes (tuple): This stores a tuple of
120
+ classes that we have traveled through so that
121
+ if we see that class again we will not use its
122
+ discriminator again.
123
+ When traveling through a discriminator, the
124
+ composed schema that is
125
+ is traveled through is added to this set.
126
+ For example if Animal has a discriminator
127
+ petType and we pass in "Dog", and the class Dog
128
+ allOf includes Animal, we move through Animal
129
+ once using the discriminator, and pick Dog.
130
+ Then in Dog, we will make an instance of the
131
+ Animal class but this time we won't travel
132
+ through its discriminator because we passed in
133
+ _visited_composed_classes = (Animal,)
134
+ """
135
+
136
+ _check_type = kwargs.pop('_check_type', True)
137
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
138
+ _path_to_item = kwargs.pop('_path_to_item', ())
139
+ _configuration = kwargs.pop('_configuration', None)
140
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
141
+
142
+ self = super(OpenApiModel, cls).__new__(cls)
143
+
144
+ if args:
145
+ for arg in args:
146
+ if isinstance(arg, dict):
147
+ kwargs.update(arg)
148
+ else:
149
+ raise ApiTypeError(
150
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
151
+ args,
152
+ self.__class__.__name__,
153
+ ),
154
+ path_to_item=_path_to_item,
155
+ valid_classes=(self.__class__,),
156
+ )
157
+
158
+ self._data_store = {}
159
+ self._check_type = _check_type
160
+ self._spec_property_naming = _spec_property_naming
161
+ self._path_to_item = _path_to_item
162
+ self._configuration = _configuration
163
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
164
+
165
+ self.recommended_keywords = recommended_keywords
166
+ for var_name, var_value in kwargs.items():
167
+ if var_name not in self.attribute_map and \
168
+ self._configuration is not None and \
169
+ self._configuration.discard_unknown_keys and \
170
+ self.additional_properties_type is None:
171
+ # discard variable.
172
+ continue
173
+ setattr(self, var_name, var_value)
174
+ return self
175
+
176
+ required_properties = set([
177
+ '_data_store',
178
+ '_check_type',
179
+ '_spec_property_naming',
180
+ '_path_to_item',
181
+ '_configuration',
182
+ '_visited_composed_classes',
183
+ ])
184
+
185
+ @convert_js_args_to_python_args
186
+ def __init__(self, recommended_keywords, *args, **kwargs): # noqa: E501
187
+ """RecommendedKeywordsResponseV1 - a model defined in OpenAPI
188
+
189
+ Args:
190
+ recommended_keywords ([str]): Recommended keywords generated by given retailer Id and sku Ids.
191
+
192
+ Keyword Args:
193
+ _check_type (bool): if True, values for parameters in openapi_types
194
+ will be type checked and a TypeError will be
195
+ raised if the wrong type is input.
196
+ Defaults to True
197
+ _path_to_item (tuple/list): This is a list of keys or values to
198
+ drill down to the model in received_data
199
+ when deserializing a response
200
+ _spec_property_naming (bool): True if the variable names in the input data
201
+ are serialized names, as specified in the OpenAPI document.
202
+ False if the variable names in the input data
203
+ are pythonic names, e.g. snake case (default)
204
+ _configuration (Configuration): the instance to use when
205
+ deserializing a file_type parameter.
206
+ If passed, type conversion is attempted
207
+ If omitted no type conversion is done.
208
+ _visited_composed_classes (tuple): This stores a tuple of
209
+ classes that we have traveled through so that
210
+ if we see that class again we will not use its
211
+ discriminator again.
212
+ When traveling through a discriminator, the
213
+ composed schema that is
214
+ is traveled through is added to this set.
215
+ For example if Animal has a discriminator
216
+ petType and we pass in "Dog", and the class Dog
217
+ allOf includes Animal, we move through Animal
218
+ once using the discriminator, and pick Dog.
219
+ Then in Dog, we will make an instance of the
220
+ Animal class but this time we won't travel
221
+ through its discriminator because we passed in
222
+ _visited_composed_classes = (Animal,)
223
+ """
224
+
225
+ _check_type = kwargs.pop('_check_type', True)
226
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
227
+ _path_to_item = kwargs.pop('_path_to_item', ())
228
+ _configuration = kwargs.pop('_configuration', None)
229
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
230
+
231
+ if args:
232
+ for arg in args:
233
+ if isinstance(arg, dict):
234
+ kwargs.update(arg)
235
+ else:
236
+ raise ApiTypeError(
237
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
238
+ args,
239
+ self.__class__.__name__,
240
+ ),
241
+ path_to_item=_path_to_item,
242
+ valid_classes=(self.__class__,),
243
+ )
244
+
245
+ self._data_store = {}
246
+ self._check_type = _check_type
247
+ self._spec_property_naming = _spec_property_naming
248
+ self._path_to_item = _path_to_item
249
+ self._configuration = _configuration
250
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
251
+
252
+ self.recommended_keywords = recommended_keywords
253
+ for var_name, var_value in kwargs.items():
254
+ if var_name not in self.attribute_map and \
255
+ self._configuration is not None and \
256
+ self._configuration.discard_unknown_keys and \
257
+ self.additional_properties_type is None:
258
+ # discard variable.
259
+ continue
260
+ setattr(self, var_name, var_value)
261
+ if var_name in self.read_only_vars:
262
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
263
+ f"class with read only attributes.")
@@ -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.resource_of_line_item_bid_multipliers_v2 import ResourceOfLineItemBidMultipliersV2
34
- globals()['ResourceOfLineItemBidMultipliersV2'] = ResourceOfLineItemBidMultipliersV2
33
+ from criteo_api_retailmedia_preview.model.rm_audience_create_entity_v1_resource import RmAudienceCreateEntityV1Resource
34
+ globals()['RmAudienceCreateEntityV1Resource'] = RmAudienceCreateEntityV1Resource
35
35
 
36
36
 
37
- class LineItemBidMultipliersV2Request(ModelNormal):
37
+ class RmAudienceBulkCreateInputV1(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -73,7 +73,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = True
76
+ _nullable = False
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -87,7 +87,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (ResourceOfLineItemBidMultipliersV2,), # noqa: E501
90
+ 'data': ([RmAudienceCreateEntityV1Resource],), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -107,7 +107,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """LineItemBidMultipliersV2Request - a model defined in OpenAPI
110
+ """RmAudienceBulkCreateInputV1 - a model defined in OpenAPI
111
111
 
112
112
  Keyword Args:
113
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -140,7 +140,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
140
140
  Animal class but this time we won't travel
141
141
  through its discriminator because we passed in
142
142
  _visited_composed_classes = (Animal,)
143
- data (ResourceOfLineItemBidMultipliersV2): [optional] # noqa: E501
143
+ data ([RmAudienceCreateEntityV1Resource]): [optional] # noqa: E501
144
144
  """
145
145
 
146
146
  _check_type = kwargs.pop('_check_type', True)
@@ -193,7 +193,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """LineItemBidMultipliersV2Request - a model defined in OpenAPI
196
+ """RmAudienceBulkCreateInputV1 - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -226,7 +226,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
226
226
  Animal class but this time we won't travel
227
227
  through its discriminator because we passed in
228
228
  _visited_composed_classes = (Animal,)
229
- data (ResourceOfLineItemBidMultipliersV2): [optional] # noqa: E501
229
+ data ([RmAudienceCreateEntityV1Resource]): [optional] # noqa: E501
230
230
  """
231
231
 
232
232
  _check_type = kwargs.pop('_check_type', True)
@@ -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.grant_consent_model_value_resource import GrantConsentModelValueResource
34
- globals()['GrantConsentModelValueResource'] = GrantConsentModelValueResource
33
+ from criteo_api_retailmedia_preview.model.rm_audience_delete_entity_v1_resource import RmAudienceDeleteEntityV1Resource
34
+ globals()['RmAudienceDeleteEntityV1Resource'] = RmAudienceDeleteEntityV1Resource
35
35
 
36
36
 
37
- class GrantConsentInput(ModelNormal):
37
+ class RmAudienceBulkDeleteInputV1(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,7 +87,7 @@ class GrantConsentInput(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (GrantConsentModelValueResource,), # noqa: E501
90
+ 'data': ([RmAudienceDeleteEntityV1Resource],), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -107,7 +107,7 @@ class GrantConsentInput(ModelNormal):
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """GrantConsentInput - a model defined in OpenAPI
110
+ """RmAudienceBulkDeleteInputV1 - a model defined in OpenAPI
111
111
 
112
112
  Keyword Args:
113
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -140,7 +140,7 @@ class GrantConsentInput(ModelNormal):
140
140
  Animal class but this time we won't travel
141
141
  through its discriminator because we passed in
142
142
  _visited_composed_classes = (Animal,)
143
- data (GrantConsentModelValueResource): [optional] # noqa: E501
143
+ data ([RmAudienceDeleteEntityV1Resource]): [optional] # noqa: E501
144
144
  """
145
145
 
146
146
  _check_type = kwargs.pop('_check_type', True)
@@ -193,7 +193,7 @@ class GrantConsentInput(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """GrantConsentInput - a model defined in OpenAPI
196
+ """RmAudienceBulkDeleteInputV1 - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -226,7 +226,7 @@ class GrantConsentInput(ModelNormal):
226
226
  Animal class but this time we won't travel
227
227
  through its discriminator because we passed in
228
228
  _visited_composed_classes = (Animal,)
229
- data (GrantConsentModelValueResource): [optional] # noqa: E501
229
+ data ([RmAudienceDeleteEntityV1Resource]): [optional] # noqa: E501
230
230
  """
231
231
 
232
232
  _check_type = kwargs.pop('_check_type', True)