criteo-api-retailmedia-sdk 0.0.240207__py3-none-any.whl → 0.0.240515__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 +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/audience_api.py +284 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +1678 -902
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- 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 +421 -0
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +74 -59
- criteo_api_retailmedia_preview/model/async_line_items_report.py +74 -60
- criteo_api_retailmedia_preview/model/audience_error.py +310 -0
- criteo_api_retailmedia_preview/model/{template_variable.py → audience_warning.py} +48 -46
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/change_details.py +275 -0
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → creative_v2_list_response.py} +16 -16
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → creative_v2_response.py} +16 -9
- criteo_api_retailmedia_preview/model/custom_attribute.py +275 -0
- criteo_api_retailmedia_preview/model/error_code_response.py +281 -0
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → external_choice_variable_value.py} +3 -3
- criteo_api_retailmedia_preview/model/{color_variable_value.py → external_color_variable_value.py} +8 -14
- criteo_api_retailmedia_preview/model/{creative_update_model202207.py → external_creative_create_model_v2.py} +11 -11
- criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_creative_update_model_v2.py} +11 -11
- criteo_api_retailmedia_preview/model/{creative202210.py → external_creative_v2.py} +34 -28
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_files_variable_value.py} +4 -3
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → external_hyperlink_variable_value.py} +7 -7
- 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_line_item_capping_v2.py +280 -0
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{choice_variable_specification.py → external_line_item_page_v2.py} +36 -21
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_page_type_environment.py} +15 -9
- criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +345 -0
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{template_variable_value.py → external_template_variable_value.py} +36 -30
- criteo_api_retailmedia_preview/model/{text_variable_value.py → external_text_variable_value.py} +8 -14
- criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
- criteo_api_retailmedia_preview/model/{choice_option.py → fail_response.py} +21 -19
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → input_resource_of_preferred_line_item_create_model_v2.py} +13 -11
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture.py +303 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → installment.py} +13 -11
- 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_response.py → line_item_bid_multipliers_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
- criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → preferred_line_item_update_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
- criteo_api_retailmedia_preview/model/{template_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/product_importer_error.py +299 -0
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -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_keywords_model_response.py → product_shipping.py} +33 -25
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +267 -0
- criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +267 -0
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +305 -0
- criteo_api_retailmedia_preview/model/promoted_product.py +270 -0
- 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/{template_list_response.py → proposal_status_model_response.py} +20 -27
- criteo_api_retailmedia_preview/model/report_detail_error.py +299 -0
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → report_detail_errors.py} +23 -11
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → report_ok_response.py} +56 -21
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_creative_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_line_item_bid_multipliers_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → resource_of_preferred_line_item_update_model_v2.py} +16 -22
- criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_preferred_line_item_v2.py} +9 -9
- 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_brands.py +257 -0
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → retail_media_contactlist_amendment.py} +16 -16
- criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_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/{json_api_single_response_of_catalog_status.py → retail_media_contactlist_operation.py} +24 -20
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → retail_media_contactlist_operation_response_attributes.py} +14 -18
- 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 +47 -45
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +68 -53
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +70 -56
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +106 -55
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/RECORD +127 -75
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py +0 -283
- criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
- criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,280 @@
|
|
|
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 ExternalLineItemCappingV2(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
|
+
'UNKNOWN': "unknown",
|
|
60
|
+
'DAY': "day",
|
|
61
|
+
'SESSION': "session",
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
validations = {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@cached_property
|
|
69
|
+
def additional_properties_type():
|
|
70
|
+
"""
|
|
71
|
+
This must be a method because a model may have properties that are
|
|
72
|
+
of type self, this must run after the class is loaded
|
|
73
|
+
"""
|
|
74
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
|
+
|
|
76
|
+
_nullable = False
|
|
77
|
+
|
|
78
|
+
@cached_property
|
|
79
|
+
def openapi_types():
|
|
80
|
+
"""
|
|
81
|
+
This must be a method because a model may have properties that are
|
|
82
|
+
of type self, this must run after the class is loaded
|
|
83
|
+
|
|
84
|
+
Returns
|
|
85
|
+
openapi_types (dict): The key is attribute name
|
|
86
|
+
and the value is attribute type.
|
|
87
|
+
"""
|
|
88
|
+
return {
|
|
89
|
+
'type': (str,), # noqa: E501
|
|
90
|
+
'count': (int,), # noqa: E501
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@cached_property
|
|
94
|
+
def discriminator():
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
attribute_map = {
|
|
99
|
+
'type': 'type', # noqa: E501
|
|
100
|
+
'count': 'count', # noqa: E501
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
read_only_vars = {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_composed_schemas = {}
|
|
107
|
+
|
|
108
|
+
@classmethod
|
|
109
|
+
@convert_js_args_to_python_args
|
|
110
|
+
def _from_openapi_data(cls, type, count, *args, **kwargs): # noqa: E501
|
|
111
|
+
"""ExternalLineItemCappingV2 - a model defined in OpenAPI
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
type (str): Line Item Capping Type Enum
|
|
115
|
+
count (int):
|
|
116
|
+
|
|
117
|
+
Keyword Args:
|
|
118
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
119
|
+
will be type checked and a TypeError will be
|
|
120
|
+
raised if the wrong type is input.
|
|
121
|
+
Defaults to True
|
|
122
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
123
|
+
drill down to the model in received_data
|
|
124
|
+
when deserializing a response
|
|
125
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
126
|
+
are serialized names, as specified in the OpenAPI document.
|
|
127
|
+
False if the variable names in the input data
|
|
128
|
+
are pythonic names, e.g. snake case (default)
|
|
129
|
+
_configuration (Configuration): the instance to use when
|
|
130
|
+
deserializing a file_type parameter.
|
|
131
|
+
If passed, type conversion is attempted
|
|
132
|
+
If omitted no type conversion is done.
|
|
133
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
134
|
+
classes that we have traveled through so that
|
|
135
|
+
if we see that class again we will not use its
|
|
136
|
+
discriminator again.
|
|
137
|
+
When traveling through a discriminator, the
|
|
138
|
+
composed schema that is
|
|
139
|
+
is traveled through is added to this set.
|
|
140
|
+
For example if Animal has a discriminator
|
|
141
|
+
petType and we pass in "Dog", and the class Dog
|
|
142
|
+
allOf includes Animal, we move through Animal
|
|
143
|
+
once using the discriminator, and pick Dog.
|
|
144
|
+
Then in Dog, we will make an instance of the
|
|
145
|
+
Animal class but this time we won't travel
|
|
146
|
+
through its discriminator because we passed in
|
|
147
|
+
_visited_composed_classes = (Animal,)
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
151
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
152
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
153
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
154
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
155
|
+
|
|
156
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
157
|
+
|
|
158
|
+
if args:
|
|
159
|
+
for arg in args:
|
|
160
|
+
if isinstance(arg, dict):
|
|
161
|
+
kwargs.update(arg)
|
|
162
|
+
else:
|
|
163
|
+
raise ApiTypeError(
|
|
164
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
165
|
+
args,
|
|
166
|
+
self.__class__.__name__,
|
|
167
|
+
),
|
|
168
|
+
path_to_item=_path_to_item,
|
|
169
|
+
valid_classes=(self.__class__,),
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
self._data_store = {}
|
|
173
|
+
self._check_type = _check_type
|
|
174
|
+
self._spec_property_naming = _spec_property_naming
|
|
175
|
+
self._path_to_item = _path_to_item
|
|
176
|
+
self._configuration = _configuration
|
|
177
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
178
|
+
|
|
179
|
+
self.type = type
|
|
180
|
+
self.count = count
|
|
181
|
+
for var_name, var_value in kwargs.items():
|
|
182
|
+
if var_name not in self.attribute_map and \
|
|
183
|
+
self._configuration is not None and \
|
|
184
|
+
self._configuration.discard_unknown_keys and \
|
|
185
|
+
self.additional_properties_type is None:
|
|
186
|
+
# discard variable.
|
|
187
|
+
continue
|
|
188
|
+
setattr(self, var_name, var_value)
|
|
189
|
+
return self
|
|
190
|
+
|
|
191
|
+
required_properties = set([
|
|
192
|
+
'_data_store',
|
|
193
|
+
'_check_type',
|
|
194
|
+
'_spec_property_naming',
|
|
195
|
+
'_path_to_item',
|
|
196
|
+
'_configuration',
|
|
197
|
+
'_visited_composed_classes',
|
|
198
|
+
])
|
|
199
|
+
|
|
200
|
+
@convert_js_args_to_python_args
|
|
201
|
+
def __init__(self, type, count, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""ExternalLineItemCappingV2 - a model defined in OpenAPI
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
type (str): Line Item Capping Type Enum
|
|
206
|
+
count (int):
|
|
207
|
+
|
|
208
|
+
Keyword Args:
|
|
209
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
210
|
+
will be type checked and a TypeError will be
|
|
211
|
+
raised if the wrong type is input.
|
|
212
|
+
Defaults to True
|
|
213
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
214
|
+
drill down to the model in received_data
|
|
215
|
+
when deserializing a response
|
|
216
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
217
|
+
are serialized names, as specified in the OpenAPI document.
|
|
218
|
+
False if the variable names in the input data
|
|
219
|
+
are pythonic names, e.g. snake case (default)
|
|
220
|
+
_configuration (Configuration): the instance to use when
|
|
221
|
+
deserializing a file_type parameter.
|
|
222
|
+
If passed, type conversion is attempted
|
|
223
|
+
If omitted no type conversion is done.
|
|
224
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
225
|
+
classes that we have traveled through so that
|
|
226
|
+
if we see that class again we will not use its
|
|
227
|
+
discriminator again.
|
|
228
|
+
When traveling through a discriminator, the
|
|
229
|
+
composed schema that is
|
|
230
|
+
is traveled through is added to this set.
|
|
231
|
+
For example if Animal has a discriminator
|
|
232
|
+
petType and we pass in "Dog", and the class Dog
|
|
233
|
+
allOf includes Animal, we move through Animal
|
|
234
|
+
once using the discriminator, and pick Dog.
|
|
235
|
+
Then in Dog, we will make an instance of the
|
|
236
|
+
Animal class but this time we won't travel
|
|
237
|
+
through its discriminator because we passed in
|
|
238
|
+
_visited_composed_classes = (Animal,)
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
242
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
243
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
244
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
245
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
246
|
+
|
|
247
|
+
if args:
|
|
248
|
+
for arg in args:
|
|
249
|
+
if isinstance(arg, dict):
|
|
250
|
+
kwargs.update(arg)
|
|
251
|
+
else:
|
|
252
|
+
raise ApiTypeError(
|
|
253
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
254
|
+
args,
|
|
255
|
+
self.__class__.__name__,
|
|
256
|
+
),
|
|
257
|
+
path_to_item=_path_to_item,
|
|
258
|
+
valid_classes=(self.__class__,),
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
self._data_store = {}
|
|
262
|
+
self._check_type = _check_type
|
|
263
|
+
self._spec_property_naming = _spec_property_naming
|
|
264
|
+
self._path_to_item = _path_to_item
|
|
265
|
+
self._configuration = _configuration
|
|
266
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
267
|
+
|
|
268
|
+
self.type = type
|
|
269
|
+
self.count = count
|
|
270
|
+
for var_name, var_value in kwargs.items():
|
|
271
|
+
if var_name not in self.attribute_map and \
|
|
272
|
+
self._configuration is not None and \
|
|
273
|
+
self._configuration.discard_unknown_keys and \
|
|
274
|
+
self.additional_properties_type is None:
|
|
275
|
+
# discard variable.
|
|
276
|
+
continue
|
|
277
|
+
setattr(self, var_name, var_value)
|
|
278
|
+
if var_name in self.read_only_vars:
|
|
279
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
280
|
+
f"class with read only attributes.")
|
|
@@ -0,0 +1,273 @@
|
|
|
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 ExternalLineItemPageCategoryV2(ModelNormal):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
+
with a capitalized key describing the allowed value and an allowed
|
|
43
|
+
value. These dicts store the allowed enum values.
|
|
44
|
+
attribute_map (dict): The key is attribute name
|
|
45
|
+
and the value is json key in definition.
|
|
46
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
+
variable value to the discriminator class name.
|
|
48
|
+
validations (dict): The key is the tuple path to the attribute
|
|
49
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
+
that stores validations for max_length, min_length, max_items,
|
|
51
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
+
inclusive_minimum, and regex.
|
|
53
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
+
as additional properties values.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
allowed_values = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validations = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@cached_property
|
|
64
|
+
def additional_properties_type():
|
|
65
|
+
"""
|
|
66
|
+
This must be a method because a model may have properties that are
|
|
67
|
+
of type self, this must run after the class is loaded
|
|
68
|
+
"""
|
|
69
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
|
+
|
|
71
|
+
_nullable = False
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def openapi_types():
|
|
75
|
+
"""
|
|
76
|
+
This must be a method because a model may have properties that are
|
|
77
|
+
of type self, this must run after the class is loaded
|
|
78
|
+
|
|
79
|
+
Returns
|
|
80
|
+
openapi_types (dict): The key is attribute name
|
|
81
|
+
and the value is attribute type.
|
|
82
|
+
"""
|
|
83
|
+
return {
|
|
84
|
+
'category_id': (str,), # noqa: E501
|
|
85
|
+
'include_children': (bool,), # noqa: E501
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@cached_property
|
|
89
|
+
def discriminator():
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
attribute_map = {
|
|
94
|
+
'category_id': 'categoryId', # noqa: E501
|
|
95
|
+
'include_children': 'includeChildren', # noqa: E501
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
read_only_vars = {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
_composed_schemas = {}
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
@convert_js_args_to_python_args
|
|
105
|
+
def _from_openapi_data(cls, category_id, *args, **kwargs): # noqa: E501
|
|
106
|
+
"""ExternalLineItemPageCategoryV2 - a model defined in OpenAPI
|
|
107
|
+
|
|
108
|
+
Args:
|
|
109
|
+
category_id (str):
|
|
110
|
+
|
|
111
|
+
Keyword Args:
|
|
112
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
113
|
+
will be type checked and a TypeError will be
|
|
114
|
+
raised if the wrong type is input.
|
|
115
|
+
Defaults to True
|
|
116
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
117
|
+
drill down to the model in received_data
|
|
118
|
+
when deserializing a response
|
|
119
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
120
|
+
are serialized names, as specified in the OpenAPI document.
|
|
121
|
+
False if the variable names in the input data
|
|
122
|
+
are pythonic names, e.g. snake case (default)
|
|
123
|
+
_configuration (Configuration): the instance to use when
|
|
124
|
+
deserializing a file_type parameter.
|
|
125
|
+
If passed, type conversion is attempted
|
|
126
|
+
If omitted no type conversion is done.
|
|
127
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
128
|
+
classes that we have traveled through so that
|
|
129
|
+
if we see that class again we will not use its
|
|
130
|
+
discriminator again.
|
|
131
|
+
When traveling through a discriminator, the
|
|
132
|
+
composed schema that is
|
|
133
|
+
is traveled through is added to this set.
|
|
134
|
+
For example if Animal has a discriminator
|
|
135
|
+
petType and we pass in "Dog", and the class Dog
|
|
136
|
+
allOf includes Animal, we move through Animal
|
|
137
|
+
once using the discriminator, and pick Dog.
|
|
138
|
+
Then in Dog, we will make an instance of the
|
|
139
|
+
Animal class but this time we won't travel
|
|
140
|
+
through its discriminator because we passed in
|
|
141
|
+
_visited_composed_classes = (Animal,)
|
|
142
|
+
include_children (bool): [optional] if omitted the server will use the default value of True # noqa: E501
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
146
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
147
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
148
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
149
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
150
|
+
|
|
151
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
152
|
+
|
|
153
|
+
if args:
|
|
154
|
+
for arg in args:
|
|
155
|
+
if isinstance(arg, dict):
|
|
156
|
+
kwargs.update(arg)
|
|
157
|
+
else:
|
|
158
|
+
raise ApiTypeError(
|
|
159
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
160
|
+
args,
|
|
161
|
+
self.__class__.__name__,
|
|
162
|
+
),
|
|
163
|
+
path_to_item=_path_to_item,
|
|
164
|
+
valid_classes=(self.__class__,),
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
self._data_store = {}
|
|
168
|
+
self._check_type = _check_type
|
|
169
|
+
self._spec_property_naming = _spec_property_naming
|
|
170
|
+
self._path_to_item = _path_to_item
|
|
171
|
+
self._configuration = _configuration
|
|
172
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
173
|
+
|
|
174
|
+
self.category_id = category_id
|
|
175
|
+
for var_name, var_value in kwargs.items():
|
|
176
|
+
if var_name not in self.attribute_map and \
|
|
177
|
+
self._configuration is not None and \
|
|
178
|
+
self._configuration.discard_unknown_keys and \
|
|
179
|
+
self.additional_properties_type is None:
|
|
180
|
+
# discard variable.
|
|
181
|
+
continue
|
|
182
|
+
setattr(self, var_name, var_value)
|
|
183
|
+
return self
|
|
184
|
+
|
|
185
|
+
required_properties = set([
|
|
186
|
+
'_data_store',
|
|
187
|
+
'_check_type',
|
|
188
|
+
'_spec_property_naming',
|
|
189
|
+
'_path_to_item',
|
|
190
|
+
'_configuration',
|
|
191
|
+
'_visited_composed_classes',
|
|
192
|
+
])
|
|
193
|
+
|
|
194
|
+
@convert_js_args_to_python_args
|
|
195
|
+
def __init__(self, category_id, *args, **kwargs): # noqa: E501
|
|
196
|
+
"""ExternalLineItemPageCategoryV2 - a model defined in OpenAPI
|
|
197
|
+
|
|
198
|
+
Args:
|
|
199
|
+
category_id (str):
|
|
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
|
+
include_children (bool): [optional] if omitted the server will use the default value of True # noqa: E501
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
236
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
237
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
238
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
239
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
240
|
+
|
|
241
|
+
if args:
|
|
242
|
+
for arg in args:
|
|
243
|
+
if isinstance(arg, dict):
|
|
244
|
+
kwargs.update(arg)
|
|
245
|
+
else:
|
|
246
|
+
raise ApiTypeError(
|
|
247
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
248
|
+
args,
|
|
249
|
+
self.__class__.__name__,
|
|
250
|
+
),
|
|
251
|
+
path_to_item=_path_to_item,
|
|
252
|
+
valid_classes=(self.__class__,),
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
self._data_store = {}
|
|
256
|
+
self._check_type = _check_type
|
|
257
|
+
self._spec_property_naming = _spec_property_naming
|
|
258
|
+
self._path_to_item = _path_to_item
|
|
259
|
+
self._configuration = _configuration
|
|
260
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
261
|
+
|
|
262
|
+
self.category_id = category_id
|
|
263
|
+
for var_name, var_value in kwargs.items():
|
|
264
|
+
if var_name not in self.attribute_map and \
|
|
265
|
+
self._configuration is not None and \
|
|
266
|
+
self._configuration.discard_unknown_keys and \
|
|
267
|
+
self.additional_properties_type is None:
|
|
268
|
+
# discard variable.
|
|
269
|
+
continue
|
|
270
|
+
setattr(self, var_name, var_value)
|
|
271
|
+
if var_name in self.read_only_vars:
|
|
272
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
273
|
+
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_line_item_page_category_v2 import ExternalLineItemPageCategoryV2
|
|
34
|
+
globals()['ExternalLineItemPageCategoryV2'] = ExternalLineItemPageCategoryV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ExternalLineItemPageV2(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -59,6 +59,21 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
allowed_values = {
|
|
62
|
+
('page_type',): {
|
|
63
|
+
'UNKNOWN': "unknown",
|
|
64
|
+
'SEARCH': "search",
|
|
65
|
+
'HOME': "home",
|
|
66
|
+
'BROWSE': "browse",
|
|
67
|
+
'CHECKOUT': "checkout",
|
|
68
|
+
'CATEGORY': "category",
|
|
69
|
+
'PRODUCTDETAIL': "productDetail",
|
|
70
|
+
'CONFIRMATION': "confirmation",
|
|
71
|
+
'MERCHANDISING': "merchandising",
|
|
72
|
+
'DEALS': "deals",
|
|
73
|
+
'FAVORITES': "favorites",
|
|
74
|
+
'SEARCHBAR': "searchBar",
|
|
75
|
+
'CATEGORYMENU': "categoryMenu",
|
|
76
|
+
},
|
|
62
77
|
}
|
|
63
78
|
|
|
64
79
|
validations = {
|
|
@@ -87,9 +102,9 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
87
102
|
"""
|
|
88
103
|
lazy_import()
|
|
89
104
|
return {
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
105
|
+
'page_type': (str,), # noqa: E501
|
|
106
|
+
'categories': ([ExternalLineItemPageCategoryV2],), # noqa: E501
|
|
107
|
+
'search_keywords': ([str],), # noqa: E501
|
|
93
108
|
}
|
|
94
109
|
|
|
95
110
|
@cached_property
|
|
@@ -98,9 +113,9 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
98
113
|
|
|
99
114
|
|
|
100
115
|
attribute_map = {
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
116
|
+
'page_type': 'pageType', # noqa: E501
|
|
117
|
+
'categories': 'categories', # noqa: E501
|
|
118
|
+
'search_keywords': 'searchKeywords', # noqa: E501
|
|
104
119
|
}
|
|
105
120
|
|
|
106
121
|
read_only_vars = {
|
|
@@ -110,11 +125,11 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
110
125
|
|
|
111
126
|
@classmethod
|
|
112
127
|
@convert_js_args_to_python_args
|
|
113
|
-
def _from_openapi_data(cls,
|
|
114
|
-
"""
|
|
128
|
+
def _from_openapi_data(cls, page_type, *args, **kwargs): # noqa: E501
|
|
129
|
+
"""ExternalLineItemPageV2 - a model defined in OpenAPI
|
|
115
130
|
|
|
116
131
|
Args:
|
|
117
|
-
|
|
132
|
+
page_type (str): Page Type Enum
|
|
118
133
|
|
|
119
134
|
Keyword Args:
|
|
120
135
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -147,8 +162,8 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
147
162
|
Animal class but this time we won't travel
|
|
148
163
|
through its discriminator because we passed in
|
|
149
164
|
_visited_composed_classes = (Animal,)
|
|
150
|
-
|
|
151
|
-
|
|
165
|
+
categories ([ExternalLineItemPageCategoryV2]): [optional] # noqa: E501
|
|
166
|
+
search_keywords ([str]): [optional] # noqa: E501
|
|
152
167
|
"""
|
|
153
168
|
|
|
154
169
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -180,7 +195,7 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
180
195
|
self._configuration = _configuration
|
|
181
196
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
197
|
|
|
183
|
-
self.
|
|
198
|
+
self.page_type = page_type
|
|
184
199
|
for var_name, var_value in kwargs.items():
|
|
185
200
|
if var_name not in self.attribute_map and \
|
|
186
201
|
self._configuration is not None and \
|
|
@@ -201,11 +216,11 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
201
216
|
])
|
|
202
217
|
|
|
203
218
|
@convert_js_args_to_python_args
|
|
204
|
-
def __init__(self,
|
|
205
|
-
"""
|
|
219
|
+
def __init__(self, page_type, *args, **kwargs): # noqa: E501
|
|
220
|
+
"""ExternalLineItemPageV2 - a model defined in OpenAPI
|
|
206
221
|
|
|
207
222
|
Args:
|
|
208
|
-
|
|
223
|
+
page_type (str): Page Type Enum
|
|
209
224
|
|
|
210
225
|
Keyword Args:
|
|
211
226
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -238,8 +253,8 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
238
253
|
Animal class but this time we won't travel
|
|
239
254
|
through its discriminator because we passed in
|
|
240
255
|
_visited_composed_classes = (Animal,)
|
|
241
|
-
|
|
242
|
-
|
|
256
|
+
categories ([ExternalLineItemPageCategoryV2]): [optional] # noqa: E501
|
|
257
|
+
search_keywords ([str]): [optional] # noqa: E501
|
|
243
258
|
"""
|
|
244
259
|
|
|
245
260
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -269,7 +284,7 @@ class ChoiceVariableSpecification(ModelNormal):
|
|
|
269
284
|
self._configuration = _configuration
|
|
270
285
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
271
286
|
|
|
272
|
-
self.
|
|
287
|
+
self.page_type = page_type
|
|
273
288
|
for var_name, var_value in kwargs.items():
|
|
274
289
|
if var_name not in self.attribute_map and \
|
|
275
290
|
self._configuration is not None and \
|