criteo-api-retailmedia-sdk 0.0.240808__py3-none-any.whl → 0.0.250129__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 +45 -198
- criteo_api_retailmedia_preview/api/analytics_api.py +3 -3
- criteo_api_retailmedia_preview/api/audience_api.py +89 -232
- criteo_api_retailmedia_preview/api/balance_api.py +0 -159
- criteo_api_retailmedia_preview/api/campaign_api.py +246 -1604
- criteo_api_retailmedia_preview/api/catalog_api.py +161 -0
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +186 -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/async_accounts_report.py +40 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +40 -0
- criteo_api_retailmedia_preview/model/async_line_items_report.py +40 -0
- criteo_api_retailmedia_preview/model/balance_response_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/{creative_v2_response.py → bot_message.py} +17 -21
- criteo_api_retailmedia_preview/model/botmessage.py +329 -0
- criteo_api_retailmedia_preview/model/brand_id_search_request.py +271 -0
- criteo_api_retailmedia_preview/model/{external_retailer.py → brand_id_search_result.py} +26 -26
- criteo_api_retailmedia_preview/model/category.py +3 -3
- criteo_api_retailmedia_preview/model/change_details_v1.py +8 -18
- criteo_api_retailmedia_preview/model/{external_choice_variable_value.py → choice_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/{external_color_variable_value.py → color_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/{sku_search_request.py → cpc_min_bids_request.py} +11 -16
- criteo_api_retailmedia_preview/model/{page_of_insertion_order_history_change_data_capture_v2.py → cpc_min_bids_response.py} +19 -21
- criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +6 -6
- criteo_api_retailmedia_preview/model/{external_creative_v2.py → creative2.py} +23 -30
- criteo_api_retailmedia_preview/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_collection_outcome_of_sku_search_result.py → creative2_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{external_creative_create_model_v2.py → creative_create_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{external_creative_update_model_v2.py → creative_update_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{resource_of_retail_media_account.py → entity_resource_brand_id_search_result.py} +13 -13
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_campaign_budget_overrides.py → entity_resource_collection_outcome_brand_id_search_result.py} +16 -16
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_list_response.py → entity_resource_collection_outcome_of_retail_media_child_account.py} +15 -9
- criteo_api_retailmedia_preview/model/{resource_of_add_funds_to_balance_v2.py → entity_resource_of_retail_media_child_account.py} +14 -14
- criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/{external_account.py → external_retail_media_child_account.py} +39 -56
- criteo_api_retailmedia_preview/model/{external_files_variable_value.py → files_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/http_validation_error.py +269 -0
- criteo_api_retailmedia_preview/model/{external_hyperlink_variable_value.py → hyperlink_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/inbot_discussion.py +272 -0
- criteo_api_retailmedia_preview/model/{external_brand.py → inbot_discussion_body_model.py} +17 -15
- criteo_api_retailmedia_preview/model/inbot_discussion_data_instance_model.py +279 -0
- criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/{external_text_variable_value.py → location_inner.py} +3 -7
- criteo_api_retailmedia_preview/model/message.py +273 -0
- criteo_api_retailmedia_preview/model/message_body_model.py +275 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_retailer_and_retailer.py → message_data_instance_model.py} +16 -22
- criteo_api_retailmedia_preview/model/message_error.py +275 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → offset_page_metadata.py} +21 -17
- criteo_api_retailmedia_preview/model/{resource_of_sku_search_result.py → outcome.py} +15 -17
- criteo_api_retailmedia_preview/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
- criteo_api_retailmedia_preview/model/placement_preview.py +4 -0
- criteo_api_retailmedia_preview/model/product.py +4 -0
- criteo_api_retailmedia_preview/model/product_recommendation.py +305 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_account_and_account.py → report_detail_warning.py} +21 -21
- criteo_api_retailmedia_preview/model/report_detail_warnings.py +281 -0
- criteo_api_retailmedia_preview/model/report_ok_response.py +31 -17
- criteo_api_retailmedia_preview/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
- criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +1 -1
- criteo_api_retailmedia_preview/model/retail_media_seller.py +4 -0
- criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +275 -0
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_resource.py → rm_audience_entity_v1.py} +45 -24
- criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_resource.py → rm_audience_entity_v1_resource.py} +8 -8
- criteo_api_retailmedia_preview/model/{creative_v2_list_response.py → rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py} +14 -8
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +271 -0
- criteo_api_retailmedia_preview/model/{resource_of_creative_v2.py → rm_audience_search_entity_v1_resource.py} +11 -15
- criteo_api_retailmedia_preview/model/{add_funds_to_balance_v2_request.py → rm_audience_search_input_v1.py} +8 -8
- criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +271 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +17 -9
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +7 -7
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +5 -5
- criteo_api_retailmedia_preview/model/{rm_user_behavior_v1.py → rm_events_v1.py} +3 -3
- criteo_api_retailmedia_preview/model/{retail_media_account.py → sdk_api_rest_common_problem.py} +41 -42
- criteo_api_retailmedia_preview/model/seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/{sku_search_request_body.py → seller_search.py} +18 -25
- criteo_api_retailmedia_preview/model/sku_data_preview.py +27 -27
- criteo_api_retailmedia_preview/model/sku_min_bid.py +269 -0
- criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +9 -13
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +4 -0
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +1 -11
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +1 -11
- criteo_api_retailmedia_preview/model/{external_template_variable_value.py → template_variable_value.py} +36 -43
- criteo_api_retailmedia_preview/model/text_variable_value.py +257 -0
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_brand_and_brand.py → validation_error.py} +19 -17
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller_account_creation.py → value_resource_brand_id_search_request.py} +10 -10
- criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_of_campaign_budget_overrides.py → value_resource_cpc_min_bids_request.py} +10 -10
- criteo_api_retailmedia_preview/model/{value_resource_of_line_item_budget_overrides.py → value_resource_cpc_min_bids_response.py} +10 -10
- criteo_api_retailmedia_preview/model/{value_resource_input_of_line_item_budget_overrides.py → value_resource_input_brand_id_search_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_collection_input_of_retail_media_seller.py → value_resource_input_cpc_min_bids_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_input_of_campaign_budget_overrides.py → value_resource_input_of_seller_search.py} +8 -8
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +2 -2
- criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_outcome_of_line_item_budget_overrides.py → value_resource_outcome_cpc_min_bids_response.py} +16 -16
- criteo_api_retailmedia_preview/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/models/__init__.py +60 -69
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/METADATA +14 -5
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/RECORD +105 -113
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/add_funds_to_balance_v2.py +0 -277
- criteo_api_retailmedia_preview/model/approval_status_model.py +0 -292
- criteo_api_retailmedia_preview/model/campaign_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py +0 -283
- criteo_api_retailmedia_preview/model/change_details_v2.py +0 -275
- criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py +0 -281
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture_v2.py +0 -303
- criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +0 -295
- criteo_api_retailmedia_preview/model/line_item_budget_overrides.py +0 -276
- criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py +0 -283
- criteo_api_retailmedia_preview/model/negotiation_state_model.py +0 -293
- criteo_api_retailmedia_preview/model/proposal_status_model.py +0 -284
- criteo_api_retailmedia_preview/model/proposal_status_model_response.py +0 -274
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +0 -270
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +0 -291
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +0 -291
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py +0 -279
- criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py +0 -306
- criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py +0 -311
- criteo_api_retailmedia_preview/model/sku_search_result.py +0 -313
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +0 -262
- {criteo_api_retailmedia_sdk-0.0.240808.dist-info → criteo_api_retailmedia_sdk-0.0.250129.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
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 RmAlgebraNodeV1(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
|
+
'_and': ([RmAlgebraNodeV1], none_type,), # noqa: E501
|
|
85
|
+
'_or': ([RmAlgebraNodeV1], none_type,), # noqa: E501
|
|
86
|
+
'_not': (RmAlgebraNodeV1,), # noqa: E501
|
|
87
|
+
'audience_segment_id': (str, none_type,), # noqa: E501
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@cached_property
|
|
91
|
+
def discriminator():
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
attribute_map = {
|
|
96
|
+
'_and': 'and', # noqa: E501
|
|
97
|
+
'_or': 'or', # noqa: E501
|
|
98
|
+
'_not': 'not', # noqa: E501
|
|
99
|
+
'audience_segment_id': 'audienceSegmentId', # noqa: E501
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
read_only_vars = {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
_composed_schemas = {}
|
|
106
|
+
|
|
107
|
+
@classmethod
|
|
108
|
+
@convert_js_args_to_python_args
|
|
109
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
+
"""RmAlgebraNodeV1 - a model defined in OpenAPI
|
|
111
|
+
|
|
112
|
+
Keyword Args:
|
|
113
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
114
|
+
will be type checked and a TypeError will be
|
|
115
|
+
raised if the wrong type is input.
|
|
116
|
+
Defaults to True
|
|
117
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
118
|
+
drill down to the model in received_data
|
|
119
|
+
when deserializing a response
|
|
120
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
121
|
+
are serialized names, as specified in the OpenAPI document.
|
|
122
|
+
False if the variable names in the input data
|
|
123
|
+
are pythonic names, e.g. snake case (default)
|
|
124
|
+
_configuration (Configuration): the instance to use when
|
|
125
|
+
deserializing a file_type parameter.
|
|
126
|
+
If passed, type conversion is attempted
|
|
127
|
+
If omitted no type conversion is done.
|
|
128
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
129
|
+
classes that we have traveled through so that
|
|
130
|
+
if we see that class again we will not use its
|
|
131
|
+
discriminator again.
|
|
132
|
+
When traveling through a discriminator, the
|
|
133
|
+
composed schema that is
|
|
134
|
+
is traveled through is added to this set.
|
|
135
|
+
For example if Animal has a discriminator
|
|
136
|
+
petType and we pass in "Dog", and the class Dog
|
|
137
|
+
allOf includes Animal, we move through Animal
|
|
138
|
+
once using the discriminator, and pick Dog.
|
|
139
|
+
Then in Dog, we will make an instance of the
|
|
140
|
+
Animal class but this time we won't travel
|
|
141
|
+
through its discriminator because we passed in
|
|
142
|
+
_visited_composed_classes = (Animal,)
|
|
143
|
+
_and ([RmAlgebraNodeV1], none_type): [optional] # noqa: E501
|
|
144
|
+
_or ([RmAlgebraNodeV1], none_type): [optional] # noqa: E501
|
|
145
|
+
_not (RmAlgebraNodeV1): [optional] # noqa: E501
|
|
146
|
+
audience_segment_id (str, none_type): [optional] # noqa: E501
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
150
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
151
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
152
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
153
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
154
|
+
|
|
155
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
156
|
+
|
|
157
|
+
if args:
|
|
158
|
+
for arg in args:
|
|
159
|
+
if isinstance(arg, dict):
|
|
160
|
+
kwargs.update(arg)
|
|
161
|
+
else:
|
|
162
|
+
raise ApiTypeError(
|
|
163
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
164
|
+
args,
|
|
165
|
+
self.__class__.__name__,
|
|
166
|
+
),
|
|
167
|
+
path_to_item=_path_to_item,
|
|
168
|
+
valid_classes=(self.__class__,),
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
self._data_store = {}
|
|
172
|
+
self._check_type = _check_type
|
|
173
|
+
self._spec_property_naming = _spec_property_naming
|
|
174
|
+
self._path_to_item = _path_to_item
|
|
175
|
+
self._configuration = _configuration
|
|
176
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
177
|
+
|
|
178
|
+
for var_name, var_value in kwargs.items():
|
|
179
|
+
if var_name not in self.attribute_map and \
|
|
180
|
+
self._configuration is not None and \
|
|
181
|
+
self._configuration.discard_unknown_keys and \
|
|
182
|
+
self.additional_properties_type is None:
|
|
183
|
+
# discard variable.
|
|
184
|
+
continue
|
|
185
|
+
setattr(self, var_name, var_value)
|
|
186
|
+
return self
|
|
187
|
+
|
|
188
|
+
required_properties = set([
|
|
189
|
+
'_data_store',
|
|
190
|
+
'_check_type',
|
|
191
|
+
'_spec_property_naming',
|
|
192
|
+
'_path_to_item',
|
|
193
|
+
'_configuration',
|
|
194
|
+
'_visited_composed_classes',
|
|
195
|
+
])
|
|
196
|
+
|
|
197
|
+
@convert_js_args_to_python_args
|
|
198
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""RmAlgebraNodeV1 - a model defined in OpenAPI
|
|
200
|
+
|
|
201
|
+
Keyword Args:
|
|
202
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
203
|
+
will be type checked and a TypeError will be
|
|
204
|
+
raised if the wrong type is input.
|
|
205
|
+
Defaults to True
|
|
206
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
207
|
+
drill down to the model in received_data
|
|
208
|
+
when deserializing a response
|
|
209
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
210
|
+
are serialized names, as specified in the OpenAPI document.
|
|
211
|
+
False if the variable names in the input data
|
|
212
|
+
are pythonic names, e.g. snake case (default)
|
|
213
|
+
_configuration (Configuration): the instance to use when
|
|
214
|
+
deserializing a file_type parameter.
|
|
215
|
+
If passed, type conversion is attempted
|
|
216
|
+
If omitted no type conversion is done.
|
|
217
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
218
|
+
classes that we have traveled through so that
|
|
219
|
+
if we see that class again we will not use its
|
|
220
|
+
discriminator again.
|
|
221
|
+
When traveling through a discriminator, the
|
|
222
|
+
composed schema that is
|
|
223
|
+
is traveled through is added to this set.
|
|
224
|
+
For example if Animal has a discriminator
|
|
225
|
+
petType and we pass in "Dog", and the class Dog
|
|
226
|
+
allOf includes Animal, we move through Animal
|
|
227
|
+
once using the discriminator, and pick Dog.
|
|
228
|
+
Then in Dog, we will make an instance of the
|
|
229
|
+
Animal class but this time we won't travel
|
|
230
|
+
through its discriminator because we passed in
|
|
231
|
+
_visited_composed_classes = (Animal,)
|
|
232
|
+
_and ([RmAlgebraNodeV1], none_type): [optional] # noqa: E501
|
|
233
|
+
_or ([RmAlgebraNodeV1], none_type): [optional] # noqa: E501
|
|
234
|
+
_not (RmAlgebraNodeV1): [optional] # noqa: E501
|
|
235
|
+
audience_segment_id (str, none_type): [optional] # noqa: E501
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
239
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
240
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
241
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
242
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
243
|
+
|
|
244
|
+
if args:
|
|
245
|
+
for arg in args:
|
|
246
|
+
if isinstance(arg, dict):
|
|
247
|
+
kwargs.update(arg)
|
|
248
|
+
else:
|
|
249
|
+
raise ApiTypeError(
|
|
250
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
251
|
+
args,
|
|
252
|
+
self.__class__.__name__,
|
|
253
|
+
),
|
|
254
|
+
path_to_item=_path_to_item,
|
|
255
|
+
valid_classes=(self.__class__,),
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
self._data_store = {}
|
|
259
|
+
self._check_type = _check_type
|
|
260
|
+
self._spec_property_naming = _spec_property_naming
|
|
261
|
+
self._path_to_item = _path_to_item
|
|
262
|
+
self._configuration = _configuration
|
|
263
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
264
|
+
|
|
265
|
+
for var_name, var_value in kwargs.items():
|
|
266
|
+
if var_name not in self.attribute_map and \
|
|
267
|
+
self._configuration is not None and \
|
|
268
|
+
self._configuration.discard_unknown_keys and \
|
|
269
|
+
self.additional_properties_type is None:
|
|
270
|
+
# discard variable.
|
|
271
|
+
continue
|
|
272
|
+
setattr(self, var_name, var_value)
|
|
273
|
+
if var_name in self.read_only_vars:
|
|
274
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
275
|
+
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_algebra_node_v1 import RmAlgebraNodeV1
|
|
34
|
+
globals()['RmAlgebraNodeV1'] = RmAlgebraNodeV1
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class RmAudienceEntityV1(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -59,10 +59,11 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
allowed_values = {
|
|
62
|
-
('
|
|
62
|
+
('channels',): {
|
|
63
63
|
'None': None,
|
|
64
|
-
'
|
|
65
|
-
'
|
|
64
|
+
'UNKNOWN': "Unknown",
|
|
65
|
+
'ONSITE': "Onsite",
|
|
66
|
+
'OFFSITE': "Offsite",
|
|
66
67
|
},
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -92,10 +93,15 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
92
93
|
"""
|
|
93
94
|
lazy_import()
|
|
94
95
|
return {
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
96
|
+
'account_id': (str, none_type,), # noqa: E501
|
|
97
|
+
'name': (str, none_type,), # noqa: E501
|
|
98
|
+
'description': (str, none_type,), # noqa: E501
|
|
99
|
+
'retailer_id': (str, none_type,), # noqa: E501
|
|
100
|
+
'created_by_id': (str, none_type,), # noqa: E501
|
|
101
|
+
'created_at': (datetime, none_type,), # noqa: E501
|
|
102
|
+
'updated_at': (datetime, none_type,), # noqa: E501
|
|
103
|
+
'channels': ([str], none_type,), # noqa: E501
|
|
104
|
+
'algebra': (RmAlgebraNodeV1,), # noqa: E501
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
@cached_property
|
|
@@ -104,10 +110,15 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
104
110
|
|
|
105
111
|
|
|
106
112
|
attribute_map = {
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
113
|
+
'account_id': 'accountId', # noqa: E501
|
|
114
|
+
'name': 'name', # noqa: E501
|
|
115
|
+
'description': 'description', # noqa: E501
|
|
116
|
+
'retailer_id': 'retailerId', # noqa: E501
|
|
117
|
+
'created_by_id': 'createdById', # noqa: E501
|
|
118
|
+
'created_at': 'createdAt', # noqa: E501
|
|
119
|
+
'updated_at': 'updatedAt', # noqa: E501
|
|
120
|
+
'channels': 'channels', # noqa: E501
|
|
121
|
+
'algebra': 'algebra', # noqa: E501
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
read_only_vars = {
|
|
@@ -118,7 +129,7 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
118
129
|
@classmethod
|
|
119
130
|
@convert_js_args_to_python_args
|
|
120
131
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
121
|
-
"""
|
|
132
|
+
"""RmAudienceEntityV1 - a model defined in OpenAPI
|
|
122
133
|
|
|
123
134
|
Keyword Args:
|
|
124
135
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -151,10 +162,15 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
151
162
|
Animal class but this time we won't travel
|
|
152
163
|
through its discriminator because we passed in
|
|
153
164
|
_visited_composed_classes = (Animal,)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
165
|
+
account_id (str, none_type): Account associated to the audience. [optional] # noqa: E501
|
|
166
|
+
name (str, none_type): Name of the audience. [optional] # noqa: E501
|
|
167
|
+
description (str, none_type): Description of the audience. [optional] # noqa: E501
|
|
168
|
+
retailer_id (str, none_type): Retailer associated to the audience. [optional] # noqa: E501
|
|
169
|
+
created_by_id (str, none_type): User that created the audience. [optional] # noqa: E501
|
|
170
|
+
created_at (datetime, none_type): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501
|
|
171
|
+
updated_at (datetime, none_type): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501
|
|
172
|
+
channels ([str], none_type): Channels associated to the audience (read-only). [optional] # noqa: E501
|
|
173
|
+
algebra (RmAlgebraNodeV1): [optional] # noqa: E501
|
|
158
174
|
"""
|
|
159
175
|
|
|
160
176
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -207,7 +223,7 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
207
223
|
|
|
208
224
|
@convert_js_args_to_python_args
|
|
209
225
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
210
|
-
"""
|
|
226
|
+
"""RmAudienceEntityV1 - a model defined in OpenAPI
|
|
211
227
|
|
|
212
228
|
Keyword Args:
|
|
213
229
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -240,10 +256,15 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
240
256
|
Animal class but this time we won't travel
|
|
241
257
|
through its discriminator because we passed in
|
|
242
258
|
_visited_composed_classes = (Animal,)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
259
|
+
account_id (str, none_type): Account associated to the audience. [optional] # noqa: E501
|
|
260
|
+
name (str, none_type): Name of the audience. [optional] # noqa: E501
|
|
261
|
+
description (str, none_type): Description of the audience. [optional] # noqa: E501
|
|
262
|
+
retailer_id (str, none_type): Retailer associated to the audience. [optional] # noqa: E501
|
|
263
|
+
created_by_id (str, none_type): User that created the audience. [optional] # noqa: E501
|
|
264
|
+
created_at (datetime, none_type): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501
|
|
265
|
+
updated_at (datetime, none_type): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501
|
|
266
|
+
channels ([str], none_type): Channels associated to the audience (read-only). [optional] # noqa: E501
|
|
267
|
+
algebra (RmAlgebraNodeV1): [optional] # noqa: E501
|
|
247
268
|
"""
|
|
248
269
|
|
|
249
270
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -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_entity_v1 import RmAudienceEntityV1
|
|
34
|
+
globals()['RmAudienceEntityV1'] = RmAudienceEntityV1
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class RmAudienceEntityV1Resource(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,7 +87,7 @@ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'attributes': (
|
|
90
|
+
'attributes': (RmAudienceEntityV1,), # noqa: E501
|
|
91
91
|
'id': (str, none_type,), # noqa: E501
|
|
92
92
|
'type': (str, none_type,), # noqa: E501
|
|
93
93
|
}
|
|
@@ -111,7 +111,7 @@ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""RmAudienceEntityV1Resource - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,7 +144,7 @@ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
attributes (
|
|
147
|
+
attributes (RmAudienceEntityV1): [optional] # noqa: E501
|
|
148
148
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
149
|
type (str, none_type): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
@@ -199,7 +199,7 @@ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""RmAudienceEntityV1Resource - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,7 +232,7 @@ class RmLegacyAudienceGetEntityV2Resource(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
attributes (
|
|
235
|
+
attributes (RmAudienceEntityV1): [optional] # noqa: E501
|
|
236
236
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
237
|
type (str, none_type): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
@@ -31,12 +31,14 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
33
|
from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
|
|
34
|
-
from criteo_api_retailmedia_preview.model.
|
|
34
|
+
from criteo_api_retailmedia_preview.model.rm_audience_entity_v1_resource import RmAudienceEntityV1Resource
|
|
35
|
+
from criteo_api_retailmedia_preview.model.rm_audience_search_metadata_v1 import RmAudienceSearchMetadataV1
|
|
35
36
|
globals()['CommonProblem'] = CommonProblem
|
|
36
|
-
globals()['
|
|
37
|
+
globals()['RmAudienceEntityV1Resource'] = RmAudienceEntityV1Resource
|
|
38
|
+
globals()['RmAudienceSearchMetadataV1'] = RmAudienceSearchMetadataV1
|
|
37
39
|
|
|
38
40
|
|
|
39
|
-
class
|
|
41
|
+
class RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse(ModelNormal):
|
|
40
42
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
43
|
Ref: https://openapi-generator.tech
|
|
42
44
|
|
|
@@ -89,7 +91,8 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
89
91
|
"""
|
|
90
92
|
lazy_import()
|
|
91
93
|
return {
|
|
92
|
-
'
|
|
94
|
+
'meta': (RmAudienceSearchMetadataV1,), # noqa: E501
|
|
95
|
+
'data': ([RmAudienceEntityV1Resource], none_type,), # noqa: E501
|
|
93
96
|
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
94
97
|
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
95
98
|
}
|
|
@@ -100,6 +103,7 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
100
103
|
|
|
101
104
|
|
|
102
105
|
attribute_map = {
|
|
106
|
+
'meta': 'meta', # noqa: E501
|
|
103
107
|
'data': 'data', # noqa: E501
|
|
104
108
|
'warnings': 'warnings', # noqa: E501
|
|
105
109
|
'errors': 'errors', # noqa: E501
|
|
@@ -115,7 +119,7 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
115
119
|
@classmethod
|
|
116
120
|
@convert_js_args_to_python_args
|
|
117
121
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
-
"""
|
|
122
|
+
"""RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse - a model defined in OpenAPI
|
|
119
123
|
|
|
120
124
|
Keyword Args:
|
|
121
125
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -148,7 +152,8 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
148
152
|
Animal class but this time we won't travel
|
|
149
153
|
through its discriminator because we passed in
|
|
150
154
|
_visited_composed_classes = (Animal,)
|
|
151
|
-
|
|
155
|
+
meta (RmAudienceSearchMetadataV1): [optional] # noqa: E501
|
|
156
|
+
data ([RmAudienceEntityV1Resource], none_type): [optional] # noqa: E501
|
|
152
157
|
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
153
158
|
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
154
159
|
"""
|
|
@@ -203,7 +208,7 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
203
208
|
|
|
204
209
|
@convert_js_args_to_python_args
|
|
205
210
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
-
"""
|
|
211
|
+
"""RmAudienceEntityV1RmAudienceSearchMetadataV1ListResponse - a model defined in OpenAPI
|
|
207
212
|
|
|
208
213
|
Keyword Args:
|
|
209
214
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -236,7 +241,8 @@ class CreativeV2ListResponse(ModelNormal):
|
|
|
236
241
|
Animal class but this time we won't travel
|
|
237
242
|
through its discriminator because we passed in
|
|
238
243
|
_visited_composed_classes = (Animal,)
|
|
239
|
-
|
|
244
|
+
meta (RmAudienceSearchMetadataV1): [optional] # noqa: E501
|
|
245
|
+
data ([RmAudienceEntityV1Resource], none_type): [optional] # noqa: E501
|
|
240
246
|
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
241
247
|
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
242
248
|
"""
|