criteo-api-retailmedia-sdk 0.0.231113__py3-none-any.whl → 0.0.240207__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 (37) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/__init__.py +1 -1
  3. criteo_api_retailmedia_preview/api/accounts_api.py +767 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +35 -32
  5. criteo_api_retailmedia_preview/api_client.py +5 -5
  6. criteo_api_retailmedia_preview/apis/__init__.py +2 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  9. criteo_api_retailmedia_preview/model/{common_status_code_response.py → grant_consent_input.py} +9 -15
  10. criteo_api_retailmedia_preview/model/grant_consent_model.py +279 -0
  11. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +273 -0
  12. criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
  13. criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +274 -0
  14. criteo_api_retailmedia_preview/model/retail_media_account.py +297 -0
  15. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +265 -0
  16. criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
  17. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +270 -0
  18. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  19. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +17 -29
  20. criteo_api_retailmedia_preview/model/{retail_media_audience.py → rm_legacy_audience_get_entity_v1_resource.py} +22 -33
  21. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  22. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +281 -0
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -32
  24. criteo_api_retailmedia_preview/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  25. criteo_api_retailmedia_preview/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  26. criteo_api_retailmedia_preview/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  27. criteo_api_retailmedia_preview/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  28. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py +274 -0
  29. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  30. criteo_api_retailmedia_preview/model/value_resource_of_int64.py +261 -0
  31. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  32. criteo_api_retailmedia_preview/models/__init__.py +23 -11
  33. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/METADATA +3 -3
  34. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/RECORD +36 -23
  35. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/WHEEL +1 -1
  36. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  37. {criteo_api_retailmedia_sdk-0.0.231113.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
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 RetailMediaBrandAccountCreation(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
+ 'name': (str, none_type,), # noqa: E501
79
+ 'company_name': (str, none_type,), # noqa: E501
80
+ 'brands': ([int], none_type,), # noqa: E501
81
+ }
82
+
83
+ @cached_property
84
+ def discriminator():
85
+ return None
86
+
87
+
88
+ attribute_map = {
89
+ 'name': 'name', # noqa: E501
90
+ 'company_name': 'companyName', # noqa: E501
91
+ 'brands': 'brands', # noqa: E501
92
+ }
93
+
94
+ read_only_vars = {
95
+ }
96
+
97
+ _composed_schemas = {}
98
+
99
+ @classmethod
100
+ @convert_js_args_to_python_args
101
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
102
+ """RetailMediaBrandAccountCreation - a model defined in OpenAPI
103
+
104
+ Keyword Args:
105
+ _check_type (bool): if True, values for parameters in openapi_types
106
+ will be type checked and a TypeError will be
107
+ raised if the wrong type is input.
108
+ Defaults to True
109
+ _path_to_item (tuple/list): This is a list of keys or values to
110
+ drill down to the model in received_data
111
+ when deserializing a response
112
+ _spec_property_naming (bool): True if the variable names in the input data
113
+ are serialized names, as specified in the OpenAPI document.
114
+ False if the variable names in the input data
115
+ are pythonic names, e.g. snake case (default)
116
+ _configuration (Configuration): the instance to use when
117
+ deserializing a file_type parameter.
118
+ If passed, type conversion is attempted
119
+ If omitted no type conversion is done.
120
+ _visited_composed_classes (tuple): This stores a tuple of
121
+ classes that we have traveled through so that
122
+ if we see that class again we will not use its
123
+ discriminator again.
124
+ When traveling through a discriminator, the
125
+ composed schema that is
126
+ is traveled through is added to this set.
127
+ For example if Animal has a discriminator
128
+ petType and we pass in "Dog", and the class Dog
129
+ allOf includes Animal, we move through Animal
130
+ once using the discriminator, and pick Dog.
131
+ Then in Dog, we will make an instance of the
132
+ Animal class but this time we won't travel
133
+ through its discriminator because we passed in
134
+ _visited_composed_classes = (Animal,)
135
+ name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
136
+ company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
137
+ brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
138
+ """
139
+
140
+ _check_type = kwargs.pop('_check_type', True)
141
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
142
+ _path_to_item = kwargs.pop('_path_to_item', ())
143
+ _configuration = kwargs.pop('_configuration', None)
144
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
145
+
146
+ self = super(OpenApiModel, cls).__new__(cls)
147
+
148
+ if args:
149
+ for arg in args:
150
+ if isinstance(arg, dict):
151
+ kwargs.update(arg)
152
+ else:
153
+ raise ApiTypeError(
154
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
155
+ args,
156
+ self.__class__.__name__,
157
+ ),
158
+ path_to_item=_path_to_item,
159
+ valid_classes=(self.__class__,),
160
+ )
161
+
162
+ self._data_store = {}
163
+ self._check_type = _check_type
164
+ self._spec_property_naming = _spec_property_naming
165
+ self._path_to_item = _path_to_item
166
+ self._configuration = _configuration
167
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
168
+
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, *args, **kwargs): # noqa: E501
190
+ """RetailMediaBrandAccountCreation - a model defined in OpenAPI
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
+ name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
224
+ company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
225
+ brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
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
+ for var_name, var_value in kwargs.items():
256
+ if var_name not in self.attribute_map and \
257
+ self._configuration is not None and \
258
+ self._configuration.discard_unknown_keys and \
259
+ self.additional_properties_type is None:
260
+ # discard variable.
261
+ continue
262
+ setattr(self, var_name, var_value)
263
+ if var_name in self.read_only_vars:
264
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
265
+ f"class with read only attributes.")
@@ -0,0 +1,261 @@
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 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.")