criteo-api-marketingsolutions-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.240808__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.
- {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.240808.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.240808.dist-info}/RECORD +22 -23
- criteo_api_marketingsolutions_v2024_07/__init__.py +1 -1
- criteo_api_marketingsolutions_v2024_07/api/analytics_api.py +29 -28
- criteo_api_marketingsolutions_v2024_07/api_client.py +1 -1
- criteo_api_marketingsolutions_v2024_07/configuration.py +1 -1
- criteo_api_marketingsolutions_v2024_07/model/{placements_report_query_data_message.py → outcome.py} +18 -27
- criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py +5 -11
- criteo_api_marketingsolutions_v2024_07/model/{problems_details.py → placements_report_query_message_list_request.py} +10 -20
- criteo_api_marketingsolutions_v2024_07/model/{placements_report_query_entity_message.py → placements_report_query_message_resource.py} +11 -26
- criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py +3 -17
- criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py +1 -7
- criteo_api_marketingsolutions_v2024_07/model/{transactions_report_query_data_message.py → transactions_report_query_message_list_request.py} +11 -26
- criteo_api_marketingsolutions_v2024_07/model/{transactions_report_query_entity_message.py → transactions_report_query_message_resource.py} +11 -26
- criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py +1 -7
- criteo_api_marketingsolutions_v2024_07/model/{transparency_report_attributes.py → transparency_report.py} +4 -13
- criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py +1 -7
- criteo_api_marketingsolutions_v2024_07/model/{transparency_report_entity_message.py → transparency_report_list_response.py} +24 -29
- criteo_api_marketingsolutions_v2024_07/model/{transparency_report_data_message.py → transparency_report_resource.py} +16 -27
- criteo_api_marketingsolutions_v2024_07/models/__init__.py +8 -9
- criteo_api_marketingsolutions_v2024_07/model/problem_details.py +0 -306
- {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.240808.dist-info}/WHEEL +0 -0
- {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.240808.dist-info}/top_level.txt +0 -0
|
@@ -191,6 +191,7 @@ from criteo_api_marketingsolutions_v2024_07.model.nillable_decimal import Nillab
|
|
|
191
191
|
from criteo_api_marketingsolutions_v2024_07.model.nillable_gender_v1 import NillableGenderV1
|
|
192
192
|
from criteo_api_marketingsolutions_v2024_07.model.nillable_int32 import NillableInt32
|
|
193
193
|
from criteo_api_marketingsolutions_v2024_07.model.nillable_string import NillableString
|
|
194
|
+
from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome
|
|
194
195
|
from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_bidding_v24_q1 import PatchAdSetBiddingV24Q1
|
|
195
196
|
from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_budget_v24_q1 import PatchAdSetBudgetV24Q1
|
|
196
197
|
from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid
|
|
@@ -211,13 +212,11 @@ from criteo_api_marketingsolutions_v2024_07.model.patch_campaign_spend_limit imp
|
|
|
211
212
|
from criteo_api_marketingsolutions_v2024_07.model.patch_campaign_write_resource import PatchCampaignWriteResource
|
|
212
213
|
from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse
|
|
213
214
|
from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource
|
|
214
|
-
from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage
|
|
215
|
-
from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage
|
|
216
215
|
from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message import PlacementsReportQueryMessage
|
|
216
|
+
from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest
|
|
217
|
+
from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource
|
|
217
218
|
from criteo_api_marketingsolutions_v2024_07.model.point_of_interest_v1 import PointOfInterestV1
|
|
218
219
|
from criteo_api_marketingsolutions_v2024_07.model.portfolio_message import PortfolioMessage
|
|
219
|
-
from criteo_api_marketingsolutions_v2024_07.model.problem_details import ProblemDetails
|
|
220
|
-
from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails
|
|
221
220
|
from criteo_api_marketingsolutions_v2024_07.model.prospecting_create_v1 import ProspectingCreateV1
|
|
222
221
|
from criteo_api_marketingsolutions_v2024_07.model.prospecting_update_v1 import ProspectingUpdateV1
|
|
223
222
|
from criteo_api_marketingsolutions_v2024_07.model.prospecting_v1 import ProspectingV1
|
|
@@ -240,14 +239,14 @@ from criteo_api_marketingsolutions_v2024_07.model.retargeting_v1 import Retarget
|
|
|
240
239
|
from criteo_api_marketingsolutions_v2024_07.model.size import Size
|
|
241
240
|
from criteo_api_marketingsolutions_v2024_07.model.statistics_report_query_message import StatisticsReportQueryMessage
|
|
242
241
|
from criteo_api_marketingsolutions_v2024_07.model.tag import Tag
|
|
243
|
-
from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage
|
|
244
|
-
from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage
|
|
245
242
|
from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message import TransactionsReportQueryMessage
|
|
243
|
+
from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest
|
|
244
|
+
from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource
|
|
246
245
|
from criteo_api_marketingsolutions_v2024_07.model.transparency_query_message import TransparencyQueryMessage
|
|
247
|
-
from criteo_api_marketingsolutions_v2024_07.model.
|
|
248
|
-
from criteo_api_marketingsolutions_v2024_07.model.transparency_report_data_message import TransparencyReportDataMessage
|
|
249
|
-
from criteo_api_marketingsolutions_v2024_07.model.transparency_report_entity_message import TransparencyReportEntityMessage
|
|
246
|
+
from criteo_api_marketingsolutions_v2024_07.model.transparency_report import TransparencyReport
|
|
250
247
|
from criteo_api_marketingsolutions_v2024_07.model.transparency_report_file import TransparencyReportFile
|
|
248
|
+
from criteo_api_marketingsolutions_v2024_07.model.transparency_report_list_response import TransparencyReportListResponse
|
|
249
|
+
from criteo_api_marketingsolutions_v2024_07.model.transparency_report_resource import TransparencyReportResource
|
|
251
250
|
from criteo_api_marketingsolutions_v2024_07.model.update_coupon import UpdateCoupon
|
|
252
251
|
from criteo_api_marketingsolutions_v2024_07.model.update_coupon_request import UpdateCouponRequest
|
|
253
252
|
from criteo_api_marketingsolutions_v2024_07.model.update_coupon_resource import UpdateCouponResource
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - MarketingSolutions # noqa: E501
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2024-07
|
|
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_07.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_07.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class ProblemDetails(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
|
-
('type',): {
|
|
59
|
-
'None': None,
|
|
60
|
-
'UNKNOWN': "unknown",
|
|
61
|
-
'ACCESS-CONTROL': "access-control",
|
|
62
|
-
'AUTHENTICATION': "authentication",
|
|
63
|
-
'AUTHORIZATION': "authorization",
|
|
64
|
-
'AVAILABILITY': "availability",
|
|
65
|
-
'DEPRECATION': "deprecation",
|
|
66
|
-
'QUOTA': "quota",
|
|
67
|
-
'VALIDATION': "validation",
|
|
68
|
-
},
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
validations = {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@cached_property
|
|
75
|
-
def additional_properties_type():
|
|
76
|
-
"""
|
|
77
|
-
This must be a method because a model may have properties that are
|
|
78
|
-
of type self, this must run after the class is loaded
|
|
79
|
-
"""
|
|
80
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
81
|
-
|
|
82
|
-
_nullable = False
|
|
83
|
-
|
|
84
|
-
@cached_property
|
|
85
|
-
def openapi_types():
|
|
86
|
-
"""
|
|
87
|
-
This must be a method because a model may have properties that are
|
|
88
|
-
of type self, this must run after the class is loaded
|
|
89
|
-
|
|
90
|
-
Returns
|
|
91
|
-
openapi_types (dict): The key is attribute name
|
|
92
|
-
and the value is attribute type.
|
|
93
|
-
"""
|
|
94
|
-
return {
|
|
95
|
-
'trace_id': (str, none_type,), # noqa: E501
|
|
96
|
-
'trace_identifier': (str, none_type,), # noqa: E501
|
|
97
|
-
'type': (str, none_type,), # noqa: E501
|
|
98
|
-
'code': (str, none_type,), # noqa: E501
|
|
99
|
-
'instance': (str, none_type,), # noqa: E501
|
|
100
|
-
'title': (str, none_type,), # noqa: E501
|
|
101
|
-
'detail': (str, none_type,), # noqa: E501
|
|
102
|
-
'source': ({str: (str,)}, none_type,), # noqa: E501
|
|
103
|
-
'stack_trace': (str, none_type,), # noqa: E501
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@cached_property
|
|
107
|
-
def discriminator():
|
|
108
|
-
return None
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
attribute_map = {
|
|
112
|
-
'trace_id': 'traceId', # noqa: E501
|
|
113
|
-
'trace_identifier': 'traceIdentifier', # noqa: E501
|
|
114
|
-
'type': 'type', # noqa: E501
|
|
115
|
-
'code': 'code', # noqa: E501
|
|
116
|
-
'instance': 'instance', # noqa: E501
|
|
117
|
-
'title': 'title', # noqa: E501
|
|
118
|
-
'detail': 'detail', # noqa: E501
|
|
119
|
-
'source': 'source', # noqa: E501
|
|
120
|
-
'stack_trace': 'stackTrace', # noqa: E501
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
read_only_vars = {
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
_composed_schemas = {}
|
|
127
|
-
|
|
128
|
-
@classmethod
|
|
129
|
-
@convert_js_args_to_python_args
|
|
130
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
131
|
-
"""ProblemDetails - a model defined in OpenAPI
|
|
132
|
-
|
|
133
|
-
Keyword Args:
|
|
134
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
135
|
-
will be type checked and a TypeError will be
|
|
136
|
-
raised if the wrong type is input.
|
|
137
|
-
Defaults to True
|
|
138
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
139
|
-
drill down to the model in received_data
|
|
140
|
-
when deserializing a response
|
|
141
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
142
|
-
are serialized names, as specified in the OpenAPI document.
|
|
143
|
-
False if the variable names in the input data
|
|
144
|
-
are pythonic names, e.g. snake case (default)
|
|
145
|
-
_configuration (Configuration): the instance to use when
|
|
146
|
-
deserializing a file_type parameter.
|
|
147
|
-
If passed, type conversion is attempted
|
|
148
|
-
If omitted no type conversion is done.
|
|
149
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
150
|
-
classes that we have traveled through so that
|
|
151
|
-
if we see that class again we will not use its
|
|
152
|
-
discriminator again.
|
|
153
|
-
When traveling through a discriminator, the
|
|
154
|
-
composed schema that is
|
|
155
|
-
is traveled through is added to this set.
|
|
156
|
-
For example if Animal has a discriminator
|
|
157
|
-
petType and we pass in "Dog", and the class Dog
|
|
158
|
-
allOf includes Animal, we move through Animal
|
|
159
|
-
once using the discriminator, and pick Dog.
|
|
160
|
-
Then in Dog, we will make an instance of the
|
|
161
|
-
Animal class but this time we won't travel
|
|
162
|
-
through its discriminator because we passed in
|
|
163
|
-
_visited_composed_classes = (Animal,)
|
|
164
|
-
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
165
|
-
trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
|
|
166
|
-
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
167
|
-
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
168
|
-
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
169
|
-
title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
|
|
170
|
-
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
|
|
171
|
-
source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
|
|
172
|
-
stack_trace (str, none_type): [optional] # noqa: E501
|
|
173
|
-
"""
|
|
174
|
-
|
|
175
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
176
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
177
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
178
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
179
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
180
|
-
|
|
181
|
-
self = super(OpenApiModel, cls).__new__(cls)
|
|
182
|
-
|
|
183
|
-
if args:
|
|
184
|
-
for arg in args:
|
|
185
|
-
if isinstance(arg, dict):
|
|
186
|
-
kwargs.update(arg)
|
|
187
|
-
else:
|
|
188
|
-
raise ApiTypeError(
|
|
189
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
190
|
-
args,
|
|
191
|
-
self.__class__.__name__,
|
|
192
|
-
),
|
|
193
|
-
path_to_item=_path_to_item,
|
|
194
|
-
valid_classes=(self.__class__,),
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
self._data_store = {}
|
|
198
|
-
self._check_type = _check_type
|
|
199
|
-
self._spec_property_naming = _spec_property_naming
|
|
200
|
-
self._path_to_item = _path_to_item
|
|
201
|
-
self._configuration = _configuration
|
|
202
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
203
|
-
|
|
204
|
-
for var_name, var_value in kwargs.items():
|
|
205
|
-
if var_name not in self.attribute_map and \
|
|
206
|
-
self._configuration is not None and \
|
|
207
|
-
self._configuration.discard_unknown_keys and \
|
|
208
|
-
self.additional_properties_type is None:
|
|
209
|
-
# discard variable.
|
|
210
|
-
continue
|
|
211
|
-
setattr(self, var_name, var_value)
|
|
212
|
-
return self
|
|
213
|
-
|
|
214
|
-
required_properties = set([
|
|
215
|
-
'_data_store',
|
|
216
|
-
'_check_type',
|
|
217
|
-
'_spec_property_naming',
|
|
218
|
-
'_path_to_item',
|
|
219
|
-
'_configuration',
|
|
220
|
-
'_visited_composed_classes',
|
|
221
|
-
])
|
|
222
|
-
|
|
223
|
-
@convert_js_args_to_python_args
|
|
224
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
225
|
-
"""ProblemDetails - a model defined in OpenAPI
|
|
226
|
-
|
|
227
|
-
Keyword Args:
|
|
228
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
229
|
-
will be type checked and a TypeError will be
|
|
230
|
-
raised if the wrong type is input.
|
|
231
|
-
Defaults to True
|
|
232
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
233
|
-
drill down to the model in received_data
|
|
234
|
-
when deserializing a response
|
|
235
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
236
|
-
are serialized names, as specified in the OpenAPI document.
|
|
237
|
-
False if the variable names in the input data
|
|
238
|
-
are pythonic names, e.g. snake case (default)
|
|
239
|
-
_configuration (Configuration): the instance to use when
|
|
240
|
-
deserializing a file_type parameter.
|
|
241
|
-
If passed, type conversion is attempted
|
|
242
|
-
If omitted no type conversion is done.
|
|
243
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
244
|
-
classes that we have traveled through so that
|
|
245
|
-
if we see that class again we will not use its
|
|
246
|
-
discriminator again.
|
|
247
|
-
When traveling through a discriminator, the
|
|
248
|
-
composed schema that is
|
|
249
|
-
is traveled through is added to this set.
|
|
250
|
-
For example if Animal has a discriminator
|
|
251
|
-
petType and we pass in "Dog", and the class Dog
|
|
252
|
-
allOf includes Animal, we move through Animal
|
|
253
|
-
once using the discriminator, and pick Dog.
|
|
254
|
-
Then in Dog, we will make an instance of the
|
|
255
|
-
Animal class but this time we won't travel
|
|
256
|
-
through its discriminator because we passed in
|
|
257
|
-
_visited_composed_classes = (Animal,)
|
|
258
|
-
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
259
|
-
trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
|
|
260
|
-
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
261
|
-
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
262
|
-
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
263
|
-
title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
|
|
264
|
-
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
|
|
265
|
-
source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
|
|
266
|
-
stack_trace (str, none_type): [optional] # noqa: E501
|
|
267
|
-
"""
|
|
268
|
-
|
|
269
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
270
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
271
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
272
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
273
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
274
|
-
|
|
275
|
-
if args:
|
|
276
|
-
for arg in args:
|
|
277
|
-
if isinstance(arg, dict):
|
|
278
|
-
kwargs.update(arg)
|
|
279
|
-
else:
|
|
280
|
-
raise ApiTypeError(
|
|
281
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
282
|
-
args,
|
|
283
|
-
self.__class__.__name__,
|
|
284
|
-
),
|
|
285
|
-
path_to_item=_path_to_item,
|
|
286
|
-
valid_classes=(self.__class__,),
|
|
287
|
-
)
|
|
288
|
-
|
|
289
|
-
self._data_store = {}
|
|
290
|
-
self._check_type = _check_type
|
|
291
|
-
self._spec_property_naming = _spec_property_naming
|
|
292
|
-
self._path_to_item = _path_to_item
|
|
293
|
-
self._configuration = _configuration
|
|
294
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
295
|
-
|
|
296
|
-
for var_name, var_value in kwargs.items():
|
|
297
|
-
if var_name not in self.attribute_map and \
|
|
298
|
-
self._configuration is not None and \
|
|
299
|
-
self._configuration.discard_unknown_keys and \
|
|
300
|
-
self.additional_properties_type is None:
|
|
301
|
-
# discard variable.
|
|
302
|
-
continue
|
|
303
|
-
setattr(self, var_name, var_value)
|
|
304
|
-
if var_name in self.read_only_vars:
|
|
305
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
306
|
-
f"class with read only attributes.")
|
|
File without changes
|