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,313 +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.nillable_decimal import NillableDecimal
34
- globals()['NillableDecimal'] = NillableDecimal
35
-
36
-
37
- class ReadAdSetBudget(ModelNormal):
38
- """NOTE: This class is auto generated by OpenAPI Generator.
39
- Ref: https://openapi-generator.tech
40
-
41
- Do not edit the class manually.
42
-
43
- Attributes:
44
- allowed_values (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- with a capitalized key describing the allowed value and an allowed
47
- value. These dicts store the allowed enum values.
48
- attribute_map (dict): The key is attribute name
49
- and the value is json key in definition.
50
- discriminator_value_class_map (dict): A dict to go from the discriminator
51
- variable value to the discriminator class name.
52
- validations (dict): The key is the tuple path to the attribute
53
- and the for var_name this is (var_name,). The value is a dict
54
- that stores validations for max_length, min_length, max_items,
55
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
- inclusive_minimum, and regex.
57
- additional_properties_type (tuple): A tuple of classes accepted
58
- as additional properties values.
59
- """
60
-
61
- allowed_values = {
62
- ('budget_delivery_smoothing',): {
63
- 'None': None,
64
- 'ACCELERATED': "accelerated",
65
- 'STANDARD': "standard",
66
- },
67
- ('budget_delivery_week',): {
68
- 'None': None,
69
- 'UNDEFINED': "undefined",
70
- 'MONDAYTOSUNDAY': "mondayToSunday",
71
- 'TUESDAYTOMONDAY': "tuesdayToMonday",
72
- 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday",
73
- 'THURSDAYTOWEDNESDAY': "thursdayToWednesday",
74
- 'FRIDAYTOTHURSDAY': "fridayToThursday",
75
- 'SATURDAYTOFRIDAY': "saturdayToFriday",
76
- 'SUNDAYTOSATURDAY': "sundayToSaturday",
77
- },
78
- ('budget_renewal',): {
79
- 'None': None,
80
- 'UNDEFINED': "undefined",
81
- 'DAILY': "daily",
82
- 'MONTHLY': "monthly",
83
- 'LIFETIME': "lifetime",
84
- },
85
- ('budget_strategy',): {
86
- 'None': None,
87
- 'CAPPED': "capped",
88
- 'UNCAPPED': "uncapped",
89
- },
90
- }
91
-
92
- validations = {
93
- }
94
-
95
- @cached_property
96
- def additional_properties_type():
97
- """
98
- This must be a method because a model may have properties that are
99
- of type self, this must run after the class is loaded
100
- """
101
- lazy_import()
102
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
103
-
104
- _nullable = True
105
-
106
- @cached_property
107
- def openapi_types():
108
- """
109
- This must be a method because a model may have properties that are
110
- of type self, this must run after the class is loaded
111
-
112
- Returns
113
- openapi_types (dict): The key is attribute name
114
- and the value is attribute type.
115
- """
116
- lazy_import()
117
- return {
118
- 'budget_amount': (NillableDecimal,), # noqa: E501
119
- 'budget_delivery_smoothing': (str, none_type,), # noqa: E501
120
- 'budget_delivery_week': (str, none_type,), # noqa: E501
121
- 'budget_renewal': (str, none_type,), # noqa: E501
122
- 'budget_strategy': (str, none_type,), # noqa: E501
123
- }
124
-
125
- @cached_property
126
- def discriminator():
127
- return None
128
-
129
-
130
- attribute_map = {
131
- 'budget_amount': 'budgetAmount', # noqa: E501
132
- 'budget_delivery_smoothing': 'budgetDeliverySmoothing', # noqa: E501
133
- 'budget_delivery_week': 'budgetDeliveryWeek', # noqa: E501
134
- 'budget_renewal': 'budgetRenewal', # noqa: E501
135
- 'budget_strategy': 'budgetStrategy', # noqa: E501
136
- }
137
-
138
- read_only_vars = {
139
- }
140
-
141
- _composed_schemas = {}
142
-
143
- @classmethod
144
- @convert_js_args_to_python_args
145
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
146
- """ReadAdSetBudget - a model defined in OpenAPI
147
-
148
- Keyword Args:
149
- _check_type (bool): if True, values for parameters in openapi_types
150
- will be type checked and a TypeError will be
151
- raised if the wrong type is input.
152
- Defaults to True
153
- _path_to_item (tuple/list): This is a list of keys or values to
154
- drill down to the model in received_data
155
- when deserializing a response
156
- _spec_property_naming (bool): True if the variable names in the input data
157
- are serialized names, as specified in the OpenAPI document.
158
- False if the variable names in the input data
159
- are pythonic names, e.g. snake case (default)
160
- _configuration (Configuration): the instance to use when
161
- deserializing a file_type parameter.
162
- If passed, type conversion is attempted
163
- If omitted no type conversion is done.
164
- _visited_composed_classes (tuple): This stores a tuple of
165
- classes that we have traveled through so that
166
- if we see that class again we will not use its
167
- discriminator again.
168
- When traveling through a discriminator, the
169
- composed schema that is
170
- is traveled through is added to this set.
171
- For example if Animal has a discriminator
172
- petType and we pass in "Dog", and the class Dog
173
- allOf includes Animal, we move through Animal
174
- once using the discriminator, and pick Dog.
175
- Then in Dog, we will make an instance of the
176
- Animal class but this time we won't travel
177
- through its discriminator because we passed in
178
- _visited_composed_classes = (Animal,)
179
- budget_amount (NillableDecimal): [optional] # noqa: E501
180
- budget_delivery_smoothing (str, none_type): [optional] # noqa: E501
181
- budget_delivery_week (str, none_type): [optional] # noqa: E501
182
- budget_renewal (str, none_type): [optional] # noqa: E501
183
- budget_strategy (str, none_type): [optional] # noqa: E501
184
- """
185
-
186
- _check_type = kwargs.pop('_check_type', True)
187
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
188
- _path_to_item = kwargs.pop('_path_to_item', ())
189
- _configuration = kwargs.pop('_configuration', None)
190
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
191
-
192
- self = super(OpenApiModel, cls).__new__(cls)
193
-
194
- if args:
195
- for arg in args:
196
- if isinstance(arg, dict):
197
- kwargs.update(arg)
198
- else:
199
- raise ApiTypeError(
200
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
201
- args,
202
- self.__class__.__name__,
203
- ),
204
- path_to_item=_path_to_item,
205
- valid_classes=(self.__class__,),
206
- )
207
-
208
- self._data_store = {}
209
- self._check_type = _check_type
210
- self._spec_property_naming = _spec_property_naming
211
- self._path_to_item = _path_to_item
212
- self._configuration = _configuration
213
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
214
-
215
- for var_name, var_value in kwargs.items():
216
- if var_name not in self.attribute_map and \
217
- self._configuration is not None and \
218
- self._configuration.discard_unknown_keys and \
219
- self.additional_properties_type is None:
220
- # discard variable.
221
- continue
222
- setattr(self, var_name, var_value)
223
- return self
224
-
225
- required_properties = set([
226
- '_data_store',
227
- '_check_type',
228
- '_spec_property_naming',
229
- '_path_to_item',
230
- '_configuration',
231
- '_visited_composed_classes',
232
- ])
233
-
234
- @convert_js_args_to_python_args
235
- def __init__(self, *args, **kwargs): # noqa: E501
236
- """ReadAdSetBudget - a model defined in OpenAPI
237
-
238
- Keyword Args:
239
- _check_type (bool): if True, values for parameters in openapi_types
240
- will be type checked and a TypeError will be
241
- raised if the wrong type is input.
242
- Defaults to True
243
- _path_to_item (tuple/list): This is a list of keys or values to
244
- drill down to the model in received_data
245
- when deserializing a response
246
- _spec_property_naming (bool): True if the variable names in the input data
247
- are serialized names, as specified in the OpenAPI document.
248
- False if the variable names in the input data
249
- are pythonic names, e.g. snake case (default)
250
- _configuration (Configuration): the instance to use when
251
- deserializing a file_type parameter.
252
- If passed, type conversion is attempted
253
- If omitted no type conversion is done.
254
- _visited_composed_classes (tuple): This stores a tuple of
255
- classes that we have traveled through so that
256
- if we see that class again we will not use its
257
- discriminator again.
258
- When traveling through a discriminator, the
259
- composed schema that is
260
- is traveled through is added to this set.
261
- For example if Animal has a discriminator
262
- petType and we pass in "Dog", and the class Dog
263
- allOf includes Animal, we move through Animal
264
- once using the discriminator, and pick Dog.
265
- Then in Dog, we will make an instance of the
266
- Animal class but this time we won't travel
267
- through its discriminator because we passed in
268
- _visited_composed_classes = (Animal,)
269
- budget_amount (NillableDecimal): [optional] # noqa: E501
270
- budget_delivery_smoothing (str, none_type): [optional] # noqa: E501
271
- budget_delivery_week (str, none_type): [optional] # noqa: E501
272
- budget_renewal (str, none_type): [optional] # noqa: E501
273
- budget_strategy (str, none_type): [optional] # noqa: E501
274
- """
275
-
276
- _check_type = kwargs.pop('_check_type', True)
277
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
278
- _path_to_item = kwargs.pop('_path_to_item', ())
279
- _configuration = kwargs.pop('_configuration', None)
280
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
281
-
282
- if args:
283
- for arg in args:
284
- if isinstance(arg, dict):
285
- kwargs.update(arg)
286
- else:
287
- raise ApiTypeError(
288
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
289
- args,
290
- self.__class__.__name__,
291
- ),
292
- path_to_item=_path_to_item,
293
- valid_classes=(self.__class__,),
294
- )
295
-
296
- self._data_store = {}
297
- self._check_type = _check_type
298
- self._spec_property_naming = _spec_property_naming
299
- self._path_to_item = _path_to_item
300
- self._configuration = _configuration
301
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
302
-
303
- for var_name, var_value in kwargs.items():
304
- if var_name not in self.attribute_map and \
305
- self._configuration is not None and \
306
- self._configuration.discard_unknown_keys and \
307
- self.additional_properties_type is None:
308
- # discard variable.
309
- continue
310
- setattr(self, var_name, var_value)
311
- if var_name in self.read_only_vars:
312
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
313
- f"class with read only attributes.")
@@ -1,313 +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.nillable_decimal import NillableDecimal
34
- globals()['NillableDecimal'] = NillableDecimal
35
-
36
-
37
- class ReadAdSetBudgetV23Q1(ModelNormal):
38
- """NOTE: This class is auto generated by OpenAPI Generator.
39
- Ref: https://openapi-generator.tech
40
-
41
- Do not edit the class manually.
42
-
43
- Attributes:
44
- allowed_values (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- with a capitalized key describing the allowed value and an allowed
47
- value. These dicts store the allowed enum values.
48
- attribute_map (dict): The key is attribute name
49
- and the value is json key in definition.
50
- discriminator_value_class_map (dict): A dict to go from the discriminator
51
- variable value to the discriminator class name.
52
- validations (dict): The key is the tuple path to the attribute
53
- and the for var_name this is (var_name,). The value is a dict
54
- that stores validations for max_length, min_length, max_items,
55
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
- inclusive_minimum, and regex.
57
- additional_properties_type (tuple): A tuple of classes accepted
58
- as additional properties values.
59
- """
60
-
61
- allowed_values = {
62
- ('budget_delivery_smoothing',): {
63
- 'None': None,
64
- 'ACCELERATED': "accelerated",
65
- 'STANDARD': "standard",
66
- },
67
- ('budget_delivery_week',): {
68
- 'None': None,
69
- 'UNDEFINED': "undefined",
70
- 'MONDAYTOSUNDAY': "mondayToSunday",
71
- 'TUESDAYTOMONDAY': "tuesdayToMonday",
72
- 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday",
73
- 'THURSDAYTOWEDNESDAY': "thursdayToWednesday",
74
- 'FRIDAYTOTHURSDAY': "fridayToThursday",
75
- 'SATURDAYTOFRIDAY': "saturdayToFriday",
76
- 'SUNDAYTOSATURDAY': "sundayToSaturday",
77
- },
78
- ('budget_renewal',): {
79
- 'None': None,
80
- 'UNDEFINED': "undefined",
81
- 'DAILY': "daily",
82
- 'MONTHLY': "monthly",
83
- 'LIFETIME': "lifetime",
84
- },
85
- ('budget_strategy',): {
86
- 'None': None,
87
- 'CAPPED': "capped",
88
- 'UNCAPPED': "uncapped",
89
- },
90
- }
91
-
92
- validations = {
93
- }
94
-
95
- @cached_property
96
- def additional_properties_type():
97
- """
98
- This must be a method because a model may have properties that are
99
- of type self, this must run after the class is loaded
100
- """
101
- lazy_import()
102
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
103
-
104
- _nullable = True
105
-
106
- @cached_property
107
- def openapi_types():
108
- """
109
- This must be a method because a model may have properties that are
110
- of type self, this must run after the class is loaded
111
-
112
- Returns
113
- openapi_types (dict): The key is attribute name
114
- and the value is attribute type.
115
- """
116
- lazy_import()
117
- return {
118
- 'budget_amount': (NillableDecimal,), # noqa: E501
119
- 'budget_delivery_smoothing': (str, none_type,), # noqa: E501
120
- 'budget_delivery_week': (str, none_type,), # noqa: E501
121
- 'budget_renewal': (str, none_type,), # noqa: E501
122
- 'budget_strategy': (str, none_type,), # noqa: E501
123
- }
124
-
125
- @cached_property
126
- def discriminator():
127
- return None
128
-
129
-
130
- attribute_map = {
131
- 'budget_amount': 'budgetAmount', # noqa: E501
132
- 'budget_delivery_smoothing': 'budgetDeliverySmoothing', # noqa: E501
133
- 'budget_delivery_week': 'budgetDeliveryWeek', # noqa: E501
134
- 'budget_renewal': 'budgetRenewal', # noqa: E501
135
- 'budget_strategy': 'budgetStrategy', # noqa: E501
136
- }
137
-
138
- read_only_vars = {
139
- }
140
-
141
- _composed_schemas = {}
142
-
143
- @classmethod
144
- @convert_js_args_to_python_args
145
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
146
- """ReadAdSetBudgetV23Q1 - a model defined in OpenAPI
147
-
148
- Keyword Args:
149
- _check_type (bool): if True, values for parameters in openapi_types
150
- will be type checked and a TypeError will be
151
- raised if the wrong type is input.
152
- Defaults to True
153
- _path_to_item (tuple/list): This is a list of keys or values to
154
- drill down to the model in received_data
155
- when deserializing a response
156
- _spec_property_naming (bool): True if the variable names in the input data
157
- are serialized names, as specified in the OpenAPI document.
158
- False if the variable names in the input data
159
- are pythonic names, e.g. snake case (default)
160
- _configuration (Configuration): the instance to use when
161
- deserializing a file_type parameter.
162
- If passed, type conversion is attempted
163
- If omitted no type conversion is done.
164
- _visited_composed_classes (tuple): This stores a tuple of
165
- classes that we have traveled through so that
166
- if we see that class again we will not use its
167
- discriminator again.
168
- When traveling through a discriminator, the
169
- composed schema that is
170
- is traveled through is added to this set.
171
- For example if Animal has a discriminator
172
- petType and we pass in "Dog", and the class Dog
173
- allOf includes Animal, we move through Animal
174
- once using the discriminator, and pick Dog.
175
- Then in Dog, we will make an instance of the
176
- Animal class but this time we won't travel
177
- through its discriminator because we passed in
178
- _visited_composed_classes = (Animal,)
179
- budget_amount (NillableDecimal): [optional] # noqa: E501
180
- budget_delivery_smoothing (str, none_type): [optional] # noqa: E501
181
- budget_delivery_week (str, none_type): [optional] # noqa: E501
182
- budget_renewal (str, none_type): [optional] # noqa: E501
183
- budget_strategy (str, none_type): [optional] # noqa: E501
184
- """
185
-
186
- _check_type = kwargs.pop('_check_type', True)
187
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
188
- _path_to_item = kwargs.pop('_path_to_item', ())
189
- _configuration = kwargs.pop('_configuration', None)
190
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
191
-
192
- self = super(OpenApiModel, cls).__new__(cls)
193
-
194
- if args:
195
- for arg in args:
196
- if isinstance(arg, dict):
197
- kwargs.update(arg)
198
- else:
199
- raise ApiTypeError(
200
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
201
- args,
202
- self.__class__.__name__,
203
- ),
204
- path_to_item=_path_to_item,
205
- valid_classes=(self.__class__,),
206
- )
207
-
208
- self._data_store = {}
209
- self._check_type = _check_type
210
- self._spec_property_naming = _spec_property_naming
211
- self._path_to_item = _path_to_item
212
- self._configuration = _configuration
213
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
214
-
215
- for var_name, var_value in kwargs.items():
216
- if var_name not in self.attribute_map and \
217
- self._configuration is not None and \
218
- self._configuration.discard_unknown_keys and \
219
- self.additional_properties_type is None:
220
- # discard variable.
221
- continue
222
- setattr(self, var_name, var_value)
223
- return self
224
-
225
- required_properties = set([
226
- '_data_store',
227
- '_check_type',
228
- '_spec_property_naming',
229
- '_path_to_item',
230
- '_configuration',
231
- '_visited_composed_classes',
232
- ])
233
-
234
- @convert_js_args_to_python_args
235
- def __init__(self, *args, **kwargs): # noqa: E501
236
- """ReadAdSetBudgetV23Q1 - a model defined in OpenAPI
237
-
238
- Keyword Args:
239
- _check_type (bool): if True, values for parameters in openapi_types
240
- will be type checked and a TypeError will be
241
- raised if the wrong type is input.
242
- Defaults to True
243
- _path_to_item (tuple/list): This is a list of keys or values to
244
- drill down to the model in received_data
245
- when deserializing a response
246
- _spec_property_naming (bool): True if the variable names in the input data
247
- are serialized names, as specified in the OpenAPI document.
248
- False if the variable names in the input data
249
- are pythonic names, e.g. snake case (default)
250
- _configuration (Configuration): the instance to use when
251
- deserializing a file_type parameter.
252
- If passed, type conversion is attempted
253
- If omitted no type conversion is done.
254
- _visited_composed_classes (tuple): This stores a tuple of
255
- classes that we have traveled through so that
256
- if we see that class again we will not use its
257
- discriminator again.
258
- When traveling through a discriminator, the
259
- composed schema that is
260
- is traveled through is added to this set.
261
- For example if Animal has a discriminator
262
- petType and we pass in "Dog", and the class Dog
263
- allOf includes Animal, we move through Animal
264
- once using the discriminator, and pick Dog.
265
- Then in Dog, we will make an instance of the
266
- Animal class but this time we won't travel
267
- through its discriminator because we passed in
268
- _visited_composed_classes = (Animal,)
269
- budget_amount (NillableDecimal): [optional] # noqa: E501
270
- budget_delivery_smoothing (str, none_type): [optional] # noqa: E501
271
- budget_delivery_week (str, none_type): [optional] # noqa: E501
272
- budget_renewal (str, none_type): [optional] # noqa: E501
273
- budget_strategy (str, none_type): [optional] # noqa: E501
274
- """
275
-
276
- _check_type = kwargs.pop('_check_type', True)
277
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
278
- _path_to_item = kwargs.pop('_path_to_item', ())
279
- _configuration = kwargs.pop('_configuration', None)
280
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
281
-
282
- if args:
283
- for arg in args:
284
- if isinstance(arg, dict):
285
- kwargs.update(arg)
286
- else:
287
- raise ApiTypeError(
288
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
289
- args,
290
- self.__class__.__name__,
291
- ),
292
- path_to_item=_path_to_item,
293
- valid_classes=(self.__class__,),
294
- )
295
-
296
- self._data_store = {}
297
- self._check_type = _check_type
298
- self._spec_property_naming = _spec_property_naming
299
- self._path_to_item = _path_to_item
300
- self._configuration = _configuration
301
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
302
-
303
- for var_name, var_value in kwargs.items():
304
- if var_name not in self.attribute_map and \
305
- self._configuration is not None and \
306
- self._configuration.discard_unknown_keys and \
307
- self.additional_properties_type is None:
308
- # discard variable.
309
- continue
310
- setattr(self, var_name, var_value)
311
- if var_name in self.read_only_vars:
312
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
313
- f"class with read only attributes.")