criteo-api-retailmedia-sdk 2024.4.0.250425__py3-none-any.whl → 2024.4.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.

Potentially problematic release.


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

Files changed (36) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/RECORD +12 -36
  3. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/balance_api.py +10 -913
  6. criteo_api_retailmedia_v2024_04/api/campaign_api.py +102 -988
  7. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_04/model/external_common_line_item.py +4 -0
  10. criteo_api_retailmedia_v2024_04/model/external_line_item_page202110.py +3 -3
  11. criteo_api_retailmedia_v2024_04/models/__init__.py +0 -24
  12. criteo_api_retailmedia_v2024_04/model/add_funds_to_balance_request.py +0 -269
  13. criteo_api_retailmedia_v2024_04/model/balance_response.py +0 -281
  14. criteo_api_retailmedia_v2024_04/model/balance_response_paged_list_response.py +0 -287
  15. criteo_api_retailmedia_v2024_04/model/change_dates_of_balance_request.py +0 -269
  16. criteo_api_retailmedia_v2024_04/model/change_details.py +0 -275
  17. criteo_api_retailmedia_v2024_04/model/create_balance_request.py +0 -269
  18. criteo_api_retailmedia_v2024_04/model/external_add_funds_to_balance.py +0 -279
  19. criteo_api_retailmedia_v2024_04/model/external_balance_response.py +0 -375
  20. criteo_api_retailmedia_v2024_04/model/external_change_dates_of_balance.py +0 -281
  21. criteo_api_retailmedia_v2024_04/model/external_create_balance.py +0 -314
  22. criteo_api_retailmedia_v2024_04/model/external_promoted_product202110.py +0 -263
  23. criteo_api_retailmedia_v2024_04/model/external_update_balance_model.py +0 -283
  24. criteo_api_retailmedia_v2024_04/model/insertion_order_history_change_data_capture.py +0 -303
  25. criteo_api_retailmedia_v2024_04/model/metadata.py +0 -273
  26. criteo_api_retailmedia_v2024_04/model/page_of_insertion_order_history_change_data_capture.py +0 -276
  27. criteo_api_retailmedia_v2024_04/model/promoted_product202110_list_request.py +0 -269
  28. criteo_api_retailmedia_v2024_04/model/promoted_product202110_paged_list_response.py +0 -287
  29. criteo_api_retailmedia_v2024_04/model/resource_of_add_funds_to_balance.py +0 -277
  30. criteo_api_retailmedia_v2024_04/model/resource_of_balance_response.py +0 -277
  31. criteo_api_retailmedia_v2024_04/model/resource_of_change_dates_of_balance.py +0 -277
  32. criteo_api_retailmedia_v2024_04/model/resource_of_create_balance.py +0 -277
  33. criteo_api_retailmedia_v2024_04/model/resource_of_promoted_product202110.py +0 -277
  34. criteo_api_retailmedia_v2024_04/model/resource_of_update_balance_model.py +0 -277
  35. criteo_api_retailmedia_v2024_04/model/update_balance_model_request.py +0 -269
  36. {criteo_api_retailmedia_sdk-2024.4.0.250425.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/top_level.txt +0 -0
@@ -1,283 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_04.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_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalUpdateBalanceModel(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
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
-
71
- _nullable = False
72
-
73
- @cached_property
74
- def openapi_types():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
-
79
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'end_date': (date,), # noqa: E501
85
- 'memo': (str,), # noqa: E501
86
- 'name': (str,), # noqa: E501
87
- 'po_number': (str,), # noqa: E501
88
- 'sales_force_id': (str,), # noqa: E501
89
- 'start_date': (date,), # noqa: E501
90
- }
91
-
92
- @cached_property
93
- def discriminator():
94
- return None
95
-
96
-
97
- attribute_map = {
98
- 'end_date': 'endDate', # noqa: E501
99
- 'memo': 'memo', # noqa: E501
100
- 'name': 'name', # noqa: E501
101
- 'po_number': 'poNumber', # noqa: E501
102
- 'sales_force_id': 'salesForceId', # noqa: E501
103
- 'start_date': 'startDate', # 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
- """ExternalUpdateBalanceModel - 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
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
148
- memo (str): Memo. [optional] # noqa: E501
149
- name (str): Name of the balance.. [optional] # noqa: E501
150
- po_number (str): Purchase Order number.. [optional] # noqa: E501
151
- sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501
152
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
153
- """
154
-
155
- _check_type = kwargs.pop('_check_type', True)
156
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
- _path_to_item = kwargs.pop('_path_to_item', ())
158
- _configuration = kwargs.pop('_configuration', None)
159
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
-
161
- self = super(OpenApiModel, cls).__new__(cls)
162
-
163
- if args:
164
- for arg in args:
165
- if isinstance(arg, dict):
166
- kwargs.update(arg)
167
- else:
168
- raise ApiTypeError(
169
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
- args,
171
- self.__class__.__name__,
172
- ),
173
- path_to_item=_path_to_item,
174
- valid_classes=(self.__class__,),
175
- )
176
-
177
- self._data_store = {}
178
- self._check_type = _check_type
179
- self._spec_property_naming = _spec_property_naming
180
- self._path_to_item = _path_to_item
181
- self._configuration = _configuration
182
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
-
184
- for var_name, var_value in kwargs.items():
185
- if var_name not in self.attribute_map and \
186
- self._configuration is not None and \
187
- self._configuration.discard_unknown_keys and \
188
- self.additional_properties_type is None:
189
- # discard variable.
190
- continue
191
- setattr(self, var_name, var_value)
192
- return self
193
-
194
- required_properties = set([
195
- '_data_store',
196
- '_check_type',
197
- '_spec_property_naming',
198
- '_path_to_item',
199
- '_configuration',
200
- '_visited_composed_classes',
201
- ])
202
-
203
- @convert_js_args_to_python_args
204
- def __init__(self, *args, **kwargs): # noqa: E501
205
- """ExternalUpdateBalanceModel - a model defined in OpenAPI
206
-
207
- Keyword Args:
208
- _check_type (bool): if True, values for parameters in openapi_types
209
- will be type checked and a TypeError will be
210
- raised if the wrong type is input.
211
- Defaults to True
212
- _path_to_item (tuple/list): This is a list of keys or values to
213
- drill down to the model in received_data
214
- when deserializing a response
215
- _spec_property_naming (bool): True if the variable names in the input data
216
- are serialized names, as specified in the OpenAPI document.
217
- False if the variable names in the input data
218
- are pythonic names, e.g. snake case (default)
219
- _configuration (Configuration): the instance to use when
220
- deserializing a file_type parameter.
221
- If passed, type conversion is attempted
222
- If omitted no type conversion is done.
223
- _visited_composed_classes (tuple): This stores a tuple of
224
- classes that we have traveled through so that
225
- if we see that class again we will not use its
226
- discriminator again.
227
- When traveling through a discriminator, the
228
- composed schema that is
229
- is traveled through is added to this set.
230
- For example if Animal has a discriminator
231
- petType and we pass in "Dog", and the class Dog
232
- allOf includes Animal, we move through Animal
233
- once using the discriminator, and pick Dog.
234
- Then in Dog, we will make an instance of the
235
- Animal class but this time we won't travel
236
- through its discriminator because we passed in
237
- _visited_composed_classes = (Animal,)
238
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
239
- memo (str): Memo. [optional] # noqa: E501
240
- name (str): Name of the balance.. [optional] # noqa: E501
241
- po_number (str): Purchase Order number.. [optional] # noqa: E501
242
- sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501
243
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
244
- """
245
-
246
- _check_type = kwargs.pop('_check_type', True)
247
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
248
- _path_to_item = kwargs.pop('_path_to_item', ())
249
- _configuration = kwargs.pop('_configuration', None)
250
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
251
-
252
- if args:
253
- for arg in args:
254
- if isinstance(arg, dict):
255
- kwargs.update(arg)
256
- else:
257
- raise ApiTypeError(
258
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
259
- args,
260
- self.__class__.__name__,
261
- ),
262
- path_to_item=_path_to_item,
263
- valid_classes=(self.__class__,),
264
- )
265
-
266
- self._data_store = {}
267
- self._check_type = _check_type
268
- self._spec_property_naming = _spec_property_naming
269
- self._path_to_item = _path_to_item
270
- self._configuration = _configuration
271
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272
-
273
- for var_name, var_value in kwargs.items():
274
- if var_name not in self.attribute_map and \
275
- self._configuration is not None and \
276
- self._configuration.discard_unknown_keys and \
277
- self.additional_properties_type is None:
278
- # discard variable.
279
- continue
280
- setattr(self, var_name, var_value)
281
- if var_name in self.read_only_vars:
282
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
283
- f"class with read only attributes.")
@@ -1,303 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_04.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_04.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2024_04.model.change_details import ChangeDetails
34
- globals()['ChangeDetails'] = ChangeDetails
35
-
36
-
37
- class InsertionOrderHistoryChangeDataCapture(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
- ('change_type',): {
63
- 'BALANCECREATED': "BalanceCreated",
64
- 'BALANCEADDED': "BalanceAdded",
65
- 'BALANCEREMOVED': "BalanceRemoved",
66
- 'BALANCEUNCAPPED': "BalanceUncapped",
67
- 'BALANCECAPPED': "BalanceCapped",
68
- 'ENDDATE': "EndDate",
69
- 'STARTDATE': "StartDate",
70
- 'BALANCENAME': "BalanceName",
71
- 'PONUMBER': "PoNumber",
72
- 'VALUEADD': "ValueAdd",
73
- 'SALESFORCEID': "SalesforceId",
74
- },
75
- }
76
-
77
- validations = {
78
- }
79
-
80
- additional_properties_type = None
81
-
82
- _nullable = False
83
-
84
- @cached_property
85
- def openapi_types():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
-
90
- Returns
91
- openapi_types (dict): The key is attribute name
92
- and the value is attribute type.
93
- """
94
- lazy_import()
95
- return {
96
- 'change_details': (ChangeDetails,), # noqa: E501
97
- 'change_type': (str,), # noqa: E501
98
- 'date_of_modification': (datetime,), # noqa: E501
99
- 'modified_by_user': (str,), # noqa: E501
100
- 'memo': (str, none_type,), # noqa: E501
101
- }
102
-
103
- @cached_property
104
- def discriminator():
105
- return None
106
-
107
-
108
- attribute_map = {
109
- 'change_details': 'changeDetails', # noqa: E501
110
- 'change_type': 'changeType', # noqa: E501
111
- 'date_of_modification': 'dateOfModification', # noqa: E501
112
- 'modified_by_user': 'modifiedByUser', # noqa: E501
113
- 'memo': 'memo', # noqa: E501
114
- }
115
-
116
- read_only_vars = {
117
- }
118
-
119
- _composed_schemas = {}
120
-
121
- @classmethod
122
- @convert_js_args_to_python_args
123
- def _from_openapi_data(cls, change_details, change_type, date_of_modification, modified_by_user, *args, **kwargs): # noqa: E501
124
- """InsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
125
-
126
- Args:
127
- change_details (ChangeDetails):
128
- change_type (str): Represent the type of change states of the history.
129
- date_of_modification (datetime): Date when data change has occured.
130
- modified_by_user (str): User name who modified the insertion order.
131
-
132
- Keyword Args:
133
- _check_type (bool): if True, values for parameters in openapi_types
134
- will be type checked and a TypeError will be
135
- raised if the wrong type is input.
136
- Defaults to True
137
- _path_to_item (tuple/list): This is a list of keys or values to
138
- drill down to the model in received_data
139
- when deserializing a response
140
- _spec_property_naming (bool): True if the variable names in the input data
141
- are serialized names, as specified in the OpenAPI document.
142
- False if the variable names in the input data
143
- are pythonic names, e.g. snake case (default)
144
- _configuration (Configuration): the instance to use when
145
- deserializing a file_type parameter.
146
- If passed, type conversion is attempted
147
- If omitted no type conversion is done.
148
- _visited_composed_classes (tuple): This stores a tuple of
149
- classes that we have traveled through so that
150
- if we see that class again we will not use its
151
- discriminator again.
152
- When traveling through a discriminator, the
153
- composed schema that is
154
- is traveled through is added to this set.
155
- For example if Animal has a discriminator
156
- petType and we pass in "Dog", and the class Dog
157
- allOf includes Animal, we move through Animal
158
- once using the discriminator, and pick Dog.
159
- Then in Dog, we will make an instance of the
160
- Animal class but this time we won't travel
161
- through its discriminator because we passed in
162
- _visited_composed_classes = (Animal,)
163
- memo (str, none_type): Memo associate with the insertion order modification.. [optional] # noqa: E501
164
- """
165
-
166
- _check_type = kwargs.pop('_check_type', True)
167
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
168
- _path_to_item = kwargs.pop('_path_to_item', ())
169
- _configuration = kwargs.pop('_configuration', None)
170
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
171
-
172
- self = super(OpenApiModel, cls).__new__(cls)
173
-
174
- if args:
175
- for arg in args:
176
- if isinstance(arg, dict):
177
- kwargs.update(arg)
178
- else:
179
- raise ApiTypeError(
180
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
181
- args,
182
- self.__class__.__name__,
183
- ),
184
- path_to_item=_path_to_item,
185
- valid_classes=(self.__class__,),
186
- )
187
-
188
- self._data_store = {}
189
- self._check_type = _check_type
190
- self._spec_property_naming = _spec_property_naming
191
- self._path_to_item = _path_to_item
192
- self._configuration = _configuration
193
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
194
-
195
- self.change_details = change_details
196
- self.change_type = change_type
197
- self.date_of_modification = date_of_modification
198
- self.modified_by_user = modified_by_user
199
- for var_name, var_value in kwargs.items():
200
- if var_name not in self.attribute_map and \
201
- self._configuration is not None and \
202
- self._configuration.discard_unknown_keys and \
203
- self.additional_properties_type is None:
204
- # discard variable.
205
- continue
206
- setattr(self, var_name, var_value)
207
- return self
208
-
209
- required_properties = set([
210
- '_data_store',
211
- '_check_type',
212
- '_spec_property_naming',
213
- '_path_to_item',
214
- '_configuration',
215
- '_visited_composed_classes',
216
- ])
217
-
218
- @convert_js_args_to_python_args
219
- def __init__(self, change_details, change_type, date_of_modification, modified_by_user, *args, **kwargs): # noqa: E501
220
- """InsertionOrderHistoryChangeDataCapture - a model defined in OpenAPI
221
-
222
- Args:
223
- change_details (ChangeDetails):
224
- change_type (str): Represent the type of change states of the history.
225
- date_of_modification (datetime): Date when data change has occured.
226
- modified_by_user (str): User name who modified the insertion order.
227
-
228
- Keyword Args:
229
- _check_type (bool): if True, values for parameters in openapi_types
230
- will be type checked and a TypeError will be
231
- raised if the wrong type is input.
232
- Defaults to True
233
- _path_to_item (tuple/list): This is a list of keys or values to
234
- drill down to the model in received_data
235
- when deserializing a response
236
- _spec_property_naming (bool): True if the variable names in the input data
237
- are serialized names, as specified in the OpenAPI document.
238
- False if the variable names in the input data
239
- are pythonic names, e.g. snake case (default)
240
- _configuration (Configuration): the instance to use when
241
- deserializing a file_type parameter.
242
- If passed, type conversion is attempted
243
- If omitted no type conversion is done.
244
- _visited_composed_classes (tuple): This stores a tuple of
245
- classes that we have traveled through so that
246
- if we see that class again we will not use its
247
- discriminator again.
248
- When traveling through a discriminator, the
249
- composed schema that is
250
- is traveled through is added to this set.
251
- For example if Animal has a discriminator
252
- petType and we pass in "Dog", and the class Dog
253
- allOf includes Animal, we move through Animal
254
- once using the discriminator, and pick Dog.
255
- Then in Dog, we will make an instance of the
256
- Animal class but this time we won't travel
257
- through its discriminator because we passed in
258
- _visited_composed_classes = (Animal,)
259
- memo (str, none_type): Memo associate with the insertion order modification.. [optional] # noqa: E501
260
- """
261
-
262
- _check_type = kwargs.pop('_check_type', True)
263
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
264
- _path_to_item = kwargs.pop('_path_to_item', ())
265
- _configuration = kwargs.pop('_configuration', None)
266
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
267
-
268
- if args:
269
- for arg in args:
270
- if isinstance(arg, dict):
271
- kwargs.update(arg)
272
- else:
273
- raise ApiTypeError(
274
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
275
- args,
276
- self.__class__.__name__,
277
- ),
278
- path_to_item=_path_to_item,
279
- valid_classes=(self.__class__,),
280
- )
281
-
282
- self._data_store = {}
283
- self._check_type = _check_type
284
- self._spec_property_naming = _spec_property_naming
285
- self._path_to_item = _path_to_item
286
- self._configuration = _configuration
287
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
288
-
289
- self.change_details = change_details
290
- self.change_type = change_type
291
- self.date_of_modification = date_of_modification
292
- self.modified_by_user = modified_by_user
293
- for var_name, var_value in kwargs.items():
294
- if var_name not in self.attribute_map and \
295
- self._configuration is not None and \
296
- self._configuration.discard_unknown_keys and \
297
- self.additional_properties_type is None:
298
- # discard variable.
299
- continue
300
- setattr(self, var_name, var_value)
301
- if var_name in self.read_only_vars:
302
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
303
- f"class with read only attributes.")