criteo-api-retailmedia-sdk 2024.10.0.250218__py3-none-any.whl → 2024.10.0.250320__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_sdk-2024.10.0.250218.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250320.dist-info}/METADATA +4 -4
- {criteo_api_retailmedia_sdk-2024.10.0.250218.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250320.dist-info}/RECORD +115 -114
- {criteo_api_retailmedia_sdk-2024.10.0.250218.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250320.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2024_10/__init__.py +1 -1
- criteo_api_retailmedia_v2024_10/api/accounts_api.py +1 -5
- criteo_api_retailmedia_v2024_10/api_client.py +1 -1
- criteo_api_retailmedia_v2024_10/configuration.py +1 -1
- criteo_api_retailmedia_v2024_10/model/add_remove_keyword_model.py +3 -3
- criteo_api_retailmedia_v2024_10/model/application_summary_model.py +1 -1
- criteo_api_retailmedia_v2024_10/model/application_summary_model_resource.py +1 -1
- criteo_api_retailmedia_v2024_10/model/asset.py +1 -1
- criteo_api_retailmedia_v2024_10/model/asset_resource.py +1 -1
- criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +39 -49
- criteo_api_retailmedia_v2024_10/model/async_campaigns_report_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +39 -49
- criteo_api_retailmedia_v2024_10/model/async_line_items_report_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/async_revenue_report.py +60 -73
- criteo_api_retailmedia_v2024_10/model/async_revenue_report_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/balance_response_v2.py +1 -1
- criteo_api_retailmedia_v2024_10/model/campaign_budget_overrides.py +1 -1
- criteo_api_retailmedia_v2024_10/model/choice_variable_specification.py +1 -1
- criteo_api_retailmedia_v2024_10/model/choice_variable_value.py +1 -1
- criteo_api_retailmedia_v2024_10/model/common_error.py +26 -31
- criteo_api_retailmedia_v2024_10/model/common_warning.py +26 -31
- criteo_api_retailmedia_v2024_10/model/create_balance_v2.py +3 -3
- criteo_api_retailmedia_v2024_10/model/creative2.py +5 -1
- criteo_api_retailmedia_v2024_10/model/creative202110.py +1 -1
- criteo_api_retailmedia_v2024_10/model/creative202210.py +1 -1
- criteo_api_retailmedia_v2024_10/model/creative_update_model202207.py +3 -3
- criteo_api_retailmedia_v2024_10/model/entity_resource_of_retail_media_account.py +5 -12
- criteo_api_retailmedia_v2024_10/model/entity_resource_outcome_of_retail_media_account.py +10 -17
- criteo_api_retailmedia_v2024_10/model/external_account.py +2 -8
- criteo_api_retailmedia_v2024_10/model/external_auction_line_item.py +4 -0
- criteo_api_retailmedia_v2024_10/model/external_auction_line_item_create_model.py +3 -3
- criteo_api_retailmedia_v2024_10/model/external_auction_line_item_update_model.py +3 -3
- criteo_api_retailmedia_v2024_10/model/external_brand.py +2 -8
- criteo_api_retailmedia_v2024_10/model/external_line_item_bid_multipliers_v2.py +4 -0
- criteo_api_retailmedia_v2024_10/model/external_line_item_page_v2.py +3 -3
- criteo_api_retailmedia_v2024_10/model/external_preferred_line_item_v2.py +4 -0
- criteo_api_retailmedia_v2024_10/model/external_retail_media_account.py +19 -25
- criteo_api_retailmedia_v2024_10/model/external_retail_media_brand_account_creation.py +9 -15
- criteo_api_retailmedia_v2024_10/model/external_retail_media_brands.py +12 -12
- criteo_api_retailmedia_v2024_10/model/external_retail_media_seller.py +15 -13
- criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py +20 -21
- criteo_api_retailmedia_v2024_10/model/external_retailer.py +6 -11
- criteo_api_retailmedia_v2024_10/model/files_variable_value.py +1 -1
- criteo_api_retailmedia_v2024_10/model/files_variables_specification.py +1 -1
- criteo_api_retailmedia_v2024_10/model/json_api_body_with_id_of_int64_and_account_and_account.py +1 -8
- criteo_api_retailmedia_v2024_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +1 -8
- criteo_api_retailmedia_v2024_10/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py +2 -8
- criteo_api_retailmedia_v2024_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +1 -8
- criteo_api_retailmedia_v2024_10/model/json_api_page_response_of_account.py +7 -14
- criteo_api_retailmedia_v2024_10/model/json_api_page_response_of_brand.py +7 -14
- criteo_api_retailmedia_v2024_10/model/json_api_page_response_of_retailer.py +7 -14
- criteo_api_retailmedia_v2024_10/model/keyword_data_model.py +6 -6
- criteo_api_retailmedia_v2024_10/model/keywords_model.py +1 -1
- criteo_api_retailmedia_v2024_10/model/keywords_model_resource.py +1 -1
- criteo_api_retailmedia_v2024_10/model/line_item_budget_overrides.py +1 -1
- criteo_api_retailmedia_v2024_10/model/line_item_product_status.py +2 -1
- criteo_api_retailmedia_v2024_10/model/nillable_string.py +1 -1
- criteo_api_retailmedia_v2024_10/model/page_metadata.py +7 -13
- criteo_api_retailmedia_v2024_10/model/product_metadata.py +1 -1
- criteo_api_retailmedia_v2024_10/model/promoted_product.py +1 -1
- criteo_api_retailmedia_v2024_10/model/promoted_product_resource_collection_input.py +3 -3
- criteo_api_retailmedia_v2024_10/model/resource_of_add_funds_to_balance_v2.py +6 -6
- criteo_api_retailmedia_v2024_10/model/resource_of_auction_line_item_update_model.py +6 -6
- criteo_api_retailmedia_v2024_10/model/resource_of_balance_response_v2.py +1 -1
- criteo_api_retailmedia_v2024_10/model/resource_of_change_dates_of_balance_v2.py +6 -6
- criteo_api_retailmedia_v2024_10/model/resource_of_create_balance_v2.py +6 -6
- criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
- criteo_api_retailmedia_v2024_10/model/resource_of_update_balance_model_v2.py +6 -6
- criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py +3 -3
- criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_attributes.py +3 -4
- criteo_api_retailmedia_v2024_10/model/rm_algebra_node_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_audience_entity_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_audience_search_entity_v1.py +9 -9
- criteo_api_retailmedia_v2024_10/model/rm_audience_search_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_search_metadata_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_bulk_create_input_v1.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_bulk_delete_input_v1.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_bulk_update_input_v1.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_create_entity_v1.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_create_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_delete_entity_v1_resource.py +6 -6
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_entity_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_id_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_search_entity_v1.py +9 -10
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_search_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_search_metadata_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_update_entity_v1.py +3 -3
- criteo_api_retailmedia_v2024_10/model/rm_audience_segment_update_entity_v1_resource.py +6 -6
- criteo_api_retailmedia_v2024_10/model/rm_contact_list_create_v1.py +3 -4
- criteo_api_retailmedia_v2024_10/model/rm_contact_list_statistics_entity_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_contact_list_statistics_entity_v1_resource.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_contact_list_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/rm_events_v1.py +1 -1
- criteo_api_retailmedia_v2024_10/model/sdk_api_rest_common_problem.py +296 -0
- criteo_api_retailmedia_v2024_10/model/status_response.py +1 -1
- criteo_api_retailmedia_v2024_10/model/status_response_resource.py +1 -1
- criteo_api_retailmedia_v2024_10/model/template.py +1 -1
- criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py +5 -12
- criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py +10 -17
- criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py +1 -8
- criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brands.py +2 -9
- criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_seller_account_creation.py +2 -9
- criteo_api_retailmedia_v2024_10/model/value_resource_of_campaign_budget_overrides.py +1 -1
- criteo_api_retailmedia_v2024_10/model/value_resource_of_line_item_budget_overrides.py +1 -1
- criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py +3 -10
- criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brands.py +3 -10
- criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller.py +4 -11
- criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py +4 -11
- criteo_api_retailmedia_v2024_10/model/value_resource_outcome_of_retail_media_brands.py +10 -17
- criteo_api_retailmedia_v2024_10/model/video_variable_value.py +1 -1
- criteo_api_retailmedia_v2024_10/models/__init__.py +1 -0
- {criteo_api_retailmedia_sdk-2024.10.0.250218.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250320.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2024-10
|
|
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_v2024_10.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_v2024_10.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class SdkApiRestCommonProblem(ModelNormal):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
+
with a capitalized key describing the allowed value and an allowed
|
|
43
|
+
value. These dicts store the allowed enum values.
|
|
44
|
+
attribute_map (dict): The key is attribute name
|
|
45
|
+
and the value is json key in definition.
|
|
46
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
+
variable value to the discriminator class name.
|
|
48
|
+
validations (dict): The key is the tuple path to the attribute
|
|
49
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
+
that stores validations for max_length, min_length, max_items,
|
|
51
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
+
inclusive_minimum, and regex.
|
|
53
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
+
as additional properties values.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
allowed_values = {
|
|
58
|
+
('type',): {
|
|
59
|
+
'None': None,
|
|
60
|
+
'UNKNOWN': "unknown",
|
|
61
|
+
'ACCESS-CONTROL': "access-control",
|
|
62
|
+
'AUTHENTICATION': "authentication",
|
|
63
|
+
'AUTHORIZATION': "authorization",
|
|
64
|
+
'AVAILABILITY': "availability",
|
|
65
|
+
'DEPRECATION': "deprecation",
|
|
66
|
+
'QUOTA': "quota",
|
|
67
|
+
'VALIDATION': "validation",
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validations = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
additional_properties_type = None
|
|
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
|
+
'trace_id': (str, none_type,), # noqa: E501
|
|
90
|
+
'type': (str, none_type,), # noqa: E501
|
|
91
|
+
'code': (str, none_type,), # noqa: E501
|
|
92
|
+
'instance': (str, none_type,), # noqa: E501
|
|
93
|
+
'title': (str, none_type,), # noqa: E501
|
|
94
|
+
'detail': (str, none_type,), # noqa: E501
|
|
95
|
+
'source': ({str: (str,)}, none_type,), # noqa: E501
|
|
96
|
+
'stack_trace': (str, none_type,), # noqa: E501
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@cached_property
|
|
100
|
+
def discriminator():
|
|
101
|
+
return None
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
attribute_map = {
|
|
105
|
+
'trace_id': 'traceId', # noqa: E501
|
|
106
|
+
'type': 'type', # noqa: E501
|
|
107
|
+
'code': 'code', # noqa: E501
|
|
108
|
+
'instance': 'instance', # noqa: E501
|
|
109
|
+
'title': 'title', # noqa: E501
|
|
110
|
+
'detail': 'detail', # noqa: E501
|
|
111
|
+
'source': 'source', # noqa: E501
|
|
112
|
+
'stack_trace': 'stackTrace', # noqa: E501
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
read_only_vars = {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
_composed_schemas = {}
|
|
119
|
+
|
|
120
|
+
@classmethod
|
|
121
|
+
@convert_js_args_to_python_args
|
|
122
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
123
|
+
"""SdkApiRestCommonProblem - a model defined in OpenAPI
|
|
124
|
+
|
|
125
|
+
Keyword Args:
|
|
126
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
127
|
+
will be type checked and a TypeError will be
|
|
128
|
+
raised if the wrong type is input.
|
|
129
|
+
Defaults to True
|
|
130
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
131
|
+
drill down to the model in received_data
|
|
132
|
+
when deserializing a response
|
|
133
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
134
|
+
are serialized names, as specified in the OpenAPI document.
|
|
135
|
+
False if the variable names in the input data
|
|
136
|
+
are pythonic names, e.g. snake case (default)
|
|
137
|
+
_configuration (Configuration): the instance to use when
|
|
138
|
+
deserializing a file_type parameter.
|
|
139
|
+
If passed, type conversion is attempted
|
|
140
|
+
If omitted no type conversion is done.
|
|
141
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
142
|
+
classes that we have traveled through so that
|
|
143
|
+
if we see that class again we will not use its
|
|
144
|
+
discriminator again.
|
|
145
|
+
When traveling through a discriminator, the
|
|
146
|
+
composed schema that is
|
|
147
|
+
is traveled through is added to this set.
|
|
148
|
+
For example if Animal has a discriminator
|
|
149
|
+
petType and we pass in "Dog", and the class Dog
|
|
150
|
+
allOf includes Animal, we move through Animal
|
|
151
|
+
once using the discriminator, and pick Dog.
|
|
152
|
+
Then in Dog, we will make an instance of the
|
|
153
|
+
Animal class but this time we won't travel
|
|
154
|
+
through its discriminator because we passed in
|
|
155
|
+
_visited_composed_classes = (Animal,)
|
|
156
|
+
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
157
|
+
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
158
|
+
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
159
|
+
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
160
|
+
title (str, none_type): A short human-readable description of the problem type.. [optional] # noqa: E501
|
|
161
|
+
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
|
|
162
|
+
source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
|
|
163
|
+
stack_trace (str, none_type): . [optional] # noqa: E501
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
167
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
168
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
169
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
170
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
171
|
+
|
|
172
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
173
|
+
|
|
174
|
+
if args:
|
|
175
|
+
for arg in args:
|
|
176
|
+
if isinstance(arg, dict):
|
|
177
|
+
kwargs.update(arg)
|
|
178
|
+
else:
|
|
179
|
+
raise ApiTypeError(
|
|
180
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
181
|
+
args,
|
|
182
|
+
self.__class__.__name__,
|
|
183
|
+
),
|
|
184
|
+
path_to_item=_path_to_item,
|
|
185
|
+
valid_classes=(self.__class__,),
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
self._data_store = {}
|
|
189
|
+
self._check_type = _check_type
|
|
190
|
+
self._spec_property_naming = _spec_property_naming
|
|
191
|
+
self._path_to_item = _path_to_item
|
|
192
|
+
self._configuration = _configuration
|
|
193
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
194
|
+
|
|
195
|
+
for var_name, var_value in kwargs.items():
|
|
196
|
+
if var_name not in self.attribute_map and \
|
|
197
|
+
self._configuration is not None and \
|
|
198
|
+
self._configuration.discard_unknown_keys and \
|
|
199
|
+
self.additional_properties_type is None:
|
|
200
|
+
# discard variable.
|
|
201
|
+
continue
|
|
202
|
+
setattr(self, var_name, var_value)
|
|
203
|
+
return self
|
|
204
|
+
|
|
205
|
+
required_properties = set([
|
|
206
|
+
'_data_store',
|
|
207
|
+
'_check_type',
|
|
208
|
+
'_spec_property_naming',
|
|
209
|
+
'_path_to_item',
|
|
210
|
+
'_configuration',
|
|
211
|
+
'_visited_composed_classes',
|
|
212
|
+
])
|
|
213
|
+
|
|
214
|
+
@convert_js_args_to_python_args
|
|
215
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
216
|
+
"""SdkApiRestCommonProblem - a model defined in OpenAPI
|
|
217
|
+
|
|
218
|
+
Keyword Args:
|
|
219
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
220
|
+
will be type checked and a TypeError will be
|
|
221
|
+
raised if the wrong type is input.
|
|
222
|
+
Defaults to True
|
|
223
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
224
|
+
drill down to the model in received_data
|
|
225
|
+
when deserializing a response
|
|
226
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
227
|
+
are serialized names, as specified in the OpenAPI document.
|
|
228
|
+
False if the variable names in the input data
|
|
229
|
+
are pythonic names, e.g. snake case (default)
|
|
230
|
+
_configuration (Configuration): the instance to use when
|
|
231
|
+
deserializing a file_type parameter.
|
|
232
|
+
If passed, type conversion is attempted
|
|
233
|
+
If omitted no type conversion is done.
|
|
234
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
235
|
+
classes that we have traveled through so that
|
|
236
|
+
if we see that class again we will not use its
|
|
237
|
+
discriminator again.
|
|
238
|
+
When traveling through a discriminator, the
|
|
239
|
+
composed schema that is
|
|
240
|
+
is traveled through is added to this set.
|
|
241
|
+
For example if Animal has a discriminator
|
|
242
|
+
petType and we pass in "Dog", and the class Dog
|
|
243
|
+
allOf includes Animal, we move through Animal
|
|
244
|
+
once using the discriminator, and pick Dog.
|
|
245
|
+
Then in Dog, we will make an instance of the
|
|
246
|
+
Animal class but this time we won't travel
|
|
247
|
+
through its discriminator because we passed in
|
|
248
|
+
_visited_composed_classes = (Animal,)
|
|
249
|
+
trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
|
|
250
|
+
type (str, none_type): The problem's category.. [optional] # noqa: E501
|
|
251
|
+
code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
|
|
252
|
+
instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
|
|
253
|
+
title (str, none_type): A short human-readable description of the problem type.. [optional] # noqa: E501
|
|
254
|
+
detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
|
|
255
|
+
source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
|
|
256
|
+
stack_trace (str, none_type): . [optional] # noqa: E501
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
260
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
261
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
262
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
263
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
264
|
+
|
|
265
|
+
if args:
|
|
266
|
+
for arg in args:
|
|
267
|
+
if isinstance(arg, dict):
|
|
268
|
+
kwargs.update(arg)
|
|
269
|
+
else:
|
|
270
|
+
raise ApiTypeError(
|
|
271
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
272
|
+
args,
|
|
273
|
+
self.__class__.__name__,
|
|
274
|
+
),
|
|
275
|
+
path_to_item=_path_to_item,
|
|
276
|
+
valid_classes=(self.__class__,),
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
self._data_store = {}
|
|
280
|
+
self._check_type = _check_type
|
|
281
|
+
self._spec_property_naming = _spec_property_naming
|
|
282
|
+
self._path_to_item = _path_to_item
|
|
283
|
+
self._configuration = _configuration
|
|
284
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
285
|
+
|
|
286
|
+
for var_name, var_value in kwargs.items():
|
|
287
|
+
if var_name not in self.attribute_map and \
|
|
288
|
+
self._configuration is not None and \
|
|
289
|
+
self._configuration.discard_unknown_keys and \
|
|
290
|
+
self.additional_properties_type is None:
|
|
291
|
+
# discard variable.
|
|
292
|
+
continue
|
|
293
|
+
setattr(self, var_name, var_value)
|
|
294
|
+
if var_name in self.read_only_vars:
|
|
295
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
296
|
+
f"class with read only attributes.")
|
criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py
CHANGED
|
@@ -64,16 +64,9 @@ class ValueResourceCollectionInputOfRetailMediaSeller(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = False
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -87,7 +80,7 @@ class ValueResourceCollectionInputOfRetailMediaSeller(ModelNormal):
|
|
|
87
80
|
"""
|
|
88
81
|
lazy_import()
|
|
89
82
|
return {
|
|
90
|
-
'data': ([ValueResourceOfRetailMediaSeller],), # noqa: E501
|
|
83
|
+
'data': ([ValueResourceOfRetailMediaSeller], none_type,), # noqa: E501
|
|
91
84
|
}
|
|
92
85
|
|
|
93
86
|
@cached_property
|
|
@@ -140,7 +133,7 @@ class ValueResourceCollectionInputOfRetailMediaSeller(ModelNormal):
|
|
|
140
133
|
Animal class but this time we won't travel
|
|
141
134
|
through its discriminator because we passed in
|
|
142
135
|
_visited_composed_classes = (Animal,)
|
|
143
|
-
data ([ValueResourceOfRetailMediaSeller]): [optional] # noqa: E501
|
|
136
|
+
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
144
137
|
"""
|
|
145
138
|
|
|
146
139
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -226,7 +219,7 @@ class ValueResourceCollectionInputOfRetailMediaSeller(ModelNormal):
|
|
|
226
219
|
Animal class but this time we won't travel
|
|
227
220
|
through its discriminator because we passed in
|
|
228
221
|
_visited_composed_classes = (Animal,)
|
|
229
|
-
data ([ValueResourceOfRetailMediaSeller]): [optional] # noqa: E501
|
|
222
|
+
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
230
223
|
"""
|
|
231
224
|
|
|
232
225
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py
CHANGED
|
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_10.model.
|
|
33
|
+
from criteo_api_retailmedia_v2024_10.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
|
|
34
34
|
from criteo_api_retailmedia_v2024_10.model.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller
|
|
35
|
-
globals()['
|
|
35
|
+
globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
|
|
36
36
|
globals()['ValueResourceOfRetailMediaSeller'] = ValueResourceOfRetailMediaSeller
|
|
37
37
|
|
|
38
38
|
|
|
@@ -66,16 +66,9 @@ class ValueResourceCollectionOutcomeOfRetailMediaSeller(ModelNormal):
|
|
|
66
66
|
validations = {
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
def additional_properties_type():
|
|
71
|
-
"""
|
|
72
|
-
This must be a method because a model may have properties that are
|
|
73
|
-
of type self, this must run after the class is loaded
|
|
74
|
-
"""
|
|
75
|
-
lazy_import()
|
|
76
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
69
|
+
additional_properties_type = None
|
|
77
70
|
|
|
78
|
-
_nullable =
|
|
71
|
+
_nullable = False
|
|
79
72
|
|
|
80
73
|
@cached_property
|
|
81
74
|
def openapi_types():
|
|
@@ -90,8 +83,8 @@ class ValueResourceCollectionOutcomeOfRetailMediaSeller(ModelNormal):
|
|
|
90
83
|
lazy_import()
|
|
91
84
|
return {
|
|
92
85
|
'data': ([ValueResourceOfRetailMediaSeller], none_type,), # noqa: E501
|
|
93
|
-
'warnings': ([
|
|
94
|
-
'errors': ([
|
|
86
|
+
'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
@cached_property
|
|
@@ -149,8 +142,8 @@ class ValueResourceCollectionOutcomeOfRetailMediaSeller(ModelNormal):
|
|
|
149
142
|
through its discriminator because we passed in
|
|
150
143
|
_visited_composed_classes = (Animal,)
|
|
151
144
|
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
152
|
-
warnings ([
|
|
153
|
-
errors ([
|
|
145
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
146
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
154
147
|
"""
|
|
155
148
|
|
|
156
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -237,8 +230,8 @@ class ValueResourceCollectionOutcomeOfRetailMediaSeller(ModelNormal):
|
|
|
237
230
|
through its discriminator because we passed in
|
|
238
231
|
_visited_composed_classes = (Animal,)
|
|
239
232
|
data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
|
|
240
|
-
warnings ([
|
|
241
|
-
errors ([
|
|
233
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
234
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
242
235
|
"""
|
|
243
236
|
|
|
244
237
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py
CHANGED
|
@@ -64,14 +64,7 @@ class ValueResourceInputOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
69
|
_nullable = False
|
|
77
70
|
|
|
@@ -64,16 +64,9 @@ class ValueResourceInputOfRetailMediaBrands(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = False
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -64,16 +64,9 @@ class ValueResourceInputOfRetailMediaSellerAccountCreation(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = False
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py
CHANGED
|
@@ -64,14 +64,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
69
|
_nullable = False
|
|
77
70
|
|
|
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
142
135
|
Animal class but this time we won't travel
|
|
143
136
|
through its discriminator because we passed in
|
|
144
137
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
type (str, none_type): [optional] # noqa: E501
|
|
138
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
146
139
|
attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
|
|
147
140
|
"""
|
|
148
141
|
|
|
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
229
222
|
Animal class but this time we won't travel
|
|
230
223
|
through its discriminator because we passed in
|
|
231
224
|
_visited_composed_classes = (Animal,)
|
|
232
|
-
type (str, none_type): [optional] # noqa: E501
|
|
225
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
233
226
|
attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
|
|
234
227
|
"""
|
|
235
228
|
|
|
@@ -64,14 +64,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
69
|
_nullable = True
|
|
77
70
|
|
|
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
|
|
|
142
135
|
Animal class but this time we won't travel
|
|
143
136
|
through its discriminator because we passed in
|
|
144
137
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
type (str, none_type): [optional] # noqa: E501
|
|
138
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
146
139
|
attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
|
|
147
140
|
"""
|
|
148
141
|
|
|
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
|
|
|
229
222
|
Animal class but this time we won't travel
|
|
230
223
|
through its discriminator because we passed in
|
|
231
224
|
_visited_composed_classes = (Animal,)
|
|
232
|
-
type (str, none_type): [optional] # noqa: E501
|
|
225
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
233
226
|
attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
|
|
234
227
|
"""
|
|
235
228
|
|
|
@@ -64,16 +64,9 @@ class ValueResourceOfRetailMediaSeller(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = False
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaSeller(ModelNormal):
|
|
|
142
135
|
Animal class but this time we won't travel
|
|
143
136
|
through its discriminator because we passed in
|
|
144
137
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
type (str, none_type): [optional] # noqa: E501
|
|
138
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
146
139
|
attributes (ExternalRetailMediaSeller): [optional] # noqa: E501
|
|
147
140
|
"""
|
|
148
141
|
|
|
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaSeller(ModelNormal):
|
|
|
229
222
|
Animal class but this time we won't travel
|
|
230
223
|
through its discriminator because we passed in
|
|
231
224
|
_visited_composed_classes = (Animal,)
|
|
232
|
-
type (str, none_type): [optional] # noqa: E501
|
|
225
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
233
226
|
attributes (ExternalRetailMediaSeller): [optional] # noqa: E501
|
|
234
227
|
"""
|
|
235
228
|
|
criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py
CHANGED
|
@@ -64,16 +64,9 @@ class ValueResourceOfRetailMediaSellerAccountCreation(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
def additional_properties_type():
|
|
69
|
-
"""
|
|
70
|
-
This must be a method because a model may have properties that are
|
|
71
|
-
of type self, this must run after the class is loaded
|
|
72
|
-
"""
|
|
73
|
-
lazy_import()
|
|
74
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
67
|
+
additional_properties_type = None
|
|
75
68
|
|
|
76
|
-
_nullable =
|
|
69
|
+
_nullable = False
|
|
77
70
|
|
|
78
71
|
@cached_property
|
|
79
72
|
def openapi_types():
|
|
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaSellerAccountCreation(ModelNormal):
|
|
|
142
135
|
Animal class but this time we won't travel
|
|
143
136
|
through its discriminator because we passed in
|
|
144
137
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
type (str, none_type): [optional] # noqa: E501
|
|
138
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
146
139
|
attributes (ExternalRetailMediaSellerAccountCreation): [optional] # noqa: E501
|
|
147
140
|
"""
|
|
148
141
|
|
|
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaSellerAccountCreation(ModelNormal):
|
|
|
229
222
|
Animal class but this time we won't travel
|
|
230
223
|
through its discriminator because we passed in
|
|
231
224
|
_visited_composed_classes = (Animal,)
|
|
232
|
-
type (str, none_type): [optional] # noqa: E501
|
|
225
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
233
226
|
attributes (ExternalRetailMediaSellerAccountCreation): [optional] # noqa: E501
|
|
234
227
|
"""
|
|
235
228
|
|