criteo-api-retailmedia-sdk 2023.7.0.231113__py3-none-any.whl → 2023.7.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 (36) hide show
  1. {criteo_api_retailmedia_sdk-2023.7.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.7.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240207.dist-info}/RECORD +34 -35
  3. {criteo_api_retailmedia_sdk-2023.7.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240207.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_07/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_07/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_07/api/campaign_api.py +4 -4
  7. criteo_api_retailmedia_v2023_07/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_07/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_07/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_07/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -28
  18. criteo_api_retailmedia_v2023_07/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  23. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  26. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -22
  27. criteo_api_retailmedia_v2023_07/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_07/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_07/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_07/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  31. criteo_api_retailmedia_v2023_07/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_07/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_07/models/__init__.py +20 -21
  34. criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py +0 -287
  35. criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py +0 -295
  36. {criteo_api_retailmedia_sdk-2023.7.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240207.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_07.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_07.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.
@@ -47,18 +47,7 @@ from criteo_api_retailmedia_v2023_07.model.common_error import CommonError
47
47
  from criteo_api_retailmedia_v2023_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse
48
48
  from criteo_api_retailmedia_v2023_07.model.common_line_item_response import CommonLineItemResponse
49
49
  from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem
50
- from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse
51
50
  from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning
52
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience import CreateRetailMediaAudience
53
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes
54
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody
55
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest
56
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse
57
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2
58
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
59
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data
60
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request
61
- from criteo_api_retailmedia_v2023_07.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2
62
51
  from criteo_api_retailmedia_v2023_07.model.creative202110 import Creative202110
63
52
  from criteo_api_retailmedia_v2023_07.model.creative202110_list_response import Creative202110ListResponse
64
53
  from criteo_api_retailmedia_v2023_07.model.creative202210 import Creative202210
@@ -66,7 +55,6 @@ from criteo_api_retailmedia_v2023_07.model.creative202210_list_response import C
66
55
  from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response
67
56
  from criteo_api_retailmedia_v2023_07.model.creative_create_model202207 import CreativeCreateModel202207
68
57
  from criteo_api_retailmedia_v2023_07.model.creative_update_model202207 import CreativeUpdateModel202207
69
- from criteo_api_retailmedia_v2023_07.model.customer_list_details import CustomerListDetails
70
58
  from criteo_api_retailmedia_v2023_07.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301
71
59
  from criteo_api_retailmedia_v2023_07.model.external_account import ExternalAccount
72
60
  from criteo_api_retailmedia_v2023_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110
@@ -95,7 +83,6 @@ from criteo_api_retailmedia_v2023_07.model.external_store_ids_update_model202110
95
83
  from criteo_api_retailmedia_v2023_07.model.external_store_target202110 import ExternalStoreTarget202110
96
84
  from criteo_api_retailmedia_v2023_07.model.files_variable_value import FilesVariableValue
97
85
  from criteo_api_retailmedia_v2023_07.model.files_variables_specification import FilesVariablesSpecification
98
- from criteo_api_retailmedia_v2023_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
99
86
  from criteo_api_retailmedia_v2023_07.model.hyperlink_variable_value import HyperlinkVariableValue
100
87
  from criteo_api_retailmedia_v2023_07.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel
101
88
  from criteo_api_retailmedia_v2023_07.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110
@@ -146,12 +133,6 @@ from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item202110
146
133
  from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110
147
134
  from criteo_api_retailmedia_v2023_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110
148
135
  from criteo_api_retailmedia_v2023_07.model.resource_of_template import ResourceOfTemplate
149
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience import RetailMediaAudience
150
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_attributes import RetailMediaAudienceAttributes
151
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2 import RetailMediaAudienceV2
152
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes
153
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
154
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response
155
136
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel
156
137
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel
157
138
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest
@@ -170,6 +151,26 @@ from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bid_model
170
151
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel
171
152
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest
172
153
  from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource
154
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v1 import RmLegacyAudienceCreateEntityV1
155
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v1_resource import RmLegacyAudienceCreateEntityV1Resource
156
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v1_response import RmLegacyAudienceCreateEntityV1Response
157
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v2 import RmLegacyAudienceCreateEntityV2
158
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v2_resource import RmLegacyAudienceCreateEntityV2Resource
159
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v2_response import RmLegacyAudienceCreateEntityV2Response
160
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_input_entity_v1 import RmLegacyAudienceCreateInputEntityV1
161
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_input_entity_v2 import RmLegacyAudienceCreateInputEntityV2
162
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1
163
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
164
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource
165
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2
166
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
167
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource
168
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_user_behavior_create_v2 import RmLegacyAudienceUserBehaviorCreateV2
169
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2
170
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList
171
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_segment_user_behavior_create_v2 import RmLegacySegmentUserBehaviorCreateV2
172
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1
173
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_segment_user_behavior_v2 import RmLegacySegmentUserBehaviorV2
173
174
  from criteo_api_retailmedia_v2023_07.model.section import Section
174
175
  from criteo_api_retailmedia_v2023_07.model.status_response import StatusResponse
175
176
  from criteo_api_retailmedia_v2023_07.model.status_response_resource import StatusResponseResource
@@ -183,8 +184,6 @@ from criteo_api_retailmedia_v2023_07.model.template_variable import TemplateVari
183
184
  from criteo_api_retailmedia_v2023_07.model.template_variable_value import TemplateVariableValue
184
185
  from criteo_api_retailmedia_v2023_07.model.text_variable_specification import TextVariableSpecification
185
186
  from criteo_api_retailmedia_v2023_07.model.text_variable_value import TextVariableValue
186
- from criteo_api_retailmedia_v2023_07.model.user_behavior_details import UserBehaviorDetails
187
- from criteo_api_retailmedia_v2023_07.model.user_behavior_details_v2 import UserBehaviorDetailsV2
188
187
  from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110
189
188
  from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110
190
189
  from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110
@@ -1,287 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-07
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_07.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_07.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
34
- globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes
35
-
36
-
37
- class CreateRetailMediaAudienceV2(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
- 'type': (str,), # noqa: E501
91
- 'id': (int,), # noqa: E501
92
- 'attributes': (CreateRetailMediaAudienceV2Attributes,), # noqa: E501
93
- }
94
-
95
- @cached_property
96
- def discriminator():
97
- return None
98
-
99
-
100
- attribute_map = {
101
- 'type': 'type', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
- 'attributes': 'attributes', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501
114
- """CreateRetailMediaAudienceV2 - a model defined in OpenAPI
115
-
116
- Args:
117
- type (str): the name of the entity type
118
- id (int): Unique ID of this audience.
119
- attributes (CreateRetailMediaAudienceV2Attributes):
120
-
121
- Keyword Args:
122
- _check_type (bool): if True, values for parameters in openapi_types
123
- will be type checked and a TypeError will be
124
- raised if the wrong type is input.
125
- Defaults to True
126
- _path_to_item (tuple/list): This is a list of keys or values to
127
- drill down to the model in received_data
128
- when deserializing a response
129
- _spec_property_naming (bool): True if the variable names in the input data
130
- are serialized names, as specified in the OpenAPI document.
131
- False if the variable names in the input data
132
- are pythonic names, e.g. snake case (default)
133
- _configuration (Configuration): the instance to use when
134
- deserializing a file_type parameter.
135
- If passed, type conversion is attempted
136
- If omitted no type conversion is done.
137
- _visited_composed_classes (tuple): This stores a tuple of
138
- classes that we have traveled through so that
139
- if we see that class again we will not use its
140
- discriminator again.
141
- When traveling through a discriminator, the
142
- composed schema that is
143
- is traveled through is added to this set.
144
- For example if Animal has a discriminator
145
- petType and we pass in "Dog", and the class Dog
146
- allOf includes Animal, we move through Animal
147
- once using the discriminator, and pick Dog.
148
- Then in Dog, we will make an instance of the
149
- Animal class but this time we won't travel
150
- through its discriminator because we passed in
151
- _visited_composed_classes = (Animal,)
152
- """
153
-
154
- _check_type = kwargs.pop('_check_type', True)
155
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
156
- _path_to_item = kwargs.pop('_path_to_item', ())
157
- _configuration = kwargs.pop('_configuration', None)
158
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
159
-
160
- self = super(OpenApiModel, cls).__new__(cls)
161
-
162
- if args:
163
- for arg in args:
164
- if isinstance(arg, dict):
165
- kwargs.update(arg)
166
- else:
167
- raise ApiTypeError(
168
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
169
- args,
170
- self.__class__.__name__,
171
- ),
172
- path_to_item=_path_to_item,
173
- valid_classes=(self.__class__,),
174
- )
175
-
176
- self._data_store = {}
177
- self._check_type = _check_type
178
- self._spec_property_naming = _spec_property_naming
179
- self._path_to_item = _path_to_item
180
- self._configuration = _configuration
181
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
-
183
- self.type = type
184
- self.id = id
185
- self.attributes = attributes
186
- for var_name, var_value in kwargs.items():
187
- if var_name not in self.attribute_map and \
188
- self._configuration is not None and \
189
- self._configuration.discard_unknown_keys and \
190
- self.additional_properties_type is None:
191
- # discard variable.
192
- continue
193
- setattr(self, var_name, var_value)
194
- return self
195
-
196
- required_properties = set([
197
- '_data_store',
198
- '_check_type',
199
- '_spec_property_naming',
200
- '_path_to_item',
201
- '_configuration',
202
- '_visited_composed_classes',
203
- ])
204
-
205
- @convert_js_args_to_python_args
206
- def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501
207
- """CreateRetailMediaAudienceV2 - a model defined in OpenAPI
208
-
209
- Args:
210
- type (str): the name of the entity type
211
- id (int): Unique ID of this audience.
212
- attributes (CreateRetailMediaAudienceV2Attributes):
213
-
214
- Keyword Args:
215
- _check_type (bool): if True, values for parameters in openapi_types
216
- will be type checked and a TypeError will be
217
- raised if the wrong type is input.
218
- Defaults to True
219
- _path_to_item (tuple/list): This is a list of keys or values to
220
- drill down to the model in received_data
221
- when deserializing a response
222
- _spec_property_naming (bool): True if the variable names in the input data
223
- are serialized names, as specified in the OpenAPI document.
224
- False if the variable names in the input data
225
- are pythonic names, e.g. snake case (default)
226
- _configuration (Configuration): the instance to use when
227
- deserializing a file_type parameter.
228
- If passed, type conversion is attempted
229
- If omitted no type conversion is done.
230
- _visited_composed_classes (tuple): This stores a tuple of
231
- classes that we have traveled through so that
232
- if we see that class again we will not use its
233
- discriminator again.
234
- When traveling through a discriminator, the
235
- composed schema that is
236
- is traveled through is added to this set.
237
- For example if Animal has a discriminator
238
- petType and we pass in "Dog", and the class Dog
239
- allOf includes Animal, we move through Animal
240
- once using the discriminator, and pick Dog.
241
- Then in Dog, we will make an instance of the
242
- Animal class but this time we won't travel
243
- through its discriminator because we passed in
244
- _visited_composed_classes = (Animal,)
245
- """
246
-
247
- _check_type = kwargs.pop('_check_type', True)
248
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
249
- _path_to_item = kwargs.pop('_path_to_item', ())
250
- _configuration = kwargs.pop('_configuration', None)
251
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
252
-
253
- if args:
254
- for arg in args:
255
- if isinstance(arg, dict):
256
- kwargs.update(arg)
257
- else:
258
- raise ApiTypeError(
259
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
260
- args,
261
- self.__class__.__name__,
262
- ),
263
- path_to_item=_path_to_item,
264
- valid_classes=(self.__class__,),
265
- )
266
-
267
- self._data_store = {}
268
- self._check_type = _check_type
269
- self._spec_property_naming = _spec_property_naming
270
- self._path_to_item = _path_to_item
271
- self._configuration = _configuration
272
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
273
-
274
- self.type = type
275
- self.id = id
276
- self.attributes = attributes
277
- for var_name, var_value in kwargs.items():
278
- if var_name not in self.attribute_map and \
279
- self._configuration is not None and \
280
- self._configuration.discard_unknown_keys and \
281
- self.additional_properties_type is None:
282
- # discard variable.
283
- continue
284
- setattr(self, var_name, var_value)
285
- if var_name in self.read_only_vars:
286
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
287
- f"class with read only attributes.")