criteo-api-retailmedia-sdk 0.0.250409__py3-none-any.whl → 0.0.250606__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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +3 -147
- criteo_api_retailmedia_preview/api/analytics_api.py +1 -1
- criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
- criteo_api_retailmedia_preview/api/campaign_api.py +741 -104
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/account_fees_update_request.py +4 -0
- criteo_api_retailmedia_preview/model/async_accounts_report.py +6 -6
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +4 -4
- criteo_api_retailmedia_preview/model/async_line_items_report.py +4 -4
- criteo_api_retailmedia_preview/model/async_offsite_report.py +25 -18
- criteo_api_retailmedia_preview/model/brand_id_search_request.py +7 -1
- criteo_api_retailmedia_preview/model/brand_id_search_result.py +7 -1
- criteo_api_retailmedia_preview/model/categories_search_request_v1.py +270 -0
- criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +8 -1
- criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +8 -1
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
- criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
- criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
- criteo_api_retailmedia_preview/model/{input_keywords.py → flight_leg.py} +39 -17
- criteo_api_retailmedia_preview/model/{recommended_keywords_result.py → flight_schedule.py} +9 -13
- criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
- criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
- criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +7 -1
- criteo_api_retailmedia_preview/model/{grant_consent_model.py → recommended_categories_request_v1.py} +14 -21
- criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
- criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_request.py → rm_audience_bulk_create_input_v1.py} +9 -9
- criteo_api_retailmedia_preview/model/{grant_consent_input.py → rm_audience_bulk_delete_input_v1.py} +8 -8
- criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
- criteo_api_retailmedia_preview/model/{grant_consent_model_value_resource.py → rm_audience_create_entity_v1_resource.py} +8 -8
- criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_recommended_keywords_result.py → rm_audience_entity_v1_list_response.py} +16 -9
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers_v2.py → rm_audience_segment_size_entity_v1_resource.py} +11 -11
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
- criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
- criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_v2_response.py → rm_audience_size_estimation_v1_response.py} +9 -9
- criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py → rm_audience_update_entity_v1_resource.py} +17 -19
- criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
- criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
- criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
- criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +6 -6
- criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
- criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers_v2.py → sponsored_products_line_item_create_request_model.py} +81 -33
- criteo_api_retailmedia_preview/model/{keywords.py → sponsored_products_line_item_update_request_model.py} +82 -44
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +2 -2
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +4 -4
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +4 -4
- criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +8 -1
- criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_private_market_account_fees.py → value_resource_collection_outcome_private_market_account_fees_and_metadata.py} +9 -3
- criteo_api_retailmedia_preview/model/value_resource_input_brand_id_search_request.py +8 -1
- criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
- criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
- criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_recommended_keywords_result.py → value_resource_recommended_keywords_response_v1.py} +10 -10
- criteo_api_retailmedia_preview/models/__init__.py +63 -17
- {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/RECORD +93 -47
- {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/common_error.py +0 -301
- criteo_api_retailmedia_preview/model/common_warning.py +0 -301
- criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +0 -307
- {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/top_level.txt +0 -0
criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py
ADDED
|
@@ -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.entity_resource_of_sponsored_products_line_item import EntityResourceOfSponsoredProductsLineItem
|
|
34
|
+
from criteo_api_retailmedia_preview.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
|
|
35
|
+
globals()['EntityResourceOfSponsoredProductsLineItem'] = EntityResourceOfSponsoredProductsLineItem
|
|
36
|
+
globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class EntityResourceOutcomeOfSponsoredProductsLineItem(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
|
+
'data': (EntityResourceOfSponsoredProductsLineItem,), # noqa: E501
|
|
86
|
+
'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@cached_property
|
|
91
|
+
def discriminator():
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
attribute_map = {
|
|
96
|
+
'data': 'data', # noqa: E501
|
|
97
|
+
'errors': 'errors', # noqa: E501
|
|
98
|
+
'warnings': 'warnings', # 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
|
+
"""EntityResourceOutcomeOfSponsoredProductsLineItem - 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
|
+
data (EntityResourceOfSponsoredProductsLineItem): [optional] # noqa: E501
|
|
145
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
146
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [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
|
+
"""EntityResourceOutcomeOfSponsoredProductsLineItem - 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
|
+
data (EntityResourceOfSponsoredProductsLineItem): [optional] # noqa: E501
|
|
233
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
234
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [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,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class FlightLeg(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -55,6 +55,18 @@ class InputKeywords(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
+
('day_of_week',): {
|
|
59
|
+
'SUNDAY': "Sunday",
|
|
60
|
+
'MONDAY': "Monday",
|
|
61
|
+
'TUESDAY': "Tuesday",
|
|
62
|
+
'WEDNESDAY': "Wednesday",
|
|
63
|
+
'THURSDAY': "Thursday",
|
|
64
|
+
'FRIDAY': "Friday",
|
|
65
|
+
'SATURDAY': "Saturday",
|
|
66
|
+
'EVERYDAY': "Everyday",
|
|
67
|
+
'WEEKDAYS': "Weekdays",
|
|
68
|
+
'WEEKENDS': "Weekends",
|
|
69
|
+
},
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
validations = {
|
|
@@ -75,9 +87,9 @@ class InputKeywords(ModelNormal):
|
|
|
75
87
|
and the value is attribute type.
|
|
76
88
|
"""
|
|
77
89
|
return {
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
90
|
+
'day_of_week': (str,), # noqa: E501
|
|
91
|
+
'end_time': (datetime,), # noqa: E501
|
|
92
|
+
'start_time': (datetime,), # noqa: E501
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
@cached_property
|
|
@@ -86,9 +98,9 @@ class InputKeywords(ModelNormal):
|
|
|
86
98
|
|
|
87
99
|
|
|
88
100
|
attribute_map = {
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
101
|
+
'day_of_week': 'dayOfWeek', # noqa: E501
|
|
102
|
+
'end_time': 'endTime', # noqa: E501
|
|
103
|
+
'start_time': 'startTime', # noqa: E501
|
|
92
104
|
}
|
|
93
105
|
|
|
94
106
|
read_only_vars = {
|
|
@@ -98,8 +110,13 @@ class InputKeywords(ModelNormal):
|
|
|
98
110
|
|
|
99
111
|
@classmethod
|
|
100
112
|
@convert_js_args_to_python_args
|
|
101
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
102
|
-
"""
|
|
113
|
+
def _from_openapi_data(cls, day_of_week, end_time, start_time, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""FlightLeg - a model defined in OpenAPI
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
day_of_week (str): Enum for the days of the week.
|
|
118
|
+
end_time (datetime):
|
|
119
|
+
start_time (datetime):
|
|
103
120
|
|
|
104
121
|
Keyword Args:
|
|
105
122
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -132,9 +149,6 @@ class InputKeywords(ModelNormal):
|
|
|
132
149
|
Animal class but this time we won't travel
|
|
133
150
|
through its discriminator because we passed in
|
|
134
151
|
_visited_composed_classes = (Animal,)
|
|
135
|
-
negative_broad ([str], none_type): The collection of supplied negative broad phrased. [optional] # noqa: E501
|
|
136
|
-
negative_exact ([str], none_type): The collection of supplied negative exact phrase. [optional] # noqa: E501
|
|
137
|
-
positive_exact ([str], none_type): The collection of supplied positive exact phrases. [optional] # noqa: E501
|
|
138
152
|
"""
|
|
139
153
|
|
|
140
154
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -166,6 +180,9 @@ class InputKeywords(ModelNormal):
|
|
|
166
180
|
self._configuration = _configuration
|
|
167
181
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
168
182
|
|
|
183
|
+
self.day_of_week = day_of_week
|
|
184
|
+
self.end_time = end_time
|
|
185
|
+
self.start_time = start_time
|
|
169
186
|
for var_name, var_value in kwargs.items():
|
|
170
187
|
if var_name not in self.attribute_map and \
|
|
171
188
|
self._configuration is not None and \
|
|
@@ -186,8 +203,13 @@ class InputKeywords(ModelNormal):
|
|
|
186
203
|
])
|
|
187
204
|
|
|
188
205
|
@convert_js_args_to_python_args
|
|
189
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
190
|
-
"""
|
|
206
|
+
def __init__(self, day_of_week, end_time, start_time, *args, **kwargs): # noqa: E501
|
|
207
|
+
"""FlightLeg - a model defined in OpenAPI
|
|
208
|
+
|
|
209
|
+
Args:
|
|
210
|
+
day_of_week (str): Enum for the days of the week.
|
|
211
|
+
end_time (datetime):
|
|
212
|
+
start_time (datetime):
|
|
191
213
|
|
|
192
214
|
Keyword Args:
|
|
193
215
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -220,9 +242,6 @@ class InputKeywords(ModelNormal):
|
|
|
220
242
|
Animal class but this time we won't travel
|
|
221
243
|
through its discriminator because we passed in
|
|
222
244
|
_visited_composed_classes = (Animal,)
|
|
223
|
-
negative_broad ([str], none_type): The collection of supplied negative broad phrased. [optional] # noqa: E501
|
|
224
|
-
negative_exact ([str], none_type): The collection of supplied negative exact phrase. [optional] # noqa: E501
|
|
225
|
-
positive_exact ([str], none_type): The collection of supplied positive exact phrases. [optional] # noqa: E501
|
|
226
245
|
"""
|
|
227
246
|
|
|
228
247
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -252,6 +271,9 @@ class InputKeywords(ModelNormal):
|
|
|
252
271
|
self._configuration = _configuration
|
|
253
272
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
254
273
|
|
|
274
|
+
self.day_of_week = day_of_week
|
|
275
|
+
self.end_time = end_time
|
|
276
|
+
self.start_time = start_time
|
|
255
277
|
for var_name, var_value in kwargs.items():
|
|
256
278
|
if var_name not in self.attribute_map and \
|
|
257
279
|
self._configuration is not None and \
|
|
@@ -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.flight_leg import FlightLeg
|
|
34
|
+
globals()['FlightLeg'] = FlightLeg
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class FlightSchedule(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -80,8 +80,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'
|
|
84
|
-
'recommended_keywords': ([str], none_type,), # noqa: E501
|
|
83
|
+
'legs': ([FlightLeg], none_type,), # noqa: E501
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
@cached_property
|
|
@@ -90,8 +89,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
90
89
|
|
|
91
90
|
|
|
92
91
|
attribute_map = {
|
|
93
|
-
'
|
|
94
|
-
'recommended_keywords': 'recommendedKeywords', # noqa: E501
|
|
92
|
+
'legs': 'legs', # noqa: E501
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
read_only_vars = {
|
|
@@ -102,7 +100,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
102
100
|
@classmethod
|
|
103
101
|
@convert_js_args_to_python_args
|
|
104
102
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
105
|
-
"""
|
|
103
|
+
"""FlightSchedule - a model defined in OpenAPI
|
|
106
104
|
|
|
107
105
|
Keyword Args:
|
|
108
106
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -135,8 +133,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
135
133
|
Animal class but this time we won't travel
|
|
136
134
|
through its discriminator because we passed in
|
|
137
135
|
_visited_composed_classes = (Animal,)
|
|
138
|
-
|
|
139
|
-
recommended_keywords ([str], none_type): Collection of recommended keywords. [optional] # noqa: E501
|
|
136
|
+
legs ([FlightLeg], none_type): A list of flight legs on which the line item will run.. [optional] # noqa: E501
|
|
140
137
|
"""
|
|
141
138
|
|
|
142
139
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -189,7 +186,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
189
186
|
|
|
190
187
|
@convert_js_args_to_python_args
|
|
191
188
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
192
|
-
"""
|
|
189
|
+
"""FlightSchedule - a model defined in OpenAPI
|
|
193
190
|
|
|
194
191
|
Keyword Args:
|
|
195
192
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -222,8 +219,7 @@ class RecommendedKeywordsResult(ModelNormal):
|
|
|
222
219
|
Animal class but this time we won't travel
|
|
223
220
|
through its discriminator because we passed in
|
|
224
221
|
_visited_composed_classes = (Animal,)
|
|
225
|
-
|
|
226
|
-
recommended_keywords ([str], none_type): Collection of recommended keywords. [optional] # noqa: E501
|
|
222
|
+
legs ([FlightLeg], none_type): A list of flight legs on which the line item will run.. [optional] # noqa: E501
|
|
227
223
|
"""
|
|
228
224
|
|
|
229
225
|
_check_type = kwargs.pop('_check_type', True)
|