criteo-api-marketingsolutions-sdk 2024.4.0.250425__py3-none-any.whl → 2024.4.0.250618__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-marketingsolutions-sdk might be problematic. Click here for more details.

Files changed (54) hide show
  1. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250618.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250618.dist-info}/RECORD +10 -54
  3. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250618.dist-info}/WHEEL +1 -1
  4. criteo_api_marketingsolutions_v2024_04/__init__.py +1 -1
  5. criteo_api_marketingsolutions_v2024_04/api/campaign_api.py +0 -554
  6. criteo_api_marketingsolutions_v2024_04/api_client.py +1 -1
  7. criteo_api_marketingsolutions_v2024_04/configuration.py +1 -1
  8. criteo_api_marketingsolutions_v2024_04/model/budget_automation_configuration.py +1 -1
  9. criteo_api_marketingsolutions_v2024_04/models/__init__.py +0 -44
  10. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations.py +0 -289
  11. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations_v23_q1.py +0 -289
  12. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping.py +0 -274
  13. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping_v23_q1.py +0 -283
  14. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location.py +0 -277
  15. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location_v23_q1.py +0 -277
  16. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_filter_v23_q1.py +0 -271
  17. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_request_v23_q1.py +0 -269
  18. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting.py +0 -281
  19. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule.py +0 -272
  20. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule_v23_q1.py +0 -272
  21. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_v23_q1.py +0 -281
  22. criteo_api_marketingsolutions_v2024_04/model/create_ad_set.py +0 -350
  23. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_bidding.py +0 -283
  24. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_budget.py +0 -309
  25. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_geo_location.py +0 -277
  26. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_request.py +0 -269
  27. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_resource.py +0 -273
  28. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_schedule.py +0 -273
  29. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_targeting.py +0 -287
  30. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule.py +0 -269
  31. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1.py +0 -269
  32. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1_value.py +0 -328
  33. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_value.py +0 -328
  34. criteo_api_marketingsolutions_v2024_04/model/nillable_date_time.py +0 -263
  35. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set.py +0 -291
  36. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_bidding.py +0 -269
  37. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_budget.py +0 -313
  38. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_scheduling.py +0 -273
  39. criteo_api_marketingsolutions_v2024_04/model/read_ad_set.py +0 -322
  40. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding.py +0 -302
  41. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding_v23_q1.py +0 -285
  42. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget.py +0 -313
  43. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget_v23_q1.py +0 -313
  44. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule.py +0 -299
  45. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule_v23_q1.py +0 -299
  46. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_v23_q1.py +0 -349
  47. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set.py +0 -279
  48. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set_v23_q1.py +0 -279
  49. criteo_api_marketingsolutions_v2024_04/model/requests_patch_ad_set.py +0 -269
  50. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set.py +0 -281
  51. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set_v23_q1.py +0 -281
  52. criteo_api_marketingsolutions_v2024_04/model/responses_read_ad_set_v23_q1.py +0 -282
  53. criteo_api_marketingsolutions_v2024_04/model/write_model_patch_ad_set.py +0 -277
  54. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250618.dist-info}/top_level.txt +0 -0
@@ -1,273 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class CreateAdSetSchedule(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
- 'start_date': (datetime,), # noqa: E501
85
- 'end_date': (datetime, none_type,), # noqa: E501
86
- }
87
-
88
- @cached_property
89
- def discriminator():
90
- return None
91
-
92
-
93
- attribute_map = {
94
- 'start_date': 'startDate', # noqa: E501
95
- 'end_date': 'endDate', # noqa: E501
96
- }
97
-
98
- read_only_vars = {
99
- }
100
-
101
- _composed_schemas = {}
102
-
103
- @classmethod
104
- @convert_js_args_to_python_args
105
- def _from_openapi_data(cls, start_date, *args, **kwargs): # noqa: E501
106
- """CreateAdSetSchedule - a model defined in OpenAPI
107
-
108
- Args:
109
- start_date (datetime):
110
-
111
- Keyword Args:
112
- _check_type (bool): if True, values for parameters in openapi_types
113
- will be type checked and a TypeError will be
114
- raised if the wrong type is input.
115
- Defaults to True
116
- _path_to_item (tuple/list): This is a list of keys or values to
117
- drill down to the model in received_data
118
- when deserializing a response
119
- _spec_property_naming (bool): True if the variable names in the input data
120
- are serialized names, as specified in the OpenAPI document.
121
- False if the variable names in the input data
122
- are pythonic names, e.g. snake case (default)
123
- _configuration (Configuration): the instance to use when
124
- deserializing a file_type parameter.
125
- If passed, type conversion is attempted
126
- If omitted no type conversion is done.
127
- _visited_composed_classes (tuple): This stores a tuple of
128
- classes that we have traveled through so that
129
- if we see that class again we will not use its
130
- discriminator again.
131
- When traveling through a discriminator, the
132
- composed schema that is
133
- is traveled through is added to this set.
134
- For example if Animal has a discriminator
135
- petType and we pass in "Dog", and the class Dog
136
- allOf includes Animal, we move through Animal
137
- once using the discriminator, and pick Dog.
138
- Then in Dog, we will make an instance of the
139
- Animal class but this time we won't travel
140
- through its discriminator because we passed in
141
- _visited_composed_classes = (Animal,)
142
- end_date (datetime, none_type): [optional] # noqa: E501
143
- """
144
-
145
- _check_type = kwargs.pop('_check_type', True)
146
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
- _path_to_item = kwargs.pop('_path_to_item', ())
148
- _configuration = kwargs.pop('_configuration', None)
149
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
-
151
- self = super(OpenApiModel, cls).__new__(cls)
152
-
153
- if args:
154
- for arg in args:
155
- if isinstance(arg, dict):
156
- kwargs.update(arg)
157
- else:
158
- raise ApiTypeError(
159
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
- args,
161
- self.__class__.__name__,
162
- ),
163
- path_to_item=_path_to_item,
164
- valid_classes=(self.__class__,),
165
- )
166
-
167
- self._data_store = {}
168
- self._check_type = _check_type
169
- self._spec_property_naming = _spec_property_naming
170
- self._path_to_item = _path_to_item
171
- self._configuration = _configuration
172
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
-
174
- self.start_date = start_date
175
- for var_name, var_value in kwargs.items():
176
- if var_name not in self.attribute_map and \
177
- self._configuration is not None and \
178
- self._configuration.discard_unknown_keys and \
179
- self.additional_properties_type is None:
180
- # discard variable.
181
- continue
182
- setattr(self, var_name, var_value)
183
- return self
184
-
185
- required_properties = set([
186
- '_data_store',
187
- '_check_type',
188
- '_spec_property_naming',
189
- '_path_to_item',
190
- '_configuration',
191
- '_visited_composed_classes',
192
- ])
193
-
194
- @convert_js_args_to_python_args
195
- def __init__(self, start_date, *args, **kwargs): # noqa: E501
196
- """CreateAdSetSchedule - a model defined in OpenAPI
197
-
198
- Args:
199
- start_date (datetime):
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
- end_date (datetime, none_type): [optional] # noqa: E501
233
- """
234
-
235
- _check_type = kwargs.pop('_check_type', True)
236
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
- _path_to_item = kwargs.pop('_path_to_item', ())
238
- _configuration = kwargs.pop('_configuration', None)
239
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
-
241
- if args:
242
- for arg in args:
243
- if isinstance(arg, dict):
244
- kwargs.update(arg)
245
- else:
246
- raise ApiTypeError(
247
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
248
- args,
249
- self.__class__.__name__,
250
- ),
251
- path_to_item=_path_to_item,
252
- valid_classes=(self.__class__,),
253
- )
254
-
255
- self._data_store = {}
256
- self._check_type = _check_type
257
- self._spec_property_naming = _spec_property_naming
258
- self._path_to_item = _path_to_item
259
- self._configuration = _configuration
260
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
-
262
- self.start_date = start_date
263
- for var_name, var_value in kwargs.items():
264
- if var_name not in self.attribute_map and \
265
- self._configuration is not None and \
266
- self._configuration.discard_unknown_keys and \
267
- self.additional_properties_type is None:
268
- # discard variable.
269
- continue
270
- setattr(self, var_name, var_value)
271
- if var_name in self.read_only_vars:
272
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
273
- f"class with read only attributes.")
@@ -1,287 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_v2024_04.model.ad_set_delivery_limitations import AdSetDeliveryLimitations
34
- from criteo_api_marketingsolutions_v2024_04.model.ad_set_frequency_capping import AdSetFrequencyCapping
35
- from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_geo_location import CreateAdSetGeoLocation
36
- globals()['AdSetDeliveryLimitations'] = AdSetDeliveryLimitations
37
- globals()['AdSetFrequencyCapping'] = AdSetFrequencyCapping
38
- globals()['CreateAdSetGeoLocation'] = CreateAdSetGeoLocation
39
-
40
-
41
- class CreateAdSetTargeting(ModelNormal):
42
- """NOTE: This class is auto generated by OpenAPI Generator.
43
- Ref: https://openapi-generator.tech
44
-
45
- Do not edit the class manually.
46
-
47
- Attributes:
48
- allowed_values (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
- with a capitalized key describing the allowed value and an allowed
51
- value. These dicts store the allowed enum values.
52
- attribute_map (dict): The key is attribute name
53
- and the value is json key in definition.
54
- discriminator_value_class_map (dict): A dict to go from the discriminator
55
- variable value to the discriminator class name.
56
- validations (dict): The key is the tuple path to the attribute
57
- and the for var_name this is (var_name,). The value is a dict
58
- that stores validations for max_length, min_length, max_items,
59
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
- inclusive_minimum, and regex.
61
- additional_properties_type (tuple): A tuple of classes accepted
62
- as additional properties values.
63
- """
64
-
65
- allowed_values = {
66
- }
67
-
68
- validations = {
69
- }
70
-
71
- @cached_property
72
- def additional_properties_type():
73
- """
74
- This must be a method because a model may have properties that are
75
- of type self, this must run after the class is loaded
76
- """
77
- lazy_import()
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = False
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- lazy_import()
93
- return {
94
- 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501
95
- 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501
96
- 'geo_location': (CreateAdSetGeoLocation,), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'frequency_capping': 'frequencyCapping', # noqa: E501
106
- 'delivery_limitations': 'deliveryLimitations', # noqa: E501
107
- 'geo_location': 'geoLocation', # noqa: E501
108
- }
109
-
110
- read_only_vars = {
111
- }
112
-
113
- _composed_schemas = {}
114
-
115
- @classmethod
116
- @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, frequency_capping, *args, **kwargs): # noqa: E501
118
- """CreateAdSetTargeting - a model defined in OpenAPI
119
-
120
- Args:
121
- frequency_capping (AdSetFrequencyCapping):
122
-
123
- Keyword Args:
124
- _check_type (bool): if True, values for parameters in openapi_types
125
- will be type checked and a TypeError will be
126
- raised if the wrong type is input.
127
- Defaults to True
128
- _path_to_item (tuple/list): This is a list of keys or values to
129
- drill down to the model in received_data
130
- when deserializing a response
131
- _spec_property_naming (bool): True if the variable names in the input data
132
- are serialized names, as specified in the OpenAPI document.
133
- False if the variable names in the input data
134
- are pythonic names, e.g. snake case (default)
135
- _configuration (Configuration): the instance to use when
136
- deserializing a file_type parameter.
137
- If passed, type conversion is attempted
138
- If omitted no type conversion is done.
139
- _visited_composed_classes (tuple): This stores a tuple of
140
- classes that we have traveled through so that
141
- if we see that class again we will not use its
142
- discriminator again.
143
- When traveling through a discriminator, the
144
- composed schema that is
145
- is traveled through is added to this set.
146
- For example if Animal has a discriminator
147
- petType and we pass in "Dog", and the class Dog
148
- allOf includes Animal, we move through Animal
149
- once using the discriminator, and pick Dog.
150
- Then in Dog, we will make an instance of the
151
- Animal class but this time we won't travel
152
- through its discriminator because we passed in
153
- _visited_composed_classes = (Animal,)
154
- delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501
155
- geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501
156
- """
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
- _path_to_item = kwargs.pop('_path_to_item', ())
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- self = super(OpenApiModel, cls).__new__(cls)
165
-
166
- if args:
167
- for arg in args:
168
- if isinstance(arg, dict):
169
- kwargs.update(arg)
170
- else:
171
- raise ApiTypeError(
172
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
- args,
174
- self.__class__.__name__,
175
- ),
176
- path_to_item=_path_to_item,
177
- valid_classes=(self.__class__,),
178
- )
179
-
180
- self._data_store = {}
181
- self._check_type = _check_type
182
- self._spec_property_naming = _spec_property_naming
183
- self._path_to_item = _path_to_item
184
- self._configuration = _configuration
185
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
-
187
- self.frequency_capping = frequency_capping
188
- for var_name, var_value in kwargs.items():
189
- if var_name not in self.attribute_map and \
190
- self._configuration is not None and \
191
- self._configuration.discard_unknown_keys and \
192
- self.additional_properties_type is None:
193
- # discard variable.
194
- continue
195
- setattr(self, var_name, var_value)
196
- return self
197
-
198
- required_properties = set([
199
- '_data_store',
200
- '_check_type',
201
- '_spec_property_naming',
202
- '_path_to_item',
203
- '_configuration',
204
- '_visited_composed_classes',
205
- ])
206
-
207
- @convert_js_args_to_python_args
208
- def __init__(self, frequency_capping, *args, **kwargs): # noqa: E501
209
- """CreateAdSetTargeting - a model defined in OpenAPI
210
-
211
- Args:
212
- frequency_capping (AdSetFrequencyCapping):
213
-
214
- Keyword Args:
215
- _check_type (bool): if True, values for parameters in openapi_types
216
- will be type checked and a TypeError will be
217
- raised if the wrong type is input.
218
- Defaults to True
219
- _path_to_item (tuple/list): This is a list of keys or values to
220
- drill down to the model in received_data
221
- when deserializing a response
222
- _spec_property_naming (bool): True if the variable names in the input data
223
- are serialized names, as specified in the OpenAPI document.
224
- False if the variable names in the input data
225
- are pythonic names, e.g. snake case (default)
226
- _configuration (Configuration): the instance to use when
227
- deserializing a file_type parameter.
228
- If passed, type conversion is attempted
229
- If omitted no type conversion is done.
230
- _visited_composed_classes (tuple): This stores a tuple of
231
- classes that we have traveled through so that
232
- if we see that class again we will not use its
233
- discriminator again.
234
- When traveling through a discriminator, the
235
- composed schema that is
236
- is traveled through is added to this set.
237
- For example if Animal has a discriminator
238
- petType and we pass in "Dog", and the class Dog
239
- allOf includes Animal, we move through Animal
240
- once using the discriminator, and pick Dog.
241
- Then in Dog, we will make an instance of the
242
- Animal class but this time we won't travel
243
- through its discriminator because we passed in
244
- _visited_composed_classes = (Animal,)
245
- delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501
246
- geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501
247
- """
248
-
249
- _check_type = kwargs.pop('_check_type', True)
250
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
251
- _path_to_item = kwargs.pop('_path_to_item', ())
252
- _configuration = kwargs.pop('_configuration', None)
253
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
254
-
255
- if args:
256
- for arg in args:
257
- if isinstance(arg, dict):
258
- kwargs.update(arg)
259
- else:
260
- raise ApiTypeError(
261
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
262
- args,
263
- self.__class__.__name__,
264
- ),
265
- path_to_item=_path_to_item,
266
- valid_classes=(self.__class__,),
267
- )
268
-
269
- self._data_store = {}
270
- self._check_type = _check_type
271
- self._spec_property_naming = _spec_property_naming
272
- self._path_to_item = _path_to_item
273
- self._configuration = _configuration
274
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
-
276
- self.frequency_capping = frequency_capping
277
- for var_name, var_value in kwargs.items():
278
- if var_name not in self.attribute_map and \
279
- self._configuration is not None and \
280
- self._configuration.discard_unknown_keys and \
281
- self.additional_properties_type is None:
282
- # discard variable.
283
- continue
284
- setattr(self, var_name, var_value)
285
- if var_name in self.read_only_vars:
286
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
287
- f"class with read only attributes.")