criteo-api-retailmedia-sdk 0.0.240404__py3-none-any.whl → 0.0.240618__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 (77) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +284 -0
  3. criteo_api_retailmedia_preview/api/campaign_api.py +1755 -448
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/configuration.py +1 -1
  6. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keyword_model.py → add_remove_keyword_model.py} +12 -19
  7. criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +262 -0
  8. criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +262 -0
  9. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +270 -0
  10. criteo_api_retailmedia_preview/model/approval_status_model.py +292 -0
  11. criteo_api_retailmedia_preview/model/async_accounts_report.py +39 -27
  12. criteo_api_retailmedia_preview/model/async_campaigns_report.py +24 -13
  13. criteo_api_retailmedia_preview/model/async_line_items_report.py +24 -13
  14. criteo_api_retailmedia_preview/model/audience_error.py +310 -0
  15. criteo_api_retailmedia_preview/model/audience_warning.py +312 -0
  16. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_response.py → creative_v2_list_response.py} +16 -16
  17. criteo_api_retailmedia_preview/model/{retail_media_externalv1_resource_outcome.py → creative_v2_response.py} +19 -17
  18. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → error_code_response.py} +23 -11
  19. criteo_api_retailmedia_preview/model/external_choice_variable_value.py +269 -0
  20. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → external_color_variable_value.py} +11 -14
  21. criteo_api_retailmedia_preview/model/external_creative_create_model_v2.py +297 -0
  22. criteo_api_retailmedia_preview/model/external_creative_update_model_v2.py +297 -0
  23. criteo_api_retailmedia_preview/model/external_creative_v2.py +361 -0
  24. criteo_api_retailmedia_preview/model/external_files_variable_value.py +272 -0
  25. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → external_hyperlink_variable_value.py} +7 -13
  26. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers.py → external_line_item_bid_multipliers_v2.py} +41 -29
  27. criteo_api_retailmedia_preview/model/external_page_type_environment.py +293 -0
  28. criteo_api_retailmedia_preview/model/external_template_variable_value.py +309 -0
  29. criteo_api_retailmedia_preview/model/external_text_variable_value.py +263 -0
  30. criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
  31. criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
  32. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py → json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py} +8 -8
  33. criteo_api_retailmedia_preview/model/{json_api_single_response_of_line_item_bid_multipliers.py → json_api_single_response_of_line_item_bid_multipliers_v2.py} +14 -14
  34. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keyword_data_model.py → keyword_data_model.py} +19 -37
  35. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model.py → keywords_model.py} +9 -18
  36. criteo_api_retailmedia_preview/model/keywords_model_resource.py +270 -0
  37. criteo_api_retailmedia_preview/model/keywords_model_response.py +274 -0
  38. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_request.py → line_item_bid_multipliers_v2_request.py} +8 -8
  39. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +281 -0
  40. criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
  41. criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
  42. criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
  43. criteo_api_retailmedia_preview/model/product_metadata.py +269 -0
  44. criteo_api_retailmedia_preview/model/product_resource_outcome.py +266 -0
  45. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → promoted_product.py} +18 -19
  46. criteo_api_retailmedia_preview/model/promoted_product_resource.py +270 -0
  47. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +262 -0
  48. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +278 -0
  49. criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model.py → proposal_status_model.py} +22 -50
  50. criteo_api_retailmedia_preview/model/proposal_status_model_resource.py +270 -0
  51. criteo_api_retailmedia_preview/model/proposal_status_model_response.py +274 -0
  52. criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_creative_v2.py} +8 -8
  53. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → resource_of_line_item_bid_multipliers_v2.py} +17 -23
  54. criteo_api_retailmedia_preview/model/resource_outcome.py +268 -0
  55. criteo_api_retailmedia_preview/model/retail_media_account.py +6 -6
  56. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_resource.py → retail_media_contactlist_amendment.py} +16 -20
  57. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → retail_media_contactlist_amendment_attributes.py} +34 -25
  58. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py +275 -0
  59. criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py +291 -0
  60. criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model_resource.py → retail_media_contactlist_operation_response_attributes.py} +14 -16
  61. criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.py +297 -0
  62. criteo_api_retailmedia_preview/model/review_state_model.py +294 -0
  63. criteo_api_retailmedia_preview/model/{retail_media_externalv1_problem_details.py → rmca_common_problem.py} +41 -30
  64. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bid_model.py → set_bid_model.py} +4 -10
  65. criteo_api_retailmedia_preview/model/set_bids_model.py +262 -0
  66. criteo_api_retailmedia_preview/model/set_bids_model_request.py +262 -0
  67. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +270 -0
  68. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +12 -10
  69. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +24 -13
  70. criteo_api_retailmedia_preview/model/sync_line_items_report.py +24 -13
  71. criteo_api_retailmedia_preview/models/__init__.py +58 -24
  72. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/METADATA +3 -3
  73. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/RECORD +75 -41
  74. criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py +0 -285
  75. criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
  76. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/WHEEL +0 -0
  77. {criteo_api_retailmedia_sdk-0.0.240404.dist-info → criteo_api_retailmedia_sdk-0.0.240618.dist-info}/top_level.txt +0 -0
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.problem_details import ProblemDetails
34
- from criteo_api_retailmedia_preview.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers
35
- globals()['ProblemDetails'] = ProblemDetails
36
- globals()['ResourceOfLineItemBidMultipliers'] = ResourceOfLineItemBidMultipliers
33
+ from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_preview.model.resource_of_creative_v2 import ResourceOfCreativeV2
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['ResourceOfCreativeV2'] = ResourceOfCreativeV2
37
37
 
38
38
 
39
- class LineItemBidMultipliersResponse(ModelNormal):
39
+ class CreativeV2ListResponse(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -89,9 +89,9 @@ class LineItemBidMultipliersResponse(ModelNormal):
89
89
  """
90
90
  lazy_import()
91
91
  return {
92
- 'data': (ResourceOfLineItemBidMultipliers,), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
92
+ 'data': ([ResourceOfCreativeV2], none_type,), # noqa: E501
93
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
95
  }
96
96
 
97
97
  @cached_property
@@ -115,7 +115,7 @@ class LineItemBidMultipliersResponse(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """LineItemBidMultipliersResponse - a model defined in OpenAPI
118
+ """CreativeV2ListResponse - a model defined in OpenAPI
119
119
 
120
120
  Keyword Args:
121
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,9 +148,9 @@ class LineItemBidMultipliersResponse(ModelNormal):
148
148
  Animal class but this time we won't travel
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
- data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
151
+ data ([ResourceOfCreativeV2], none_type): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
154
  """
155
155
 
156
156
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +203,7 @@ class LineItemBidMultipliersResponse(ModelNormal):
203
203
 
204
204
  @convert_js_args_to_python_args
205
205
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """LineItemBidMultipliersResponse - a model defined in OpenAPI
206
+ """CreativeV2ListResponse - a model defined in OpenAPI
207
207
 
208
208
  Keyword Args:
209
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,9 +236,9 @@ class LineItemBidMultipliersResponse(ModelNormal):
236
236
  Animal class but this time we won't travel
237
237
  through its discriminator because we passed in
238
238
  _visited_composed_classes = (Animal,)
239
- data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
239
+ data ([ResourceOfCreativeV2], none_type): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
242
242
  """
243
243
 
244
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails
34
- globals()['RetailMediaExternalv1ProblemDetails'] = RetailMediaExternalv1ProblemDetails
33
+ from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
+ from criteo_api_retailmedia_preview.model.resource_of_creative_v2 import ResourceOfCreativeV2
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['ResourceOfCreativeV2'] = ResourceOfCreativeV2
35
37
 
36
38
 
37
- class RetailMediaExternalv1ResourceOutcome(ModelNormal):
39
+ class CreativeV2Response(ModelNormal):
38
40
  """NOTE: This class is auto generated by OpenAPI Generator.
39
41
  Ref: https://openapi-generator.tech
40
42
 
@@ -62,10 +64,6 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
62
64
  }
63
65
 
64
66
  validations = {
65
- ('errors',): {
66
- },
67
- ('warnings',): {
68
- },
69
67
  }
70
68
 
71
69
  @cached_property
@@ -91,8 +89,9 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
91
89
  """
92
90
  lazy_import()
93
91
  return {
94
- 'errors': ([RetailMediaExternalv1ProblemDetails], none_type,), # noqa: E501
95
- 'warnings': ([RetailMediaExternalv1ProblemDetails], none_type,), # noqa: E501
92
+ 'data': (ResourceOfCreativeV2,), # noqa: E501
93
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
94
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
96
95
  }
97
96
 
98
97
  @cached_property
@@ -101,13 +100,14 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
101
100
 
102
101
 
103
102
  attribute_map = {
104
- 'errors': 'errors', # noqa: E501
103
+ 'data': 'data', # noqa: E501
105
104
  'warnings': 'warnings', # noqa: E501
105
+ 'errors': 'errors', # noqa: E501
106
106
  }
107
107
 
108
108
  read_only_vars = {
109
- 'errors', # noqa: E501
110
109
  'warnings', # noqa: E501
110
+ 'errors', # noqa: E501
111
111
  }
112
112
 
113
113
  _composed_schemas = {}
@@ -115,7 +115,7 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI
118
+ """CreativeV2Response - a model defined in OpenAPI
119
119
 
120
120
  Keyword Args:
121
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,8 +148,9 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
148
148
  Animal class but this time we won't travel
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
- errors ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501
152
- warnings ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501
151
+ data (ResourceOfCreativeV2): [optional] # noqa: E501
152
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
153
154
  """
154
155
 
155
156
  _check_type = kwargs.pop('_check_type', True)
@@ -202,7 +203,7 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
202
203
 
203
204
  @convert_js_args_to_python_args
204
205
  def __init__(self, *args, **kwargs): # noqa: E501
205
- """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI
206
+ """CreativeV2Response - a model defined in OpenAPI
206
207
 
207
208
  Keyword Args:
208
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -235,8 +236,9 @@ class RetailMediaExternalv1ResourceOutcome(ModelNormal):
235
236
  Animal class but this time we won't travel
236
237
  through its discriminator because we passed in
237
238
  _visited_composed_classes = (Animal,)
238
- errors ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501
239
- warnings ([RetailMediaExternalv1ProblemDetails], none_type): [optional] # noqa: E501
239
+ data (ResourceOfCreativeV2): [optional] # noqa: E501
240
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
240
242
  """
241
243
 
242
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model_resource import RetailMediaExternalv1AddRemoveKeywordsModelResource
34
- globals()['RetailMediaExternalv1AddRemoveKeywordsModelResource'] = RetailMediaExternalv1AddRemoveKeywordsModelResource
33
+ from criteo_api_retailmedia_preview.model.audience_error import AudienceError
34
+ from criteo_api_retailmedia_preview.model.audience_warning import AudienceWarning
35
+ globals()['AudienceError'] = AudienceError
36
+ globals()['AudienceWarning'] = AudienceWarning
35
37
 
36
38
 
37
- class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
39
+ class ErrorCodeResponse(ModelNormal):
38
40
  """NOTE: This class is auto generated by OpenAPI Generator.
39
41
  Ref: https://openapi-generator.tech
40
42
 
@@ -87,7 +89,8 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
87
89
  """
88
90
  lazy_import()
89
91
  return {
90
- 'data': (RetailMediaExternalv1AddRemoveKeywordsModelResource,), # noqa: E501
92
+ 'errors': ([AudienceError],), # noqa: E501
93
+ 'warnings': ([AudienceWarning], none_type,), # noqa: E501
91
94
  }
92
95
 
93
96
  @cached_property
@@ -96,7 +99,8 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
96
99
 
97
100
 
98
101
  attribute_map = {
99
- 'data': 'data', # noqa: E501
102
+ 'errors': 'errors', # noqa: E501
103
+ 'warnings': 'warnings', # noqa: E501
100
104
  }
101
105
 
102
106
  read_only_vars = {
@@ -106,8 +110,11 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
106
110
 
107
111
  @classmethod
108
112
  @convert_js_args_to_python_args
109
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """RetailMediaExternalv1AddRemoveKeywordsModelRequest - a model defined in OpenAPI
113
+ def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501
114
+ """ErrorCodeResponse - a model defined in OpenAPI
115
+
116
+ Args:
117
+ errors ([AudienceError]):
111
118
 
112
119
  Keyword Args:
113
120
  _check_type (bool): if True, values for parameters in openapi_types
@@ -140,7 +147,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
140
147
  Animal class but this time we won't travel
141
148
  through its discriminator because we passed in
142
149
  _visited_composed_classes = (Animal,)
143
- data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [optional] # noqa: E501
150
+ warnings ([AudienceWarning], none_type): [optional] # noqa: E501
144
151
  """
145
152
 
146
153
  _check_type = kwargs.pop('_check_type', True)
@@ -172,6 +179,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
172
179
  self._configuration = _configuration
173
180
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
174
181
 
182
+ self.errors = errors
175
183
  for var_name, var_value in kwargs.items():
176
184
  if var_name not in self.attribute_map and \
177
185
  self._configuration is not None and \
@@ -192,8 +200,11 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
192
200
  ])
193
201
 
194
202
  @convert_js_args_to_python_args
195
- def __init__(self, *args, **kwargs): # noqa: E501
196
- """RetailMediaExternalv1AddRemoveKeywordsModelRequest - a model defined in OpenAPI
203
+ def __init__(self, errors, *args, **kwargs): # noqa: E501
204
+ """ErrorCodeResponse - a model defined in OpenAPI
205
+
206
+ Args:
207
+ errors ([AudienceError]):
197
208
 
198
209
  Keyword Args:
199
210
  _check_type (bool): if True, values for parameters in openapi_types
@@ -226,7 +237,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
226
237
  Animal class but this time we won't travel
227
238
  through its discriminator because we passed in
228
239
  _visited_composed_classes = (Animal,)
229
- data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [optional] # noqa: E501
240
+ warnings ([AudienceWarning], none_type): [optional] # noqa: E501
230
241
  """
231
242
 
232
243
  _check_type = kwargs.pop('_check_type', True)
@@ -256,6 +267,7 @@ class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal):
256
267
  self._configuration = _configuration
257
268
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
258
269
 
270
+ self.errors = errors
259
271
  for var_name, var_value in kwargs.items():
260
272
  if var_name not in self.attribute_map and \
261
273
  self._configuration is not None and \
@@ -0,0 +1,269 @@
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 ExternalChoiceVariableValue(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
+ """ExternalChoiceVariableValue - 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
+ """ExternalChoiceVariableValue - 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.")
@@ -29,12 +29,8 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bid_model import RetailMediaExternalv1SetBidModel
34
- globals()['RetailMediaExternalv1SetBidModel'] = RetailMediaExternalv1SetBidModel
35
32
 
36
-
37
- class RetailMediaExternalv1SetBidsModel(ModelNormal):
33
+ class ExternalColorVariableValue(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -62,7 +58,10 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
62
58
  }
63
59
 
64
60
  validations = {
65
- ('keywords',): {
61
+ ('color',): {
62
+ 'regex': {
63
+ 'pattern': r'^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$', # noqa: E501
64
+ },
66
65
  },
67
66
  }
68
67
 
@@ -72,7 +71,6 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
72
71
  This must be a method because a model may have properties that are
73
72
  of type self, this must run after the class is loaded
74
73
  """
75
- lazy_import()
76
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
75
 
78
76
  _nullable = False
@@ -87,9 +85,8 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
87
85
  openapi_types (dict): The key is attribute name
88
86
  and the value is attribute type.
89
87
  """
90
- lazy_import()
91
88
  return {
92
- 'keywords': ([RetailMediaExternalv1SetBidModel], none_type,), # noqa: E501
89
+ 'color': (str, none_type,), # noqa: E501
93
90
  }
94
91
 
95
92
  @cached_property
@@ -98,7 +95,7 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
98
95
 
99
96
 
100
97
  attribute_map = {
101
- 'keywords': 'keywords', # noqa: E501
98
+ 'color': 'color', # noqa: E501
102
99
  }
103
100
 
104
101
  read_only_vars = {
@@ -109,7 +106,7 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
109
106
  @classmethod
110
107
  @convert_js_args_to_python_args
111
108
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
112
- """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI
109
+ """ExternalColorVariableValue - a model defined in OpenAPI
113
110
 
114
111
  Keyword Args:
115
112
  _check_type (bool): if True, values for parameters in openapi_types
@@ -142,7 +139,7 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
142
139
  Animal class but this time we won't travel
143
140
  through its discriminator because we passed in
144
141
  _visited_composed_classes = (Animal,)
145
- keywords ([RetailMediaExternalv1SetBidModel], none_type): [optional] # noqa: E501
142
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
146
143
  """
147
144
 
148
145
  _check_type = kwargs.pop('_check_type', True)
@@ -195,7 +192,7 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
195
192
 
196
193
  @convert_js_args_to_python_args
197
194
  def __init__(self, *args, **kwargs): # noqa: E501
198
- """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI
195
+ """ExternalColorVariableValue - a model defined in OpenAPI
199
196
 
200
197
  Keyword Args:
201
198
  _check_type (bool): if True, values for parameters in openapi_types
@@ -228,7 +225,7 @@ class RetailMediaExternalv1SetBidsModel(ModelNormal):
228
225
  Animal class but this time we won't travel
229
226
  through its discriminator because we passed in
230
227
  _visited_composed_classes = (Animal,)
231
- keywords ([RetailMediaExternalv1SetBidModel], none_type): [optional] # noqa: E501
228
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
232
229
  """
233
230
 
234
231
  _check_type = kwargs.pop('_check_type', True)