criteo-api-retailmedia-sdk 0.0.240626__py3-none-any.whl → 0.0.240731__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/accounts_api.py +42 -629
- criteo_api_retailmedia_preview/api/audience_api.py +835 -58
- criteo_api_retailmedia_preview/api/balance_api.py +1146 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +165 -158
- 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/add_funds_to_balance_v2.py +277 -0
- criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_seller_account_creation.py → add_funds_to_balance_v2_request.py} +16 -9
- criteo_api_retailmedia_preview/model/application_summary_model_response.py +0 -4
- criteo_api_retailmedia_preview/model/async_accounts_report.py +2 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +2 -0
- criteo_api_retailmedia_preview/model/async_line_items_report.py +2 -0
- criteo_api_retailmedia_preview/model/{insertion_order_history_change_data_capture.py → balance_history_change_data_capture_v1.py} +11 -11
- criteo_api_retailmedia_preview/model/balance_response_v2.py +351 -0
- criteo_api_retailmedia_preview/model/balance_response_v2_response.py +281 -0
- criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +271 -0
- criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_brand_account_creation.py → change_dates_of_balance_v2_request.py} +16 -9
- criteo_api_retailmedia_preview/model/{change_details.py → change_details_v1.py} +3 -3
- criteo_api_retailmedia_preview/model/change_details_v2.py +275 -0
- criteo_api_retailmedia_preview/model/common_problem.py +2 -2
- criteo_api_retailmedia_preview/model/create_balance_v2.py +302 -0
- criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_brands.py → create_balance_v2_request.py} +16 -9
- criteo_api_retailmedia_preview/model/external_catalog_status.py +312 -0
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture_v2.py +303 -0
- criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +285 -0
- criteo_api_retailmedia_preview/model/json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py +279 -0
- criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +8 -6
- criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +8 -6
- criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +8 -6
- criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py +269 -0
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +287 -0
- criteo_api_retailmedia_preview/model/{retail_media_seller.py → nillable_string.py} +14 -12
- criteo_api_retailmedia_preview/model/page_of_balance_history_change_data_capture_v1.py +276 -0
- criteo_api_retailmedia_preview/model/{page_of_insertion_order_history_change_data_capture.py → page_of_insertion_order_history_change_data_capture_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/paged_resource_collection_outcome_of_balance_response_v2.py +287 -0
- criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance_v2.py +277 -0
- criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py +277 -0
- criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py +277 -0
- criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py +277 -0
- criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py +277 -0
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +6 -6
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_update_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +281 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_brand_account_creation.py → rm_audience_segment_create_entity_v1_resource.py} +16 -9
- criteo_api_retailmedia_preview/model/{resource_of_retail_media_account.py → rm_audience_segment_delete_entity_v1_resource.py} +15 -14
- criteo_api_retailmedia_preview/model/{retail_media_account.py → rm_audience_segment_entity_v1.py} +52 -37
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_retail_media_seller.py → rm_audience_segment_entity_v1_list_response.py} +16 -9
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller_account_creation.py → rm_audience_segment_entity_v1_resource.py} +21 -10
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +287 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_list_response.py +281 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller.py → rm_audience_segment_id_entity_v1_resource.py} +18 -13
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +267 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_brands.py → rm_audience_segment_search_entity_v1_resource.py} +16 -9
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_input_v1.py +269 -0
- criteo_api_retailmedia_preview/model/{retail_media_brand_account_creation.py → rm_audience_segment_search_metadata_v1.py} +22 -16
- criteo_api_retailmedia_preview/model/{retail_media_seller_account_creation.py → rm_audience_segment_update_entity_v1.py} +23 -16
- criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/{retail_media_brands.py → rm_contact_list_create_v1.py} +21 -8
- criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +271 -0
- criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_resource.py +277 -0
- criteo_api_retailmedia_preview/model/{resource_outcome_of_retail_media_account.py → rm_contact_list_statistics_entity_v1_response.py} +16 -9
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +275 -0
- criteo_api_retailmedia_preview/model/seller_catalog_request.py +269 -0
- criteo_api_retailmedia_preview/model/seller_identifier.py +275 -0
- criteo_api_retailmedia_preview/model/sku_data_preview.py +8 -6
- criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +8 -6
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +2 -0
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +2 -0
- criteo_api_retailmedia_preview/model/update_balance_model_v2.py +279 -0
- criteo_api_retailmedia_preview/model/{value_resource_collection_input_of_retail_media_seller.py → update_balance_model_v2_request.py} +16 -9
- criteo_api_retailmedia_preview/models/__init__.py +53 -19
- {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240731.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240731.dist-info}/RECORD +79 -44
- {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240731.dist-info}/WHEEL +1 -1
- {criteo_api_retailmedia_sdk-0.0.240626.dist-info → criteo_api_retailmedia_sdk-0.0.240731.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
15
|
+
ApiTypeError,
|
|
16
|
+
ModelComposed,
|
|
17
|
+
ModelNormal,
|
|
18
|
+
ModelSimple,
|
|
19
|
+
cached_property,
|
|
20
|
+
change_keys_js_to_python,
|
|
21
|
+
convert_js_args_to_python_args,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_get_composed_info,
|
|
27
|
+
OpenApiModel
|
|
28
|
+
)
|
|
29
|
+
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.rm_contact_list_create_v1 import RmContactListCreateV1
|
|
34
|
+
globals()['RmContactListCreateV1'] = RmContactListCreateV1
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class RmAudienceSegmentCreateEntityV1(ModelNormal):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
45
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
46
|
+
with a capitalized key describing the allowed value and an allowed
|
|
47
|
+
value. These dicts store the allowed enum values.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
51
|
+
variable value to the discriminator class name.
|
|
52
|
+
validations (dict): The key is the tuple path to the attribute
|
|
53
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
54
|
+
that stores validations for max_length, min_length, max_items,
|
|
55
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
56
|
+
inclusive_minimum, and regex.
|
|
57
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
58
|
+
as additional properties values.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
allowed_values = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validations = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
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
|
|
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
|
+
lazy_import()
|
|
89
|
+
return {
|
|
90
|
+
'name': (str, none_type,), # noqa: E501
|
|
91
|
+
'description': (str, none_type,), # noqa: E501
|
|
92
|
+
'retailer_id': (str, none_type,), # noqa: E501
|
|
93
|
+
'contact_list': (RmContactListCreateV1,), # noqa: E501
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@cached_property
|
|
97
|
+
def discriminator():
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
attribute_map = {
|
|
102
|
+
'name': 'name', # noqa: E501
|
|
103
|
+
'description': 'description', # noqa: E501
|
|
104
|
+
'retailer_id': 'retailerId', # noqa: E501
|
|
105
|
+
'contact_list': 'contactList', # noqa: E501
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
read_only_vars = {
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
_composed_schemas = {}
|
|
112
|
+
|
|
113
|
+
@classmethod
|
|
114
|
+
@convert_js_args_to_python_args
|
|
115
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
116
|
+
"""RmAudienceSegmentCreateEntityV1 - a model defined in OpenAPI
|
|
117
|
+
|
|
118
|
+
Keyword Args:
|
|
119
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
120
|
+
will be type checked and a TypeError will be
|
|
121
|
+
raised if the wrong type is input.
|
|
122
|
+
Defaults to True
|
|
123
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
124
|
+
drill down to the model in received_data
|
|
125
|
+
when deserializing a response
|
|
126
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
127
|
+
are serialized names, as specified in the OpenAPI document.
|
|
128
|
+
False if the variable names in the input data
|
|
129
|
+
are pythonic names, e.g. snake case (default)
|
|
130
|
+
_configuration (Configuration): the instance to use when
|
|
131
|
+
deserializing a file_type parameter.
|
|
132
|
+
If passed, type conversion is attempted
|
|
133
|
+
If omitted no type conversion is done.
|
|
134
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
135
|
+
classes that we have traveled through so that
|
|
136
|
+
if we see that class again we will not use its
|
|
137
|
+
discriminator again.
|
|
138
|
+
When traveling through a discriminator, the
|
|
139
|
+
composed schema that is
|
|
140
|
+
is traveled through is added to this set.
|
|
141
|
+
For example if Animal has a discriminator
|
|
142
|
+
petType and we pass in "Dog", and the class Dog
|
|
143
|
+
allOf includes Animal, we move through Animal
|
|
144
|
+
once using the discriminator, and pick Dog.
|
|
145
|
+
Then in Dog, we will make an instance of the
|
|
146
|
+
Animal class but this time we won't travel
|
|
147
|
+
through its discriminator because we passed in
|
|
148
|
+
_visited_composed_classes = (Animal,)
|
|
149
|
+
name (str, none_type): Name of the segment. [optional] # noqa: E501
|
|
150
|
+
description (str, none_type): Description of the segment. [optional] # noqa: E501
|
|
151
|
+
retailer_id (str, none_type): Retailer associated to the segment. [optional] # noqa: E501
|
|
152
|
+
contact_list (RmContactListCreateV1): [optional] # noqa: E501
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
156
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
157
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
158
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
159
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
160
|
+
|
|
161
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
162
|
+
|
|
163
|
+
if args:
|
|
164
|
+
for arg in args:
|
|
165
|
+
if isinstance(arg, dict):
|
|
166
|
+
kwargs.update(arg)
|
|
167
|
+
else:
|
|
168
|
+
raise ApiTypeError(
|
|
169
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
170
|
+
args,
|
|
171
|
+
self.__class__.__name__,
|
|
172
|
+
),
|
|
173
|
+
path_to_item=_path_to_item,
|
|
174
|
+
valid_classes=(self.__class__,),
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
self._data_store = {}
|
|
178
|
+
self._check_type = _check_type
|
|
179
|
+
self._spec_property_naming = _spec_property_naming
|
|
180
|
+
self._path_to_item = _path_to_item
|
|
181
|
+
self._configuration = _configuration
|
|
182
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
183
|
+
|
|
184
|
+
for var_name, var_value in kwargs.items():
|
|
185
|
+
if var_name not in self.attribute_map and \
|
|
186
|
+
self._configuration is not None and \
|
|
187
|
+
self._configuration.discard_unknown_keys and \
|
|
188
|
+
self.additional_properties_type is None:
|
|
189
|
+
# discard variable.
|
|
190
|
+
continue
|
|
191
|
+
setattr(self, var_name, var_value)
|
|
192
|
+
return self
|
|
193
|
+
|
|
194
|
+
required_properties = set([
|
|
195
|
+
'_data_store',
|
|
196
|
+
'_check_type',
|
|
197
|
+
'_spec_property_naming',
|
|
198
|
+
'_path_to_item',
|
|
199
|
+
'_configuration',
|
|
200
|
+
'_visited_composed_classes',
|
|
201
|
+
])
|
|
202
|
+
|
|
203
|
+
@convert_js_args_to_python_args
|
|
204
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
205
|
+
"""RmAudienceSegmentCreateEntityV1 - a model defined in OpenAPI
|
|
206
|
+
|
|
207
|
+
Keyword Args:
|
|
208
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
209
|
+
will be type checked and a TypeError will be
|
|
210
|
+
raised if the wrong type is input.
|
|
211
|
+
Defaults to True
|
|
212
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
213
|
+
drill down to the model in received_data
|
|
214
|
+
when deserializing a response
|
|
215
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
216
|
+
are serialized names, as specified in the OpenAPI document.
|
|
217
|
+
False if the variable names in the input data
|
|
218
|
+
are pythonic names, e.g. snake case (default)
|
|
219
|
+
_configuration (Configuration): the instance to use when
|
|
220
|
+
deserializing a file_type parameter.
|
|
221
|
+
If passed, type conversion is attempted
|
|
222
|
+
If omitted no type conversion is done.
|
|
223
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
224
|
+
classes that we have traveled through so that
|
|
225
|
+
if we see that class again we will not use its
|
|
226
|
+
discriminator again.
|
|
227
|
+
When traveling through a discriminator, the
|
|
228
|
+
composed schema that is
|
|
229
|
+
is traveled through is added to this set.
|
|
230
|
+
For example if Animal has a discriminator
|
|
231
|
+
petType and we pass in "Dog", and the class Dog
|
|
232
|
+
allOf includes Animal, we move through Animal
|
|
233
|
+
once using the discriminator, and pick Dog.
|
|
234
|
+
Then in Dog, we will make an instance of the
|
|
235
|
+
Animal class but this time we won't travel
|
|
236
|
+
through its discriminator because we passed in
|
|
237
|
+
_visited_composed_classes = (Animal,)
|
|
238
|
+
name (str, none_type): Name of the segment. [optional] # noqa: E501
|
|
239
|
+
description (str, none_type): Description of the segment. [optional] # noqa: E501
|
|
240
|
+
retailer_id (str, none_type): Retailer associated to the segment. [optional] # noqa: E501
|
|
241
|
+
contact_list (RmContactListCreateV1): [optional] # noqa: E501
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
245
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
246
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
247
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
248
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
249
|
+
|
|
250
|
+
if args:
|
|
251
|
+
for arg in args:
|
|
252
|
+
if isinstance(arg, dict):
|
|
253
|
+
kwargs.update(arg)
|
|
254
|
+
else:
|
|
255
|
+
raise ApiTypeError(
|
|
256
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
257
|
+
args,
|
|
258
|
+
self.__class__.__name__,
|
|
259
|
+
),
|
|
260
|
+
path_to_item=_path_to_item,
|
|
261
|
+
valid_classes=(self.__class__,),
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
self._data_store = {}
|
|
265
|
+
self._check_type = _check_type
|
|
266
|
+
self._spec_property_naming = _spec_property_naming
|
|
267
|
+
self._path_to_item = _path_to_item
|
|
268
|
+
self._configuration = _configuration
|
|
269
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
270
|
+
|
|
271
|
+
for var_name, var_value in kwargs.items():
|
|
272
|
+
if var_name not in self.attribute_map and \
|
|
273
|
+
self._configuration is not None and \
|
|
274
|
+
self._configuration.discard_unknown_keys and \
|
|
275
|
+
self.additional_properties_type is None:
|
|
276
|
+
# discard variable.
|
|
277
|
+
continue
|
|
278
|
+
setattr(self, var_name, var_value)
|
|
279
|
+
if var_name in self.read_only_vars:
|
|
280
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
281
|
+
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.rm_audience_segment_create_entity_v1 import RmAudienceSegmentCreateEntityV1
|
|
34
|
+
globals()['RmAudienceSegmentCreateEntityV1'] = RmAudienceSegmentCreateEntityV1
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class RmAudienceSegmentCreateEntityV1Resource(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -64,7 +64,14 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
64
64
|
validations = {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
@cached_property
|
|
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
|
|
68
75
|
|
|
69
76
|
_nullable = False
|
|
70
77
|
|
|
@@ -81,7 +88,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
81
88
|
lazy_import()
|
|
82
89
|
return {
|
|
83
90
|
'type': (str, none_type,), # noqa: E501
|
|
84
|
-
'attributes': (
|
|
91
|
+
'attributes': (RmAudienceSegmentCreateEntityV1,), # noqa: E501
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
@cached_property
|
|
@@ -102,7 +109,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
102
109
|
@classmethod
|
|
103
110
|
@convert_js_args_to_python_args
|
|
104
111
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
105
|
-
"""
|
|
112
|
+
"""RmAudienceSegmentCreateEntityV1Resource - a model defined in OpenAPI
|
|
106
113
|
|
|
107
114
|
Keyword Args:
|
|
108
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -136,7 +143,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
136
143
|
through its discriminator because we passed in
|
|
137
144
|
_visited_composed_classes = (Animal,)
|
|
138
145
|
type (str, none_type): [optional] # noqa: E501
|
|
139
|
-
attributes (
|
|
146
|
+
attributes (RmAudienceSegmentCreateEntityV1): [optional] # noqa: E501
|
|
140
147
|
"""
|
|
141
148
|
|
|
142
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -189,7 +196,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
189
196
|
|
|
190
197
|
@convert_js_args_to_python_args
|
|
191
198
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
192
|
-
"""
|
|
199
|
+
"""RmAudienceSegmentCreateEntityV1Resource - a model defined in OpenAPI
|
|
193
200
|
|
|
194
201
|
Keyword Args:
|
|
195
202
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -223,7 +230,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
|
|
|
223
230
|
through its discriminator because we passed in
|
|
224
231
|
_visited_composed_classes = (Animal,)
|
|
225
232
|
type (str, none_type): [optional] # noqa: E501
|
|
226
|
-
attributes (
|
|
233
|
+
attributes (RmAudienceSegmentCreateEntityV1): [optional] # noqa: E501
|
|
227
234
|
"""
|
|
228
235
|
|
|
229
236
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -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_account import RetailMediaAccount
|
|
34
|
-
globals()['RetailMediaAccount'] = RetailMediaAccount
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
class ResourceOfRetailMediaAccount(ModelNormal):
|
|
33
|
+
class RmAudienceSegmentDeleteEntityV1Resource(ModelNormal):
|
|
38
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
35
|
Ref: https://openapi-generator.tech
|
|
40
36
|
|
|
@@ -64,7 +60,13 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
64
60
|
validations = {
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
|
|
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
|
|
68
70
|
|
|
69
71
|
_nullable = False
|
|
70
72
|
|
|
@@ -78,9 +80,8 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
78
80
|
openapi_types (dict): The key is attribute name
|
|
79
81
|
and the value is attribute type.
|
|
80
82
|
"""
|
|
81
|
-
lazy_import()
|
|
82
83
|
return {
|
|
83
|
-
'attributes': (
|
|
84
|
+
'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501
|
|
84
85
|
'id': (str, none_type,), # noqa: E501
|
|
85
86
|
'type': (str, none_type,), # noqa: E501
|
|
86
87
|
}
|
|
@@ -104,7 +105,7 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
104
105
|
@classmethod
|
|
105
106
|
@convert_js_args_to_python_args
|
|
106
107
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
107
|
-
"""
|
|
108
|
+
"""RmAudienceSegmentDeleteEntityV1Resource - a model defined in OpenAPI
|
|
108
109
|
|
|
109
110
|
Keyword Args:
|
|
110
111
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -137,8 +138,8 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
137
138
|
Animal class but this time we won't travel
|
|
138
139
|
through its discriminator because we passed in
|
|
139
140
|
_visited_composed_classes = (Animal,)
|
|
140
|
-
attributes (
|
|
141
|
-
id (str, none_type):
|
|
141
|
+
attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Segment to delete. [optional] # noqa: E501
|
|
142
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
142
143
|
type (str, none_type): [optional] # noqa: E501
|
|
143
144
|
"""
|
|
144
145
|
|
|
@@ -192,7 +193,7 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
192
193
|
|
|
193
194
|
@convert_js_args_to_python_args
|
|
194
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
195
|
-
"""
|
|
196
|
+
"""RmAudienceSegmentDeleteEntityV1Resource - a model defined in OpenAPI
|
|
196
197
|
|
|
197
198
|
Keyword Args:
|
|
198
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -225,8 +226,8 @@ class ResourceOfRetailMediaAccount(ModelNormal):
|
|
|
225
226
|
Animal class but this time we won't travel
|
|
226
227
|
through its discriminator because we passed in
|
|
227
228
|
_visited_composed_classes = (Animal,)
|
|
228
|
-
attributes (
|
|
229
|
-
id (str, none_type):
|
|
229
|
+
attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Segment to delete. [optional] # noqa: E501
|
|
230
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
230
231
|
type (str, none_type): [optional] # noqa: E501
|
|
231
232
|
"""
|
|
232
233
|
|
criteo_api_retailmedia_preview/model/{retail_media_account.py → rm_audience_segment_entity_v1.py}
RENAMED
|
@@ -29,8 +29,12 @@ 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.rm_contact_list_v1 import RmContactListV1
|
|
34
|
+
globals()['RmContactListV1'] = RmContactListV1
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
class RmAudienceSegmentEntityV1(ModelNormal):
|
|
34
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
39
|
Ref: https://openapi-generator.tech
|
|
36
40
|
|
|
@@ -58,21 +62,27 @@ class RetailMediaAccount(ModelNormal):
|
|
|
58
62
|
('type',): {
|
|
59
63
|
'None': None,
|
|
60
64
|
'UNKNOWN': "Unknown",
|
|
61
|
-
'
|
|
62
|
-
'DEMAND': "Demand",
|
|
65
|
+
'CONTACTLIST': "ContactList",
|
|
63
66
|
},
|
|
64
|
-
('
|
|
67
|
+
('channels',): {
|
|
65
68
|
'None': None,
|
|
66
69
|
'UNKNOWN': "Unknown",
|
|
67
|
-
'
|
|
68
|
-
'
|
|
70
|
+
'ONSITE': "Onsite",
|
|
71
|
+
'OFFSITE': "Offsite",
|
|
69
72
|
},
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
validations = {
|
|
73
76
|
}
|
|
74
77
|
|
|
75
|
-
|
|
78
|
+
@cached_property
|
|
79
|
+
def additional_properties_type():
|
|
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
|
+
lazy_import()
|
|
85
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
76
86
|
|
|
77
87
|
_nullable = False
|
|
78
88
|
|
|
@@ -86,15 +96,17 @@ class RetailMediaAccount(ModelNormal):
|
|
|
86
96
|
openapi_types (dict): The key is attribute name
|
|
87
97
|
and the value is attribute type.
|
|
88
98
|
"""
|
|
99
|
+
lazy_import()
|
|
89
100
|
return {
|
|
101
|
+
'account_id': (str, none_type,), # noqa: E501
|
|
90
102
|
'name': (str, none_type,), # noqa: E501
|
|
91
|
-
'
|
|
103
|
+
'description': (str, none_type,), # noqa: E501
|
|
104
|
+
'retailer_id': (str, none_type,), # noqa: E501
|
|
92
105
|
'type': (str, none_type,), # noqa: E501
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'time_zone': (str, none_type,), # noqa: E501
|
|
106
|
+
'created_at': (datetime, none_type,), # noqa: E501
|
|
107
|
+
'updated_at': (datetime, none_type,), # noqa: E501
|
|
108
|
+
'contact_list': (RmContactListV1,), # noqa: E501
|
|
109
|
+
'channels': ([str], none_type,), # noqa: E501
|
|
98
110
|
}
|
|
99
111
|
|
|
100
112
|
@cached_property
|
|
@@ -103,14 +115,15 @@ class RetailMediaAccount(ModelNormal):
|
|
|
103
115
|
|
|
104
116
|
|
|
105
117
|
attribute_map = {
|
|
118
|
+
'account_id': 'accountId', # noqa: E501
|
|
106
119
|
'name': 'name', # noqa: E501
|
|
107
|
-
'
|
|
120
|
+
'description': 'description', # noqa: E501
|
|
121
|
+
'retailer_id': 'retailerId', # noqa: E501
|
|
108
122
|
'type': 'type', # noqa: E501
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'time_zone': 'timeZone', # noqa: E501
|
|
123
|
+
'created_at': 'createdAt', # noqa: E501
|
|
124
|
+
'updated_at': 'updatedAt', # noqa: E501
|
|
125
|
+
'contact_list': 'contactList', # noqa: E501
|
|
126
|
+
'channels': 'channels', # noqa: E501
|
|
114
127
|
}
|
|
115
128
|
|
|
116
129
|
read_only_vars = {
|
|
@@ -121,7 +134,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
121
134
|
@classmethod
|
|
122
135
|
@convert_js_args_to_python_args
|
|
123
136
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
124
|
-
"""
|
|
137
|
+
"""RmAudienceSegmentEntityV1 - a model defined in OpenAPI
|
|
125
138
|
|
|
126
139
|
Keyword Args:
|
|
127
140
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -154,14 +167,15 @@ class RetailMediaAccount(ModelNormal):
|
|
|
154
167
|
Animal class but this time we won't travel
|
|
155
168
|
through its discriminator because we passed in
|
|
156
169
|
_visited_composed_classes = (Animal,)
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
account_id (str, none_type): Account associated to the segment. [optional] # noqa: E501
|
|
171
|
+
name (str, none_type): Name of the segment. [optional] # noqa: E501
|
|
172
|
+
description (str, none_type): Description of the segment. [optional] # noqa: E501
|
|
173
|
+
retailer_id (str, none_type): Retailer associated to the segment. [optional] # noqa: E501
|
|
174
|
+
type (str, none_type): Type of segment (read-only). [optional] # noqa: E501
|
|
175
|
+
created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501
|
|
176
|
+
updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501
|
|
177
|
+
contact_list (RmContactListV1): [optional] # noqa: E501
|
|
178
|
+
channels ([str], none_type): Channels associated to the segment (read-only). [optional] # noqa: E501
|
|
165
179
|
"""
|
|
166
180
|
|
|
167
181
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -214,7 +228,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
214
228
|
|
|
215
229
|
@convert_js_args_to_python_args
|
|
216
230
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
217
|
-
"""
|
|
231
|
+
"""RmAudienceSegmentEntityV1 - a model defined in OpenAPI
|
|
218
232
|
|
|
219
233
|
Keyword Args:
|
|
220
234
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -247,14 +261,15 @@ class RetailMediaAccount(ModelNormal):
|
|
|
247
261
|
Animal class but this time we won't travel
|
|
248
262
|
through its discriminator because we passed in
|
|
249
263
|
_visited_composed_classes = (Animal,)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
264
|
+
account_id (str, none_type): Account associated to the segment. [optional] # noqa: E501
|
|
265
|
+
name (str, none_type): Name of the segment. [optional] # noqa: E501
|
|
266
|
+
description (str, none_type): Description of the segment. [optional] # noqa: E501
|
|
267
|
+
retailer_id (str, none_type): Retailer associated to the segment. [optional] # noqa: E501
|
|
268
|
+
type (str, none_type): Type of segment (read-only). [optional] # noqa: E501
|
|
269
|
+
created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501
|
|
270
|
+
updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501
|
|
271
|
+
contact_list (RmContactListV1): [optional] # noqa: E501
|
|
272
|
+
channels ([str], none_type): Channels associated to the segment (read-only). [optional] # noqa: E501
|
|
258
273
|
"""
|
|
259
274
|
|
|
260
275
|
_check_type = kwargs.pop('_check_type', True)
|