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
|
@@ -29,12 +29,8 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
29
29
|
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource
|
|
34
|
-
globals()['RetailMediaExternalv1SetBidsModelResource'] = RetailMediaExternalv1SetBidsModelResource
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
33
|
+
class ExternalHyperlinkVariableValue(ModelNormal):
|
|
38
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
35
|
Ref: https://openapi-generator.tech
|
|
40
36
|
|
|
@@ -70,7 +66,6 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
70
66
|
This must be a method because a model may have properties that are
|
|
71
67
|
of type self, this must run after the class is loaded
|
|
72
68
|
"""
|
|
73
|
-
lazy_import()
|
|
74
69
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
70
|
|
|
76
71
|
_nullable = False
|
|
@@ -85,9 +80,8 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
85
80
|
openapi_types (dict): The key is attribute name
|
|
86
81
|
and the value is attribute type.
|
|
87
82
|
"""
|
|
88
|
-
lazy_import()
|
|
89
83
|
return {
|
|
90
|
-
'
|
|
84
|
+
'url': (str, none_type,), # noqa: E501
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
@cached_property
|
|
@@ -96,7 +90,7 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
96
90
|
|
|
97
91
|
|
|
98
92
|
attribute_map = {
|
|
99
|
-
'
|
|
93
|
+
'url': 'url', # noqa: E501
|
|
100
94
|
}
|
|
101
95
|
|
|
102
96
|
read_only_vars = {
|
|
@@ -107,7 +101,7 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
107
101
|
@classmethod
|
|
108
102
|
@convert_js_args_to_python_args
|
|
109
103
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
104
|
+
"""ExternalHyperlinkVariableValue - a model defined in OpenAPI
|
|
111
105
|
|
|
112
106
|
Keyword Args:
|
|
113
107
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -140,7 +134,7 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
140
134
|
Animal class but this time we won't travel
|
|
141
135
|
through its discriminator because we passed in
|
|
142
136
|
_visited_composed_classes = (Animal,)
|
|
143
|
-
|
|
137
|
+
url (str, none_type): The url to redirect to. [optional] # noqa: E501
|
|
144
138
|
"""
|
|
145
139
|
|
|
146
140
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +187,7 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
193
187
|
|
|
194
188
|
@convert_js_args_to_python_args
|
|
195
189
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
190
|
+
"""ExternalHyperlinkVariableValue - a model defined in OpenAPI
|
|
197
191
|
|
|
198
192
|
Keyword Args:
|
|
199
193
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -226,7 +220,7 @@ class RetailMediaExternalv1SetBidsModelRequest(ModelNormal):
|
|
|
226
220
|
Animal class but this time we won't travel
|
|
227
221
|
through its discriminator because we passed in
|
|
228
222
|
_visited_composed_classes = (Animal,)
|
|
229
|
-
|
|
223
|
+
url (str, none_type): The url to redirect to. [optional] # noqa: E501
|
|
230
224
|
"""
|
|
231
225
|
|
|
232
226
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class ExternalLineItemBidMultipliersV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -81,14 +81,17 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'search': (float,), # noqa: E501
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'product_detail': (float,), # noqa: E501
|
|
88
|
-
'confirmation': (float,), # noqa: E501
|
|
89
|
-
'merchandising': (float,), # noqa: E501
|
|
90
|
-
'deals': (float,), # noqa: E501
|
|
91
|
-
'checkout': (float,), # noqa: E501
|
|
84
|
+
'search': (float, none_type,), # noqa: E501
|
|
85
|
+
'home': (float, none_type,), # noqa: E501
|
|
86
|
+
'category': (float, none_type,), # noqa: E501
|
|
87
|
+
'product_detail': (float, none_type,), # noqa: E501
|
|
88
|
+
'confirmation': (float, none_type,), # noqa: E501
|
|
89
|
+
'merchandising': (float, none_type,), # noqa: E501
|
|
90
|
+
'deals': (float, none_type,), # noqa: E501
|
|
91
|
+
'checkout': (float, none_type,), # noqa: E501
|
|
92
|
+
'favorites': (float, none_type,), # noqa: E501
|
|
93
|
+
'search_bar': (float, none_type,), # noqa: E501
|
|
94
|
+
'category_menu': (float, none_type,), # noqa: E501
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
@cached_property
|
|
@@ -98,13 +101,16 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
98
101
|
|
|
99
102
|
attribute_map = {
|
|
100
103
|
'search': 'search', # noqa: E501
|
|
101
|
-
'
|
|
102
|
-
'
|
|
104
|
+
'home': 'home', # noqa: E501
|
|
105
|
+
'category': 'category', # noqa: E501
|
|
103
106
|
'product_detail': 'productDetail', # noqa: E501
|
|
104
107
|
'confirmation': 'confirmation', # noqa: E501
|
|
105
108
|
'merchandising': 'merchandising', # noqa: E501
|
|
106
109
|
'deals': 'deals', # noqa: E501
|
|
107
110
|
'checkout': 'checkout', # noqa: E501
|
|
111
|
+
'favorites': 'favorites', # noqa: E501
|
|
112
|
+
'search_bar': 'searchBar', # noqa: E501
|
|
113
|
+
'category_menu': 'categoryMenu', # noqa: E501
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
read_only_vars = {
|
|
@@ -115,7 +121,7 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
115
121
|
@classmethod
|
|
116
122
|
@convert_js_args_to_python_args
|
|
117
123
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
-
"""
|
|
124
|
+
"""ExternalLineItemBidMultipliersV2 - a model defined in OpenAPI
|
|
119
125
|
|
|
120
126
|
Keyword Args:
|
|
121
127
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -148,14 +154,17 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
148
154
|
Animal class but this time we won't travel
|
|
149
155
|
through its discriminator because we passed in
|
|
150
156
|
_visited_composed_classes = (Animal,)
|
|
151
|
-
search (float): [optional] # noqa: E501
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
product_detail (float): [optional] # noqa: E501
|
|
155
|
-
confirmation (float): [optional] # noqa: E501
|
|
156
|
-
merchandising (float): [optional] # noqa: E501
|
|
157
|
-
deals (float): [optional] # noqa: E501
|
|
158
|
-
checkout (float): [optional] # noqa: E501
|
|
157
|
+
search (float, none_type): Search Page Type Bid Multiplier. [optional] # noqa: E501
|
|
158
|
+
home (float, none_type): Home Page Type Bid Multiplier. [optional] # noqa: E501
|
|
159
|
+
category (float, none_type): Categories Page Type Bid Multiplier. [optional] # noqa: E501
|
|
160
|
+
product_detail (float, none_type): ProductDetail Page Type Bid Multiplier. [optional] # noqa: E501
|
|
161
|
+
confirmation (float, none_type): Confirmation Page Type Bid Multiplier. [optional] # noqa: E501
|
|
162
|
+
merchandising (float, none_type): Merchandising Page Type Bid Multiplier. [optional] # noqa: E501
|
|
163
|
+
deals (float, none_type): Deals Page Type Bid Multiplier. [optional] # noqa: E501
|
|
164
|
+
checkout (float, none_type): Checkout Page Type Bid Multiplier. [optional] # noqa: E501
|
|
165
|
+
favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
|
|
166
|
+
search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
|
|
167
|
+
category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
|
|
159
168
|
"""
|
|
160
169
|
|
|
161
170
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -208,7 +217,7 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
208
217
|
|
|
209
218
|
@convert_js_args_to_python_args
|
|
210
219
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
211
|
-
"""
|
|
220
|
+
"""ExternalLineItemBidMultipliersV2 - a model defined in OpenAPI
|
|
212
221
|
|
|
213
222
|
Keyword Args:
|
|
214
223
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -241,14 +250,17 @@ class LineItemBidMultipliers(ModelNormal):
|
|
|
241
250
|
Animal class but this time we won't travel
|
|
242
251
|
through its discriminator because we passed in
|
|
243
252
|
_visited_composed_classes = (Animal,)
|
|
244
|
-
search (float): [optional] # noqa: E501
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
product_detail (float): [optional] # noqa: E501
|
|
248
|
-
confirmation (float): [optional] # noqa: E501
|
|
249
|
-
merchandising (float): [optional] # noqa: E501
|
|
250
|
-
deals (float): [optional] # noqa: E501
|
|
251
|
-
checkout (float): [optional] # noqa: E501
|
|
253
|
+
search (float, none_type): Search Page Type Bid Multiplier. [optional] # noqa: E501
|
|
254
|
+
home (float, none_type): Home Page Type Bid Multiplier. [optional] # noqa: E501
|
|
255
|
+
category (float, none_type): Categories Page Type Bid Multiplier. [optional] # noqa: E501
|
|
256
|
+
product_detail (float, none_type): ProductDetail Page Type Bid Multiplier. [optional] # noqa: E501
|
|
257
|
+
confirmation (float, none_type): Confirmation Page Type Bid Multiplier. [optional] # noqa: E501
|
|
258
|
+
merchandising (float, none_type): Merchandising Page Type Bid Multiplier. [optional] # noqa: E501
|
|
259
|
+
deals (float, none_type): Deals Page Type Bid Multiplier. [optional] # noqa: E501
|
|
260
|
+
checkout (float, none_type): Checkout Page Type Bid Multiplier. [optional] # noqa: E501
|
|
261
|
+
favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
|
|
262
|
+
search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
|
|
263
|
+
category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
|
|
252
264
|
"""
|
|
253
265
|
|
|
254
266
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -0,0 +1,293 @@
|
|
|
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
|
+
|
|
33
|
+
class ExternalPageTypeEnvironment(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
|
+
('page_type',): {
|
|
59
|
+
'None': None,
|
|
60
|
+
'UNKNOWN': "Unknown",
|
|
61
|
+
'SEARCH': "Search",
|
|
62
|
+
'HOME': "Home",
|
|
63
|
+
'BROWSE': "Browse",
|
|
64
|
+
'CHECKOUT': "Checkout",
|
|
65
|
+
'CATEGORY': "Category",
|
|
66
|
+
'PRODUCTDETAIL': "ProductDetail",
|
|
67
|
+
'CONFIRMATION': "Confirmation",
|
|
68
|
+
'MERCHANDISING': "Merchandising",
|
|
69
|
+
'DEALS': "Deals",
|
|
70
|
+
'FAVORITES': "Favorites",
|
|
71
|
+
'SEARCHBAR': "SearchBar",
|
|
72
|
+
'CATEGORYMENU': "CategoryMenu",
|
|
73
|
+
},
|
|
74
|
+
('environments',): {
|
|
75
|
+
'None': None,
|
|
76
|
+
'WEB': "Web",
|
|
77
|
+
'MOBILE': "Mobile",
|
|
78
|
+
'APP': "App",
|
|
79
|
+
'LOCKOUT': "Lockout",
|
|
80
|
+
'MIXED': "Mixed",
|
|
81
|
+
'IOS': "iOS",
|
|
82
|
+
'ANDROID': "Android",
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
validations = {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@cached_property
|
|
90
|
+
def additional_properties_type():
|
|
91
|
+
"""
|
|
92
|
+
This must be a method because a model may have properties that are
|
|
93
|
+
of type self, this must run after the class is loaded
|
|
94
|
+
"""
|
|
95
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
96
|
+
|
|
97
|
+
_nullable = False
|
|
98
|
+
|
|
99
|
+
@cached_property
|
|
100
|
+
def openapi_types():
|
|
101
|
+
"""
|
|
102
|
+
This must be a method because a model may have properties that are
|
|
103
|
+
of type self, this must run after the class is loaded
|
|
104
|
+
|
|
105
|
+
Returns
|
|
106
|
+
openapi_types (dict): The key is attribute name
|
|
107
|
+
and the value is attribute type.
|
|
108
|
+
"""
|
|
109
|
+
return {
|
|
110
|
+
'page_type': (str, none_type,), # noqa: E501
|
|
111
|
+
'environments': ([str], none_type,), # noqa: E501
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@cached_property
|
|
115
|
+
def discriminator():
|
|
116
|
+
return None
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
attribute_map = {
|
|
120
|
+
'page_type': 'pageType', # noqa: E501
|
|
121
|
+
'environments': 'environments', # noqa: E501
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
read_only_vars = {
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
_composed_schemas = {}
|
|
128
|
+
|
|
129
|
+
@classmethod
|
|
130
|
+
@convert_js_args_to_python_args
|
|
131
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
132
|
+
"""ExternalPageTypeEnvironment - a model defined in OpenAPI
|
|
133
|
+
|
|
134
|
+
Keyword Args:
|
|
135
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
136
|
+
will be type checked and a TypeError will be
|
|
137
|
+
raised if the wrong type is input.
|
|
138
|
+
Defaults to True
|
|
139
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
140
|
+
drill down to the model in received_data
|
|
141
|
+
when deserializing a response
|
|
142
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
143
|
+
are serialized names, as specified in the OpenAPI document.
|
|
144
|
+
False if the variable names in the input data
|
|
145
|
+
are pythonic names, e.g. snake case (default)
|
|
146
|
+
_configuration (Configuration): the instance to use when
|
|
147
|
+
deserializing a file_type parameter.
|
|
148
|
+
If passed, type conversion is attempted
|
|
149
|
+
If omitted no type conversion is done.
|
|
150
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
151
|
+
classes that we have traveled through so that
|
|
152
|
+
if we see that class again we will not use its
|
|
153
|
+
discriminator again.
|
|
154
|
+
When traveling through a discriminator, the
|
|
155
|
+
composed schema that is
|
|
156
|
+
is traveled through is added to this set.
|
|
157
|
+
For example if Animal has a discriminator
|
|
158
|
+
petType and we pass in "Dog", and the class Dog
|
|
159
|
+
allOf includes Animal, we move through Animal
|
|
160
|
+
once using the discriminator, and pick Dog.
|
|
161
|
+
Then in Dog, we will make an instance of the
|
|
162
|
+
Animal class but this time we won't travel
|
|
163
|
+
through its discriminator because we passed in
|
|
164
|
+
_visited_composed_classes = (Animal,)
|
|
165
|
+
page_type (str, none_type): Creative PageType. [optional] # noqa: E501
|
|
166
|
+
environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
170
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
171
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
172
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
173
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
174
|
+
|
|
175
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
176
|
+
|
|
177
|
+
if args:
|
|
178
|
+
for arg in args:
|
|
179
|
+
if isinstance(arg, dict):
|
|
180
|
+
kwargs.update(arg)
|
|
181
|
+
else:
|
|
182
|
+
raise ApiTypeError(
|
|
183
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
184
|
+
args,
|
|
185
|
+
self.__class__.__name__,
|
|
186
|
+
),
|
|
187
|
+
path_to_item=_path_to_item,
|
|
188
|
+
valid_classes=(self.__class__,),
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
self._data_store = {}
|
|
192
|
+
self._check_type = _check_type
|
|
193
|
+
self._spec_property_naming = _spec_property_naming
|
|
194
|
+
self._path_to_item = _path_to_item
|
|
195
|
+
self._configuration = _configuration
|
|
196
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
197
|
+
|
|
198
|
+
for var_name, var_value in kwargs.items():
|
|
199
|
+
if var_name not in self.attribute_map and \
|
|
200
|
+
self._configuration is not None and \
|
|
201
|
+
self._configuration.discard_unknown_keys and \
|
|
202
|
+
self.additional_properties_type is None:
|
|
203
|
+
# discard variable.
|
|
204
|
+
continue
|
|
205
|
+
setattr(self, var_name, var_value)
|
|
206
|
+
return self
|
|
207
|
+
|
|
208
|
+
required_properties = set([
|
|
209
|
+
'_data_store',
|
|
210
|
+
'_check_type',
|
|
211
|
+
'_spec_property_naming',
|
|
212
|
+
'_path_to_item',
|
|
213
|
+
'_configuration',
|
|
214
|
+
'_visited_composed_classes',
|
|
215
|
+
])
|
|
216
|
+
|
|
217
|
+
@convert_js_args_to_python_args
|
|
218
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
219
|
+
"""ExternalPageTypeEnvironment - a model defined in OpenAPI
|
|
220
|
+
|
|
221
|
+
Keyword Args:
|
|
222
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
223
|
+
will be type checked and a TypeError will be
|
|
224
|
+
raised if the wrong type is input.
|
|
225
|
+
Defaults to True
|
|
226
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
227
|
+
drill down to the model in received_data
|
|
228
|
+
when deserializing a response
|
|
229
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
230
|
+
are serialized names, as specified in the OpenAPI document.
|
|
231
|
+
False if the variable names in the input data
|
|
232
|
+
are pythonic names, e.g. snake case (default)
|
|
233
|
+
_configuration (Configuration): the instance to use when
|
|
234
|
+
deserializing a file_type parameter.
|
|
235
|
+
If passed, type conversion is attempted
|
|
236
|
+
If omitted no type conversion is done.
|
|
237
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
238
|
+
classes that we have traveled through so that
|
|
239
|
+
if we see that class again we will not use its
|
|
240
|
+
discriminator again.
|
|
241
|
+
When traveling through a discriminator, the
|
|
242
|
+
composed schema that is
|
|
243
|
+
is traveled through is added to this set.
|
|
244
|
+
For example if Animal has a discriminator
|
|
245
|
+
petType and we pass in "Dog", and the class Dog
|
|
246
|
+
allOf includes Animal, we move through Animal
|
|
247
|
+
once using the discriminator, and pick Dog.
|
|
248
|
+
Then in Dog, we will make an instance of the
|
|
249
|
+
Animal class but this time we won't travel
|
|
250
|
+
through its discriminator because we passed in
|
|
251
|
+
_visited_composed_classes = (Animal,)
|
|
252
|
+
page_type (str, none_type): Creative PageType. [optional] # noqa: E501
|
|
253
|
+
environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
257
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
258
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
259
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
260
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
261
|
+
|
|
262
|
+
if args:
|
|
263
|
+
for arg in args:
|
|
264
|
+
if isinstance(arg, dict):
|
|
265
|
+
kwargs.update(arg)
|
|
266
|
+
else:
|
|
267
|
+
raise ApiTypeError(
|
|
268
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
269
|
+
args,
|
|
270
|
+
self.__class__.__name__,
|
|
271
|
+
),
|
|
272
|
+
path_to_item=_path_to_item,
|
|
273
|
+
valid_classes=(self.__class__,),
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
self._data_store = {}
|
|
277
|
+
self._check_type = _check_type
|
|
278
|
+
self._spec_property_naming = _spec_property_naming
|
|
279
|
+
self._path_to_item = _path_to_item
|
|
280
|
+
self._configuration = _configuration
|
|
281
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
282
|
+
|
|
283
|
+
for var_name, var_value in kwargs.items():
|
|
284
|
+
if var_name not in self.attribute_map and \
|
|
285
|
+
self._configuration is not None and \
|
|
286
|
+
self._configuration.discard_unknown_keys and \
|
|
287
|
+
self.additional_properties_type is None:
|
|
288
|
+
# discard variable.
|
|
289
|
+
continue
|
|
290
|
+
setattr(self, var_name, var_value)
|
|
291
|
+
if var_name in self.read_only_vars:
|
|
292
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
293
|
+
f"class with read only attributes.")
|