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