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
@@ -1,290 +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
-
33
- class TargetType(ModelSimple):
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
- validations (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
- that stores validations for max_length, min_length, max_items,
47
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
48
- inclusive_minimum, and regex.
49
- additional_properties_type (tuple): A tuple of classes accepted
50
- as additional properties values.
51
- """
52
-
53
- allowed_values = {
54
- ('value',): {
55
- 'CAMPAIGN': "Campaign",
56
- 'ADVERTISER': "Advertiser",
57
- },
58
- }
59
-
60
- validations = {
61
- }
62
-
63
- additional_properties_type = None
64
-
65
- _nullable = False
66
-
67
- @cached_property
68
- def openapi_types():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
-
73
- Returns
74
- openapi_types (dict): The key is attribute name
75
- and the value is attribute type.
76
- """
77
- return {
78
- 'value': (str,),
79
- }
80
-
81
- @cached_property
82
- def discriminator():
83
- return None
84
-
85
-
86
- attribute_map = {}
87
-
88
- read_only_vars = set()
89
-
90
- _composed_schemas = None
91
-
92
- required_properties = set([
93
- '_data_store',
94
- '_check_type',
95
- '_spec_property_naming',
96
- '_path_to_item',
97
- '_configuration',
98
- '_visited_composed_classes',
99
- ])
100
-
101
- @convert_js_args_to_python_args
102
- def __init__(self, *args, **kwargs):
103
- """TargetType - a model defined in OpenAPI
104
-
105
- Note that value can be passed either in args or in kwargs, but not in both.
106
-
107
- Args:
108
- args[0] (str): Defines a target for a rule., must be one of ["Campaign", "Advertiser", ] # noqa: E501
109
-
110
- Keyword Args:
111
- value (str): Defines a target for a rule., must be one of ["Campaign", "Advertiser", ] # noqa: E501
112
- _check_type (bool): if True, values for parameters in openapi_types
113
- will be type checked and a TypeError will be
114
- raised if the wrong type is input.
115
- Defaults to True
116
- _path_to_item (tuple/list): This is a list of keys or values to
117
- drill down to the model in received_data
118
- when deserializing a response
119
- _spec_property_naming (bool): True if the variable names in the input data
120
- are serialized names, as specified in the OpenAPI document.
121
- False if the variable names in the input data
122
- are pythonic names, e.g. snake case (default)
123
- _configuration (Configuration): the instance to use when
124
- deserializing a file_type parameter.
125
- If passed, type conversion is attempted
126
- If omitted no type conversion is done.
127
- _visited_composed_classes (tuple): This stores a tuple of
128
- classes that we have traveled through so that
129
- if we see that class again we will not use its
130
- discriminator again.
131
- When traveling through a discriminator, the
132
- composed schema that is
133
- is traveled through is added to this set.
134
- For example if Animal has a discriminator
135
- petType and we pass in "Dog", and the class Dog
136
- allOf includes Animal, we move through Animal
137
- once using the discriminator, and pick Dog.
138
- Then in Dog, we will make an instance of the
139
- Animal class but this time we won't travel
140
- through its discriminator because we passed in
141
- _visited_composed_classes = (Animal,)
142
- """
143
- # required up here when default value is not given
144
- _path_to_item = kwargs.pop('_path_to_item', ())
145
-
146
- if 'value' in kwargs:
147
- value = kwargs.pop('value')
148
- elif args:
149
- args = list(args)
150
- value = args.pop(0)
151
- else:
152
- raise ApiTypeError(
153
- "value is required, but not passed in args or kwargs and doesn't have default",
154
- path_to_item=_path_to_item,
155
- valid_classes=(self.__class__,),
156
- )
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
160
- _configuration = kwargs.pop('_configuration', None)
161
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
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
- self.value = value
184
- if kwargs:
185
- raise ApiTypeError(
186
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
187
- kwargs,
188
- self.__class__.__name__,
189
- ),
190
- path_to_item=_path_to_item,
191
- valid_classes=(self.__class__,),
192
- )
193
-
194
- @classmethod
195
- @convert_js_args_to_python_args
196
- def _from_openapi_data(cls, *args, **kwargs):
197
- """TargetType - a model defined in OpenAPI
198
-
199
- Note that value can be passed either in args or in kwargs, but not in both.
200
-
201
- Args:
202
- args[0] (str): Defines a target for a rule., must be one of ["Campaign", "Advertiser", ] # noqa: E501
203
-
204
- Keyword Args:
205
- value (str): Defines a target for a rule., must be one of ["Campaign", "Advertiser", ] # noqa: E501
206
- _check_type (bool): if True, values for parameters in openapi_types
207
- will be type checked and a TypeError will be
208
- raised if the wrong type is input.
209
- Defaults to True
210
- _path_to_item (tuple/list): This is a list of keys or values to
211
- drill down to the model in received_data
212
- when deserializing a response
213
- _spec_property_naming (bool): True if the variable names in the input data
214
- are serialized names, as specified in the OpenAPI document.
215
- False if the variable names in the input data
216
- are pythonic names, e.g. snake case (default)
217
- _configuration (Configuration): the instance to use when
218
- deserializing a file_type parameter.
219
- If passed, type conversion is attempted
220
- If omitted no type conversion is done.
221
- _visited_composed_classes (tuple): This stores a tuple of
222
- classes that we have traveled through so that
223
- if we see that class again we will not use its
224
- discriminator again.
225
- When traveling through a discriminator, the
226
- composed schema that is
227
- is traveled through is added to this set.
228
- For example if Animal has a discriminator
229
- petType and we pass in "Dog", and the class Dog
230
- allOf includes Animal, we move through Animal
231
- once using the discriminator, and pick Dog.
232
- Then in Dog, we will make an instance of the
233
- Animal class but this time we won't travel
234
- through its discriminator because we passed in
235
- _visited_composed_classes = (Animal,)
236
- """
237
- # required up here when default value is not given
238
- _path_to_item = kwargs.pop('_path_to_item', ())
239
-
240
- self = super(OpenApiModel, cls).__new__(cls)
241
-
242
- if 'value' in kwargs:
243
- value = kwargs.pop('value')
244
- elif args:
245
- args = list(args)
246
- value = args.pop(0)
247
- else:
248
- raise ApiTypeError(
249
- "value is required, but not passed in args or kwargs and doesn't have default",
250
- path_to_item=_path_to_item,
251
- valid_classes=(self.__class__,),
252
- )
253
-
254
- _check_type = kwargs.pop('_check_type', True)
255
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
256
- _configuration = kwargs.pop('_configuration', None)
257
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
258
-
259
- if args:
260
- for arg in args:
261
- if isinstance(arg, dict):
262
- kwargs.update(arg)
263
- else:
264
- raise ApiTypeError(
265
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
266
- args,
267
- self.__class__.__name__,
268
- ),
269
- path_to_item=_path_to_item,
270
- valid_classes=(self.__class__,),
271
- )
272
-
273
- self._data_store = {}
274
- self._check_type = _check_type
275
- self._spec_property_naming = _spec_property_naming
276
- self._path_to_item = _path_to_item
277
- self._configuration = _configuration
278
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
279
- self.value = value
280
- if kwargs:
281
- raise ApiTypeError(
282
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
283
- kwargs,
284
- self.__class__.__name__,
285
- ),
286
- path_to_item=_path_to_item,
287
- valid_classes=(self.__class__,),
288
- )
289
-
290
- return self
@@ -1,299 +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
-
33
- class TargetingErrorModel(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
- }
59
-
60
- validations = {
61
- }
62
-
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
-
71
- _nullable = False
72
-
73
- @cached_property
74
- def openapi_types():
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
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'code': (str,), # noqa: E501
85
- 'instance': (str,), # noqa: E501
86
- 'trace_id': (str,), # noqa: E501
87
- 'type': (str,), # noqa: E501
88
- 'detail': (str, none_type,), # noqa: E501
89
- 'source': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501
90
- 'title': (str, none_type,), # noqa: E501
91
- }
92
-
93
- @cached_property
94
- def discriminator():
95
- return None
96
-
97
-
98
- attribute_map = {
99
- 'code': 'code', # noqa: E501
100
- 'instance': 'instance', # noqa: E501
101
- 'trace_id': 'traceId', # noqa: E501
102
- 'type': 'type', # noqa: E501
103
- 'detail': 'detail', # noqa: E501
104
- 'source': 'source', # noqa: E501
105
- 'title': 'title', # 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, code, instance, trace_id, type, *args, **kwargs): # noqa: E501
116
- """TargetingErrorModel - a model defined in OpenAPI
117
-
118
- Args:
119
- code (str): A machine-readable error code string.
120
- instance (str): A machine-readable URI reference that identifies the specific occurrence of the problem.
121
- trace_id (str): The machine-readable correlation Id provided by the gateway.
122
- type (str): A machine-readable code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors.
123
-
124
- Keyword Args:
125
- _check_type (bool): if True, values for parameters in openapi_types
126
- will be type checked and a TypeError will be
127
- raised if the wrong type is input.
128
- Defaults to True
129
- _path_to_item (tuple/list): This is a list of keys or values to
130
- drill down to the model in received_data
131
- when deserializing a response
132
- _spec_property_naming (bool): True if the variable names in the input data
133
- are serialized names, as specified in the OpenAPI document.
134
- False if the variable names in the input data
135
- are pythonic names, e.g. snake case (default)
136
- _configuration (Configuration): the instance to use when
137
- deserializing a file_type parameter.
138
- If passed, type conversion is attempted
139
- If omitted no type conversion is done.
140
- _visited_composed_classes (tuple): This stores a tuple of
141
- classes that we have traveled through so that
142
- if we see that class again we will not use its
143
- discriminator again.
144
- When traveling through a discriminator, the
145
- composed schema that is
146
- is traveled through is added to this set.
147
- For example if Animal has a discriminator
148
- petType and we pass in "Dog", and the class Dog
149
- allOf includes Animal, we move through Animal
150
- once using the discriminator, and pick Dog.
151
- Then in Dog, we will make an instance of the
152
- Animal class but this time we won't travel
153
- through its discriminator because we passed in
154
- _visited_composed_classes = (Animal,)
155
- detail (str, none_type): A human-readable detailed explanation specific to this occurrence of the problem.. [optional] # noqa: E501
156
- source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
157
- title (str, none_type): A short, human-readable summary of the problem type.. [optional] # noqa: E501
158
- """
159
-
160
- _check_type = kwargs.pop('_check_type', True)
161
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
162
- _path_to_item = kwargs.pop('_path_to_item', ())
163
- _configuration = kwargs.pop('_configuration', None)
164
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
165
-
166
- self = super(OpenApiModel, cls).__new__(cls)
167
-
168
- if args:
169
- for arg in args:
170
- if isinstance(arg, dict):
171
- kwargs.update(arg)
172
- else:
173
- raise ApiTypeError(
174
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
175
- args,
176
- self.__class__.__name__,
177
- ),
178
- path_to_item=_path_to_item,
179
- valid_classes=(self.__class__,),
180
- )
181
-
182
- self._data_store = {}
183
- self._check_type = _check_type
184
- self._spec_property_naming = _spec_property_naming
185
- self._path_to_item = _path_to_item
186
- self._configuration = _configuration
187
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
188
-
189
- self.code = code
190
- self.instance = instance
191
- self.trace_id = trace_id
192
- self.type = type
193
- for var_name, var_value in kwargs.items():
194
- if var_name not in self.attribute_map and \
195
- self._configuration is not None and \
196
- self._configuration.discard_unknown_keys and \
197
- self.additional_properties_type is None:
198
- # discard variable.
199
- continue
200
- setattr(self, var_name, var_value)
201
- return self
202
-
203
- required_properties = set([
204
- '_data_store',
205
- '_check_type',
206
- '_spec_property_naming',
207
- '_path_to_item',
208
- '_configuration',
209
- '_visited_composed_classes',
210
- ])
211
-
212
- @convert_js_args_to_python_args
213
- def __init__(self, code, instance, trace_id, type, *args, **kwargs): # noqa: E501
214
- """TargetingErrorModel - a model defined in OpenAPI
215
-
216
- Args:
217
- code (str): A machine-readable error code string.
218
- instance (str): A machine-readable URI reference that identifies the specific occurrence of the problem.
219
- trace_id (str): The machine-readable correlation Id provided by the gateway.
220
- type (str): A machine-readable code specifying error category. This information is used on client side to focus on certain type of error, to either retry some processing or display only certain type of errors.
221
-
222
- Keyword Args:
223
- _check_type (bool): if True, values for parameters in openapi_types
224
- will be type checked and a TypeError will be
225
- raised if the wrong type is input.
226
- Defaults to True
227
- _path_to_item (tuple/list): This is a list of keys or values to
228
- drill down to the model in received_data
229
- when deserializing a response
230
- _spec_property_naming (bool): True if the variable names in the input data
231
- are serialized names, as specified in the OpenAPI document.
232
- False if the variable names in the input data
233
- are pythonic names, e.g. snake case (default)
234
- _configuration (Configuration): the instance to use when
235
- deserializing a file_type parameter.
236
- If passed, type conversion is attempted
237
- If omitted no type conversion is done.
238
- _visited_composed_classes (tuple): This stores a tuple of
239
- classes that we have traveled through so that
240
- if we see that class again we will not use its
241
- discriminator again.
242
- When traveling through a discriminator, the
243
- composed schema that is
244
- is traveled through is added to this set.
245
- For example if Animal has a discriminator
246
- petType and we pass in "Dog", and the class Dog
247
- allOf includes Animal, we move through Animal
248
- once using the discriminator, and pick Dog.
249
- Then in Dog, we will make an instance of the
250
- Animal class but this time we won't travel
251
- through its discriminator because we passed in
252
- _visited_composed_classes = (Animal,)
253
- detail (str, none_type): A human-readable detailed explanation specific to this occurrence of the problem.. [optional] # noqa: E501
254
- source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
255
- title (str, none_type): A short, human-readable summary of the problem type.. [optional] # noqa: E501
256
- """
257
-
258
- _check_type = kwargs.pop('_check_type', True)
259
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
260
- _path_to_item = kwargs.pop('_path_to_item', ())
261
- _configuration = kwargs.pop('_configuration', None)
262
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
263
-
264
- if args:
265
- for arg in args:
266
- if isinstance(arg, dict):
267
- kwargs.update(arg)
268
- else:
269
- raise ApiTypeError(
270
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
271
- args,
272
- self.__class__.__name__,
273
- ),
274
- path_to_item=_path_to_item,
275
- valid_classes=(self.__class__,),
276
- )
277
-
278
- self._data_store = {}
279
- self._check_type = _check_type
280
- self._spec_property_naming = _spec_property_naming
281
- self._path_to_item = _path_to_item
282
- self._configuration = _configuration
283
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284
-
285
- self.code = code
286
- self.instance = instance
287
- self.trace_id = trace_id
288
- self.type = type
289
- for var_name, var_value in kwargs.items():
290
- if var_name not in self.attribute_map and \
291
- self._configuration is not None and \
292
- self._configuration.discard_unknown_keys and \
293
- self.additional_properties_type is None:
294
- # discard variable.
295
- continue
296
- setattr(self, var_name, var_value)
297
- if var_name in self.read_only_vars:
298
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
- f"class with read only attributes.")