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,350 +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.create_ad_set_bidding import CreateAdSetBidding
34
- from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_budget import CreateAdSetBudget
35
- from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_schedule import CreateAdSetSchedule
36
- from criteo_api_marketingsolutions_v2024_04.model.create_ad_set_targeting import CreateAdSetTargeting
37
- globals()['CreateAdSetBidding'] = CreateAdSetBidding
38
- globals()['CreateAdSetBudget'] = CreateAdSetBudget
39
- globals()['CreateAdSetSchedule'] = CreateAdSetSchedule
40
- globals()['CreateAdSetTargeting'] = CreateAdSetTargeting
41
-
42
-
43
- class CreateAdSet(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
- ('media_type',): {
69
- 'DISPLAY': "display",
70
- 'VIDEO': "video",
71
- },
72
- ('objective',): {
73
- 'CUSTOMACTION': "customAction",
74
- 'CLICKS': "clicks",
75
- 'CONVERSIONS': "conversions",
76
- 'DISPLAYS': "displays",
77
- 'APPPROMOTION': "appPromotion",
78
- 'REVENUE': "revenue",
79
- 'STORECONVERSIONS': "storeConversions",
80
- 'VALUE': "value",
81
- 'REACH': "reach",
82
- 'VISITS': "visits",
83
- 'VIDEOVIEWS': "videoViews",
84
- },
85
- }
86
-
87
- validations = {
88
- }
89
-
90
- @cached_property
91
- def additional_properties_type():
92
- """
93
- This must be a method because a model may have properties that are
94
- of type self, this must run after the class is loaded
95
- """
96
- lazy_import()
97
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
98
-
99
- _nullable = False
100
-
101
- @cached_property
102
- def openapi_types():
103
- """
104
- This must be a method because a model may have properties that are
105
- of type self, this must run after the class is loaded
106
-
107
- Returns
108
- openapi_types (dict): The key is attribute name
109
- and the value is attribute type.
110
- """
111
- lazy_import()
112
- return {
113
- 'bidding': (CreateAdSetBidding,), # noqa: E501
114
- 'campaign_id': (str, none_type,), # noqa: E501
115
- 'dataset_id': (str, none_type,), # noqa: E501
116
- 'media_type': (str,), # noqa: E501
117
- 'name': (str, none_type,), # noqa: E501
118
- 'objective': (str,), # noqa: E501
119
- 'schedule': (CreateAdSetSchedule,), # noqa: E501
120
- 'targeting': (CreateAdSetTargeting,), # noqa: E501
121
- 'tracking_code': (str, none_type,), # noqa: E501
122
- 'budget': (CreateAdSetBudget,), # noqa: E501
123
- }
124
-
125
- @cached_property
126
- def discriminator():
127
- return None
128
-
129
-
130
- attribute_map = {
131
- 'bidding': 'bidding', # noqa: E501
132
- 'campaign_id': 'campaignId', # noqa: E501
133
- 'dataset_id': 'datasetId', # noqa: E501
134
- 'media_type': 'mediaType', # noqa: E501
135
- 'name': 'name', # noqa: E501
136
- 'objective': 'objective', # noqa: E501
137
- 'schedule': 'schedule', # noqa: E501
138
- 'targeting': 'targeting', # noqa: E501
139
- 'tracking_code': 'trackingCode', # noqa: E501
140
- 'budget': 'budget', # noqa: E501
141
- }
142
-
143
- read_only_vars = {
144
- }
145
-
146
- _composed_schemas = {}
147
-
148
- @classmethod
149
- @convert_js_args_to_python_args
150
- def _from_openapi_data(cls, bidding, campaign_id, dataset_id, media_type, name, objective, schedule, targeting, tracking_code, *args, **kwargs): # noqa: E501
151
- """CreateAdSet - a model defined in OpenAPI
152
-
153
- Args:
154
- bidding (CreateAdSetBidding):
155
- campaign_id (str, none_type): Campaign id this ad set belongs to
156
- dataset_id (str, none_type): Dataset id of this ad set
157
- media_type (str): Media type for the ad set
158
- name (str, none_type): Name of the ad set
159
- objective (str): Objective of the ad set
160
- schedule (CreateAdSetSchedule):
161
- targeting (CreateAdSetTargeting):
162
- tracking_code (str, none_type): The click tracking code associated to this Ad Set.
163
-
164
- Keyword Args:
165
- _check_type (bool): if True, values for parameters in openapi_types
166
- will be type checked and a TypeError will be
167
- raised if the wrong type is input.
168
- Defaults to True
169
- _path_to_item (tuple/list): This is a list of keys or values to
170
- drill down to the model in received_data
171
- when deserializing a response
172
- _spec_property_naming (bool): True if the variable names in the input data
173
- are serialized names, as specified in the OpenAPI document.
174
- False if the variable names in the input data
175
- are pythonic names, e.g. snake case (default)
176
- _configuration (Configuration): the instance to use when
177
- deserializing a file_type parameter.
178
- If passed, type conversion is attempted
179
- If omitted no type conversion is done.
180
- _visited_composed_classes (tuple): This stores a tuple of
181
- classes that we have traveled through so that
182
- if we see that class again we will not use its
183
- discriminator again.
184
- When traveling through a discriminator, the
185
- composed schema that is
186
- is traveled through is added to this set.
187
- For example if Animal has a discriminator
188
- petType and we pass in "Dog", and the class Dog
189
- allOf includes Animal, we move through Animal
190
- once using the discriminator, and pick Dog.
191
- Then in Dog, we will make an instance of the
192
- Animal class but this time we won't travel
193
- through its discriminator because we passed in
194
- _visited_composed_classes = (Animal,)
195
- budget (CreateAdSetBudget): [optional] # noqa: E501
196
- """
197
-
198
- _check_type = kwargs.pop('_check_type', True)
199
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
200
- _path_to_item = kwargs.pop('_path_to_item', ())
201
- _configuration = kwargs.pop('_configuration', None)
202
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
203
-
204
- self = super(OpenApiModel, cls).__new__(cls)
205
-
206
- if args:
207
- for arg in args:
208
- if isinstance(arg, dict):
209
- kwargs.update(arg)
210
- else:
211
- raise ApiTypeError(
212
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
213
- args,
214
- self.__class__.__name__,
215
- ),
216
- path_to_item=_path_to_item,
217
- valid_classes=(self.__class__,),
218
- )
219
-
220
- self._data_store = {}
221
- self._check_type = _check_type
222
- self._spec_property_naming = _spec_property_naming
223
- self._path_to_item = _path_to_item
224
- self._configuration = _configuration
225
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
226
-
227
- self.bidding = bidding
228
- self.campaign_id = campaign_id
229
- self.dataset_id = dataset_id
230
- self.media_type = media_type
231
- self.name = name
232
- self.objective = objective
233
- self.schedule = schedule
234
- self.targeting = targeting
235
- self.tracking_code = tracking_code
236
- for var_name, var_value in kwargs.items():
237
- if var_name not in self.attribute_map and \
238
- self._configuration is not None and \
239
- self._configuration.discard_unknown_keys and \
240
- self.additional_properties_type is None:
241
- # discard variable.
242
- continue
243
- setattr(self, var_name, var_value)
244
- return self
245
-
246
- required_properties = set([
247
- '_data_store',
248
- '_check_type',
249
- '_spec_property_naming',
250
- '_path_to_item',
251
- '_configuration',
252
- '_visited_composed_classes',
253
- ])
254
-
255
- @convert_js_args_to_python_args
256
- def __init__(self, bidding, campaign_id, dataset_id, media_type, name, objective, schedule, targeting, tracking_code, *args, **kwargs): # noqa: E501
257
- """CreateAdSet - a model defined in OpenAPI
258
-
259
- Args:
260
- bidding (CreateAdSetBidding):
261
- campaign_id (str, none_type): Campaign id this ad set belongs to
262
- dataset_id (str, none_type): Dataset id of this ad set
263
- media_type (str): Media type for the ad set
264
- name (str, none_type): Name of the ad set
265
- objective (str): Objective of the ad set
266
- schedule (CreateAdSetSchedule):
267
- targeting (CreateAdSetTargeting):
268
- tracking_code (str, none_type): The click tracking code associated to this Ad Set.
269
-
270
- Keyword Args:
271
- _check_type (bool): if True, values for parameters in openapi_types
272
- will be type checked and a TypeError will be
273
- raised if the wrong type is input.
274
- Defaults to True
275
- _path_to_item (tuple/list): This is a list of keys or values to
276
- drill down to the model in received_data
277
- when deserializing a response
278
- _spec_property_naming (bool): True if the variable names in the input data
279
- are serialized names, as specified in the OpenAPI document.
280
- False if the variable names in the input data
281
- are pythonic names, e.g. snake case (default)
282
- _configuration (Configuration): the instance to use when
283
- deserializing a file_type parameter.
284
- If passed, type conversion is attempted
285
- If omitted no type conversion is done.
286
- _visited_composed_classes (tuple): This stores a tuple of
287
- classes that we have traveled through so that
288
- if we see that class again we will not use its
289
- discriminator again.
290
- When traveling through a discriminator, the
291
- composed schema that is
292
- is traveled through is added to this set.
293
- For example if Animal has a discriminator
294
- petType and we pass in "Dog", and the class Dog
295
- allOf includes Animal, we move through Animal
296
- once using the discriminator, and pick Dog.
297
- Then in Dog, we will make an instance of the
298
- Animal class but this time we won't travel
299
- through its discriminator because we passed in
300
- _visited_composed_classes = (Animal,)
301
- budget (CreateAdSetBudget): [optional] # noqa: E501
302
- """
303
-
304
- _check_type = kwargs.pop('_check_type', True)
305
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
306
- _path_to_item = kwargs.pop('_path_to_item', ())
307
- _configuration = kwargs.pop('_configuration', None)
308
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
309
-
310
- if args:
311
- for arg in args:
312
- if isinstance(arg, dict):
313
- kwargs.update(arg)
314
- else:
315
- raise ApiTypeError(
316
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
317
- args,
318
- self.__class__.__name__,
319
- ),
320
- path_to_item=_path_to_item,
321
- valid_classes=(self.__class__,),
322
- )
323
-
324
- self._data_store = {}
325
- self._check_type = _check_type
326
- self._spec_property_naming = _spec_property_naming
327
- self._path_to_item = _path_to_item
328
- self._configuration = _configuration
329
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
330
-
331
- self.bidding = bidding
332
- self.campaign_id = campaign_id
333
- self.dataset_id = dataset_id
334
- self.media_type = media_type
335
- self.name = name
336
- self.objective = objective
337
- self.schedule = schedule
338
- self.targeting = targeting
339
- self.tracking_code = tracking_code
340
- for var_name, var_value in kwargs.items():
341
- if var_name not in self.attribute_map and \
342
- self._configuration is not None and \
343
- self._configuration.discard_unknown_keys and \
344
- self.additional_properties_type is None:
345
- # discard variable.
346
- continue
347
- setattr(self, var_name, var_value)
348
- if var_name in self.read_only_vars:
349
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
350
- f"class with read only attributes.")
@@ -1,283 +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 CreateAdSetBidding(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
- ('cost_controller',): {
59
- 'COS': "COS",
60
- 'CPC': "CPC",
61
- 'CPI': "CPI",
62
- 'CPM': "CPM",
63
- 'CPO': "CPO",
64
- 'CPSV': "CPSV",
65
- 'CPV': "CPV",
66
- 'DAILYBUDGET': "dailyBudget",
67
- },
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
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
80
-
81
- _nullable = False
82
-
83
- @cached_property
84
- def openapi_types():
85
- """
86
- This must be a method because a model may have properties that are
87
- of type self, this must run after the class is loaded
88
-
89
- Returns
90
- openapi_types (dict): The key is attribute name
91
- and the value is attribute type.
92
- """
93
- return {
94
- 'cost_controller': (str,), # noqa: E501
95
- 'bid_amount': (float, none_type,), # noqa: E501
96
- }
97
-
98
- @cached_property
99
- def discriminator():
100
- return None
101
-
102
-
103
- attribute_map = {
104
- 'cost_controller': 'costController', # noqa: E501
105
- 'bid_amount': 'bidAmount', # noqa: E501
106
- }
107
-
108
- read_only_vars = {
109
- }
110
-
111
- _composed_schemas = {}
112
-
113
- @classmethod
114
- @convert_js_args_to_python_args
115
- def _from_openapi_data(cls, cost_controller, *args, **kwargs): # noqa: E501
116
- """CreateAdSetBidding - a model defined in OpenAPI
117
-
118
- Args:
119
- cost_controller (str): How spend is controlled
120
-
121
- Keyword Args:
122
- _check_type (bool): if True, values for parameters in openapi_types
123
- will be type checked and a TypeError will be
124
- raised if the wrong type is input.
125
- Defaults to True
126
- _path_to_item (tuple/list): This is a list of keys or values to
127
- drill down to the model in received_data
128
- when deserializing a response
129
- _spec_property_naming (bool): True if the variable names in the input data
130
- are serialized names, as specified in the OpenAPI document.
131
- False if the variable names in the input data
132
- are pythonic names, e.g. snake case (default)
133
- _configuration (Configuration): the instance to use when
134
- deserializing a file_type parameter.
135
- If passed, type conversion is attempted
136
- If omitted no type conversion is done.
137
- _visited_composed_classes (tuple): This stores a tuple of
138
- classes that we have traveled through so that
139
- if we see that class again we will not use its
140
- discriminator again.
141
- When traveling through a discriminator, the
142
- composed schema that is
143
- is traveled through is added to this set.
144
- For example if Animal has a discriminator
145
- petType and we pass in "Dog", and the class Dog
146
- allOf includes Animal, we move through Animal
147
- once using the discriminator, and pick Dog.
148
- Then in Dog, we will make an instance of the
149
- Animal class but this time we won't travel
150
- through its discriminator because we passed in
151
- _visited_composed_classes = (Animal,)
152
- bid_amount (float, none_type): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501
153
- """
154
-
155
- _check_type = kwargs.pop('_check_type', True)
156
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
- _path_to_item = kwargs.pop('_path_to_item', ())
158
- _configuration = kwargs.pop('_configuration', None)
159
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
-
161
- self = super(OpenApiModel, cls).__new__(cls)
162
-
163
- if args:
164
- for arg in args:
165
- if isinstance(arg, dict):
166
- kwargs.update(arg)
167
- else:
168
- raise ApiTypeError(
169
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
- args,
171
- self.__class__.__name__,
172
- ),
173
- path_to_item=_path_to_item,
174
- valid_classes=(self.__class__,),
175
- )
176
-
177
- self._data_store = {}
178
- self._check_type = _check_type
179
- self._spec_property_naming = _spec_property_naming
180
- self._path_to_item = _path_to_item
181
- self._configuration = _configuration
182
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
-
184
- self.cost_controller = cost_controller
185
- for var_name, var_value in kwargs.items():
186
- if var_name not in self.attribute_map and \
187
- self._configuration is not None and \
188
- self._configuration.discard_unknown_keys and \
189
- self.additional_properties_type is None:
190
- # discard variable.
191
- continue
192
- setattr(self, var_name, var_value)
193
- return self
194
-
195
- required_properties = set([
196
- '_data_store',
197
- '_check_type',
198
- '_spec_property_naming',
199
- '_path_to_item',
200
- '_configuration',
201
- '_visited_composed_classes',
202
- ])
203
-
204
- @convert_js_args_to_python_args
205
- def __init__(self, cost_controller, *args, **kwargs): # noqa: E501
206
- """CreateAdSetBidding - a model defined in OpenAPI
207
-
208
- Args:
209
- cost_controller (str): How spend is controlled
210
-
211
- Keyword Args:
212
- _check_type (bool): if True, values for parameters in openapi_types
213
- will be type checked and a TypeError will be
214
- raised if the wrong type is input.
215
- Defaults to True
216
- _path_to_item (tuple/list): This is a list of keys or values to
217
- drill down to the model in received_data
218
- when deserializing a response
219
- _spec_property_naming (bool): True if the variable names in the input data
220
- are serialized names, as specified in the OpenAPI document.
221
- False if the variable names in the input data
222
- are pythonic names, e.g. snake case (default)
223
- _configuration (Configuration): the instance to use when
224
- deserializing a file_type parameter.
225
- If passed, type conversion is attempted
226
- If omitted no type conversion is done.
227
- _visited_composed_classes (tuple): This stores a tuple of
228
- classes that we have traveled through so that
229
- if we see that class again we will not use its
230
- discriminator again.
231
- When traveling through a discriminator, the
232
- composed schema that is
233
- is traveled through is added to this set.
234
- For example if Animal has a discriminator
235
- petType and we pass in "Dog", and the class Dog
236
- allOf includes Animal, we move through Animal
237
- once using the discriminator, and pick Dog.
238
- Then in Dog, we will make an instance of the
239
- Animal class but this time we won't travel
240
- through its discriminator because we passed in
241
- _visited_composed_classes = (Animal,)
242
- bid_amount (float, none_type): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501
243
- """
244
-
245
- _check_type = kwargs.pop('_check_type', True)
246
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
247
- _path_to_item = kwargs.pop('_path_to_item', ())
248
- _configuration = kwargs.pop('_configuration', None)
249
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
250
-
251
- if args:
252
- for arg in args:
253
- if isinstance(arg, dict):
254
- kwargs.update(arg)
255
- else:
256
- raise ApiTypeError(
257
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
258
- args,
259
- self.__class__.__name__,
260
- ),
261
- path_to_item=_path_to_item,
262
- valid_classes=(self.__class__,),
263
- )
264
-
265
- self._data_store = {}
266
- self._check_type = _check_type
267
- self._spec_property_naming = _spec_property_naming
268
- self._path_to_item = _path_to_item
269
- self._configuration = _configuration
270
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
271
-
272
- self.cost_controller = cost_controller
273
- for var_name, var_value in kwargs.items():
274
- if var_name not in self.attribute_map and \
275
- self._configuration is not None and \
276
- self._configuration.discard_unknown_keys and \
277
- self.additional_properties_type is None:
278
- # discard variable.
279
- continue
280
- setattr(self, var_name, var_value)
281
- if var_name in self.read_only_vars:
282
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
283
- f"class with read only attributes.")