criteo-api-retailmedia-sdk 0.0.240404__py3-none-any.whl → 0.0.240618__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-retailmedia-sdk might be problematic. Click here for more details.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/audience_api.py +284 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +1755 -448
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keyword_model.py → add_remove_keyword_model.py} +12 -19
- criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +262 -0
- criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +262 -0
- criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/approval_status_model.py +292 -0
- criteo_api_retailmedia_preview/model/async_accounts_report.py +39 -27
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +24 -13
- criteo_api_retailmedia_preview/model/async_line_items_report.py +24 -13
- criteo_api_retailmedia_preview/model/audience_error.py +310 -0
- criteo_api_retailmedia_preview/model/audience_warning.py +312 -0
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_response.py → creative_v2_list_response.py} +16 -16
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_resource_outcome.py → creative_v2_response.py} +19 -17
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → error_code_response.py} +23 -11
- criteo_api_retailmedia_preview/model/external_choice_variable_value.py +269 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → external_color_variable_value.py} +11 -14
- criteo_api_retailmedia_preview/model/external_creative_create_model_v2.py +297 -0
- criteo_api_retailmedia_preview/model/external_creative_update_model_v2.py +297 -0
- criteo_api_retailmedia_preview/model/external_creative_v2.py +361 -0
- criteo_api_retailmedia_preview/model/external_files_variable_value.py +272 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → external_hyperlink_variable_value.py} +7 -13
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers.py → external_line_item_bid_multipliers_v2.py} +41 -29
- criteo_api_retailmedia_preview/model/external_page_type_environment.py +293 -0
- criteo_api_retailmedia_preview/model/external_template_variable_value.py +309 -0
- criteo_api_retailmedia_preview/model/external_text_variable_value.py +263 -0
- criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py → json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers.py → json_api_single_response_of_line_item_bid_multipliers_v2.py} +14 -14
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keyword_data_model.py → keyword_data_model.py} +19 -37
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model.py → keywords_model.py} +9 -18
- criteo_api_retailmedia_preview/model/keywords_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/keywords_model_response.py +274 -0
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_request.py → line_item_bid_multipliers_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +281 -0
- criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
- criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
- criteo_api_retailmedia_preview/model/product_metadata.py +269 -0
- criteo_api_retailmedia_preview/model/product_resource_outcome.py +266 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → promoted_product.py} +18 -19
- criteo_api_retailmedia_preview/model/promoted_product_resource.py +270 -0
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +262 -0
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +278 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model.py → proposal_status_model.py} +22 -50
- criteo_api_retailmedia_preview/model/proposal_status_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/proposal_status_model_response.py +274 -0
- criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_creative_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → resource_of_line_item_bid_multipliers_v2.py} +17 -23
- criteo_api_retailmedia_preview/model/resource_outcome.py +268 -0
- criteo_api_retailmedia_preview/model/retail_media_account.py +6 -6
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_resource.py → retail_media_contactlist_amendment.py} +16 -20
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → retail_media_contactlist_amendment_attributes.py} +34 -25
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py +275 -0
- criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py +291 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model_resource.py → retail_media_contactlist_operation_response_attributes.py} +14 -16
- criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.py +297 -0
- criteo_api_retailmedia_preview/model/review_state_model.py +294 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_problem_details.py → rmca_common_problem.py} +41 -30
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bid_model.py → set_bid_model.py} +4 -10
- criteo_api_retailmedia_preview/model/set_bids_model.py +262 -0
- criteo_api_retailmedia_preview/model/set_bids_model_request.py +262 -0
- criteo_api_retailmedia_preview/model/set_bids_model_resource.py +270 -0
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +12 -10
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +24 -13
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +24 -13
- criteo_api_retailmedia_preview/models/__init__.py +58 -24
- {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/RECORD +75 -41
- criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py +0 -285
- criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
- {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # 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_retailmedia_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_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.proposal_status_model_resource import ProposalStatusModelResource
|
|
34
|
+
from criteo_api_retailmedia_preview.model.rmca_common_problem import RmcaCommonProblem
|
|
35
|
+
globals()['ProposalStatusModelResource'] = ProposalStatusModelResource
|
|
36
|
+
globals()['RmcaCommonProblem'] = RmcaCommonProblem
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ProposalStatusModelResponse(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
|
+
additional_properties_type = None
|
|
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
|
+
lazy_import()
|
|
84
|
+
return {
|
|
85
|
+
'errors': ([RmcaCommonProblem], none_type,), # noqa: E501
|
|
86
|
+
'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'data': (ProposalStatusModelResource,), # noqa: E501
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@cached_property
|
|
91
|
+
def discriminator():
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
attribute_map = {
|
|
96
|
+
'errors': 'errors', # noqa: E501
|
|
97
|
+
'warnings': 'warnings', # noqa: E501
|
|
98
|
+
'data': 'data', # noqa: E501
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
read_only_vars = {
|
|
102
|
+
'errors', # noqa: E501
|
|
103
|
+
'warnings', # noqa: E501
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_composed_schemas = {}
|
|
107
|
+
|
|
108
|
+
@classmethod
|
|
109
|
+
@convert_js_args_to_python_args
|
|
110
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
111
|
+
"""ProposalStatusModelResponse - a model defined in OpenAPI
|
|
112
|
+
|
|
113
|
+
Keyword Args:
|
|
114
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
115
|
+
will be type checked and a TypeError will be
|
|
116
|
+
raised if the wrong type is input.
|
|
117
|
+
Defaults to True
|
|
118
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
119
|
+
drill down to the model in received_data
|
|
120
|
+
when deserializing a response
|
|
121
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
122
|
+
are serialized names, as specified in the OpenAPI document.
|
|
123
|
+
False if the variable names in the input data
|
|
124
|
+
are pythonic names, e.g. snake case (default)
|
|
125
|
+
_configuration (Configuration): the instance to use when
|
|
126
|
+
deserializing a file_type parameter.
|
|
127
|
+
If passed, type conversion is attempted
|
|
128
|
+
If omitted no type conversion is done.
|
|
129
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
130
|
+
classes that we have traveled through so that
|
|
131
|
+
if we see that class again we will not use its
|
|
132
|
+
discriminator again.
|
|
133
|
+
When traveling through a discriminator, the
|
|
134
|
+
composed schema that is
|
|
135
|
+
is traveled through is added to this set.
|
|
136
|
+
For example if Animal has a discriminator
|
|
137
|
+
petType and we pass in "Dog", and the class Dog
|
|
138
|
+
allOf includes Animal, we move through Animal
|
|
139
|
+
once using the discriminator, and pick Dog.
|
|
140
|
+
Then in Dog, we will make an instance of the
|
|
141
|
+
Animal class but this time we won't travel
|
|
142
|
+
through its discriminator because we passed in
|
|
143
|
+
_visited_composed_classes = (Animal,)
|
|
144
|
+
errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
|
|
145
|
+
warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
|
|
146
|
+
data (ProposalStatusModelResource): [optional] # noqa: E501
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
150
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
151
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
152
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
153
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
154
|
+
|
|
155
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
156
|
+
|
|
157
|
+
if args:
|
|
158
|
+
for arg in args:
|
|
159
|
+
if isinstance(arg, dict):
|
|
160
|
+
kwargs.update(arg)
|
|
161
|
+
else:
|
|
162
|
+
raise ApiTypeError(
|
|
163
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
164
|
+
args,
|
|
165
|
+
self.__class__.__name__,
|
|
166
|
+
),
|
|
167
|
+
path_to_item=_path_to_item,
|
|
168
|
+
valid_classes=(self.__class__,),
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
self._data_store = {}
|
|
172
|
+
self._check_type = _check_type
|
|
173
|
+
self._spec_property_naming = _spec_property_naming
|
|
174
|
+
self._path_to_item = _path_to_item
|
|
175
|
+
self._configuration = _configuration
|
|
176
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
177
|
+
|
|
178
|
+
for var_name, var_value in kwargs.items():
|
|
179
|
+
if var_name not in self.attribute_map and \
|
|
180
|
+
self._configuration is not None and \
|
|
181
|
+
self._configuration.discard_unknown_keys and \
|
|
182
|
+
self.additional_properties_type is None:
|
|
183
|
+
# discard variable.
|
|
184
|
+
continue
|
|
185
|
+
setattr(self, var_name, var_value)
|
|
186
|
+
return self
|
|
187
|
+
|
|
188
|
+
required_properties = set([
|
|
189
|
+
'_data_store',
|
|
190
|
+
'_check_type',
|
|
191
|
+
'_spec_property_naming',
|
|
192
|
+
'_path_to_item',
|
|
193
|
+
'_configuration',
|
|
194
|
+
'_visited_composed_classes',
|
|
195
|
+
])
|
|
196
|
+
|
|
197
|
+
@convert_js_args_to_python_args
|
|
198
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""ProposalStatusModelResponse - a model defined in OpenAPI
|
|
200
|
+
|
|
201
|
+
Keyword Args:
|
|
202
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
203
|
+
will be type checked and a TypeError will be
|
|
204
|
+
raised if the wrong type is input.
|
|
205
|
+
Defaults to True
|
|
206
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
207
|
+
drill down to the model in received_data
|
|
208
|
+
when deserializing a response
|
|
209
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
210
|
+
are serialized names, as specified in the OpenAPI document.
|
|
211
|
+
False if the variable names in the input data
|
|
212
|
+
are pythonic names, e.g. snake case (default)
|
|
213
|
+
_configuration (Configuration): the instance to use when
|
|
214
|
+
deserializing a file_type parameter.
|
|
215
|
+
If passed, type conversion is attempted
|
|
216
|
+
If omitted no type conversion is done.
|
|
217
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
218
|
+
classes that we have traveled through so that
|
|
219
|
+
if we see that class again we will not use its
|
|
220
|
+
discriminator again.
|
|
221
|
+
When traveling through a discriminator, the
|
|
222
|
+
composed schema that is
|
|
223
|
+
is traveled through is added to this set.
|
|
224
|
+
For example if Animal has a discriminator
|
|
225
|
+
petType and we pass in "Dog", and the class Dog
|
|
226
|
+
allOf includes Animal, we move through Animal
|
|
227
|
+
once using the discriminator, and pick Dog.
|
|
228
|
+
Then in Dog, we will make an instance of the
|
|
229
|
+
Animal class but this time we won't travel
|
|
230
|
+
through its discriminator because we passed in
|
|
231
|
+
_visited_composed_classes = (Animal,)
|
|
232
|
+
errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
|
|
233
|
+
warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
|
|
234
|
+
data (ProposalStatusModelResource): [optional] # noqa: E501
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
238
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
239
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
240
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
241
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
242
|
+
|
|
243
|
+
if args:
|
|
244
|
+
for arg in args:
|
|
245
|
+
if isinstance(arg, dict):
|
|
246
|
+
kwargs.update(arg)
|
|
247
|
+
else:
|
|
248
|
+
raise ApiTypeError(
|
|
249
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
250
|
+
args,
|
|
251
|
+
self.__class__.__name__,
|
|
252
|
+
),
|
|
253
|
+
path_to_item=_path_to_item,
|
|
254
|
+
valid_classes=(self.__class__,),
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
self._data_store = {}
|
|
258
|
+
self._check_type = _check_type
|
|
259
|
+
self._spec_property_naming = _spec_property_naming
|
|
260
|
+
self._path_to_item = _path_to_item
|
|
261
|
+
self._configuration = _configuration
|
|
262
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
263
|
+
|
|
264
|
+
for var_name, var_value in kwargs.items():
|
|
265
|
+
if var_name not in self.attribute_map and \
|
|
266
|
+
self._configuration is not None and \
|
|
267
|
+
self._configuration.discard_unknown_keys and \
|
|
268
|
+
self.additional_properties_type is None:
|
|
269
|
+
# discard variable.
|
|
270
|
+
continue
|
|
271
|
+
setattr(self, var_name, var_value)
|
|
272
|
+
if var_name in self.read_only_vars:
|
|
273
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
274
|
+
f"class with read only attributes.")
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.external_creative_v2 import ExternalCreativeV2
|
|
34
|
+
globals()['ExternalCreativeV2'] = ExternalCreativeV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfCreativeV2(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,7 +87,7 @@ class ResourceOfLineItemBidMultipliers(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'attributes': (
|
|
90
|
+
'attributes': (ExternalCreativeV2,), # noqa: E501
|
|
91
91
|
'id': (str, none_type,), # noqa: E501
|
|
92
92
|
'type': (str, none_type,), # noqa: E501
|
|
93
93
|
}
|
|
@@ -111,7 +111,7 @@ class ResourceOfLineItemBidMultipliers(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""ResourceOfCreativeV2 - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,7 +144,7 @@ class ResourceOfLineItemBidMultipliers(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
attributes (
|
|
147
|
+
attributes (ExternalCreativeV2): [optional] # noqa: E501
|
|
148
148
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
149
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
150
|
"""
|
|
@@ -199,7 +199,7 @@ class ResourceOfLineItemBidMultipliers(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""ResourceOfCreativeV2 - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,7 +232,7 @@ class ResourceOfLineItemBidMultipliers(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
attributes (
|
|
235
|
+
attributes (ExternalCreativeV2): [optional] # noqa: E501
|
|
236
236
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
237
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
238
|
"""
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.external_line_item_bid_multipliers_v2 import ExternalLineItemBidMultipliersV2
|
|
34
|
+
globals()['ExternalLineItemBidMultipliersV2'] = ExternalLineItemBidMultipliersV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfLineItemBidMultipliersV2(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,9 +87,9 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'
|
|
90
|
+
'attributes': (ExternalLineItemBidMultipliersV2,), # noqa: E501
|
|
91
91
|
'id': (str, none_type,), # noqa: E501
|
|
92
|
-
'
|
|
92
|
+
'type': (str, none_type,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,9 +98,9 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
-
'type': 'type', # noqa: E501
|
|
102
|
-
'id': 'id', # noqa: E501
|
|
103
101
|
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'id': 'id', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -110,11 +110,8 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
110
110
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
|
-
def _from_openapi_data(cls,
|
|
114
|
-
"""
|
|
115
|
-
|
|
116
|
-
Args:
|
|
117
|
-
type (str):
|
|
113
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""ResourceOfLineItemBidMultipliersV2 - a model defined in OpenAPI
|
|
118
115
|
|
|
119
116
|
Keyword Args:
|
|
120
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -147,8 +144,9 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
147
144
|
Animal class but this time we won't travel
|
|
148
145
|
through its discriminator because we passed in
|
|
149
146
|
_visited_composed_classes = (Animal,)
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
|
|
148
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
152
150
|
"""
|
|
153
151
|
|
|
154
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -180,7 +178,6 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
180
178
|
self._configuration = _configuration
|
|
181
179
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
180
|
|
|
183
|
-
self.type = type
|
|
184
181
|
for var_name, var_value in kwargs.items():
|
|
185
182
|
if var_name not in self.attribute_map and \
|
|
186
183
|
self._configuration is not None and \
|
|
@@ -201,11 +198,8 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
201
198
|
])
|
|
202
199
|
|
|
203
200
|
@convert_js_args_to_python_args
|
|
204
|
-
def __init__(self,
|
|
205
|
-
"""
|
|
206
|
-
|
|
207
|
-
Args:
|
|
208
|
-
type (str):
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""ResourceOfLineItemBidMultipliersV2 - a model defined in OpenAPI
|
|
209
203
|
|
|
210
204
|
Keyword Args:
|
|
211
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -238,8 +232,9 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
238
232
|
Animal class but this time we won't travel
|
|
239
233
|
through its discriminator because we passed in
|
|
240
234
|
_visited_composed_classes = (Animal,)
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
attributes (ExternalLineItemBidMultipliersV2): [optional] # noqa: E501
|
|
236
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
243
238
|
"""
|
|
244
239
|
|
|
245
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -269,7 +264,6 @@ class RetailMediaExternalv1KeywordsModelResource(ModelNormal):
|
|
|
269
264
|
self._configuration = _configuration
|
|
270
265
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
271
266
|
|
|
272
|
-
self.type = type
|
|
273
267
|
for var_name, var_value in kwargs.items():
|
|
274
268
|
if var_name not in self.attribute_map and \
|
|
275
269
|
self._configuration is not None and \
|