criteo-api-marketingsolutions-sdk 0.0.241029__py3-none-any.whl → 0.0.250205__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 (68) hide show
  1. criteo_api_marketingsolutions_preview/__init__.py +1 -1
  2. criteo_api_marketingsolutions_preview/api/campaign_api.py +0 -877
  3. criteo_api_marketingsolutions_preview/api/creative_api.py +107 -101
  4. criteo_api_marketingsolutions_preview/api_client.py +1 -1
  5. criteo_api_marketingsolutions_preview/configuration.py +1 -1
  6. criteo_api_marketingsolutions_preview/model/ad.py +4 -0
  7. criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v24_q3.py +1 -1
  8. criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +0 -10
  9. criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py +0 -4
  10. criteo_api_marketingsolutions_preview/model/coupon.py +4 -2
  11. criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py +0 -4
  12. criteo_api_marketingsolutions_preview/model/create_ad_set_attribution_configuration_v24_q3.py +284 -0
  13. criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q3.py +6 -0
  14. criteo_api_marketingsolutions_preview/model/create_coupon.py +0 -2
  15. criteo_api_marketingsolutions_preview/model/create_image_slide.py +0 -2
  16. criteo_api_marketingsolutions_preview/model/creative.py +4 -0
  17. criteo_api_marketingsolutions_preview/model/dynamic_attributes.py +0 -4
  18. criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py +6 -6
  19. criteo_api_marketingsolutions_preview/model/html_tag_attributes.py +0 -2
  20. criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py +0 -2
  21. criteo_api_marketingsolutions_preview/model/image_attributes.py +0 -2
  22. criteo_api_marketingsolutions_preview/model/image_set.py +0 -2
  23. criteo_api_marketingsolutions_preview/model/image_slide.py +0 -2
  24. criteo_api_marketingsolutions_preview/model/json_report_rows.py +3 -3
  25. criteo_api_marketingsolutions_preview/model/nillable_lookback_window_v24_q3.py +271 -0
  26. criteo_api_marketingsolutions_preview/model/patch_ad_set_attribution_configuration_v24_q3.py +282 -0
  27. criteo_api_marketingsolutions_preview/model/patch_ad_set_v24_q3.py +6 -0
  28. criteo_api_marketingsolutions_preview/model/read_ad_set_attribution_configuration_v24_q3.py +284 -0
  29. criteo_api_marketingsolutions_preview/model/read_ad_set_v24_q3.py +6 -0
  30. criteo_api_marketingsolutions_preview/model/report_ok_response.py +18 -18
  31. criteo_api_marketingsolutions_preview/model/{creative_response.py → resource_collection_outcome_of_ad.py} +8 -12
  32. criteo_api_marketingsolutions_preview/model/{ad_list_response.py → resource_collection_outcome_of_coupon.py} +8 -14
  33. criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_creative.py +281 -0
  34. criteo_api_marketingsolutions_preview/model/{ad_write_request.py → resource_input_of_ad_write.py} +8 -8
  35. criteo_api_marketingsolutions_preview/model/{create_coupon_request.py → resource_input_of_create_coupon.py} +8 -8
  36. criteo_api_marketingsolutions_preview/model/{creative_write_request.py → resource_input_of_creative_write.py} +8 -8
  37. criteo_api_marketingsolutions_preview/model/{update_coupon_request.py → resource_input_of_update_coupon.py} +8 -8
  38. criteo_api_marketingsolutions_preview/model/{ad_resource.py → resource_of_ad.py} +5 -5
  39. criteo_api_marketingsolutions_preview/model/{ad_write_resource.py → resource_of_ad_write.py} +5 -5
  40. criteo_api_marketingsolutions_preview/model/{coupon_resource.py → resource_of_coupon.py} +5 -5
  41. criteo_api_marketingsolutions_preview/model/{coupon_supported_sizes_resource.py → resource_of_coupon_supported_sizes.py} +5 -5
  42. criteo_api_marketingsolutions_preview/model/{create_coupon_resource.py → resource_of_create_coupon.py} +5 -5
  43. criteo_api_marketingsolutions_preview/model/{creative_resource.py → resource_of_creative.py} +5 -5
  44. criteo_api_marketingsolutions_preview/model/{creative_write_resource.py → resource_of_creative_write.py} +5 -5
  45. criteo_api_marketingsolutions_preview/model/{update_coupon_resource.py → resource_of_update_coupon.py} +5 -5
  46. criteo_api_marketingsolutions_preview/model/{ad_response.py → resource_outcome_of_ad.py} +8 -12
  47. criteo_api_marketingsolutions_preview/model/{coupon_response.py → resource_outcome_of_coupon.py} +8 -12
  48. criteo_api_marketingsolutions_preview/model/{coupon_list_response.py → resource_outcome_of_coupon_supported_sizes.py} +8 -14
  49. criteo_api_marketingsolutions_preview/model/resource_outcome_of_creative.py +281 -0
  50. criteo_api_marketingsolutions_preview/models/__init__.py +23 -31
  51. {criteo_api_marketingsolutions_sdk-0.0.241029.dist-info → criteo_api_marketingsolutions_sdk-0.0.250205.dist-info}/METADATA +14 -5
  52. {criteo_api_marketingsolutions_sdk-0.0.241029.dist-info → criteo_api_marketingsolutions_sdk-0.0.250205.dist-info}/RECORD +54 -62
  53. {criteo_api_marketingsolutions_sdk-0.0.241029.dist-info → criteo_api_marketingsolutions_sdk-0.0.250205.dist-info}/WHEEL +1 -1
  54. criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py +0 -285
  55. criteo_api_marketingsolutions_preview/model/creative_list_response.py +0 -287
  56. criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py +0 -279
  57. criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py +0 -287
  58. criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py +0 -275
  59. criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py +0 -320
  60. criteo_api_marketingsolutions_preview/model/oci_targeting_node.py +0 -277
  61. criteo_api_marketingsolutions_preview/model/oci_targeting_response.py +0 -279
  62. criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py +0 -287
  63. criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py +0 -275
  64. criteo_api_marketingsolutions_preview/model/target.py +0 -274
  65. criteo_api_marketingsolutions_preview/model/target_type.py +0 -290
  66. criteo_api_marketingsolutions_preview/model/targeting_error_model.py +0 -299
  67. criteo_api_marketingsolutions_preview/model/targeting_operator.py +0 -292
  68. {criteo_api_marketingsolutions_sdk-0.0.241029.dist-info → criteo_api_marketingsolutions_sdk-0.0.250205.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,271 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: preview
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_preview.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_preview.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class NillableLookbackWindowV24Q3(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
+ ('value',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "unknown",
61
+ 'SAMESESSION': "sameSession",
62
+ 'TWENTYFOURHOURS': "twentyFourHours",
63
+ 'SEVENDAYS': "sevenDays",
64
+ 'THIRTYDAYS': "thirtyDays",
65
+ },
66
+ }
67
+
68
+ validations = {
69
+ }
70
+
71
+ @cached_property
72
+ def additional_properties_type():
73
+ """
74
+ This must be a method because a model may have properties that are
75
+ of type self, this must run after the class is loaded
76
+ """
77
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
78
+
79
+ _nullable = False
80
+
81
+ @cached_property
82
+ def openapi_types():
83
+ """
84
+ This must be a method because a model may have properties that are
85
+ of type self, this must run after the class is loaded
86
+
87
+ Returns
88
+ openapi_types (dict): The key is attribute name
89
+ and the value is attribute type.
90
+ """
91
+ return {
92
+ 'value': (str, none_type,), # noqa: E501
93
+ }
94
+
95
+ @cached_property
96
+ def discriminator():
97
+ return None
98
+
99
+
100
+ attribute_map = {
101
+ 'value': 'value', # noqa: E501
102
+ }
103
+
104
+ read_only_vars = {
105
+ }
106
+
107
+ _composed_schemas = {}
108
+
109
+ @classmethod
110
+ @convert_js_args_to_python_args
111
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
112
+ """NillableLookbackWindowV24Q3 - a model defined in OpenAPI
113
+
114
+ Keyword Args:
115
+ _check_type (bool): if True, values for parameters in openapi_types
116
+ will be type checked and a TypeError will be
117
+ raised if the wrong type is input.
118
+ Defaults to True
119
+ _path_to_item (tuple/list): This is a list of keys or values to
120
+ drill down to the model in received_data
121
+ when deserializing a response
122
+ _spec_property_naming (bool): True if the variable names in the input data
123
+ are serialized names, as specified in the OpenAPI document.
124
+ False if the variable names in the input data
125
+ are pythonic names, e.g. snake case (default)
126
+ _configuration (Configuration): the instance to use when
127
+ deserializing a file_type parameter.
128
+ If passed, type conversion is attempted
129
+ If omitted no type conversion is done.
130
+ _visited_composed_classes (tuple): This stores a tuple of
131
+ classes that we have traveled through so that
132
+ if we see that class again we will not use its
133
+ discriminator again.
134
+ When traveling through a discriminator, the
135
+ composed schema that is
136
+ is traveled through is added to this set.
137
+ For example if Animal has a discriminator
138
+ petType and we pass in "Dog", and the class Dog
139
+ allOf includes Animal, we move through Animal
140
+ once using the discriminator, and pick Dog.
141
+ Then in Dog, we will make an instance of the
142
+ Animal class but this time we won't travel
143
+ through its discriminator because we passed in
144
+ _visited_composed_classes = (Animal,)
145
+ value (str, none_type): [optional] # noqa: E501
146
+ """
147
+
148
+ _check_type = kwargs.pop('_check_type', True)
149
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
150
+ _path_to_item = kwargs.pop('_path_to_item', ())
151
+ _configuration = kwargs.pop('_configuration', None)
152
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
+
154
+ self = super(OpenApiModel, cls).__new__(cls)
155
+
156
+ if args:
157
+ for arg in args:
158
+ if isinstance(arg, dict):
159
+ kwargs.update(arg)
160
+ else:
161
+ raise ApiTypeError(
162
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
+ args,
164
+ self.__class__.__name__,
165
+ ),
166
+ path_to_item=_path_to_item,
167
+ valid_classes=(self.__class__,),
168
+ )
169
+
170
+ self._data_store = {}
171
+ self._check_type = _check_type
172
+ self._spec_property_naming = _spec_property_naming
173
+ self._path_to_item = _path_to_item
174
+ self._configuration = _configuration
175
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
+
177
+ for var_name, var_value in kwargs.items():
178
+ if var_name not in self.attribute_map and \
179
+ self._configuration is not None and \
180
+ self._configuration.discard_unknown_keys and \
181
+ self.additional_properties_type is None:
182
+ # discard variable.
183
+ continue
184
+ setattr(self, var_name, var_value)
185
+ return self
186
+
187
+ required_properties = set([
188
+ '_data_store',
189
+ '_check_type',
190
+ '_spec_property_naming',
191
+ '_path_to_item',
192
+ '_configuration',
193
+ '_visited_composed_classes',
194
+ ])
195
+
196
+ @convert_js_args_to_python_args
197
+ def __init__(self, *args, **kwargs): # noqa: E501
198
+ """NillableLookbackWindowV24Q3 - a model defined in OpenAPI
199
+
200
+ Keyword Args:
201
+ _check_type (bool): if True, values for parameters in openapi_types
202
+ will be type checked and a TypeError will be
203
+ raised if the wrong type is input.
204
+ Defaults to True
205
+ _path_to_item (tuple/list): This is a list of keys or values to
206
+ drill down to the model in received_data
207
+ when deserializing a response
208
+ _spec_property_naming (bool): True if the variable names in the input data
209
+ are serialized names, as specified in the OpenAPI document.
210
+ False if the variable names in the input data
211
+ are pythonic names, e.g. snake case (default)
212
+ _configuration (Configuration): the instance to use when
213
+ deserializing a file_type parameter.
214
+ If passed, type conversion is attempted
215
+ If omitted no type conversion is done.
216
+ _visited_composed_classes (tuple): This stores a tuple of
217
+ classes that we have traveled through so that
218
+ if we see that class again we will not use its
219
+ discriminator again.
220
+ When traveling through a discriminator, the
221
+ composed schema that is
222
+ is traveled through is added to this set.
223
+ For example if Animal has a discriminator
224
+ petType and we pass in "Dog", and the class Dog
225
+ allOf includes Animal, we move through Animal
226
+ once using the discriminator, and pick Dog.
227
+ Then in Dog, we will make an instance of the
228
+ Animal class but this time we won't travel
229
+ through its discriminator because we passed in
230
+ _visited_composed_classes = (Animal,)
231
+ value (str, none_type): [optional] # noqa: E501
232
+ """
233
+
234
+ _check_type = kwargs.pop('_check_type', True)
235
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
236
+ _path_to_item = kwargs.pop('_path_to_item', ())
237
+ _configuration = kwargs.pop('_configuration', None)
238
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
239
+
240
+ if args:
241
+ for arg in args:
242
+ if isinstance(arg, dict):
243
+ kwargs.update(arg)
244
+ else:
245
+ raise ApiTypeError(
246
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
247
+ args,
248
+ self.__class__.__name__,
249
+ ),
250
+ path_to_item=_path_to_item,
251
+ valid_classes=(self.__class__,),
252
+ )
253
+
254
+ self._data_store = {}
255
+ self._check_type = _check_type
256
+ self._spec_property_naming = _spec_property_naming
257
+ self._path_to_item = _path_to_item
258
+ self._configuration = _configuration
259
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
260
+
261
+ for var_name, var_value in kwargs.items():
262
+ if var_name not in self.attribute_map and \
263
+ self._configuration is not None and \
264
+ self._configuration.discard_unknown_keys and \
265
+ self.additional_properties_type is None:
266
+ # discard variable.
267
+ continue
268
+ setattr(self, var_name, var_value)
269
+ if var_name in self.read_only_vars:
270
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
271
+ f"class with read only attributes.")
@@ -0,0 +1,282 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: preview
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_preview.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_preview.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_marketingsolutions_preview.model.nillable_lookback_window_v24_q3 import NillableLookbackWindowV24Q3
34
+ globals()['NillableLookbackWindowV24Q3'] = NillableLookbackWindowV24Q3
35
+
36
+
37
+ class PatchAdSetAttributionConfigurationV24Q3(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
+ ('attribution_method',): {
63
+ 'None': None,
64
+ 'UNKNOWN': "unknown",
65
+ 'CRITEOATTRIBUTION': "criteoAttribution",
66
+ 'GOOGLEANALYTICSLASTCLICK': "googleAnalyticsLastClick",
67
+ 'GOOGLEANALYTICSDATADRIVEN': "googleAnalyticsDataDriven",
68
+ 'LASTCLICK': "lastClick",
69
+ 'POSTCLICK': "postClick",
70
+ },
71
+ }
72
+
73
+ validations = {
74
+ }
75
+
76
+ @cached_property
77
+ def additional_properties_type():
78
+ """
79
+ This must be a method because a model may have properties that are
80
+ of type self, this must run after the class is loaded
81
+ """
82
+ lazy_import()
83
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
84
+
85
+ _nullable = False
86
+
87
+ @cached_property
88
+ def openapi_types():
89
+ """
90
+ This must be a method because a model may have properties that are
91
+ of type self, this must run after the class is loaded
92
+
93
+ Returns
94
+ openapi_types (dict): The key is attribute name
95
+ and the value is attribute type.
96
+ """
97
+ lazy_import()
98
+ return {
99
+ 'attribution_method': (str, none_type,), # noqa: E501
100
+ 'lookback_window': (NillableLookbackWindowV24Q3,), # noqa: E501
101
+ }
102
+
103
+ @cached_property
104
+ def discriminator():
105
+ return None
106
+
107
+
108
+ attribute_map = {
109
+ 'attribution_method': 'attributionMethod', # noqa: E501
110
+ 'lookback_window': 'lookbackWindow', # noqa: E501
111
+ }
112
+
113
+ read_only_vars = {
114
+ }
115
+
116
+ _composed_schemas = {}
117
+
118
+ @classmethod
119
+ @convert_js_args_to_python_args
120
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
121
+ """PatchAdSetAttributionConfigurationV24Q3 - a model defined in OpenAPI
122
+
123
+ Keyword Args:
124
+ _check_type (bool): if True, values for parameters in openapi_types
125
+ will be type checked and a TypeError will be
126
+ raised if the wrong type is input.
127
+ Defaults to True
128
+ _path_to_item (tuple/list): This is a list of keys or values to
129
+ drill down to the model in received_data
130
+ when deserializing a response
131
+ _spec_property_naming (bool): True if the variable names in the input data
132
+ are serialized names, as specified in the OpenAPI document.
133
+ False if the variable names in the input data
134
+ are pythonic names, e.g. snake case (default)
135
+ _configuration (Configuration): the instance to use when
136
+ deserializing a file_type parameter.
137
+ If passed, type conversion is attempted
138
+ If omitted no type conversion is done.
139
+ _visited_composed_classes (tuple): This stores a tuple of
140
+ classes that we have traveled through so that
141
+ if we see that class again we will not use its
142
+ discriminator again.
143
+ When traveling through a discriminator, the
144
+ composed schema that is
145
+ is traveled through is added to this set.
146
+ For example if Animal has a discriminator
147
+ petType and we pass in "Dog", and the class Dog
148
+ allOf includes Animal, we move through Animal
149
+ once using the discriminator, and pick Dog.
150
+ Then in Dog, we will make an instance of the
151
+ Animal class but this time we won't travel
152
+ through its discriminator because we passed in
153
+ _visited_composed_classes = (Animal,)
154
+ attribution_method (str, none_type): The attribution method.. [optional] # noqa: E501
155
+ lookback_window (NillableLookbackWindowV24Q3): [optional] # noqa: E501
156
+ """
157
+
158
+ _check_type = kwargs.pop('_check_type', True)
159
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
+ _path_to_item = kwargs.pop('_path_to_item', ())
161
+ _configuration = kwargs.pop('_configuration', None)
162
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
+
164
+ self = super(OpenApiModel, cls).__new__(cls)
165
+
166
+ if args:
167
+ for arg in args:
168
+ if isinstance(arg, dict):
169
+ kwargs.update(arg)
170
+ else:
171
+ raise ApiTypeError(
172
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
+ args,
174
+ self.__class__.__name__,
175
+ ),
176
+ path_to_item=_path_to_item,
177
+ valid_classes=(self.__class__,),
178
+ )
179
+
180
+ self._data_store = {}
181
+ self._check_type = _check_type
182
+ self._spec_property_naming = _spec_property_naming
183
+ self._path_to_item = _path_to_item
184
+ self._configuration = _configuration
185
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
+
187
+ for var_name, var_value in kwargs.items():
188
+ if var_name not in self.attribute_map and \
189
+ self._configuration is not None and \
190
+ self._configuration.discard_unknown_keys and \
191
+ self.additional_properties_type is None:
192
+ # discard variable.
193
+ continue
194
+ setattr(self, var_name, var_value)
195
+ return self
196
+
197
+ required_properties = set([
198
+ '_data_store',
199
+ '_check_type',
200
+ '_spec_property_naming',
201
+ '_path_to_item',
202
+ '_configuration',
203
+ '_visited_composed_classes',
204
+ ])
205
+
206
+ @convert_js_args_to_python_args
207
+ def __init__(self, *args, **kwargs): # noqa: E501
208
+ """PatchAdSetAttributionConfigurationV24Q3 - a model defined in OpenAPI
209
+
210
+ Keyword Args:
211
+ _check_type (bool): if True, values for parameters in openapi_types
212
+ will be type checked and a TypeError will be
213
+ raised if the wrong type is input.
214
+ Defaults to True
215
+ _path_to_item (tuple/list): This is a list of keys or values to
216
+ drill down to the model in received_data
217
+ when deserializing a response
218
+ _spec_property_naming (bool): True if the variable names in the input data
219
+ are serialized names, as specified in the OpenAPI document.
220
+ False if the variable names in the input data
221
+ are pythonic names, e.g. snake case (default)
222
+ _configuration (Configuration): the instance to use when
223
+ deserializing a file_type parameter.
224
+ If passed, type conversion is attempted
225
+ If omitted no type conversion is done.
226
+ _visited_composed_classes (tuple): This stores a tuple of
227
+ classes that we have traveled through so that
228
+ if we see that class again we will not use its
229
+ discriminator again.
230
+ When traveling through a discriminator, the
231
+ composed schema that is
232
+ is traveled through is added to this set.
233
+ For example if Animal has a discriminator
234
+ petType and we pass in "Dog", and the class Dog
235
+ allOf includes Animal, we move through Animal
236
+ once using the discriminator, and pick Dog.
237
+ Then in Dog, we will make an instance of the
238
+ Animal class but this time we won't travel
239
+ through its discriminator because we passed in
240
+ _visited_composed_classes = (Animal,)
241
+ attribution_method (str, none_type): The attribution method.. [optional] # noqa: E501
242
+ lookback_window (NillableLookbackWindowV24Q3): [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
+ for var_name, var_value in kwargs.items():
273
+ if var_name not in self.attribute_map and \
274
+ self._configuration is not None and \
275
+ self._configuration.discard_unknown_keys and \
276
+ self.additional_properties_type is None:
277
+ # discard variable.
278
+ continue
279
+ setattr(self, var_name, var_value)
280
+ if var_name in self.read_only_vars:
281
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
282
+ f"class with read only attributes.")
@@ -31,10 +31,12 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError
31
31
 
32
32
  def lazy_import():
33
33
  from criteo_api_marketingsolutions_preview.model.ad_set_targeting_v24_q3 import AdSetTargetingV24Q3
34
+ from criteo_api_marketingsolutions_preview.model.patch_ad_set_attribution_configuration_v24_q3 import PatchAdSetAttributionConfigurationV24Q3
34
35
  from criteo_api_marketingsolutions_preview.model.patch_ad_set_bidding_v24_q3 import PatchAdSetBiddingV24Q3
35
36
  from criteo_api_marketingsolutions_preview.model.patch_ad_set_budget_v24_q3 import PatchAdSetBudgetV24Q3
36
37
  from criteo_api_marketingsolutions_preview.model.patch_ad_set_scheduling_v24_q3 import PatchAdSetSchedulingV24Q3
37
38
  globals()['AdSetTargetingV24Q3'] = AdSetTargetingV24Q3
39
+ globals()['PatchAdSetAttributionConfigurationV24Q3'] = PatchAdSetAttributionConfigurationV24Q3
38
40
  globals()['PatchAdSetBiddingV24Q3'] = PatchAdSetBiddingV24Q3
39
41
  globals()['PatchAdSetBudgetV24Q3'] = PatchAdSetBudgetV24Q3
40
42
  globals()['PatchAdSetSchedulingV24Q3'] = PatchAdSetSchedulingV24Q3
@@ -98,6 +100,7 @@ class PatchAdSetV24Q3(ModelNormal):
98
100
  'bidding': (PatchAdSetBiddingV24Q3,), # noqa: E501
99
101
  'targeting': (AdSetTargetingV24Q3,), # noqa: E501
100
102
  'budget': (PatchAdSetBudgetV24Q3,), # noqa: E501
103
+ 'attribution_configuration': (PatchAdSetAttributionConfigurationV24Q3,), # noqa: E501
101
104
  }
102
105
 
103
106
  @cached_property
@@ -111,6 +114,7 @@ class PatchAdSetV24Q3(ModelNormal):
111
114
  'bidding': 'bidding', # noqa: E501
112
115
  'targeting': 'targeting', # noqa: E501
113
116
  'budget': 'budget', # noqa: E501
117
+ 'attribution_configuration': 'attributionConfiguration', # noqa: E501
114
118
  }
115
119
 
116
120
  read_only_vars = {
@@ -159,6 +163,7 @@ class PatchAdSetV24Q3(ModelNormal):
159
163
  bidding (PatchAdSetBiddingV24Q3): [optional] # noqa: E501
160
164
  targeting (AdSetTargetingV24Q3): [optional] # noqa: E501
161
165
  budget (PatchAdSetBudgetV24Q3): [optional] # noqa: E501
166
+ attribution_configuration (PatchAdSetAttributionConfigurationV24Q3): [optional] # noqa: E501
162
167
  """
163
168
 
164
169
  _check_type = kwargs.pop('_check_type', True)
@@ -249,6 +254,7 @@ class PatchAdSetV24Q3(ModelNormal):
249
254
  bidding (PatchAdSetBiddingV24Q3): [optional] # noqa: E501
250
255
  targeting (AdSetTargetingV24Q3): [optional] # noqa: E501
251
256
  budget (PatchAdSetBudgetV24Q3): [optional] # noqa: E501
257
+ attribution_configuration (PatchAdSetAttributionConfigurationV24Q3): [optional] # noqa: E501
252
258
  """
253
259
 
254
260
  _check_type = kwargs.pop('_check_type', True)