criteo-api-marketingsolutions-sdk 2024.4.0.250409__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 (58) hide show
  1. {criteo_api_marketingsolutions_sdk-2024.4.0.250409.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2024.4.0.250409.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/RECORD +13 -58
  3. {criteo_api_marketingsolutions_sdk-2024.4.0.250409.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/automated_budget_configuration_v23_q1.py +0 -7
  9. criteo_api_marketingsolutions_v2024_04/model/budget_automation.py +6 -6
  10. criteo_api_marketingsolutions_v2024_04/model/budget_automation_configuration.py +1 -8
  11. criteo_api_marketingsolutions_v2024_04/model/patch_marketing_campaign_budget_automation.py +4 -4
  12. criteo_api_marketingsolutions_v2024_04/models/__init__.py +0 -45
  13. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations.py +0 -289
  14. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations_v23_q1.py +0 -289
  15. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping.py +0 -274
  16. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping_v23_q1.py +0 -283
  17. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location.py +0 -277
  18. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location_v23_q1.py +0 -277
  19. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_filter_v23_q1.py +0 -271
  20. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_request_v23_q1.py +0 -269
  21. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting.py +0 -281
  22. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule.py +0 -272
  23. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule_v23_q1.py +0 -272
  24. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_v23_q1.py +0 -281
  25. criteo_api_marketingsolutions_v2024_04/model/automated_budget_configuration.py +0 -276
  26. criteo_api_marketingsolutions_v2024_04/model/create_ad_set.py +0 -350
  27. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_bidding.py +0 -283
  28. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_budget.py +0 -309
  29. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_geo_location.py +0 -277
  30. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_request.py +0 -269
  31. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_resource.py +0 -273
  32. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_schedule.py +0 -273
  33. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_targeting.py +0 -287
  34. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule.py +0 -269
  35. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1.py +0 -269
  36. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1_value.py +0 -328
  37. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_value.py +0 -328
  38. criteo_api_marketingsolutions_v2024_04/model/nillable_date_time.py +0 -263
  39. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set.py +0 -291
  40. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_bidding.py +0 -269
  41. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_budget.py +0 -313
  42. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_scheduling.py +0 -273
  43. criteo_api_marketingsolutions_v2024_04/model/read_ad_set.py +0 -322
  44. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding.py +0 -302
  45. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding_v23_q1.py +0 -285
  46. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget.py +0 -313
  47. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget_v23_q1.py +0 -313
  48. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule.py +0 -299
  49. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule_v23_q1.py +0 -299
  50. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_v23_q1.py +0 -349
  51. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set.py +0 -279
  52. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set_v23_q1.py +0 -279
  53. criteo_api_marketingsolutions_v2024_04/model/requests_patch_ad_set.py +0 -269
  54. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set.py +0 -281
  55. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set_v23_q1.py +0 -281
  56. criteo_api_marketingsolutions_v2024_04/model/responses_read_ad_set_v23_q1.py +0 -282
  57. criteo_api_marketingsolutions_v2024_04/model/write_model_patch_ad_set.py +0 -277
  58. {criteo_api_marketingsolutions_sdk-2024.4.0.250409.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/top_level.txt +0 -0
@@ -1,302 +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 ReadAdSetBidding(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
- ('bid_strategy',): {
63
- 'None': None,
64
- 'ACTIONS': "actions",
65
- 'CLICKS': "clicks",
66
- 'CONVERSIONS': "conversions",
67
- 'DISPLAYS': "displays",
68
- 'INSTALLS': "installs",
69
- 'REVENUE': "revenue",
70
- 'STORECONVERSIONS': "storeConversions",
71
- 'VALUE': "value",
72
- 'VIEWEDIMPRESSIONS': "viewedImpressions",
73
- 'VISITS': "Visits",
74
- 'COMPLETEDVIDEOVIEWS': "completedVideoViews",
75
- },
76
- ('cost_controller',): {
77
- 'None': None,
78
- 'COS': "COS",
79
- 'CPC': "CPC",
80
- 'CPI': "CPI",
81
- 'CPM': "CPM",
82
- 'CPO': "CPO",
83
- 'CPSV': "CPSV",
84
- 'CPV': "CPV",
85
- 'DAILYBUDGET': "dailyBudget",
86
- },
87
- }
88
-
89
- validations = {
90
- }
91
-
92
- @cached_property
93
- def additional_properties_type():
94
- """
95
- This must be a method because a model may have properties that are
96
- of type self, this must run after the class is loaded
97
- """
98
- lazy_import()
99
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
100
-
101
- _nullable = True
102
-
103
- @cached_property
104
- def openapi_types():
105
- """
106
- This must be a method because a model may have properties that are
107
- of type self, this must run after the class is loaded
108
-
109
- Returns
110
- openapi_types (dict): The key is attribute name
111
- and the value is attribute type.
112
- """
113
- lazy_import()
114
- return {
115
- 'bid_amount': (NillableDecimal,), # noqa: E501
116
- 'bid_strategy': (str, none_type,), # noqa: E501
117
- 'cost_controller': (str, none_type,), # noqa: E501
118
- }
119
-
120
- @cached_property
121
- def discriminator():
122
- return None
123
-
124
-
125
- attribute_map = {
126
- 'bid_amount': 'bidAmount', # noqa: E501
127
- 'bid_strategy': 'bidStrategy', # noqa: E501
128
- 'cost_controller': 'costController', # noqa: E501
129
- }
130
-
131
- read_only_vars = {
132
- }
133
-
134
- _composed_schemas = {}
135
-
136
- @classmethod
137
- @convert_js_args_to_python_args
138
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
139
- """ReadAdSetBidding - a model defined in OpenAPI
140
-
141
- Keyword Args:
142
- _check_type (bool): if True, values for parameters in openapi_types
143
- will be type checked and a TypeError will be
144
- raised if the wrong type is input.
145
- Defaults to True
146
- _path_to_item (tuple/list): This is a list of keys or values to
147
- drill down to the model in received_data
148
- when deserializing a response
149
- _spec_property_naming (bool): True if the variable names in the input data
150
- are serialized names, as specified in the OpenAPI document.
151
- False if the variable names in the input data
152
- are pythonic names, e.g. snake case (default)
153
- _configuration (Configuration): the instance to use when
154
- deserializing a file_type parameter.
155
- If passed, type conversion is attempted
156
- If omitted no type conversion is done.
157
- _visited_composed_classes (tuple): This stores a tuple of
158
- classes that we have traveled through so that
159
- if we see that class again we will not use its
160
- discriminator again.
161
- When traveling through a discriminator, the
162
- composed schema that is
163
- is traveled through is added to this set.
164
- For example if Animal has a discriminator
165
- petType and we pass in "Dog", and the class Dog
166
- allOf includes Animal, we move through Animal
167
- once using the discriminator, and pick Dog.
168
- Then in Dog, we will make an instance of the
169
- Animal class but this time we won't travel
170
- through its discriminator because we passed in
171
- _visited_composed_classes = (Animal,)
172
- bid_amount (NillableDecimal): [optional] # noqa: E501
173
- bid_strategy (str, none_type): The intended optimization for the Ad Set. [optional] # noqa: E501
174
- cost_controller (str, none_type): How spend is controlled. [optional] # noqa: E501
175
- """
176
-
177
- _check_type = kwargs.pop('_check_type', True)
178
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
179
- _path_to_item = kwargs.pop('_path_to_item', ())
180
- _configuration = kwargs.pop('_configuration', None)
181
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
182
-
183
- self = super(OpenApiModel, cls).__new__(cls)
184
-
185
- if args:
186
- for arg in args:
187
- if isinstance(arg, dict):
188
- kwargs.update(arg)
189
- else:
190
- raise ApiTypeError(
191
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
192
- args,
193
- self.__class__.__name__,
194
- ),
195
- path_to_item=_path_to_item,
196
- valid_classes=(self.__class__,),
197
- )
198
-
199
- self._data_store = {}
200
- self._check_type = _check_type
201
- self._spec_property_naming = _spec_property_naming
202
- self._path_to_item = _path_to_item
203
- self._configuration = _configuration
204
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
205
-
206
- for var_name, var_value in kwargs.items():
207
- if var_name not in self.attribute_map and \
208
- self._configuration is not None and \
209
- self._configuration.discard_unknown_keys and \
210
- self.additional_properties_type is None:
211
- # discard variable.
212
- continue
213
- setattr(self, var_name, var_value)
214
- return self
215
-
216
- required_properties = set([
217
- '_data_store',
218
- '_check_type',
219
- '_spec_property_naming',
220
- '_path_to_item',
221
- '_configuration',
222
- '_visited_composed_classes',
223
- ])
224
-
225
- @convert_js_args_to_python_args
226
- def __init__(self, *args, **kwargs): # noqa: E501
227
- """ReadAdSetBidding - a model defined in OpenAPI
228
-
229
- Keyword Args:
230
- _check_type (bool): if True, values for parameters in openapi_types
231
- will be type checked and a TypeError will be
232
- raised if the wrong type is input.
233
- Defaults to True
234
- _path_to_item (tuple/list): This is a list of keys or values to
235
- drill down to the model in received_data
236
- when deserializing a response
237
- _spec_property_naming (bool): True if the variable names in the input data
238
- are serialized names, as specified in the OpenAPI document.
239
- False if the variable names in the input data
240
- are pythonic names, e.g. snake case (default)
241
- _configuration (Configuration): the instance to use when
242
- deserializing a file_type parameter.
243
- If passed, type conversion is attempted
244
- If omitted no type conversion is done.
245
- _visited_composed_classes (tuple): This stores a tuple of
246
- classes that we have traveled through so that
247
- if we see that class again we will not use its
248
- discriminator again.
249
- When traveling through a discriminator, the
250
- composed schema that is
251
- is traveled through is added to this set.
252
- For example if Animal has a discriminator
253
- petType and we pass in "Dog", and the class Dog
254
- allOf includes Animal, we move through Animal
255
- once using the discriminator, and pick Dog.
256
- Then in Dog, we will make an instance of the
257
- Animal class but this time we won't travel
258
- through its discriminator because we passed in
259
- _visited_composed_classes = (Animal,)
260
- bid_amount (NillableDecimal): [optional] # noqa: E501
261
- bid_strategy (str, none_type): The intended optimization for the Ad Set. [optional] # noqa: E501
262
- cost_controller (str, none_type): How spend is controlled. [optional] # noqa: E501
263
- """
264
-
265
- _check_type = kwargs.pop('_check_type', True)
266
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
267
- _path_to_item = kwargs.pop('_path_to_item', ())
268
- _configuration = kwargs.pop('_configuration', None)
269
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
270
-
271
- if args:
272
- for arg in args:
273
- if isinstance(arg, dict):
274
- kwargs.update(arg)
275
- else:
276
- raise ApiTypeError(
277
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
278
- args,
279
- self.__class__.__name__,
280
- ),
281
- path_to_item=_path_to_item,
282
- valid_classes=(self.__class__,),
283
- )
284
-
285
- self._data_store = {}
286
- self._check_type = _check_type
287
- self._spec_property_naming = _spec_property_naming
288
- self._path_to_item = _path_to_item
289
- self._configuration = _configuration
290
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
291
-
292
- for var_name, var_value in kwargs.items():
293
- if var_name not in self.attribute_map and \
294
- self._configuration is not None and \
295
- self._configuration.discard_unknown_keys and \
296
- self.additional_properties_type is None:
297
- # discard variable.
298
- continue
299
- setattr(self, var_name, var_value)
300
- if var_name in self.read_only_vars:
301
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
302
- f"class with read only attributes.")
@@ -1,285 +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 ReadAdSetBiddingV23Q1(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
- ('cost_controller',): {
63
- 'None': None,
64
- 'COS': "COS",
65
- 'CPC': "CPC",
66
- 'CPI': "CPI",
67
- 'CPM': "CPM",
68
- 'CPO': "CPO",
69
- 'CPSV': "CPSV",
70
- 'CPV': "CPV",
71
- 'DAILYBUDGET': "dailyBudget",
72
- 'TARGETCPM': "targetCPM",
73
- },
74
- }
75
-
76
- validations = {
77
- }
78
-
79
- @cached_property
80
- def additional_properties_type():
81
- """
82
- This must be a method because a model may have properties that are
83
- of type self, this must run after the class is loaded
84
- """
85
- lazy_import()
86
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
87
-
88
- _nullable = True
89
-
90
- @cached_property
91
- def openapi_types():
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
- Returns
97
- openapi_types (dict): The key is attribute name
98
- and the value is attribute type.
99
- """
100
- lazy_import()
101
- return {
102
- 'bid_amount': (NillableDecimal,), # noqa: E501
103
- 'cost_controller': (str, none_type,), # noqa: E501
104
- }
105
-
106
- @cached_property
107
- def discriminator():
108
- return None
109
-
110
-
111
- attribute_map = {
112
- 'bid_amount': 'bidAmount', # noqa: E501
113
- 'cost_controller': 'costController', # 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
- """ReadAdSetBiddingV23Q1 - 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
- bid_amount (NillableDecimal): [optional] # noqa: E501
158
- cost_controller (str, none_type): How spend is controlled. [optional] # noqa: E501
159
- """
160
-
161
- _check_type = kwargs.pop('_check_type', True)
162
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
163
- _path_to_item = kwargs.pop('_path_to_item', ())
164
- _configuration = kwargs.pop('_configuration', None)
165
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
166
-
167
- self = super(OpenApiModel, cls).__new__(cls)
168
-
169
- if args:
170
- for arg in args:
171
- if isinstance(arg, dict):
172
- kwargs.update(arg)
173
- else:
174
- raise ApiTypeError(
175
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
176
- args,
177
- self.__class__.__name__,
178
- ),
179
- path_to_item=_path_to_item,
180
- valid_classes=(self.__class__,),
181
- )
182
-
183
- self._data_store = {}
184
- self._check_type = _check_type
185
- self._spec_property_naming = _spec_property_naming
186
- self._path_to_item = _path_to_item
187
- self._configuration = _configuration
188
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
189
-
190
- for var_name, var_value in kwargs.items():
191
- if var_name not in self.attribute_map and \
192
- self._configuration is not None and \
193
- self._configuration.discard_unknown_keys and \
194
- self.additional_properties_type is None:
195
- # discard variable.
196
- continue
197
- setattr(self, var_name, var_value)
198
- return self
199
-
200
- required_properties = set([
201
- '_data_store',
202
- '_check_type',
203
- '_spec_property_naming',
204
- '_path_to_item',
205
- '_configuration',
206
- '_visited_composed_classes',
207
- ])
208
-
209
- @convert_js_args_to_python_args
210
- def __init__(self, *args, **kwargs): # noqa: E501
211
- """ReadAdSetBiddingV23Q1 - a model defined in OpenAPI
212
-
213
- Keyword Args:
214
- _check_type (bool): if True, values for parameters in openapi_types
215
- will be type checked and a TypeError will be
216
- raised if the wrong type is input.
217
- Defaults to True
218
- _path_to_item (tuple/list): This is a list of keys or values to
219
- drill down to the model in received_data
220
- when deserializing a response
221
- _spec_property_naming (bool): True if the variable names in the input data
222
- are serialized names, as specified in the OpenAPI document.
223
- False if the variable names in the input data
224
- are pythonic names, e.g. snake case (default)
225
- _configuration (Configuration): the instance to use when
226
- deserializing a file_type parameter.
227
- If passed, type conversion is attempted
228
- If omitted no type conversion is done.
229
- _visited_composed_classes (tuple): This stores a tuple of
230
- classes that we have traveled through so that
231
- if we see that class again we will not use its
232
- discriminator again.
233
- When traveling through a discriminator, the
234
- composed schema that is
235
- is traveled through is added to this set.
236
- For example if Animal has a discriminator
237
- petType and we pass in "Dog", and the class Dog
238
- allOf includes Animal, we move through Animal
239
- once using the discriminator, and pick Dog.
240
- Then in Dog, we will make an instance of the
241
- Animal class but this time we won't travel
242
- through its discriminator because we passed in
243
- _visited_composed_classes = (Animal,)
244
- bid_amount (NillableDecimal): [optional] # noqa: E501
245
- cost_controller (str, none_type): How spend is controlled. [optional] # noqa: E501
246
- """
247
-
248
- _check_type = kwargs.pop('_check_type', True)
249
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
250
- _path_to_item = kwargs.pop('_path_to_item', ())
251
- _configuration = kwargs.pop('_configuration', None)
252
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
253
-
254
- if args:
255
- for arg in args:
256
- if isinstance(arg, dict):
257
- kwargs.update(arg)
258
- else:
259
- raise ApiTypeError(
260
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
261
- args,
262
- self.__class__.__name__,
263
- ),
264
- path_to_item=_path_to_item,
265
- valid_classes=(self.__class__,),
266
- )
267
-
268
- self._data_store = {}
269
- self._check_type = _check_type
270
- self._spec_property_naming = _spec_property_naming
271
- self._path_to_item = _path_to_item
272
- self._configuration = _configuration
273
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
274
-
275
- for var_name, var_value in kwargs.items():
276
- if var_name not in self.attribute_map and \
277
- self._configuration is not None and \
278
- self._configuration.discard_unknown_keys and \
279
- self.additional_properties_type is None:
280
- # discard variable.
281
- continue
282
- setattr(self, var_name, var_value)
283
- if var_name in self.read_only_vars:
284
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
285
- f"class with read only attributes.")