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,274 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
+ ApiTypeError,
16
+ ModelComposed,
17
+ ModelNormal,
18
+ ModelSimple,
19
+ cached_property,
20
+ change_keys_js_to_python,
21
+ convert_js_args_to_python_args,
22
+ date,
23
+ datetime,
24
+ file_type,
25
+ none_type,
26
+ validate_get_composed_info,
27
+ OpenApiModel
28
+ )
29
+ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_preview.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['ResourceOfRetailMediaAccount'] = ResourceOfRetailMediaAccount
37
+
38
+
39
+ class ResourceOutcomeOfRetailMediaAccount(ModelNormal):
40
+ """NOTE: This class is auto generated by OpenAPI Generator.
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+
45
+ Attributes:
46
+ allowed_values (dict): The key is the tuple path to the attribute
47
+ and the for var_name this is (var_name,). The value is a dict
48
+ with a capitalized key describing the allowed value and an allowed
49
+ value. These dicts store the allowed enum values.
50
+ attribute_map (dict): The key is attribute name
51
+ and the value is json key in definition.
52
+ discriminator_value_class_map (dict): A dict to go from the discriminator
53
+ variable value to the discriminator class name.
54
+ validations (dict): The key is the tuple path to the attribute
55
+ and the for var_name this is (var_name,). The value is a dict
56
+ that stores validations for max_length, min_length, max_items,
57
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
+ inclusive_minimum, and regex.
59
+ additional_properties_type (tuple): A tuple of classes accepted
60
+ as additional properties values.
61
+ """
62
+
63
+ allowed_values = {
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
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
+ lazy_import()
84
+ return {
85
+ 'data': (ResourceOfRetailMediaAccount,), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'data': 'data', # noqa: E501
97
+ 'warnings': 'warnings', # noqa: E501
98
+ 'errors': 'errors', # noqa: E501
99
+ }
100
+
101
+ read_only_vars = {
102
+ 'warnings', # noqa: E501
103
+ 'errors', # noqa: E501
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ data (ResourceOfRetailMediaAccount): [optional] # noqa: E501
145
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
146
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
147
+ """
148
+
149
+ _check_type = kwargs.pop('_check_type', True)
150
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
+ _path_to_item = kwargs.pop('_path_to_item', ())
152
+ _configuration = kwargs.pop('_configuration', None)
153
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
+
155
+ self = super(OpenApiModel, cls).__new__(cls)
156
+
157
+ if args:
158
+ for arg in args:
159
+ if isinstance(arg, dict):
160
+ kwargs.update(arg)
161
+ else:
162
+ raise ApiTypeError(
163
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
+ args,
165
+ self.__class__.__name__,
166
+ ),
167
+ path_to_item=_path_to_item,
168
+ valid_classes=(self.__class__,),
169
+ )
170
+
171
+ self._data_store = {}
172
+ self._check_type = _check_type
173
+ self._spec_property_naming = _spec_property_naming
174
+ self._path_to_item = _path_to_item
175
+ self._configuration = _configuration
176
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
+
178
+ for var_name, var_value in kwargs.items():
179
+ if var_name not in self.attribute_map and \
180
+ self._configuration is not None and \
181
+ self._configuration.discard_unknown_keys and \
182
+ self.additional_properties_type is None:
183
+ # discard variable.
184
+ continue
185
+ setattr(self, var_name, var_value)
186
+ return self
187
+
188
+ required_properties = set([
189
+ '_data_store',
190
+ '_check_type',
191
+ '_spec_property_naming',
192
+ '_path_to_item',
193
+ '_configuration',
194
+ '_visited_composed_classes',
195
+ ])
196
+
197
+ @convert_js_args_to_python_args
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI
200
+
201
+ Keyword Args:
202
+ _check_type (bool): if True, values for parameters in openapi_types
203
+ will be type checked and a TypeError will be
204
+ raised if the wrong type is input.
205
+ Defaults to True
206
+ _path_to_item (tuple/list): This is a list of keys or values to
207
+ drill down to the model in received_data
208
+ when deserializing a response
209
+ _spec_property_naming (bool): True if the variable names in the input data
210
+ are serialized names, as specified in the OpenAPI document.
211
+ False if the variable names in the input data
212
+ are pythonic names, e.g. snake case (default)
213
+ _configuration (Configuration): the instance to use when
214
+ deserializing a file_type parameter.
215
+ If passed, type conversion is attempted
216
+ If omitted no type conversion is done.
217
+ _visited_composed_classes (tuple): This stores a tuple of
218
+ classes that we have traveled through so that
219
+ if we see that class again we will not use its
220
+ discriminator again.
221
+ When traveling through a discriminator, the
222
+ composed schema that is
223
+ is traveled through is added to this set.
224
+ For example if Animal has a discriminator
225
+ petType and we pass in "Dog", and the class Dog
226
+ allOf includes Animal, we move through Animal
227
+ once using the discriminator, and pick Dog.
228
+ Then in Dog, we will make an instance of the
229
+ Animal class but this time we won't travel
230
+ through its discriminator because we passed in
231
+ _visited_composed_classes = (Animal,)
232
+ data (ResourceOfRetailMediaAccount): [optional] # noqa: E501
233
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
234
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
235
+ """
236
+
237
+ _check_type = kwargs.pop('_check_type', True)
238
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+ _configuration = kwargs.pop('_configuration', None)
241
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
+
243
+ if args:
244
+ for arg in args:
245
+ if isinstance(arg, dict):
246
+ kwargs.update(arg)
247
+ else:
248
+ raise ApiTypeError(
249
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
+ args,
251
+ self.__class__.__name__,
252
+ ),
253
+ path_to_item=_path_to_item,
254
+ valid_classes=(self.__class__,),
255
+ )
256
+
257
+ self._data_store = {}
258
+ self._check_type = _check_type
259
+ self._spec_property_naming = _spec_property_naming
260
+ self._path_to_item = _path_to_item
261
+ self._configuration = _configuration
262
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
+
264
+ for var_name, var_value in kwargs.items():
265
+ if var_name not in self.attribute_map and \
266
+ self._configuration is not None and \
267
+ self._configuration.discard_unknown_keys and \
268
+ self.additional_properties_type is None:
269
+ # discard variable.
270
+ continue
271
+ setattr(self, var_name, var_value)
272
+ if var_name in self.read_only_vars:
273
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
274
+ f"class with read only attributes.")
@@ -0,0 +1,297 @@
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 RetailMediaAccount(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
+ ('type',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "Unknown",
61
+ 'SUPPLY': "Supply",
62
+ 'DEMAND': "Demand",
63
+ },
64
+ ('sub_type',): {
65
+ 'None': None,
66
+ 'UNKNOWN': "Unknown",
67
+ 'BRAND': "Brand",
68
+ 'SELLER': "Seller",
69
+ },
70
+ }
71
+
72
+ validations = {
73
+ }
74
+
75
+ additional_properties_type = None
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ return {
90
+ 'name': (str, none_type,), # noqa: E501
91
+ 'company_name': (str, none_type,), # noqa: E501
92
+ 'type': (str, none_type,), # noqa: E501
93
+ 'sub_type': (str, none_type,), # noqa: E501
94
+ 'country_ids': ([int], none_type,), # noqa: E501
95
+ 'currency_id': (int, none_type,), # noqa: E501
96
+ 'parent_account_label': (str, none_type,), # noqa: E501
97
+ 'time_zone': (str, none_type,), # noqa: E501
98
+ }
99
+
100
+ @cached_property
101
+ def discriminator():
102
+ return None
103
+
104
+
105
+ attribute_map = {
106
+ 'name': 'name', # noqa: E501
107
+ 'company_name': 'companyName', # noqa: E501
108
+ 'type': 'type', # noqa: E501
109
+ 'sub_type': 'subType', # noqa: E501
110
+ 'country_ids': 'countryIds', # noqa: E501
111
+ 'currency_id': 'currencyId', # noqa: E501
112
+ 'parent_account_label': 'parentAccountLabel', # noqa: E501
113
+ 'time_zone': 'timeZone', # 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, *args, **kwargs): # noqa: E501
124
+ """RetailMediaAccount - a model defined in OpenAPI
125
+
126
+ Keyword Args:
127
+ _check_type (bool): if True, values for parameters in openapi_types
128
+ will be type checked and a TypeError will be
129
+ raised if the wrong type is input.
130
+ Defaults to True
131
+ _path_to_item (tuple/list): This is a list of keys or values to
132
+ drill down to the model in received_data
133
+ when deserializing a response
134
+ _spec_property_naming (bool): True if the variable names in the input data
135
+ are serialized names, as specified in the OpenAPI document.
136
+ False if the variable names in the input data
137
+ are pythonic names, e.g. snake case (default)
138
+ _configuration (Configuration): the instance to use when
139
+ deserializing a file_type parameter.
140
+ If passed, type conversion is attempted
141
+ If omitted no type conversion is done.
142
+ _visited_composed_classes (tuple): This stores a tuple of
143
+ classes that we have traveled through so that
144
+ if we see that class again we will not use its
145
+ discriminator again.
146
+ When traveling through a discriminator, the
147
+ composed schema that is
148
+ is traveled through is added to this set.
149
+ For example if Animal has a discriminator
150
+ petType and we pass in "Dog", and the class Dog
151
+ allOf includes Animal, we move through Animal
152
+ once using the discriminator, and pick Dog.
153
+ Then in Dog, we will make an instance of the
154
+ Animal class but this time we won't travel
155
+ through its discriminator because we passed in
156
+ _visited_composed_classes = (Animal,)
157
+ name (str, none_type): account name. [optional] # noqa: E501
158
+ 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
159
+ type (str, none_type): Type for the account. [optional] # noqa: E501
160
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
161
+ country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
162
+ currency_id (int, none_type): the currency for the account. [optional] # noqa: E501
163
+ parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
164
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
165
+ """
166
+
167
+ _check_type = kwargs.pop('_check_type', True)
168
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
169
+ _path_to_item = kwargs.pop('_path_to_item', ())
170
+ _configuration = kwargs.pop('_configuration', None)
171
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
172
+
173
+ self = super(OpenApiModel, cls).__new__(cls)
174
+
175
+ if args:
176
+ for arg in args:
177
+ if isinstance(arg, dict):
178
+ kwargs.update(arg)
179
+ else:
180
+ raise ApiTypeError(
181
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
182
+ args,
183
+ self.__class__.__name__,
184
+ ),
185
+ path_to_item=_path_to_item,
186
+ valid_classes=(self.__class__,),
187
+ )
188
+
189
+ self._data_store = {}
190
+ self._check_type = _check_type
191
+ self._spec_property_naming = _spec_property_naming
192
+ self._path_to_item = _path_to_item
193
+ self._configuration = _configuration
194
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
195
+
196
+ for var_name, var_value in kwargs.items():
197
+ if var_name not in self.attribute_map and \
198
+ self._configuration is not None and \
199
+ self._configuration.discard_unknown_keys and \
200
+ self.additional_properties_type is None:
201
+ # discard variable.
202
+ continue
203
+ setattr(self, var_name, var_value)
204
+ return self
205
+
206
+ required_properties = set([
207
+ '_data_store',
208
+ '_check_type',
209
+ '_spec_property_naming',
210
+ '_path_to_item',
211
+ '_configuration',
212
+ '_visited_composed_classes',
213
+ ])
214
+
215
+ @convert_js_args_to_python_args
216
+ def __init__(self, *args, **kwargs): # noqa: E501
217
+ """RetailMediaAccount - a model defined in OpenAPI
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
+ name (str, none_type): account name. [optional] # noqa: E501
251
+ 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
252
+ type (str, none_type): Type for the account. [optional] # noqa: E501
253
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
254
+ country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
255
+ currency_id (int, none_type): the currency for the account. [optional] # noqa: E501
256
+ parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501
257
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
258
+ """
259
+
260
+ _check_type = kwargs.pop('_check_type', True)
261
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
262
+ _path_to_item = kwargs.pop('_path_to_item', ())
263
+ _configuration = kwargs.pop('_configuration', None)
264
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
265
+
266
+ if args:
267
+ for arg in args:
268
+ if isinstance(arg, dict):
269
+ kwargs.update(arg)
270
+ else:
271
+ raise ApiTypeError(
272
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
273
+ args,
274
+ self.__class__.__name__,
275
+ ),
276
+ path_to_item=_path_to_item,
277
+ valid_classes=(self.__class__,),
278
+ )
279
+
280
+ self._data_store = {}
281
+ self._check_type = _check_type
282
+ self._spec_property_naming = _spec_property_naming
283
+ self._path_to_item = _path_to_item
284
+ self._configuration = _configuration
285
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
286
+
287
+ for var_name, var_value in kwargs.items():
288
+ if var_name not in self.attribute_map and \
289
+ self._configuration is not None and \
290
+ self._configuration.discard_unknown_keys and \
291
+ self.additional_properties_type is None:
292
+ # discard variable.
293
+ continue
294
+ setattr(self, var_name, var_value)
295
+ if var_name in self.read_only_vars:
296
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
297
+ f"class with read only attributes.")