criteo-api-marketingsolutions-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-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.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/RECORD +10 -54
  3. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.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.250606.dist-info}/top_level.txt +0 -0
@@ -1,263 +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 NillableDateTime(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 = True
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
- 'value': (datetime, none_type,), # noqa: E501
85
- }
86
-
87
- @cached_property
88
- def discriminator():
89
- return None
90
-
91
-
92
- attribute_map = {
93
- 'value': 'value', # noqa: E501
94
- }
95
-
96
- read_only_vars = {
97
- }
98
-
99
- _composed_schemas = {}
100
-
101
- @classmethod
102
- @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
- """NillableDateTime - a model defined in OpenAPI
105
-
106
- Keyword Args:
107
- _check_type (bool): if True, values for parameters in openapi_types
108
- will be type checked and a TypeError will be
109
- raised if the wrong type is input.
110
- Defaults to True
111
- _path_to_item (tuple/list): This is a list of keys or values to
112
- drill down to the model in received_data
113
- when deserializing a response
114
- _spec_property_naming (bool): True if the variable names in the input data
115
- are serialized names, as specified in the OpenAPI document.
116
- False if the variable names in the input data
117
- are pythonic names, e.g. snake case (default)
118
- _configuration (Configuration): the instance to use when
119
- deserializing a file_type parameter.
120
- If passed, type conversion is attempted
121
- If omitted no type conversion is done.
122
- _visited_composed_classes (tuple): This stores a tuple of
123
- classes that we have traveled through so that
124
- if we see that class again we will not use its
125
- discriminator again.
126
- When traveling through a discriminator, the
127
- composed schema that is
128
- is traveled through is added to this set.
129
- For example if Animal has a discriminator
130
- petType and we pass in "Dog", and the class Dog
131
- allOf includes Animal, we move through Animal
132
- once using the discriminator, and pick Dog.
133
- Then in Dog, we will make an instance of the
134
- Animal class but this time we won't travel
135
- through its discriminator because we passed in
136
- _visited_composed_classes = (Animal,)
137
- value (datetime, none_type): [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
- """NillableDateTime - 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
- value (datetime, none_type): [optional] # noqa: E501
224
- """
225
-
226
- _check_type = kwargs.pop('_check_type', True)
227
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
228
- _path_to_item = kwargs.pop('_path_to_item', ())
229
- _configuration = kwargs.pop('_configuration', None)
230
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
231
-
232
- if args:
233
- for arg in args:
234
- if isinstance(arg, dict):
235
- kwargs.update(arg)
236
- else:
237
- raise ApiTypeError(
238
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
239
- args,
240
- self.__class__.__name__,
241
- ),
242
- path_to_item=_path_to_item,
243
- valid_classes=(self.__class__,),
244
- )
245
-
246
- self._data_store = {}
247
- self._check_type = _check_type
248
- self._spec_property_naming = _spec_property_naming
249
- self._path_to_item = _path_to_item
250
- self._configuration = _configuration
251
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
252
-
253
- for var_name, var_value in kwargs.items():
254
- if var_name not in self.attribute_map and \
255
- self._configuration is not None and \
256
- self._configuration.discard_unknown_keys and \
257
- self.additional_properties_type is None:
258
- # discard variable.
259
- continue
260
- setattr(self, var_name, var_value)
261
- if var_name in self.read_only_vars:
262
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
263
- f"class with read only attributes.")
@@ -1,291 +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_targeting import AdSetTargeting
34
- from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set_bidding import PatchAdSetBidding
35
- from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set_budget import PatchAdSetBudget
36
- from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set_scheduling import PatchAdSetScheduling
37
- globals()['AdSetTargeting'] = AdSetTargeting
38
- globals()['PatchAdSetBidding'] = PatchAdSetBidding
39
- globals()['PatchAdSetBudget'] = PatchAdSetBudget
40
- globals()['PatchAdSetScheduling'] = PatchAdSetScheduling
41
-
42
-
43
- class PatchAdSet(ModelNormal):
44
- """NOTE: This class is auto generated by OpenAPI Generator.
45
- Ref: https://openapi-generator.tech
46
-
47
- Do not edit the class manually.
48
-
49
- Attributes:
50
- allowed_values (dict): The key is the tuple path to the attribute
51
- and the for var_name this is (var_name,). The value is a dict
52
- with a capitalized key describing the allowed value and an allowed
53
- value. These dicts store the allowed enum values.
54
- attribute_map (dict): The key is attribute name
55
- and the value is json key in definition.
56
- discriminator_value_class_map (dict): A dict to go from the discriminator
57
- variable value to the discriminator class name.
58
- validations (dict): The key is the tuple path to the attribute
59
- and the for var_name this is (var_name,). The value is a dict
60
- that stores validations for max_length, min_length, max_items,
61
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
62
- inclusive_minimum, and regex.
63
- additional_properties_type (tuple): A tuple of classes accepted
64
- as additional properties values.
65
- """
66
-
67
- allowed_values = {
68
- }
69
-
70
- validations = {
71
- }
72
-
73
- @cached_property
74
- def additional_properties_type():
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
- lazy_import()
80
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
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
- 'bidding': (PatchAdSetBidding,), # noqa: E501
97
- 'budget': (PatchAdSetBudget,), # noqa: E501
98
- 'name': (str, none_type,), # noqa: E501
99
- 'scheduling': (PatchAdSetScheduling,), # noqa: E501
100
- 'targeting': (AdSetTargeting,), # noqa: E501
101
- }
102
-
103
- @cached_property
104
- def discriminator():
105
- return None
106
-
107
-
108
- attribute_map = {
109
- 'bidding': 'bidding', # noqa: E501
110
- 'budget': 'budget', # noqa: E501
111
- 'name': 'name', # noqa: E501
112
- 'scheduling': 'scheduling', # noqa: E501
113
- 'targeting': 'targeting', # 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
- """PatchAdSet - 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
- bidding (PatchAdSetBidding): [optional] # noqa: E501
158
- budget (PatchAdSetBudget): [optional] # noqa: E501
159
- name (str, none_type): [optional] # noqa: E501
160
- scheduling (PatchAdSetScheduling): [optional] # noqa: E501
161
- targeting (AdSetTargeting): [optional] # noqa: E501
162
- """
163
-
164
- _check_type = kwargs.pop('_check_type', True)
165
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
166
- _path_to_item = kwargs.pop('_path_to_item', ())
167
- _configuration = kwargs.pop('_configuration', None)
168
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
169
-
170
- self = super(OpenApiModel, cls).__new__(cls)
171
-
172
- if args:
173
- for arg in args:
174
- if isinstance(arg, dict):
175
- kwargs.update(arg)
176
- else:
177
- raise ApiTypeError(
178
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
179
- args,
180
- self.__class__.__name__,
181
- ),
182
- path_to_item=_path_to_item,
183
- valid_classes=(self.__class__,),
184
- )
185
-
186
- self._data_store = {}
187
- self._check_type = _check_type
188
- self._spec_property_naming = _spec_property_naming
189
- self._path_to_item = _path_to_item
190
- self._configuration = _configuration
191
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192
-
193
- for var_name, var_value in kwargs.items():
194
- if var_name not in self.attribute_map and \
195
- self._configuration is not None and \
196
- self._configuration.discard_unknown_keys and \
197
- self.additional_properties_type is None:
198
- # discard variable.
199
- continue
200
- setattr(self, var_name, var_value)
201
- return self
202
-
203
- required_properties = set([
204
- '_data_store',
205
- '_check_type',
206
- '_spec_property_naming',
207
- '_path_to_item',
208
- '_configuration',
209
- '_visited_composed_classes',
210
- ])
211
-
212
- @convert_js_args_to_python_args
213
- def __init__(self, *args, **kwargs): # noqa: E501
214
- """PatchAdSet - a model defined in OpenAPI
215
-
216
- Keyword Args:
217
- _check_type (bool): if True, values for parameters in openapi_types
218
- will be type checked and a TypeError will be
219
- raised if the wrong type is input.
220
- Defaults to True
221
- _path_to_item (tuple/list): This is a list of keys or values to
222
- drill down to the model in received_data
223
- when deserializing a response
224
- _spec_property_naming (bool): True if the variable names in the input data
225
- are serialized names, as specified in the OpenAPI document.
226
- False if the variable names in the input data
227
- are pythonic names, e.g. snake case (default)
228
- _configuration (Configuration): the instance to use when
229
- deserializing a file_type parameter.
230
- If passed, type conversion is attempted
231
- If omitted no type conversion is done.
232
- _visited_composed_classes (tuple): This stores a tuple of
233
- classes that we have traveled through so that
234
- if we see that class again we will not use its
235
- discriminator again.
236
- When traveling through a discriminator, the
237
- composed schema that is
238
- is traveled through is added to this set.
239
- For example if Animal has a discriminator
240
- petType and we pass in "Dog", and the class Dog
241
- allOf includes Animal, we move through Animal
242
- once using the discriminator, and pick Dog.
243
- Then in Dog, we will make an instance of the
244
- Animal class but this time we won't travel
245
- through its discriminator because we passed in
246
- _visited_composed_classes = (Animal,)
247
- bidding (PatchAdSetBidding): [optional] # noqa: E501
248
- budget (PatchAdSetBudget): [optional] # noqa: E501
249
- name (str, none_type): [optional] # noqa: E501
250
- scheduling (PatchAdSetScheduling): [optional] # noqa: E501
251
- targeting (AdSetTargeting): [optional] # noqa: E501
252
- """
253
-
254
- _check_type = kwargs.pop('_check_type', True)
255
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
256
- _path_to_item = kwargs.pop('_path_to_item', ())
257
- _configuration = kwargs.pop('_configuration', None)
258
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
259
-
260
- if args:
261
- for arg in args:
262
- if isinstance(arg, dict):
263
- kwargs.update(arg)
264
- else:
265
- raise ApiTypeError(
266
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
267
- args,
268
- self.__class__.__name__,
269
- ),
270
- path_to_item=_path_to_item,
271
- valid_classes=(self.__class__,),
272
- )
273
-
274
- self._data_store = {}
275
- self._check_type = _check_type
276
- self._spec_property_naming = _spec_property_naming
277
- self._path_to_item = _path_to_item
278
- self._configuration = _configuration
279
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
280
-
281
- for var_name, var_value in kwargs.items():
282
- if var_name not in self.attribute_map and \
283
- self._configuration is not None and \
284
- self._configuration.discard_unknown_keys and \
285
- self.additional_properties_type is None:
286
- # discard variable.
287
- continue
288
- setattr(self, var_name, var_value)
289
- if var_name in self.read_only_vars:
290
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
291
- f"class with read only attributes.")