criteo-api-retailmedia-sdk 0.0.240207__py3-none-any.whl → 0.0.240515__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.
Files changed (131) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
  3. criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +284 -0
  5. criteo_api_retailmedia_preview/api/campaign_api.py +1678 -902
  6. criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
  7. criteo_api_retailmedia_preview/api_client.py +4 -4
  8. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  9. criteo_api_retailmedia_preview/configuration.py +1 -1
  10. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keyword_model.py → add_remove_keyword_model.py} +12 -19
  11. criteo_api_retailmedia_preview/model/add_remove_keywords_model.py +262 -0
  12. criteo_api_retailmedia_preview/model/add_remove_keywords_model_request.py +262 -0
  13. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +270 -0
  14. criteo_api_retailmedia_preview/model/approval_status_model.py +292 -0
  15. criteo_api_retailmedia_preview/model/async_accounts_report.py +421 -0
  16. criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
  17. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
  18. criteo_api_retailmedia_preview/model/async_campaigns_report.py +74 -59
  19. criteo_api_retailmedia_preview/model/async_line_items_report.py +74 -60
  20. criteo_api_retailmedia_preview/model/audience_error.py +310 -0
  21. criteo_api_retailmedia_preview/model/{template_variable.py → audience_warning.py} +48 -46
  22. criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → batch_accepted_response.py} +11 -11
  23. criteo_api_retailmedia_preview/model/change_details.py +275 -0
  24. criteo_api_retailmedia_preview/model/{creative202210_list_response.py → creative_v2_list_response.py} +16 -16
  25. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → creative_v2_response.py} +16 -9
  26. criteo_api_retailmedia_preview/model/custom_attribute.py +275 -0
  27. criteo_api_retailmedia_preview/model/error_code_response.py +281 -0
  28. criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
  29. criteo_api_retailmedia_preview/model/{choice_variable_value.py → external_choice_variable_value.py} +3 -3
  30. criteo_api_retailmedia_preview/model/{color_variable_value.py → external_color_variable_value.py} +8 -14
  31. criteo_api_retailmedia_preview/model/{creative_update_model202207.py → external_creative_create_model_v2.py} +11 -11
  32. criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_creative_update_model_v2.py} +11 -11
  33. criteo_api_retailmedia_preview/model/{creative202210.py → external_creative_v2.py} +34 -28
  34. criteo_api_retailmedia_preview/model/{files_variable_value.py → external_files_variable_value.py} +4 -3
  35. criteo_api_retailmedia_preview/model/{text_variable_specification.py → external_hyperlink_variable_value.py} +7 -7
  36. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers.py → external_line_item_bid_multipliers_v2.py} +41 -29
  37. criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py +280 -0
  38. criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
  39. criteo_api_retailmedia_preview/model/{choice_variable_specification.py → external_line_item_page_v2.py} +36 -21
  40. criteo_api_retailmedia_preview/model/{page_type_environment.py → external_page_type_environment.py} +15 -9
  41. criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +345 -0
  42. criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
  43. criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
  44. criteo_api_retailmedia_preview/model/{template_variable_value.py → external_template_variable_value.py} +36 -30
  45. criteo_api_retailmedia_preview/model/{text_variable_value.py → external_text_variable_value.py} +8 -14
  46. criteo_api_retailmedia_preview/model/external_video_variable_value.py +293 -0
  47. criteo_api_retailmedia_preview/model/{choice_option.py → fail_response.py} +21 -19
  48. criteo_api_retailmedia_preview/model/{retail_media_externalv1_input_keywords_model.py → input_keywords_model.py} +4 -16
  49. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model.py → input_resource_of_preferred_line_item_create_model_v2.py} +13 -11
  50. criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture.py +303 -0
  51. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model.py → installment.py} +13 -11
  52. 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
  53. 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
  54. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keyword_data_model.py → keyword_data_model.py} +19 -37
  55. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model.py → keywords_model.py} +9 -18
  56. criteo_api_retailmedia_preview/model/keywords_model_resource.py +270 -0
  57. criteo_api_retailmedia_preview/model/keywords_model_response.py +274 -0
  58. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_request.py → line_item_bid_multipliers_v2_request.py} +8 -8
  59. criteo_api_retailmedia_preview/model/{line_item_bid_multipliers_response.py → line_item_bid_multipliers_v2_response.py} +16 -16
  60. criteo_api_retailmedia_preview/model/line_item_product_status.py +291 -0
  61. criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
  62. criteo_api_retailmedia_preview/model/match_type_model.py +291 -0
  63. criteo_api_retailmedia_preview/model/metadata.py +273 -0
  64. criteo_api_retailmedia_preview/model/negotiation_state_model.py +293 -0
  65. criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
  66. criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
  67. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_request.py → preferred_line_item_update_model_v2_request.py} +8 -8
  68. criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
  69. criteo_api_retailmedia_preview/model/{template_response.py → preferred_line_item_v2_response.py} +16 -16
  70. criteo_api_retailmedia_preview/model/price.py +267 -0
  71. criteo_api_retailmedia_preview/model/product.py +626 -0
  72. criteo_api_retailmedia_preview/model/product_importer_error.py +299 -0
  73. criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
  74. criteo_api_retailmedia_preview/model/product_metadata.py +269 -0
  75. criteo_api_retailmedia_preview/model/product_resource_outcome.py +266 -0
  76. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_response.py → product_shipping.py} +33 -25
  77. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
  78. criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
  79. criteo_api_retailmedia_preview/model/product_tax.py +283 -0
  80. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +267 -0
  81. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +267 -0
  82. criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
  83. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +305 -0
  84. criteo_api_retailmedia_preview/model/promoted_product.py +270 -0
  85. criteo_api_retailmedia_preview/model/promoted_product_resource.py +270 -0
  86. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +262 -0
  87. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +278 -0
  88. criteo_api_retailmedia_preview/model/{retail_media_externalv1_proposal_status_model.py → proposal_status_model.py} +22 -50
  89. criteo_api_retailmedia_preview/model/proposal_status_model_resource.py +270 -0
  90. criteo_api_retailmedia_preview/model/{template_list_response.py → proposal_status_model_response.py} +20 -27
  91. criteo_api_retailmedia_preview/model/report_detail_error.py +299 -0
  92. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_request.py → report_detail_errors.py} +23 -11
  93. criteo_api_retailmedia_preview/model/{retail_media_externalv1_keywords_model_resource.py → report_ok_response.py} +56 -21
  94. criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_creative_v2.py} +8 -8
  95. criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_line_item_bid_multipliers_v2.py} +8 -8
  96. criteo_api_retailmedia_preview/model/{retail_media_externalv1_add_remove_keywords_model_resource.py → resource_of_preferred_line_item_update_model_v2.py} +16 -22
  97. criteo_api_retailmedia_preview/model/{resource_of_line_item_bid_multipliers.py → resource_of_preferred_line_item_v2.py} +9 -9
  98. criteo_api_retailmedia_preview/model/resource_outcome.py +268 -0
  99. criteo_api_retailmedia_preview/model/retail_media_account.py +6 -6
  100. criteo_api_retailmedia_preview/model/retail_media_brands.py +257 -0
  101. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → retail_media_contactlist_amendment.py} +16 -16
  102. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bids_model_resource.py → retail_media_contactlist_amendment_attributes.py} +34 -25
  103. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py +275 -0
  104. criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → retail_media_contactlist_operation.py} +24 -20
  105. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → retail_media_contactlist_operation_response_attributes.py} +14 -18
  106. criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.py +297 -0
  107. criteo_api_retailmedia_preview/model/review_state_model.py +294 -0
  108. criteo_api_retailmedia_preview/model/{retail_media_externalv1_problem_details.py → rmca_common_problem.py} +41 -30
  109. criteo_api_retailmedia_preview/model/{retail_media_externalv1_set_bid_model.py → set_bid_model.py} +4 -10
  110. criteo_api_retailmedia_preview/model/set_bids_model.py +262 -0
  111. criteo_api_retailmedia_preview/model/set_bids_model_request.py +262 -0
  112. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +270 -0
  113. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +47 -45
  114. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +68 -53
  115. criteo_api_retailmedia_preview/model/sync_line_items_report.py +70 -56
  116. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  117. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
  118. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
  119. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  120. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
  121. criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
  122. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  123. criteo_api_retailmedia_preview/models/__init__.py +106 -55
  124. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/METADATA +3 -3
  125. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/RECORD +127 -75
  126. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/WHEEL +1 -1
  127. criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
  128. criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py +0 -283
  129. criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +0 -285
  130. criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py +0 -279
  131. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240515.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,270 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
+ ApiTypeError,
16
+ ModelComposed,
17
+ ModelNormal,
18
+ ModelSimple,
19
+ cached_property,
20
+ change_keys_js_to_python,
21
+ convert_js_args_to_python_args,
22
+ date,
23
+ datetime,
24
+ file_type,
25
+ none_type,
26
+ validate_get_composed_info,
27
+ OpenApiModel
28
+ )
29
+ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.proposal_status_model import ProposalStatusModel
34
+ globals()['ProposalStatusModel'] = ProposalStatusModel
35
+
36
+
37
+ class ProposalStatusModelResource(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
+ additional_properties_type = None
68
+
69
+ _nullable = False
70
+
71
+ @cached_property
72
+ def openapi_types():
73
+ """
74
+ This must be a method because a model may have properties that are
75
+ of type self, this must run after the class is loaded
76
+
77
+ Returns
78
+ openapi_types (dict): The key is attribute name
79
+ and the value is attribute type.
80
+ """
81
+ lazy_import()
82
+ return {
83
+ 'id': (str, none_type,), # noqa: E501
84
+ 'type': (str, none_type,), # noqa: E501
85
+ 'attributes': (ProposalStatusModel,), # noqa: E501
86
+ }
87
+
88
+ @cached_property
89
+ def discriminator():
90
+ return None
91
+
92
+
93
+ attribute_map = {
94
+ 'id': 'id', # noqa: E501
95
+ 'type': 'type', # noqa: E501
96
+ 'attributes': 'attributes', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """ProposalStatusModelResource - a model defined in OpenAPI
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
+ id (str, none_type): [optional] # noqa: E501
141
+ type (str, none_type): [optional] # noqa: E501
142
+ attributes (ProposalStatusModel): [optional] # noqa: E501
143
+ """
144
+
145
+ _check_type = kwargs.pop('_check_type', True)
146
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
+ _path_to_item = kwargs.pop('_path_to_item', ())
148
+ _configuration = kwargs.pop('_configuration', None)
149
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
+
151
+ self = super(OpenApiModel, cls).__new__(cls)
152
+
153
+ if args:
154
+ for arg in args:
155
+ if isinstance(arg, dict):
156
+ kwargs.update(arg)
157
+ else:
158
+ raise ApiTypeError(
159
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
+ args,
161
+ self.__class__.__name__,
162
+ ),
163
+ path_to_item=_path_to_item,
164
+ valid_classes=(self.__class__,),
165
+ )
166
+
167
+ self._data_store = {}
168
+ self._check_type = _check_type
169
+ self._spec_property_naming = _spec_property_naming
170
+ self._path_to_item = _path_to_item
171
+ self._configuration = _configuration
172
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
+
174
+ for var_name, var_value in kwargs.items():
175
+ if var_name not in self.attribute_map and \
176
+ self._configuration is not None and \
177
+ self._configuration.discard_unknown_keys and \
178
+ self.additional_properties_type is None:
179
+ # discard variable.
180
+ continue
181
+ setattr(self, var_name, var_value)
182
+ return self
183
+
184
+ required_properties = set([
185
+ '_data_store',
186
+ '_check_type',
187
+ '_spec_property_naming',
188
+ '_path_to_item',
189
+ '_configuration',
190
+ '_visited_composed_classes',
191
+ ])
192
+
193
+ @convert_js_args_to_python_args
194
+ def __init__(self, *args, **kwargs): # noqa: E501
195
+ """ProposalStatusModelResource - a model defined in OpenAPI
196
+
197
+ Keyword Args:
198
+ _check_type (bool): if True, values for parameters in openapi_types
199
+ will be type checked and a TypeError will be
200
+ raised if the wrong type is input.
201
+ Defaults to True
202
+ _path_to_item (tuple/list): This is a list of keys or values to
203
+ drill down to the model in received_data
204
+ when deserializing a response
205
+ _spec_property_naming (bool): True if the variable names in the input data
206
+ are serialized names, as specified in the OpenAPI document.
207
+ False if the variable names in the input data
208
+ are pythonic names, e.g. snake case (default)
209
+ _configuration (Configuration): the instance to use when
210
+ deserializing a file_type parameter.
211
+ If passed, type conversion is attempted
212
+ If omitted no type conversion is done.
213
+ _visited_composed_classes (tuple): This stores a tuple of
214
+ classes that we have traveled through so that
215
+ if we see that class again we will not use its
216
+ discriminator again.
217
+ When traveling through a discriminator, the
218
+ composed schema that is
219
+ is traveled through is added to this set.
220
+ For example if Animal has a discriminator
221
+ petType and we pass in "Dog", and the class Dog
222
+ allOf includes Animal, we move through Animal
223
+ once using the discriminator, and pick Dog.
224
+ Then in Dog, we will make an instance of the
225
+ Animal class but this time we won't travel
226
+ through its discriminator because we passed in
227
+ _visited_composed_classes = (Animal,)
228
+ id (str, none_type): [optional] # noqa: E501
229
+ type (str, none_type): [optional] # noqa: E501
230
+ attributes (ProposalStatusModel): [optional] # noqa: E501
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ for arg in args:
241
+ if isinstance(arg, dict):
242
+ kwargs.update(arg)
243
+ else:
244
+ raise ApiTypeError(
245
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
+ args,
247
+ self.__class__.__name__,
248
+ ),
249
+ path_to_item=_path_to_item,
250
+ valid_classes=(self.__class__,),
251
+ )
252
+
253
+ self._data_store = {}
254
+ self._check_type = _check_type
255
+ self._spec_property_naming = _spec_property_naming
256
+ self._path_to_item = _path_to_item
257
+ self._configuration = _configuration
258
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
+
260
+ for var_name, var_value in kwargs.items():
261
+ if var_name not in self.attribute_map and \
262
+ self._configuration is not None and \
263
+ self._configuration.discard_unknown_keys and \
264
+ self.additional_properties_type is None:
265
+ # discard variable.
266
+ continue
267
+ setattr(self, var_name, var_value)
268
+ if var_name in self.read_only_vars:
269
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
270
+ f"class with read only attributes.")
@@ -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_template import ResourceOfTemplate
35
- globals()['ProblemDetails'] = ProblemDetails
36
- globals()['ResourceOfTemplate'] = ResourceOfTemplate
33
+ from criteo_api_retailmedia_preview.model.proposal_status_model_resource import ProposalStatusModelResource
34
+ from criteo_api_retailmedia_preview.model.rmca_common_problem import RmcaCommonProblem
35
+ globals()['ProposalStatusModelResource'] = ProposalStatusModelResource
36
+ globals()['RmcaCommonProblem'] = RmcaCommonProblem
37
37
 
38
38
 
39
- class TemplateListResponse(ModelNormal):
39
+ class ProposalStatusModelResponse(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -66,14 +66,7 @@ class TemplateListResponse(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
77
70
 
78
71
  _nullable = False
79
72
 
@@ -89,9 +82,9 @@ class TemplateListResponse(ModelNormal):
89
82
  """
90
83
  lazy_import()
91
84
  return {
92
- 'data': ([ResourceOfTemplate],), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
85
+ 'errors': ([RmcaCommonProblem], none_type,), # noqa: E501
86
+ 'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501
87
+ 'data': (ProposalStatusModelResource,), # noqa: E501
95
88
  }
96
89
 
97
90
  @cached_property
@@ -100,14 +93,14 @@ class TemplateListResponse(ModelNormal):
100
93
 
101
94
 
102
95
  attribute_map = {
103
- 'data': 'data', # noqa: E501
104
- 'warnings': 'warnings', # noqa: E501
105
96
  'errors': 'errors', # noqa: E501
97
+ 'warnings': 'warnings', # noqa: E501
98
+ 'data': 'data', # noqa: E501
106
99
  }
107
100
 
108
101
  read_only_vars = {
109
- 'warnings', # noqa: E501
110
102
  'errors', # noqa: E501
103
+ 'warnings', # noqa: E501
111
104
  }
112
105
 
113
106
  _composed_schemas = {}
@@ -115,7 +108,7 @@ class TemplateListResponse(ModelNormal):
115
108
  @classmethod
116
109
  @convert_js_args_to_python_args
117
110
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """TemplateListResponse - a model defined in OpenAPI
111
+ """ProposalStatusModelResponse - a model defined in OpenAPI
119
112
 
120
113
  Keyword Args:
121
114
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,9 +141,9 @@ class TemplateListResponse(ModelNormal):
148
141
  Animal class but this time we won't travel
149
142
  through its discriminator because we passed in
150
143
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfTemplate]): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
144
+ errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
145
+ warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
146
+ data (ProposalStatusModelResource): [optional] # noqa: E501
154
147
  """
155
148
 
156
149
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +196,7 @@ class TemplateListResponse(ModelNormal):
203
196
 
204
197
  @convert_js_args_to_python_args
205
198
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """TemplateListResponse - a model defined in OpenAPI
199
+ """ProposalStatusModelResponse - a model defined in OpenAPI
207
200
 
208
201
  Keyword Args:
209
202
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,9 +229,9 @@ class TemplateListResponse(ModelNormal):
236
229
  Animal class but this time we won't travel
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfTemplate]): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
232
+ errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
233
+ warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
234
+ data (ProposalStatusModelResource): [optional] # noqa: E501
242
235
  """
243
236
 
244
237
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,299 @@
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 ReportDetailError(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
+ ('type',): {
59
+ 'UNKNOWNERROR': "UnknownError",
60
+ 'INVALIDBIGIMAGEURL': "InvalidBigImageUrl",
61
+ 'INVALIDPRODUCTID': "InvalidProductId",
62
+ 'INVALIDPRODUCTURL': "InvalidProductUrl",
63
+ 'INVALIDSMALLIMAGEURL': "InvalidSmallImageUrl",
64
+ 'JSONPARSINGISSUE': "JsonParsingIssue",
65
+ 'MISSINGID': "MissingID",
66
+ 'MISSINGIMAGES': "MissingImages",
67
+ 'MISSINGNAME': "MissingName",
68
+ 'MISSINGURL': "MissingURL",
69
+ 'NONASCIIID': "NonAsciiId",
70
+ 'OVERLARGEBIGIMAGE': "OverlargeBigImage",
71
+ 'OVERLARGEID': "OverlargeID",
72
+ 'OVERLARGESMALLIMAGE': "OverlargeSmallImage",
73
+ 'OVERLARGEURL': "OverlargeURL",
74
+ 'CONFIGURATIONERROR': "ConfigurationError",
75
+ },
76
+ }
77
+
78
+ validations = {
79
+ }
80
+
81
+ @cached_property
82
+ def additional_properties_type():
83
+ """
84
+ This must be a method because a model may have properties that are
85
+ of type self, this must run after the class is loaded
86
+ """
87
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
88
+
89
+ _nullable = False
90
+
91
+ @cached_property
92
+ def openapi_types():
93
+ """
94
+ This must be a method because a model may have properties that are
95
+ of type self, this must run after the class is loaded
96
+
97
+ Returns
98
+ openapi_types (dict): The key is attribute name
99
+ and the value is attribute type.
100
+ """
101
+ return {
102
+ 'type': (str,), # noqa: E501
103
+ 'message': (str,), # noqa: E501
104
+ 'is_server_related': (bool,), # noqa: E501
105
+ }
106
+
107
+ @cached_property
108
+ def discriminator():
109
+ return None
110
+
111
+
112
+ attribute_map = {
113
+ 'type': 'type', # noqa: E501
114
+ 'message': 'message', # noqa: E501
115
+ 'is_server_related': 'isServerRelated', # noqa: E501
116
+ }
117
+
118
+ read_only_vars = {
119
+ }
120
+
121
+ _composed_schemas = {}
122
+
123
+ @classmethod
124
+ @convert_js_args_to_python_args
125
+ def _from_openapi_data(cls, type, message, is_server_related, *args, **kwargs): # noqa: E501
126
+ """ReportDetailError - a model defined in OpenAPI
127
+
128
+ Args:
129
+ type (str):
130
+ message (str):
131
+ is_server_related (bool):
132
+
133
+ Keyword Args:
134
+ _check_type (bool): if True, values for parameters in openapi_types
135
+ will be type checked and a TypeError will be
136
+ raised if the wrong type is input.
137
+ Defaults to True
138
+ _path_to_item (tuple/list): This is a list of keys or values to
139
+ drill down to the model in received_data
140
+ when deserializing a response
141
+ _spec_property_naming (bool): True if the variable names in the input data
142
+ are serialized names, as specified in the OpenAPI document.
143
+ False if the variable names in the input data
144
+ are pythonic names, e.g. snake case (default)
145
+ _configuration (Configuration): the instance to use when
146
+ deserializing a file_type parameter.
147
+ If passed, type conversion is attempted
148
+ If omitted no type conversion is done.
149
+ _visited_composed_classes (tuple): This stores a tuple of
150
+ classes that we have traveled through so that
151
+ if we see that class again we will not use its
152
+ discriminator again.
153
+ When traveling through a discriminator, the
154
+ composed schema that is
155
+ is traveled through is added to this set.
156
+ For example if Animal has a discriminator
157
+ petType and we pass in "Dog", and the class Dog
158
+ allOf includes Animal, we move through Animal
159
+ once using the discriminator, and pick Dog.
160
+ Then in Dog, we will make an instance of the
161
+ Animal class but this time we won't travel
162
+ through its discriminator because we passed in
163
+ _visited_composed_classes = (Animal,)
164
+ """
165
+
166
+ _check_type = kwargs.pop('_check_type', True)
167
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
168
+ _path_to_item = kwargs.pop('_path_to_item', ())
169
+ _configuration = kwargs.pop('_configuration', None)
170
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
171
+
172
+ self = super(OpenApiModel, cls).__new__(cls)
173
+
174
+ if args:
175
+ for arg in args:
176
+ if isinstance(arg, dict):
177
+ kwargs.update(arg)
178
+ else:
179
+ raise ApiTypeError(
180
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
181
+ args,
182
+ self.__class__.__name__,
183
+ ),
184
+ path_to_item=_path_to_item,
185
+ valid_classes=(self.__class__,),
186
+ )
187
+
188
+ self._data_store = {}
189
+ self._check_type = _check_type
190
+ self._spec_property_naming = _spec_property_naming
191
+ self._path_to_item = _path_to_item
192
+ self._configuration = _configuration
193
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
194
+
195
+ self.type = type
196
+ self.message = message
197
+ self.is_server_related = is_server_related
198
+ for var_name, var_value in kwargs.items():
199
+ if var_name not in self.attribute_map and \
200
+ self._configuration is not None and \
201
+ self._configuration.discard_unknown_keys and \
202
+ self.additional_properties_type is None:
203
+ # discard variable.
204
+ continue
205
+ setattr(self, var_name, var_value)
206
+ return self
207
+
208
+ required_properties = set([
209
+ '_data_store',
210
+ '_check_type',
211
+ '_spec_property_naming',
212
+ '_path_to_item',
213
+ '_configuration',
214
+ '_visited_composed_classes',
215
+ ])
216
+
217
+ @convert_js_args_to_python_args
218
+ def __init__(self, type, message, is_server_related, *args, **kwargs): # noqa: E501
219
+ """ReportDetailError - a model defined in OpenAPI
220
+
221
+ Args:
222
+ type (str):
223
+ message (str):
224
+ is_server_related (bool):
225
+
226
+ Keyword Args:
227
+ _check_type (bool): if True, values for parameters in openapi_types
228
+ will be type checked and a TypeError will be
229
+ raised if the wrong type is input.
230
+ Defaults to True
231
+ _path_to_item (tuple/list): This is a list of keys or values to
232
+ drill down to the model in received_data
233
+ when deserializing a response
234
+ _spec_property_naming (bool): True if the variable names in the input data
235
+ are serialized names, as specified in the OpenAPI document.
236
+ False if the variable names in the input data
237
+ are pythonic names, e.g. snake case (default)
238
+ _configuration (Configuration): the instance to use when
239
+ deserializing a file_type parameter.
240
+ If passed, type conversion is attempted
241
+ If omitted no type conversion is done.
242
+ _visited_composed_classes (tuple): This stores a tuple of
243
+ classes that we have traveled through so that
244
+ if we see that class again we will not use its
245
+ discriminator again.
246
+ When traveling through a discriminator, the
247
+ composed schema that is
248
+ is traveled through is added to this set.
249
+ For example if Animal has a discriminator
250
+ petType and we pass in "Dog", and the class Dog
251
+ allOf includes Animal, we move through Animal
252
+ once using the discriminator, and pick Dog.
253
+ Then in Dog, we will make an instance of the
254
+ Animal class but this time we won't travel
255
+ through its discriminator because we passed in
256
+ _visited_composed_classes = (Animal,)
257
+ """
258
+
259
+ _check_type = kwargs.pop('_check_type', True)
260
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
261
+ _path_to_item = kwargs.pop('_path_to_item', ())
262
+ _configuration = kwargs.pop('_configuration', None)
263
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
264
+
265
+ if args:
266
+ for arg in args:
267
+ if isinstance(arg, dict):
268
+ kwargs.update(arg)
269
+ else:
270
+ raise ApiTypeError(
271
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
272
+ args,
273
+ self.__class__.__name__,
274
+ ),
275
+ path_to_item=_path_to_item,
276
+ valid_classes=(self.__class__,),
277
+ )
278
+
279
+ self._data_store = {}
280
+ self._check_type = _check_type
281
+ self._spec_property_naming = _spec_property_naming
282
+ self._path_to_item = _path_to_item
283
+ self._configuration = _configuration
284
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
285
+
286
+ self.type = type
287
+ self.message = message
288
+ self.is_server_related = is_server_related
289
+ for var_name, var_value in kwargs.items():
290
+ if var_name not in self.attribute_map and \
291
+ self._configuration is not None and \
292
+ self._configuration.discard_unknown_keys and \
293
+ self.additional_properties_type is None:
294
+ # discard variable.
295
+ continue
296
+ setattr(self, var_name, var_value)
297
+ if var_name in self.read_only_vars:
298
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
+ f"class with read only attributes.")