criteo-api-retailmedia-sdk 2023.1.0.231113__py3-none-any.whl → 2023.1.0.240207__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.

Files changed (47) hide show
  1. {criteo_api_retailmedia_sdk-2023.1.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.1.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/RECORD +34 -46
  3. {criteo_api_retailmedia_sdk-2023.1.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_01/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_01/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_01/api/campaign_api.py +4 -446
  7. criteo_api_retailmedia_v2023_01/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_01/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_01/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_01/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
  18. criteo_api_retailmedia_v2023_01/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_01/model/{creative202207_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +16 -16
  23. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +18 -20
  26. criteo_api_retailmedia_v2023_01/model/{resource_of_creative202207.py → rm_legacy_audience_get_entity_v2_resource.py} +10 -10
  27. criteo_api_retailmedia_v2023_01/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_01/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_01/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_01/model/{color_variable_value.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -15
  31. criteo_api_retailmedia_v2023_01/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_01/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_01/models/__init__.py +20 -32
  34. criteo_api_retailmedia_v2023_01/model/choice_variable_value.py +0 -269
  35. criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py +0 -287
  36. criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py +0 -287
  37. criteo_api_retailmedia_v2023_01/model/creative202207.py +0 -340
  38. criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py +0 -297
  39. criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py +0 -297
  40. criteo_api_retailmedia_v2023_01/model/files_variable_value.py +0 -271
  41. criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py +0 -295
  42. criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py +0 -269
  43. criteo_api_retailmedia_v2023_01/model/retail_media_audience.py +0 -297
  44. criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py +0 -293
  45. criteo_api_retailmedia_v2023_01/model/template_variable_value.py +0 -303
  46. criteo_api_retailmedia_v2023_01/model/text_variable_value.py +0 -269
  47. {criteo_api_retailmedia_sdk-2023.1.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_01.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class UserBehaviorDetails(ModelNormal):
33
+ class RmLegacySegmentUserBehaviorV1(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -55,9 +55,10 @@ class UserBehaviorDetails(ModelNormal):
55
55
  """
56
56
 
57
57
  allowed_values = {
58
- ('target_type',): {
59
- 'BRAND': "brand",
60
- 'CATEGORY': "category",
58
+ ('user_type',): {
59
+ 'VIEWER': "viewer",
60
+ 'BUYER': "buyer",
61
+ 'ADDTOCARTER': "addToCarter",
61
62
  },
62
63
  ('lookback_window',): {
63
64
  'P7D': "P7D",
@@ -70,13 +71,16 @@ class UserBehaviorDetails(ModelNormal):
70
71
  'P150D': "P150D",
71
72
  'P180D': "P180D",
72
73
  },
73
- ('user_type',): {
74
- 'VIEWER': "viewer",
75
- 'BUYER': "buyer",
74
+ ('target_type',): {
75
+ 'None': None,
76
+ 'BRAND': "brand",
77
+ 'CATEGORY': "category",
76
78
  },
77
79
  }
78
80
 
79
81
  validations = {
82
+ ('target_ids',): {
83
+ },
80
84
  }
81
85
 
82
86
  @cached_property
@@ -100,10 +104,10 @@ class UserBehaviorDetails(ModelNormal):
100
104
  and the value is attribute type.
101
105
  """
102
106
  return {
103
- 'target_type': (str,), # noqa: E501
104
- 'target_ids': ([str],), # noqa: E501
105
- 'lookback_window': (str,), # noqa: E501
106
107
  'user_type': (str,), # noqa: E501
108
+ 'lookback_window': (str,), # noqa: E501
109
+ 'target_type': (str, none_type,), # noqa: E501
110
+ 'target_ids': ([str], none_type,), # noqa: E501
107
111
  }
108
112
 
109
113
  @cached_property
@@ -112,10 +116,10 @@ class UserBehaviorDetails(ModelNormal):
112
116
 
113
117
 
114
118
  attribute_map = {
119
+ 'user_type': 'userType', # noqa: E501
120
+ 'lookback_window': 'lookbackWindow', # noqa: E501
115
121
  'target_type': 'targetType', # noqa: E501
116
122
  'target_ids': 'targetIds', # noqa: E501
117
- 'lookback_window': 'lookbackWindow', # noqa: E501
118
- 'user_type': 'userType', # noqa: E501
119
123
  }
120
124
 
121
125
  read_only_vars = {
@@ -125,14 +129,12 @@ class UserBehaviorDetails(ModelNormal):
125
129
 
126
130
  @classmethod
127
131
  @convert_js_args_to_python_args
128
- def _from_openapi_data(cls, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501
129
- """UserBehaviorDetails - a model defined in OpenAPI
132
+ def _from_openapi_data(cls, user_type, lookback_window, *args, **kwargs): # noqa: E501
133
+ """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
130
134
 
131
135
  Args:
132
- target_type (str): Type of target
133
- target_ids ([str]): ist of ids for the target type
136
+ user_type (str): Type of shopper activity used to generate the audience.
134
137
  lookback_window (str): Length of lookback window
135
- user_type (str): Type of the user
136
138
 
137
139
  Keyword Args:
138
140
  _check_type (bool): if True, values for parameters in openapi_types
@@ -165,6 +167,8 @@ class UserBehaviorDetails(ModelNormal):
165
167
  Animal class but this time we won't travel
166
168
  through its discriminator because we passed in
167
169
  _visited_composed_classes = (Animal,)
170
+ target_type (str, none_type): Type of target. [optional] # noqa: E501
171
+ target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
168
172
  """
169
173
 
170
174
  _check_type = kwargs.pop('_check_type', True)
@@ -196,10 +200,8 @@ class UserBehaviorDetails(ModelNormal):
196
200
  self._configuration = _configuration
197
201
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
198
202
 
199
- self.target_type = target_type
200
- self.target_ids = target_ids
201
- self.lookback_window = lookback_window
202
203
  self.user_type = user_type
204
+ self.lookback_window = lookback_window
203
205
  for var_name, var_value in kwargs.items():
204
206
  if var_name not in self.attribute_map and \
205
207
  self._configuration is not None and \
@@ -220,14 +222,12 @@ class UserBehaviorDetails(ModelNormal):
220
222
  ])
221
223
 
222
224
  @convert_js_args_to_python_args
223
- def __init__(self, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501
224
- """UserBehaviorDetails - a model defined in OpenAPI
225
+ def __init__(self, user_type, lookback_window, *args, **kwargs): # noqa: E501
226
+ """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
225
227
 
226
228
  Args:
227
- target_type (str): Type of target
228
- target_ids ([str]): ist of ids for the target type
229
+ user_type (str): Type of shopper activity used to generate the audience.
229
230
  lookback_window (str): Length of lookback window
230
- user_type (str): Type of the user
231
231
 
232
232
  Keyword Args:
233
233
  _check_type (bool): if True, values for parameters in openapi_types
@@ -260,6 +260,8 @@ class UserBehaviorDetails(ModelNormal):
260
260
  Animal class but this time we won't travel
261
261
  through its discriminator because we passed in
262
262
  _visited_composed_classes = (Animal,)
263
+ target_type (str, none_type): Type of target. [optional] # noqa: E501
264
+ target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
263
265
  """
264
266
 
265
267
  _check_type = kwargs.pop('_check_type', True)
@@ -289,10 +291,8 @@ class UserBehaviorDetails(ModelNormal):
289
291
  self._configuration = _configuration
290
292
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
291
293
 
292
- self.target_type = target_type
293
- self.target_ids = target_ids
294
- self.lookback_window = lookback_window
295
294
  self.user_type = user_type
295
+ self.lookback_window = lookback_window
296
296
  for var_name, var_value in kwargs.items():
297
297
  if var_name not in self.attribute_map and \
298
298
  self._configuration is not None and \
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_01.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class CreateUserBehaviorSegmentV2(ModelNormal):
33
+ class RmLegacySegmentUserBehaviorV2(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -74,6 +74,10 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
74
74
  }
75
75
 
76
76
  validations = {
77
+ ('category_ids',): {
78
+ },
79
+ ('brand_ids',): {
80
+ },
77
81
  }
78
82
 
79
83
  @cached_property
@@ -120,8 +124,6 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
120
124
  }
121
125
 
122
126
  read_only_vars = {
123
- 'min_price', # noqa: E501
124
- 'max_price', # noqa: E501
125
127
  }
126
128
 
127
129
  _composed_schemas = {}
@@ -129,7 +131,7 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
129
131
  @classmethod
130
132
  @convert_js_args_to_python_args
131
133
  def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # noqa: E501
132
- """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI
134
+ """RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI
133
135
 
134
136
  Args:
135
137
  user_action (str): Type of shopper activity used to generate the audience.
@@ -224,7 +226,7 @@ class CreateUserBehaviorSegmentV2(ModelNormal):
224
226
 
225
227
  @convert_js_args_to_python_args
226
228
  def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501
227
- """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI
229
+ """RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI
228
230
 
229
231
  Args:
230
232
  user_action (str): Type of shopper activity used to generate the audience.
@@ -41,31 +41,13 @@ from criteo_api_retailmedia_v2023_01.model.category202204 import Category202204
41
41
  from criteo_api_retailmedia_v2023_01.model.category202204_list_response import Category202204ListResponse
42
42
  from criteo_api_retailmedia_v2023_01.model.choice_option import ChoiceOption
43
43
  from criteo_api_retailmedia_v2023_01.model.choice_variable_specification import ChoiceVariableSpecification
44
- from criteo_api_retailmedia_v2023_01.model.choice_variable_value import ChoiceVariableValue
45
- from criteo_api_retailmedia_v2023_01.model.color_variable_value import ColorVariableValue
46
44
  from criteo_api_retailmedia_v2023_01.model.common_error import CommonError
47
45
  from criteo_api_retailmedia_v2023_01.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse
48
46
  from criteo_api_retailmedia_v2023_01.model.common_line_item_response import CommonLineItemResponse
49
47
  from criteo_api_retailmedia_v2023_01.model.common_problem import CommonProblem
50
- from criteo_api_retailmedia_v2023_01.model.common_status_code_response import CommonStatusCodeResponse
51
48
  from criteo_api_retailmedia_v2023_01.model.common_warning import CommonWarning
52
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience import CreateRetailMediaAudience
53
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes
54
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody
55
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest
56
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse
57
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2
58
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
59
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data
60
- from criteo_api_retailmedia_v2023_01.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request
61
- from criteo_api_retailmedia_v2023_01.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2
62
49
  from criteo_api_retailmedia_v2023_01.model.creative202110 import Creative202110
63
50
  from criteo_api_retailmedia_v2023_01.model.creative202110_list_response import Creative202110ListResponse
64
- from criteo_api_retailmedia_v2023_01.model.creative202207 import Creative202207
65
- from criteo_api_retailmedia_v2023_01.model.creative202207_response import Creative202207Response
66
- from criteo_api_retailmedia_v2023_01.model.creative_create_model202207 import CreativeCreateModel202207
67
- from criteo_api_retailmedia_v2023_01.model.creative_update_model202207 import CreativeUpdateModel202207
68
- from criteo_api_retailmedia_v2023_01.model.customer_list_details import CustomerListDetails
69
51
  from criteo_api_retailmedia_v2023_01.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301
70
52
  from criteo_api_retailmedia_v2023_01.model.external_account import ExternalAccount
71
53
  from criteo_api_retailmedia_v2023_01.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110
@@ -92,10 +74,7 @@ from criteo_api_retailmedia_v2023_01.model.external_retailer import ExternalReta
92
74
  from criteo_api_retailmedia_v2023_01.model.external_retailer_pages202110 import ExternalRetailerPages202110
93
75
  from criteo_api_retailmedia_v2023_01.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110
94
76
  from criteo_api_retailmedia_v2023_01.model.external_store_target202110 import ExternalStoreTarget202110
95
- from criteo_api_retailmedia_v2023_01.model.files_variable_value import FilesVariableValue
96
77
  from criteo_api_retailmedia_v2023_01.model.files_variables_specification import FilesVariablesSpecification
97
- from criteo_api_retailmedia_v2023_01.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
98
- from criteo_api_retailmedia_v2023_01.model.hyperlink_variable_value import HyperlinkVariableValue
99
78
  from criteo_api_retailmedia_v2023_01.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel
100
79
  from criteo_api_retailmedia_v2023_01.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110
101
80
  from criteo_api_retailmedia_v2023_01.model.json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301
@@ -138,18 +117,31 @@ from criteo_api_retailmedia_v2023_01.model.resource_of_balance_campaign202110 im
138
117
  from criteo_api_retailmedia_v2023_01.model.resource_of_category202204 import ResourceOfCategory202204
139
118
  from criteo_api_retailmedia_v2023_01.model.resource_of_common_line_item import ResourceOfCommonLineItem
140
119
  from criteo_api_retailmedia_v2023_01.model.resource_of_creative202110 import ResourceOfCreative202110
141
- from criteo_api_retailmedia_v2023_01.model.resource_of_creative202207 import ResourceOfCreative202207
142
120
  from criteo_api_retailmedia_v2023_01.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers
143
121
  from criteo_api_retailmedia_v2023_01.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110
144
122
  from criteo_api_retailmedia_v2023_01.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110
145
123
  from criteo_api_retailmedia_v2023_01.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110
146
124
  from criteo_api_retailmedia_v2023_01.model.resource_of_template import ResourceOfTemplate
147
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience import RetailMediaAudience
148
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_attributes import RetailMediaAudienceAttributes
149
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2 import RetailMediaAudienceV2
150
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes
151
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
152
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response
125
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v1 import RmLegacyAudienceCreateEntityV1
126
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
127
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v1_response import RmLegacyAudienceCreateEntityV1Response
128
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v2 import RmLegacyAudienceCreateEntityV2
129
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
130
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_entity_v2_response import RmLegacyAudienceCreateEntityV2Response
131
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_input_entity_v1 import RmLegacyAudienceCreateInputEntityV1
132
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_create_input_entity_v2 import RmLegacyAudienceCreateInputEntityV2
133
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1
134
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
135
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource
136
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2
137
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
138
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource
139
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_user_behavior_create_v2 import RmLegacyAudienceUserBehaviorCreateV2
140
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
141
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
142
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_segment_user_behavior_create_v2 import RmLegacySegmentUserBehaviorCreateV2
143
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1
144
+ from criteo_api_retailmedia_v2023_01.model.rm_legacy_segment_user_behavior_v2 import RmLegacySegmentUserBehaviorV2
153
145
  from criteo_api_retailmedia_v2023_01.model.section import Section
154
146
  from criteo_api_retailmedia_v2023_01.model.status_response import StatusResponse
155
147
  from criteo_api_retailmedia_v2023_01.model.status_response_resource import StatusResponseResource
@@ -160,11 +152,7 @@ from criteo_api_retailmedia_v2023_01.model.template import Template
160
152
  from criteo_api_retailmedia_v2023_01.model.template_list_response import TemplateListResponse
161
153
  from criteo_api_retailmedia_v2023_01.model.template_response import TemplateResponse
162
154
  from criteo_api_retailmedia_v2023_01.model.template_variable import TemplateVariable
163
- from criteo_api_retailmedia_v2023_01.model.template_variable_value import TemplateVariableValue
164
155
  from criteo_api_retailmedia_v2023_01.model.text_variable_specification import TextVariableSpecification
165
- from criteo_api_retailmedia_v2023_01.model.text_variable_value import TextVariableValue
166
- from criteo_api_retailmedia_v2023_01.model.user_behavior_details import UserBehaviorDetails
167
- from criteo_api_retailmedia_v2023_01.model.user_behavior_details_v2 import UserBehaviorDetailsV2
168
156
  from criteo_api_retailmedia_v2023_01.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110
169
157
  from criteo_api_retailmedia_v2023_01.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110
170
158
  from criteo_api_retailmedia_v2023_01.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110
@@ -1,269 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-01
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_v2023_01.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_v2023_01.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ChoiceVariableValue(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
- 'chosen_options': ([str],), # noqa: E501
85
- }
86
-
87
- @cached_property
88
- def discriminator():
89
- return None
90
-
91
-
92
- attribute_map = {
93
- 'chosen_options': 'chosenOptions', # noqa: E501
94
- }
95
-
96
- read_only_vars = {
97
- }
98
-
99
- _composed_schemas = {}
100
-
101
- @classmethod
102
- @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, chosen_options, *args, **kwargs): # noqa: E501
104
- """ChoiceVariableValue - a model defined in OpenAPI
105
-
106
- Args:
107
- chosen_options ([str]): The chosen options
108
-
109
- Keyword Args:
110
- _check_type (bool): if True, values for parameters in openapi_types
111
- will be type checked and a TypeError will be
112
- raised if the wrong type is input.
113
- Defaults to True
114
- _path_to_item (tuple/list): This is a list of keys or values to
115
- drill down to the model in received_data
116
- when deserializing a response
117
- _spec_property_naming (bool): True if the variable names in the input data
118
- are serialized names, as specified in the OpenAPI document.
119
- False if the variable names in the input data
120
- are pythonic names, e.g. snake case (default)
121
- _configuration (Configuration): the instance to use when
122
- deserializing a file_type parameter.
123
- If passed, type conversion is attempted
124
- If omitted no type conversion is done.
125
- _visited_composed_classes (tuple): This stores a tuple of
126
- classes that we have traveled through so that
127
- if we see that class again we will not use its
128
- discriminator again.
129
- When traveling through a discriminator, the
130
- composed schema that is
131
- is traveled through is added to this set.
132
- For example if Animal has a discriminator
133
- petType and we pass in "Dog", and the class Dog
134
- allOf includes Animal, we move through Animal
135
- once using the discriminator, and pick Dog.
136
- Then in Dog, we will make an instance of the
137
- Animal class but this time we won't travel
138
- through its discriminator because we passed in
139
- _visited_composed_classes = (Animal,)
140
- """
141
-
142
- _check_type = kwargs.pop('_check_type', True)
143
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
144
- _path_to_item = kwargs.pop('_path_to_item', ())
145
- _configuration = kwargs.pop('_configuration', None)
146
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
147
-
148
- self = super(OpenApiModel, cls).__new__(cls)
149
-
150
- if args:
151
- for arg in args:
152
- if isinstance(arg, dict):
153
- kwargs.update(arg)
154
- else:
155
- raise ApiTypeError(
156
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
157
- args,
158
- self.__class__.__name__,
159
- ),
160
- path_to_item=_path_to_item,
161
- valid_classes=(self.__class__,),
162
- )
163
-
164
- self._data_store = {}
165
- self._check_type = _check_type
166
- self._spec_property_naming = _spec_property_naming
167
- self._path_to_item = _path_to_item
168
- self._configuration = _configuration
169
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
-
171
- self.chosen_options = chosen_options
172
- for var_name, var_value in kwargs.items():
173
- if var_name not in self.attribute_map and \
174
- self._configuration is not None and \
175
- self._configuration.discard_unknown_keys and \
176
- self.additional_properties_type is None:
177
- # discard variable.
178
- continue
179
- setattr(self, var_name, var_value)
180
- return self
181
-
182
- required_properties = set([
183
- '_data_store',
184
- '_check_type',
185
- '_spec_property_naming',
186
- '_path_to_item',
187
- '_configuration',
188
- '_visited_composed_classes',
189
- ])
190
-
191
- @convert_js_args_to_python_args
192
- def __init__(self, chosen_options, *args, **kwargs): # noqa: E501
193
- """ChoiceVariableValue - a model defined in OpenAPI
194
-
195
- Args:
196
- chosen_options ([str]): The chosen options
197
-
198
- Keyword Args:
199
- _check_type (bool): if True, values for parameters in openapi_types
200
- will be type checked and a TypeError will be
201
- raised if the wrong type is input.
202
- Defaults to True
203
- _path_to_item (tuple/list): This is a list of keys or values to
204
- drill down to the model in received_data
205
- when deserializing a response
206
- _spec_property_naming (bool): True if the variable names in the input data
207
- are serialized names, as specified in the OpenAPI document.
208
- False if the variable names in the input data
209
- are pythonic names, e.g. snake case (default)
210
- _configuration (Configuration): the instance to use when
211
- deserializing a file_type parameter.
212
- If passed, type conversion is attempted
213
- If omitted no type conversion is done.
214
- _visited_composed_classes (tuple): This stores a tuple of
215
- classes that we have traveled through so that
216
- if we see that class again we will not use its
217
- discriminator again.
218
- When traveling through a discriminator, the
219
- composed schema that is
220
- is traveled through is added to this set.
221
- For example if Animal has a discriminator
222
- petType and we pass in "Dog", and the class Dog
223
- allOf includes Animal, we move through Animal
224
- once using the discriminator, and pick Dog.
225
- Then in Dog, we will make an instance of the
226
- Animal class but this time we won't travel
227
- through its discriminator because we passed in
228
- _visited_composed_classes = (Animal,)
229
- """
230
-
231
- _check_type = kwargs.pop('_check_type', True)
232
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
- _path_to_item = kwargs.pop('_path_to_item', ())
234
- _configuration = kwargs.pop('_configuration', None)
235
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
-
237
- if args:
238
- for arg in args:
239
- if isinstance(arg, dict):
240
- kwargs.update(arg)
241
- else:
242
- raise ApiTypeError(
243
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
- args,
245
- self.__class__.__name__,
246
- ),
247
- path_to_item=_path_to_item,
248
- valid_classes=(self.__class__,),
249
- )
250
-
251
- self._data_store = {}
252
- self._check_type = _check_type
253
- self._spec_property_naming = _spec_property_naming
254
- self._path_to_item = _path_to_item
255
- self._configuration = _configuration
256
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
-
258
- self.chosen_options = chosen_options
259
- for var_name, var_value in kwargs.items():
260
- if var_name not in self.attribute_map and \
261
- self._configuration is not None and \
262
- self._configuration.discard_unknown_keys and \
263
- self.additional_properties_type is None:
264
- # discard variable.
265
- continue
266
- setattr(self, var_name, var_value)
267
- if var_name in self.read_only_vars:
268
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
269
- f"class with read only attributes.")