criteo-api-retailmedia-sdk 2024.10.0.241029__py3-none-any.whl → 2024.10.0.250129__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (79) hide show
  1. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/RECORD +68 -78
  3. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_10/api/accounts_api.py +30 -41
  6. criteo_api_retailmedia_v2024_10/api/campaign_api.py +22 -282
  7. criteo_api_retailmedia_v2024_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +40 -0
  10. criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +40 -0
  11. criteo_api_retailmedia_v2024_10/model/async_revenue_report.py +29 -2
  12. criteo_api_retailmedia_v2024_10/model/balance_response_v2_response.py +1 -1
  13. criteo_api_retailmedia_v2024_10/model/change_details_v1.py +8 -18
  14. criteo_api_retailmedia_v2024_10/model/choice_option.py +1 -8
  15. criteo_api_retailmedia_v2024_10/model/choice_variable_specification.py +1 -8
  16. criteo_api_retailmedia_v2024_10/model/choice_variable_value.py +1 -7
  17. criteo_api_retailmedia_v2024_10/model/color_variable_value.py +7 -19
  18. criteo_api_retailmedia_v2024_10/model/{external_creative_v2.py → creative2.py} +23 -30
  19. criteo_api_retailmedia_v2024_10/model/creative202110.py +7 -13
  20. criteo_api_retailmedia_v2024_10/model/creative202110_list_response.py +13 -20
  21. criteo_api_retailmedia_v2024_10/model/creative202210.py +12 -19
  22. criteo_api_retailmedia_v2024_10/model/creative202210_response.py +10 -17
  23. criteo_api_retailmedia_v2024_10/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
  24. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_response.py → creative2_response.py} +20 -20
  25. criteo_api_retailmedia_v2024_10/model/creative_create_model202207.py +4 -11
  26. criteo_api_retailmedia_v2024_10/model/creative_update_model202207.py +4 -11
  27. criteo_api_retailmedia_v2024_10/model/{resource_of_creative_v2.py → entity_resource_of_retail_media_account.py} +14 -14
  28. criteo_api_retailmedia_v2024_10/model/{creative_v2_response.py → entity_resource_outcome_of_retail_media_account.py} +9 -9
  29. criteo_api_retailmedia_v2024_10/model/external_line_item_bid_multipliers_v2.py +1 -1
  30. criteo_api_retailmedia_v2024_10/model/{retail_media_account.py → external_retail_media_account.py} +29 -23
  31. criteo_api_retailmedia_v2024_10/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +18 -12
  32. criteo_api_retailmedia_v2024_10/model/{external_text_variable_value.py → external_retail_media_brands.py} +7 -7
  33. criteo_api_retailmedia_v2024_10/model/{external_hyperlink_variable_value.py → external_retail_media_seller.py} +12 -8
  34. criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py +281 -0
  35. criteo_api_retailmedia_v2024_10/model/files_variable_value.py +2 -7
  36. criteo_api_retailmedia_v2024_10/model/files_variables_specification.py +7 -15
  37. criteo_api_retailmedia_v2024_10/model/hyperlink_variable_value.py +7 -19
  38. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_request.py +1 -1
  39. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_response.py +1 -1
  40. criteo_api_retailmedia_v2024_10/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
  41. criteo_api_retailmedia_v2024_10/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  42. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
  43. criteo_api_retailmedia_v2024_10/model/resource_of_creative202110.py +6 -13
  44. criteo_api_retailmedia_v2024_10/model/resource_of_creative202210.py +2 -9
  45. criteo_api_retailmedia_v2024_10/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
  46. criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_v2.py +1 -1
  47. criteo_api_retailmedia_v2024_10/model/resource_of_template.py +2 -9
  48. criteo_api_retailmedia_v2024_10/model/section.py +6 -9
  49. criteo_api_retailmedia_v2024_10/model/template.py +13 -24
  50. criteo_api_retailmedia_v2024_10/model/template_list_response.py +13 -20
  51. criteo_api_retailmedia_v2024_10/model/template_response.py +10 -17
  52. criteo_api_retailmedia_v2024_10/model/template_variable.py +1 -8
  53. criteo_api_retailmedia_v2024_10/model/template_variable_value.py +7 -8
  54. criteo_api_retailmedia_v2024_10/model/text_variable_specification.py +2 -8
  55. criteo_api_retailmedia_v2024_10/model/text_variable_value.py +7 -19
  56. criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py +12 -5
  57. criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py +9 -2
  58. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  59. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brands.py +9 -2
  60. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_seller_account_creation.py +9 -2
  61. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  62. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brands.py +14 -7
  63. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller.py +14 -7
  64. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py +14 -7
  65. criteo_api_retailmedia_v2024_10/model/{creative_v2_list_response.py → value_resource_outcome_of_retail_media_brands.py} +9 -9
  66. criteo_api_retailmedia_v2024_10/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
  67. criteo_api_retailmedia_v2024_10/models/__init__.py +15 -25
  68. criteo_api_retailmedia_v2024_10/model/approval_status_model.py +0 -292
  69. criteo_api_retailmedia_v2024_10/model/external_choice_variable_value.py +0 -269
  70. criteo_api_retailmedia_v2024_10/model/external_color_variable_value.py +0 -268
  71. criteo_api_retailmedia_v2024_10/model/external_files_variable_value.py +0 -272
  72. criteo_api_retailmedia_v2024_10/model/external_template_variable_value.py +0 -309
  73. criteo_api_retailmedia_v2024_10/model/negotiation_state_model.py +0 -293
  74. criteo_api_retailmedia_v2024_10/model/proposal_status_model.py +0 -284
  75. criteo_api_retailmedia_v2024_10/model/resource_of_retail_media_account.py +0 -270
  76. criteo_api_retailmedia_v2024_10/model/retail_media_brands.py +0 -257
  77. criteo_api_retailmedia_v2024_10/model/retail_media_seller.py +0 -261
  78. criteo_api_retailmedia_v2024_10/model/retail_media_seller_account_creation.py +0 -274
  79. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalTextVariableValue(ModelNormal):
33
+ class ExternalRetailMediaBrands(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -81,7 +81,7 @@ class ExternalTextVariableValue(ModelNormal):
81
81
  and the value is attribute type.
82
82
  """
83
83
  return {
84
- 'text': (str, none_type,), # noqa: E501
84
+ 'brand_ids': ([int],), # noqa: E501
85
85
  }
86
86
 
87
87
  @cached_property
@@ -90,7 +90,7 @@ class ExternalTextVariableValue(ModelNormal):
90
90
 
91
91
 
92
92
  attribute_map = {
93
- 'text': 'text', # noqa: E501
93
+ 'brand_ids': 'brandIds', # noqa: E501
94
94
  }
95
95
 
96
96
  read_only_vars = {
@@ -101,7 +101,7 @@ class ExternalTextVariableValue(ModelNormal):
101
101
  @classmethod
102
102
  @convert_js_args_to_python_args
103
103
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
- """ExternalTextVariableValue - a model defined in OpenAPI
104
+ """ExternalRetailMediaBrands - a model defined in OpenAPI
105
105
 
106
106
  Keyword Args:
107
107
  _check_type (bool): if True, values for parameters in openapi_types
@@ -134,7 +134,7 @@ class ExternalTextVariableValue(ModelNormal):
134
134
  Animal class but this time we won't travel
135
135
  through its discriminator because we passed in
136
136
  _visited_composed_classes = (Animal,)
137
- text (str, none_type): The displayed text. [optional] # noqa: E501
137
+ brand_ids ([int]): [optional] # noqa: E501
138
138
  """
139
139
 
140
140
  _check_type = kwargs.pop('_check_type', True)
@@ -187,7 +187,7 @@ class ExternalTextVariableValue(ModelNormal):
187
187
 
188
188
  @convert_js_args_to_python_args
189
189
  def __init__(self, *args, **kwargs): # noqa: E501
190
- """ExternalTextVariableValue - a model defined in OpenAPI
190
+ """ExternalRetailMediaBrands - a model defined in OpenAPI
191
191
 
192
192
  Keyword Args:
193
193
  _check_type (bool): if True, values for parameters in openapi_types
@@ -220,7 +220,7 @@ class ExternalTextVariableValue(ModelNormal):
220
220
  Animal class but this time we won't travel
221
221
  through its discriminator because we passed in
222
222
  _visited_composed_classes = (Animal,)
223
- text (str, none_type): The displayed text. [optional] # noqa: E501
223
+ brand_ids ([int]): [optional] # noqa: E501
224
224
  """
225
225
 
226
226
  _check_type = kwargs.pop('_check_type', True)
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalHyperlinkVariableValue(ModelNormal):
33
+ class ExternalRetailMediaSeller(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -68,7 +68,7 @@ class ExternalHyperlinkVariableValue(ModelNormal):
68
68
  """
69
69
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
70
 
71
- _nullable = False
71
+ _nullable = True
72
72
 
73
73
  @cached_property
74
74
  def openapi_types():
@@ -81,7 +81,8 @@ class ExternalHyperlinkVariableValue(ModelNormal):
81
81
  and the value is attribute type.
82
82
  """
83
83
  return {
84
- 'url': (str, none_type,), # noqa: E501
84
+ 'seller_id': (str,), # noqa: E501
85
+ 'retailer_id': (int,), # noqa: E501
85
86
  }
86
87
 
87
88
  @cached_property
@@ -90,7 +91,8 @@ class ExternalHyperlinkVariableValue(ModelNormal):
90
91
 
91
92
 
92
93
  attribute_map = {
93
- 'url': 'url', # noqa: E501
94
+ 'seller_id': 'sellerId', # noqa: E501
95
+ 'retailer_id': 'retailerId', # noqa: E501
94
96
  }
95
97
 
96
98
  read_only_vars = {
@@ -101,7 +103,7 @@ class ExternalHyperlinkVariableValue(ModelNormal):
101
103
  @classmethod
102
104
  @convert_js_args_to_python_args
103
105
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
- """ExternalHyperlinkVariableValue - a model defined in OpenAPI
106
+ """ExternalRetailMediaSeller - a model defined in OpenAPI
105
107
 
106
108
  Keyword Args:
107
109
  _check_type (bool): if True, values for parameters in openapi_types
@@ -134,7 +136,8 @@ class ExternalHyperlinkVariableValue(ModelNormal):
134
136
  Animal class but this time we won't travel
135
137
  through its discriminator because we passed in
136
138
  _visited_composed_classes = (Animal,)
137
- url (str, none_type): The url to redirect to. [optional] # noqa: E501
139
+ seller_id (str): [optional] # noqa: E501
140
+ retailer_id (int): [optional] # noqa: E501
138
141
  """
139
142
 
140
143
  _check_type = kwargs.pop('_check_type', True)
@@ -187,7 +190,7 @@ class ExternalHyperlinkVariableValue(ModelNormal):
187
190
 
188
191
  @convert_js_args_to_python_args
189
192
  def __init__(self, *args, **kwargs): # noqa: E501
190
- """ExternalHyperlinkVariableValue - a model defined in OpenAPI
193
+ """ExternalRetailMediaSeller - a model defined in OpenAPI
191
194
 
192
195
  Keyword Args:
193
196
  _check_type (bool): if True, values for parameters in openapi_types
@@ -220,7 +223,8 @@ class ExternalHyperlinkVariableValue(ModelNormal):
220
223
  Animal class but this time we won't travel
221
224
  through its discriminator because we passed in
222
225
  _visited_composed_classes = (Animal,)
223
- url (str, none_type): The url to redirect to. [optional] # noqa: E501
226
+ seller_id (str): [optional] # noqa: E501
227
+ retailer_id (int): [optional] # noqa: E501
224
228
  """
225
229
 
226
230
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,281 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024-10
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_v2024_10.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_v2024_10.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_retailmedia_v2024_10.model.external_retail_media_seller import ExternalRetailMediaSeller
34
+ globals()['ExternalRetailMediaSeller'] = ExternalRetailMediaSeller
35
+
36
+
37
+ class ExternalRetailMediaSellerAccountCreation(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 = True
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
+ 'name': (str, none_type,), # noqa: E501
91
+ 'company_name': (str, none_type,), # noqa: E501
92
+ 'on_behalf_company_name': (str, none_type,), # noqa: E501
93
+ 'sellers': ([ExternalRetailMediaSeller],), # noqa: E501
94
+ }
95
+
96
+ @cached_property
97
+ def discriminator():
98
+ return None
99
+
100
+
101
+ attribute_map = {
102
+ 'name': 'name', # noqa: E501
103
+ 'company_name': 'companyName', # noqa: E501
104
+ 'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
105
+ 'sellers': 'sellers', # noqa: E501
106
+ }
107
+
108
+ read_only_vars = {
109
+ }
110
+
111
+ _composed_schemas = {}
112
+
113
+ @classmethod
114
+ @convert_js_args_to_python_args
115
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
116
+ """ExternalRetailMediaSellerAccountCreation - a model defined in OpenAPI
117
+
118
+ Keyword Args:
119
+ _check_type (bool): if True, values for parameters in openapi_types
120
+ will be type checked and a TypeError will be
121
+ raised if the wrong type is input.
122
+ Defaults to True
123
+ _path_to_item (tuple/list): This is a list of keys or values to
124
+ drill down to the model in received_data
125
+ when deserializing a response
126
+ _spec_property_naming (bool): True if the variable names in the input data
127
+ are serialized names, as specified in the OpenAPI document.
128
+ False if the variable names in the input data
129
+ are pythonic names, e.g. snake case (default)
130
+ _configuration (Configuration): the instance to use when
131
+ deserializing a file_type parameter.
132
+ If passed, type conversion is attempted
133
+ If omitted no type conversion is done.
134
+ _visited_composed_classes (tuple): This stores a tuple of
135
+ classes that we have traveled through so that
136
+ if we see that class again we will not use its
137
+ discriminator again.
138
+ When traveling through a discriminator, the
139
+ composed schema that is
140
+ is traveled through is added to this set.
141
+ For example if Animal has a discriminator
142
+ petType and we pass in "Dog", and the class Dog
143
+ allOf includes Animal, we move through Animal
144
+ once using the discriminator, and pick Dog.
145
+ Then in Dog, we will make an instance of the
146
+ Animal class but this time we won't travel
147
+ through its discriminator because we passed in
148
+ _visited_composed_classes = (Animal,)
149
+ name (str, none_type): [optional] # noqa: E501
150
+ company_name (str, none_type): [optional] # noqa: E501
151
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
152
+ sellers ([ExternalRetailMediaSeller]): [optional] # noqa: E501
153
+ """
154
+
155
+ _check_type = kwargs.pop('_check_type', True)
156
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
+ _path_to_item = kwargs.pop('_path_to_item', ())
158
+ _configuration = kwargs.pop('_configuration', None)
159
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
+
161
+ self = super(OpenApiModel, cls).__new__(cls)
162
+
163
+ if args:
164
+ for arg in args:
165
+ if isinstance(arg, dict):
166
+ kwargs.update(arg)
167
+ else:
168
+ raise ApiTypeError(
169
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
+ args,
171
+ self.__class__.__name__,
172
+ ),
173
+ path_to_item=_path_to_item,
174
+ valid_classes=(self.__class__,),
175
+ )
176
+
177
+ self._data_store = {}
178
+ self._check_type = _check_type
179
+ self._spec_property_naming = _spec_property_naming
180
+ self._path_to_item = _path_to_item
181
+ self._configuration = _configuration
182
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
+
184
+ for var_name, var_value in kwargs.items():
185
+ if var_name not in self.attribute_map and \
186
+ self._configuration is not None and \
187
+ self._configuration.discard_unknown_keys and \
188
+ self.additional_properties_type is None:
189
+ # discard variable.
190
+ continue
191
+ setattr(self, var_name, var_value)
192
+ return self
193
+
194
+ required_properties = set([
195
+ '_data_store',
196
+ '_check_type',
197
+ '_spec_property_naming',
198
+ '_path_to_item',
199
+ '_configuration',
200
+ '_visited_composed_classes',
201
+ ])
202
+
203
+ @convert_js_args_to_python_args
204
+ def __init__(self, *args, **kwargs): # noqa: E501
205
+ """ExternalRetailMediaSellerAccountCreation - a model defined in OpenAPI
206
+
207
+ Keyword Args:
208
+ _check_type (bool): if True, values for parameters in openapi_types
209
+ will be type checked and a TypeError will be
210
+ raised if the wrong type is input.
211
+ Defaults to True
212
+ _path_to_item (tuple/list): This is a list of keys or values to
213
+ drill down to the model in received_data
214
+ when deserializing a response
215
+ _spec_property_naming (bool): True if the variable names in the input data
216
+ are serialized names, as specified in the OpenAPI document.
217
+ False if the variable names in the input data
218
+ are pythonic names, e.g. snake case (default)
219
+ _configuration (Configuration): the instance to use when
220
+ deserializing a file_type parameter.
221
+ If passed, type conversion is attempted
222
+ If omitted no type conversion is done.
223
+ _visited_composed_classes (tuple): This stores a tuple of
224
+ classes that we have traveled through so that
225
+ if we see that class again we will not use its
226
+ discriminator again.
227
+ When traveling through a discriminator, the
228
+ composed schema that is
229
+ is traveled through is added to this set.
230
+ For example if Animal has a discriminator
231
+ petType and we pass in "Dog", and the class Dog
232
+ allOf includes Animal, we move through Animal
233
+ once using the discriminator, and pick Dog.
234
+ Then in Dog, we will make an instance of the
235
+ Animal class but this time we won't travel
236
+ through its discriminator because we passed in
237
+ _visited_composed_classes = (Animal,)
238
+ name (str, none_type): [optional] # noqa: E501
239
+ company_name (str, none_type): [optional] # noqa: E501
240
+ on_behalf_company_name (str, none_type): [optional] # noqa: E501
241
+ sellers ([ExternalRetailMediaSeller]): [optional] # noqa: E501
242
+ """
243
+
244
+ _check_type = kwargs.pop('_check_type', True)
245
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
246
+ _path_to_item = kwargs.pop('_path_to_item', ())
247
+ _configuration = kwargs.pop('_configuration', None)
248
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
249
+
250
+ if args:
251
+ for arg in args:
252
+ if isinstance(arg, dict):
253
+ kwargs.update(arg)
254
+ else:
255
+ raise ApiTypeError(
256
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
257
+ args,
258
+ self.__class__.__name__,
259
+ ),
260
+ path_to_item=_path_to_item,
261
+ valid_classes=(self.__class__,),
262
+ )
263
+
264
+ self._data_store = {}
265
+ self._check_type = _check_type
266
+ self._spec_property_naming = _spec_property_naming
267
+ self._path_to_item = _path_to_item
268
+ self._configuration = _configuration
269
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
270
+
271
+ for var_name, var_value in kwargs.items():
272
+ if var_name not in self.attribute_map and \
273
+ self._configuration is not None and \
274
+ self._configuration.discard_unknown_keys and \
275
+ self.additional_properties_type is None:
276
+ # discard variable.
277
+ continue
278
+ setattr(self, var_name, var_value)
279
+ if var_name in self.read_only_vars:
280
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
281
+ f"class with read only attributes.")
@@ -59,16 +59,11 @@ class FilesVariableValue(ModelNormal):
59
59
 
60
60
  validations = {
61
61
  ('asset_ids',): {
62
+ 'min_items': 1,
62
63
  },
63
64
  }
64
65
 
65
- @cached_property
66
- def additional_properties_type():
67
- """
68
- This must be a method because a model may have properties that are
69
- of type self, this must run after the class is loaded
70
- """
71
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
66
+ additional_properties_type = None
72
67
 
73
68
  _nullable = False
74
69
 
@@ -67,13 +67,7 @@ class FilesVariablesSpecification(ModelNormal):
67
67
  validations = {
68
68
  }
69
69
 
70
- @cached_property
71
- def additional_properties_type():
72
- """
73
- This must be a method because a model may have properties that are
74
- of type self, this must run after the class is loaded
75
- """
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
+ additional_properties_type = None
77
71
 
78
72
  _nullable = False
79
73
 
@@ -89,8 +83,8 @@ class FilesVariablesSpecification(ModelNormal):
89
83
  """
90
84
  return {
91
85
  'extensions': ([str],), # noqa: E501
92
- 'min_files': (int, none_type,), # noqa: E501
93
86
  'max_bytes': (int, none_type,), # noqa: E501
87
+ 'min_files': (int, none_type,), # noqa: E501
94
88
  'max_file': (int, none_type,), # noqa: E501
95
89
  }
96
90
 
@@ -101,8 +95,8 @@ class FilesVariablesSpecification(ModelNormal):
101
95
 
102
96
  attribute_map = {
103
97
  'extensions': 'extensions', # noqa: E501
104
- 'min_files': 'minFiles', # noqa: E501
105
98
  'max_bytes': 'maxBytes', # noqa: E501
99
+ 'min_files': 'minFiles', # noqa: E501
106
100
  'max_file': 'maxFile', # noqa: E501
107
101
  }
108
102
 
@@ -113,12 +107,11 @@ class FilesVariablesSpecification(ModelNormal):
113
107
 
114
108
  @classmethod
115
109
  @convert_js_args_to_python_args
116
- def _from_openapi_data(cls, extensions, min_files, *args, **kwargs): # noqa: E501
110
+ def _from_openapi_data(cls, extensions, *args, **kwargs): # noqa: E501
117
111
  """FilesVariablesSpecification - a model defined in OpenAPI
118
112
 
119
113
  Args:
120
114
  extensions ([str]): The accepted file extensions
121
- min_files (int, none_type): The minimum amount of files requires
122
115
 
123
116
  Keyword Args:
124
117
  _check_type (bool): if True, values for parameters in openapi_types
@@ -152,6 +145,7 @@ class FilesVariablesSpecification(ModelNormal):
152
145
  through its discriminator because we passed in
153
146
  _visited_composed_classes = (Animal,)
154
147
  max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501
148
+ min_files (int, none_type): The minimum amount of files requires. [optional] # noqa: E501
155
149
  max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501
156
150
  """
157
151
 
@@ -185,7 +179,6 @@ class FilesVariablesSpecification(ModelNormal):
185
179
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
180
 
187
181
  self.extensions = extensions
188
- self.min_files = min_files
189
182
  for var_name, var_value in kwargs.items():
190
183
  if var_name not in self.attribute_map and \
191
184
  self._configuration is not None and \
@@ -206,12 +199,11 @@ class FilesVariablesSpecification(ModelNormal):
206
199
  ])
207
200
 
208
201
  @convert_js_args_to_python_args
209
- def __init__(self, extensions, min_files, *args, **kwargs): # noqa: E501
202
+ def __init__(self, extensions, *args, **kwargs): # noqa: E501
210
203
  """FilesVariablesSpecification - a model defined in OpenAPI
211
204
 
212
205
  Args:
213
206
  extensions ([str]): The accepted file extensions
214
- min_files (int, none_type): The minimum amount of files requires
215
207
 
216
208
  Keyword Args:
217
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -245,6 +237,7 @@ class FilesVariablesSpecification(ModelNormal):
245
237
  through its discriminator because we passed in
246
238
  _visited_composed_classes = (Animal,)
247
239
  max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501
240
+ min_files (int, none_type): The minimum amount of files requires. [optional] # noqa: E501
248
241
  max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501
249
242
  """
250
243
 
@@ -276,7 +269,6 @@ class FilesVariablesSpecification(ModelNormal):
276
269
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
277
270
 
278
271
  self.extensions = extensions
279
- self.min_files = min_files
280
272
  for var_name, var_value in kwargs.items():
281
273
  if var_name not in self.attribute_map and \
282
274
  self._configuration is not None and \
@@ -60,15 +60,9 @@ class HyperlinkVariableValue(ModelNormal):
60
60
  validations = {
61
61
  }
62
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
63
+ additional_properties_type = None
70
64
 
71
- _nullable = False
65
+ _nullable = True
72
66
 
73
67
  @cached_property
74
68
  def openapi_types():
@@ -81,7 +75,7 @@ class HyperlinkVariableValue(ModelNormal):
81
75
  and the value is attribute type.
82
76
  """
83
77
  return {
84
- 'url': (str,), # noqa: E501
78
+ 'url': (str, none_type,), # noqa: E501
85
79
  }
86
80
 
87
81
  @cached_property
@@ -100,12 +94,9 @@ class HyperlinkVariableValue(ModelNormal):
100
94
 
101
95
  @classmethod
102
96
  @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, url, *args, **kwargs): # noqa: E501
97
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
98
  """HyperlinkVariableValue - a model defined in OpenAPI
105
99
 
106
- Args:
107
- url (str): The url to redirect to
108
-
109
100
  Keyword Args:
110
101
  _check_type (bool): if True, values for parameters in openapi_types
111
102
  will be type checked and a TypeError will be
@@ -137,6 +128,7 @@ class HyperlinkVariableValue(ModelNormal):
137
128
  Animal class but this time we won't travel
138
129
  through its discriminator because we passed in
139
130
  _visited_composed_classes = (Animal,)
131
+ url (str, none_type): The url to redirect to. [optional] # noqa: E501
140
132
  """
141
133
 
142
134
  _check_type = kwargs.pop('_check_type', True)
@@ -168,7 +160,6 @@ class HyperlinkVariableValue(ModelNormal):
168
160
  self._configuration = _configuration
169
161
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
162
 
171
- self.url = url
172
163
  for var_name, var_value in kwargs.items():
173
164
  if var_name not in self.attribute_map and \
174
165
  self._configuration is not None and \
@@ -189,12 +180,9 @@ class HyperlinkVariableValue(ModelNormal):
189
180
  ])
190
181
 
191
182
  @convert_js_args_to_python_args
192
- def __init__(self, url, *args, **kwargs): # noqa: E501
183
+ def __init__(self, *args, **kwargs): # noqa: E501
193
184
  """HyperlinkVariableValue - a model defined in OpenAPI
194
185
 
195
- Args:
196
- url (str): The url to redirect to
197
-
198
186
  Keyword Args:
199
187
  _check_type (bool): if True, values for parameters in openapi_types
200
188
  will be type checked and a TypeError will be
@@ -226,6 +214,7 @@ class HyperlinkVariableValue(ModelNormal):
226
214
  Animal class but this time we won't travel
227
215
  through its discriminator because we passed in
228
216
  _visited_composed_classes = (Animal,)
217
+ url (str, none_type): The url to redirect to. [optional] # noqa: E501
229
218
  """
230
219
 
231
220
  _check_type = kwargs.pop('_check_type', True)
@@ -255,7 +244,6 @@ class HyperlinkVariableValue(ModelNormal):
255
244
  self._configuration = _configuration
256
245
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
246
 
258
- self.url = url
259
247
  for var_name, var_value in kwargs.items():
260
248
  if var_name not in self.attribute_map and \
261
249
  self._configuration is not None and \
@@ -73,7 +73,7 @@ class LineItemBidMultipliersV2Request(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -75,7 +75,7 @@ class LineItemBidMultipliersV2Response(ModelNormal):
75
75
  lazy_import()
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalPageTypeEnvironment(ModelNormal):
33
+ class PageTypeEnvironment2(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -86,13 +86,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
86
86
  validations = {
87
87
  }
88
88
 
89
- @cached_property
90
- def additional_properties_type():
91
- """
92
- This must be a method because a model may have properties that are
93
- of type self, this must run after the class is loaded
94
- """
95
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
89
+ additional_properties_type = None
96
90
 
97
91
  _nullable = False
98
92
 
@@ -129,7 +123,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
129
123
  @classmethod
130
124
  @convert_js_args_to_python_args
131
125
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
132
- """ExternalPageTypeEnvironment - a model defined in OpenAPI
126
+ """PageTypeEnvironment2 - a model defined in OpenAPI
133
127
 
134
128
  Keyword Args:
135
129
  _check_type (bool): if True, values for parameters in openapi_types
@@ -216,7 +210,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
216
210
 
217
211
  @convert_js_args_to_python_args
218
212
  def __init__(self, *args, **kwargs): # noqa: E501
219
- """ExternalPageTypeEnvironment - a model defined in OpenAPI
213
+ """PageTypeEnvironment2 - a model defined in OpenAPI
220
214
 
221
215
  Keyword Args:
222
216
  _check_type (bool): if True, values for parameters in openapi_types