criteo-api-retailmedia-sdk 2024.10.0.241029__py3-none-any.whl → 2024.10.0.250205__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 (82) hide show
  1. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/RECORD +70 -81
  3. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_10/api/accounts_api.py +30 -41
  6. criteo_api_retailmedia_v2024_10/api/campaign_api.py +26 -285
  7. criteo_api_retailmedia_v2024_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +44 -0
  10. criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +44 -0
  11. criteo_api_retailmedia_v2024_10/model/async_revenue_report.py +29 -2
  12. criteo_api_retailmedia_v2024_10/model/balance_response_v2_response.py +1 -1
  13. criteo_api_retailmedia_v2024_10/model/change_details_v1.py +8 -18
  14. criteo_api_retailmedia_v2024_10/model/choice_option.py +1 -8
  15. criteo_api_retailmedia_v2024_10/model/choice_variable_specification.py +1 -8
  16. criteo_api_retailmedia_v2024_10/model/choice_variable_value.py +1 -7
  17. criteo_api_retailmedia_v2024_10/model/color_variable_value.py +7 -19
  18. criteo_api_retailmedia_v2024_10/model/{external_creative_v2.py → creative2.py} +23 -30
  19. criteo_api_retailmedia_v2024_10/model/creative202110.py +7 -13
  20. criteo_api_retailmedia_v2024_10/model/creative202110_list_response.py +13 -20
  21. criteo_api_retailmedia_v2024_10/model/creative202210.py +12 -19
  22. criteo_api_retailmedia_v2024_10/model/creative202210_response.py +10 -17
  23. criteo_api_retailmedia_v2024_10/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
  24. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_response.py → creative2_response.py} +20 -20
  25. criteo_api_retailmedia_v2024_10/model/creative_create_model202207.py +4 -11
  26. criteo_api_retailmedia_v2024_10/model/creative_update_model202207.py +4 -11
  27. criteo_api_retailmedia_v2024_10/model/{resource_of_creative_v2.py → entity_resource_of_retail_media_account.py} +14 -14
  28. criteo_api_retailmedia_v2024_10/model/{creative_v2_response.py → entity_resource_outcome_of_retail_media_account.py} +9 -9
  29. criteo_api_retailmedia_v2024_10/model/external_line_item_bid_multipliers_v2.py +1 -1
  30. criteo_api_retailmedia_v2024_10/model/{retail_media_account.py → external_retail_media_account.py} +29 -23
  31. criteo_api_retailmedia_v2024_10/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +18 -12
  32. criteo_api_retailmedia_v2024_10/model/{external_text_variable_value.py → external_retail_media_brands.py} +7 -7
  33. criteo_api_retailmedia_v2024_10/model/{external_hyperlink_variable_value.py → external_retail_media_seller.py} +12 -8
  34. criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py +281 -0
  35. criteo_api_retailmedia_v2024_10/model/external_retailer.py +2 -0
  36. criteo_api_retailmedia_v2024_10/model/files_variable_value.py +2 -7
  37. criteo_api_retailmedia_v2024_10/model/files_variables_specification.py +7 -15
  38. criteo_api_retailmedia_v2024_10/model/hyperlink_variable_value.py +7 -19
  39. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_request.py +1 -1
  40. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_response.py +1 -1
  41. criteo_api_retailmedia_v2024_10/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
  42. criteo_api_retailmedia_v2024_10/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  43. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
  44. criteo_api_retailmedia_v2024_10/model/resource_of_creative202110.py +6 -13
  45. criteo_api_retailmedia_v2024_10/model/resource_of_creative202210.py +2 -9
  46. criteo_api_retailmedia_v2024_10/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
  47. criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_v2.py +1 -1
  48. criteo_api_retailmedia_v2024_10/model/resource_of_template.py +2 -9
  49. criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py +31 -18
  50. criteo_api_retailmedia_v2024_10/model/section.py +6 -9
  51. criteo_api_retailmedia_v2024_10/model/template.py +13 -24
  52. criteo_api_retailmedia_v2024_10/model/template_list_response.py +13 -20
  53. criteo_api_retailmedia_v2024_10/model/template_response.py +10 -17
  54. criteo_api_retailmedia_v2024_10/model/template_variable.py +1 -8
  55. criteo_api_retailmedia_v2024_10/model/template_variable_value.py +7 -8
  56. criteo_api_retailmedia_v2024_10/model/text_variable_specification.py +2 -8
  57. criteo_api_retailmedia_v2024_10/model/text_variable_value.py +7 -19
  58. criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py +12 -5
  59. criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py +9 -2
  60. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  61. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brands.py +9 -2
  62. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_seller_account_creation.py +9 -2
  63. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  64. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brands.py +14 -7
  65. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller.py +14 -7
  66. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py +14 -7
  67. criteo_api_retailmedia_v2024_10/model/{creative_v2_list_response.py → value_resource_outcome_of_retail_media_brands.py} +9 -9
  68. criteo_api_retailmedia_v2024_10/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
  69. criteo_api_retailmedia_v2024_10/models/__init__.py +15 -26
  70. criteo_api_retailmedia_v2024_10/model/approval_status_model.py +0 -292
  71. criteo_api_retailmedia_v2024_10/model/external_choice_variable_value.py +0 -269
  72. criteo_api_retailmedia_v2024_10/model/external_color_variable_value.py +0 -268
  73. criteo_api_retailmedia_v2024_10/model/external_files_variable_value.py +0 -272
  74. criteo_api_retailmedia_v2024_10/model/external_template_variable_value.py +0 -309
  75. criteo_api_retailmedia_v2024_10/model/negotiation_state_model.py +0 -293
  76. criteo_api_retailmedia_v2024_10/model/proposal_status_model.py +0 -284
  77. criteo_api_retailmedia_v2024_10/model/resource_of_retail_media_account.py +0 -270
  78. criteo_api_retailmedia_v2024_10/model/retail_media_brands.py +0 -257
  79. criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_attributes.py +0 -292
  80. criteo_api_retailmedia_v2024_10/model/retail_media_seller.py +0 -261
  81. criteo_api_retailmedia_v2024_10/model/retail_media_seller_account_creation.py +0 -274
  82. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/top_level.txt +0 -0
@@ -1,292 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-10
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_v2024_10.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_v2024_10.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class RetailMediaContactlistAmendmentAttributes(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
- ('operation',): {
59
- 'ADD': "add",
60
- 'REMOVE': "remove",
61
- },
62
- ('identifier_type',): {
63
- 'None': None,
64
- 'EMAIL': "Email",
65
- 'USERIDENTIFIER': "UserIdentifier",
66
- 'IDENTITYLINK': "IdentityLink",
67
- 'GUM': "Gum",
68
- 'CUSTOMERID': "CustomerId",
69
- 'PHONENUMBER': "PhoneNumber",
70
- },
71
- }
72
-
73
- validations = {
74
- }
75
-
76
- @cached_property
77
- def additional_properties_type():
78
- """
79
- This must be a method because a model may have properties that are
80
- of type self, this must run after the class is loaded
81
- """
82
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
83
-
84
- _nullable = False
85
-
86
- @cached_property
87
- def openapi_types():
88
- """
89
- This must be a method because a model may have properties that are
90
- of type self, this must run after the class is loaded
91
-
92
- Returns
93
- openapi_types (dict): The key is attribute name
94
- and the value is attribute type.
95
- """
96
- return {
97
- 'operation': (str,), # noqa: E501
98
- 'identifiers': ([str],), # noqa: E501
99
- 'identifier_type': (str, none_type,), # noqa: E501
100
- }
101
-
102
- @cached_property
103
- def discriminator():
104
- return None
105
-
106
-
107
- attribute_map = {
108
- 'operation': 'operation', # noqa: E501
109
- 'identifiers': 'identifiers', # noqa: E501
110
- 'identifier_type': 'identifierType', # noqa: E501
111
- }
112
-
113
- read_only_vars = {
114
- }
115
-
116
- _composed_schemas = {}
117
-
118
- @classmethod
119
- @convert_js_args_to_python_args
120
- def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501
121
- """RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
122
-
123
- Args:
124
- operation (str): Whether to add or remove users
125
- identifiers ([str]): The users to add or remove, each in the schema specified
126
-
127
- Keyword Args:
128
- _check_type (bool): if True, values for parameters in openapi_types
129
- will be type checked and a TypeError will be
130
- raised if the wrong type is input.
131
- Defaults to True
132
- _path_to_item (tuple/list): This is a list of keys or values to
133
- drill down to the model in received_data
134
- when deserializing a response
135
- _spec_property_naming (bool): True if the variable names in the input data
136
- are serialized names, as specified in the OpenAPI document.
137
- False if the variable names in the input data
138
- are pythonic names, e.g. snake case (default)
139
- _configuration (Configuration): the instance to use when
140
- deserializing a file_type parameter.
141
- If passed, type conversion is attempted
142
- If omitted no type conversion is done.
143
- _visited_composed_classes (tuple): This stores a tuple of
144
- classes that we have traveled through so that
145
- if we see that class again we will not use its
146
- discriminator again.
147
- When traveling through a discriminator, the
148
- composed schema that is
149
- is traveled through is added to this set.
150
- For example if Animal has a discriminator
151
- petType and we pass in "Dog", and the class Dog
152
- allOf includes Animal, we move through Animal
153
- once using the discriminator, and pick Dog.
154
- Then in Dog, we will make an instance of the
155
- Animal class but this time we won't travel
156
- through its discriminator because we passed in
157
- _visited_composed_classes = (Animal,)
158
- identifier_type (str, none_type): What type of identifiers are used. [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
- self.operation = operation
191
- self.identifiers = identifiers
192
- for var_name, var_value in kwargs.items():
193
- if var_name not in self.attribute_map and \
194
- self._configuration is not None and \
195
- self._configuration.discard_unknown_keys and \
196
- self.additional_properties_type is None:
197
- # discard variable.
198
- continue
199
- setattr(self, var_name, var_value)
200
- return self
201
-
202
- required_properties = set([
203
- '_data_store',
204
- '_check_type',
205
- '_spec_property_naming',
206
- '_path_to_item',
207
- '_configuration',
208
- '_visited_composed_classes',
209
- ])
210
-
211
- @convert_js_args_to_python_args
212
- def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501
213
- """RetailMediaContactlistAmendmentAttributes - a model defined in OpenAPI
214
-
215
- Args:
216
- operation (str): Whether to add or remove users
217
- identifiers ([str]): The users to add or remove, each in the schema specified
218
-
219
- Keyword Args:
220
- _check_type (bool): if True, values for parameters in openapi_types
221
- will be type checked and a TypeError will be
222
- raised if the wrong type is input.
223
- Defaults to True
224
- _path_to_item (tuple/list): This is a list of keys or values to
225
- drill down to the model in received_data
226
- when deserializing a response
227
- _spec_property_naming (bool): True if the variable names in the input data
228
- are serialized names, as specified in the OpenAPI document.
229
- False if the variable names in the input data
230
- are pythonic names, e.g. snake case (default)
231
- _configuration (Configuration): the instance to use when
232
- deserializing a file_type parameter.
233
- If passed, type conversion is attempted
234
- If omitted no type conversion is done.
235
- _visited_composed_classes (tuple): This stores a tuple of
236
- classes that we have traveled through so that
237
- if we see that class again we will not use its
238
- discriminator again.
239
- When traveling through a discriminator, the
240
- composed schema that is
241
- is traveled through is added to this set.
242
- For example if Animal has a discriminator
243
- petType and we pass in "Dog", and the class Dog
244
- allOf includes Animal, we move through Animal
245
- once using the discriminator, and pick Dog.
246
- Then in Dog, we will make an instance of the
247
- Animal class but this time we won't travel
248
- through its discriminator because we passed in
249
- _visited_composed_classes = (Animal,)
250
- identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
251
- """
252
-
253
- _check_type = kwargs.pop('_check_type', True)
254
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
255
- _path_to_item = kwargs.pop('_path_to_item', ())
256
- _configuration = kwargs.pop('_configuration', None)
257
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
258
-
259
- if args:
260
- for arg in args:
261
- if isinstance(arg, dict):
262
- kwargs.update(arg)
263
- else:
264
- raise ApiTypeError(
265
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
266
- args,
267
- self.__class__.__name__,
268
- ),
269
- path_to_item=_path_to_item,
270
- valid_classes=(self.__class__,),
271
- )
272
-
273
- self._data_store = {}
274
- self._check_type = _check_type
275
- self._spec_property_naming = _spec_property_naming
276
- self._path_to_item = _path_to_item
277
- self._configuration = _configuration
278
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
279
-
280
- self.operation = operation
281
- self.identifiers = identifiers
282
- for var_name, var_value in kwargs.items():
283
- if var_name not in self.attribute_map and \
284
- self._configuration is not None and \
285
- self._configuration.discard_unknown_keys and \
286
- self.additional_properties_type is None:
287
- # discard variable.
288
- continue
289
- setattr(self, var_name, var_value)
290
- if var_name in self.read_only_vars:
291
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
- f"class with read only attributes.")
@@ -1,261 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-10
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_v2024_10.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_v2024_10.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class RetailMediaSeller(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 = False
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
- 'seller_id': (str, none_type,), # noqa: E501
79
- 'retailer_id': (int, none_type,), # noqa: E501
80
- }
81
-
82
- @cached_property
83
- def discriminator():
84
- return None
85
-
86
-
87
- attribute_map = {
88
- 'seller_id': 'sellerId', # noqa: E501
89
- 'retailer_id': 'retailerId', # noqa: E501
90
- }
91
-
92
- read_only_vars = {
93
- }
94
-
95
- _composed_schemas = {}
96
-
97
- @classmethod
98
- @convert_js_args_to_python_args
99
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
100
- """RetailMediaSeller - a model defined in OpenAPI
101
-
102
- Keyword Args:
103
- _check_type (bool): if True, values for parameters in openapi_types
104
- will be type checked and a TypeError will be
105
- raised if the wrong type is input.
106
- Defaults to True
107
- _path_to_item (tuple/list): This is a list of keys or values to
108
- drill down to the model in received_data
109
- when deserializing a response
110
- _spec_property_naming (bool): True if the variable names in the input data
111
- are serialized names, as specified in the OpenAPI document.
112
- False if the variable names in the input data
113
- are pythonic names, e.g. snake case (default)
114
- _configuration (Configuration): the instance to use when
115
- deserializing a file_type parameter.
116
- If passed, type conversion is attempted
117
- If omitted no type conversion is done.
118
- _visited_composed_classes (tuple): This stores a tuple of
119
- classes that we have traveled through so that
120
- if we see that class again we will not use its
121
- discriminator again.
122
- When traveling through a discriminator, the
123
- composed schema that is
124
- is traveled through is added to this set.
125
- For example if Animal has a discriminator
126
- petType and we pass in "Dog", and the class Dog
127
- allOf includes Animal, we move through Animal
128
- once using the discriminator, and pick Dog.
129
- Then in Dog, we will make an instance of the
130
- Animal class but this time we won't travel
131
- through its discriminator because we passed in
132
- _visited_composed_classes = (Animal,)
133
- seller_id (str, none_type): the seller id. [optional] # noqa: E501
134
- retailer_id (int, none_type): the retailer id. [optional] # noqa: E501
135
- """
136
-
137
- _check_type = kwargs.pop('_check_type', True)
138
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
139
- _path_to_item = kwargs.pop('_path_to_item', ())
140
- _configuration = kwargs.pop('_configuration', None)
141
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
142
-
143
- self = super(OpenApiModel, cls).__new__(cls)
144
-
145
- if args:
146
- for arg in args:
147
- if isinstance(arg, dict):
148
- kwargs.update(arg)
149
- else:
150
- raise ApiTypeError(
151
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
152
- args,
153
- self.__class__.__name__,
154
- ),
155
- path_to_item=_path_to_item,
156
- valid_classes=(self.__class__,),
157
- )
158
-
159
- self._data_store = {}
160
- self._check_type = _check_type
161
- self._spec_property_naming = _spec_property_naming
162
- self._path_to_item = _path_to_item
163
- self._configuration = _configuration
164
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
165
-
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, *args, **kwargs): # noqa: E501
187
- """RetailMediaSeller - a model defined in OpenAPI
188
-
189
- Keyword Args:
190
- _check_type (bool): if True, values for parameters in openapi_types
191
- will be type checked and a TypeError will be
192
- raised if the wrong type is input.
193
- Defaults to True
194
- _path_to_item (tuple/list): This is a list of keys or values to
195
- drill down to the model in received_data
196
- when deserializing a response
197
- _spec_property_naming (bool): True if the variable names in the input data
198
- are serialized names, as specified in the OpenAPI document.
199
- False if the variable names in the input data
200
- are pythonic names, e.g. snake case (default)
201
- _configuration (Configuration): the instance to use when
202
- deserializing a file_type parameter.
203
- If passed, type conversion is attempted
204
- If omitted no type conversion is done.
205
- _visited_composed_classes (tuple): This stores a tuple of
206
- classes that we have traveled through so that
207
- if we see that class again we will not use its
208
- discriminator again.
209
- When traveling through a discriminator, the
210
- composed schema that is
211
- is traveled through is added to this set.
212
- For example if Animal has a discriminator
213
- petType and we pass in "Dog", and the class Dog
214
- allOf includes Animal, we move through Animal
215
- once using the discriminator, and pick Dog.
216
- Then in Dog, we will make an instance of the
217
- Animal class but this time we won't travel
218
- through its discriminator because we passed in
219
- _visited_composed_classes = (Animal,)
220
- seller_id (str, none_type): the seller id. [optional] # noqa: E501
221
- retailer_id (int, none_type): the retailer id. [optional] # noqa: E501
222
- """
223
-
224
- _check_type = kwargs.pop('_check_type', True)
225
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
226
- _path_to_item = kwargs.pop('_path_to_item', ())
227
- _configuration = kwargs.pop('_configuration', None)
228
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
229
-
230
- if args:
231
- for arg in args:
232
- if isinstance(arg, dict):
233
- kwargs.update(arg)
234
- else:
235
- raise ApiTypeError(
236
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
237
- args,
238
- self.__class__.__name__,
239
- ),
240
- path_to_item=_path_to_item,
241
- valid_classes=(self.__class__,),
242
- )
243
-
244
- self._data_store = {}
245
- self._check_type = _check_type
246
- self._spec_property_naming = _spec_property_naming
247
- self._path_to_item = _path_to_item
248
- self._configuration = _configuration
249
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
250
-
251
- for var_name, var_value in kwargs.items():
252
- if var_name not in self.attribute_map and \
253
- self._configuration is not None and \
254
- self._configuration.discard_unknown_keys and \
255
- self.additional_properties_type is None:
256
- # discard variable.
257
- continue
258
- setattr(self, var_name, var_value)
259
- if var_name in self.read_only_vars:
260
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
261
- f"class with read only attributes.")