criteo-api-retailmedia-sdk 0.0.250425__py3-none-any.whl → 0.0.250606__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 (74) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +1204 -135
  3. criteo_api_retailmedia_preview/api/campaign_api.py +1205 -147
  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/categories_search_request_v1.py +270 -0
  7. criteo_api_retailmedia_preview/model/entity_resource_category202204.py +277 -0
  8. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204.py +281 -0
  9. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_category202204_metadata.py +287 -0
  10. criteo_api_retailmedia_preview/model/entity_resource_of_sponsored_products_line_item.py +270 -0
  11. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_sponsored_products_line_item.py +274 -0
  12. criteo_api_retailmedia_preview/model/flight_leg.py +287 -0
  13. criteo_api_retailmedia_preview/model/flight_schedule.py +262 -0
  14. criteo_api_retailmedia_preview/model/nillable_decimal.py +263 -0
  15. criteo_api_retailmedia_preview/model/page_of_sponsored_products_line_item.py +276 -0
  16. criteo_api_retailmedia_preview/model/recommended_categories_request_v1.py +272 -0
  17. criteo_api_retailmedia_preview/model/recommended_keywords_request_v1.py +266 -0
  18. criteo_api_retailmedia_preview/model/recommended_keywords_response_v1.py +263 -0
  19. criteo_api_retailmedia_preview/model/rm_audience_bulk_create_input_v1.py +269 -0
  20. criteo_api_retailmedia_preview/model/rm_audience_bulk_delete_input_v1.py +269 -0
  21. criteo_api_retailmedia_preview/model/rm_audience_bulk_update_input_v1.py +269 -0
  22. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1.py +272 -0
  23. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_entity_v1_resource.py +273 -0
  24. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +269 -0
  25. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1.py +291 -0
  26. criteo_api_retailmedia_preview/model/rm_audience_create_entity_v1_resource.py +273 -0
  27. criteo_api_retailmedia_preview/model/rm_audience_delete_entity_v1_resource.py +271 -0
  28. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_list_response.py +281 -0
  29. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +282 -0
  30. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1_resource.py +273 -0
  31. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_input_v1.py +269 -0
  32. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +272 -0
  33. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1_resource.py +273 -0
  34. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_sizes_input_v1.py +269 -0
  35. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +6 -0
  36. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +282 -0
  37. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1_resource.py +273 -0
  38. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_input_v1.py +269 -0
  39. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1.py +267 -0
  40. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_list_response.py +281 -0
  41. criteo_api_retailmedia_preview/model/rm_audience_segment_size_entity_v1_resource.py +277 -0
  42. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1.py +267 -0
  43. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_resource.py +273 -0
  44. criteo_api_retailmedia_preview/model/rm_audience_segment_size_estimation_v1_response.py +281 -0
  45. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +6 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1.py +267 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_list_response.py +281 -0
  48. criteo_api_retailmedia_preview/model/rm_audience_size_entity_v1_resource.py +277 -0
  49. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1.py +267 -0
  50. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_resource.py +273 -0
  51. criteo_api_retailmedia_preview/model/rm_audience_size_estimation_v1_response.py +281 -0
  52. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1.py +279 -0
  53. criteo_api_retailmedia_preview/model/rm_audience_update_entity_v1_resource.py +277 -0
  54. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +305 -0
  55. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +305 -0
  56. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +307 -0
  57. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +387 -0
  58. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +335 -0
  59. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +335 -0
  60. criteo_api_retailmedia_preview/model/value_resource_categories_search_request_v1.py +273 -0
  61. criteo_api_retailmedia_preview/model/value_resource_input_categories_search_request_v1.py +269 -0
  62. criteo_api_retailmedia_preview/model/value_resource_input_of_sponsored_products_line_item_update_request_model.py +262 -0
  63. criteo_api_retailmedia_preview/model/value_resource_input_recommended_categories_request_v1.py +269 -0
  64. criteo_api_retailmedia_preview/model/value_resource_input_recommended_keywords_request_v1.py +262 -0
  65. criteo_api_retailmedia_preview/model/value_resource_of_sponsored_products_line_item_update_request_model.py +266 -0
  66. criteo_api_retailmedia_preview/model/value_resource_outcome_recommended_keywords_response_v1.py +274 -0
  67. criteo_api_retailmedia_preview/model/value_resource_recommended_categories_request_v1.py +273 -0
  68. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_request_v1.py +266 -0
  69. criteo_api_retailmedia_preview/model/value_resource_recommended_keywords_response_v1.py +266 -0
  70. criteo_api_retailmedia_preview/models/__init__.py +62 -0
  71. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/METADATA +3 -3
  72. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/RECORD +74 -12
  73. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/WHEEL +1 -1
  74. {criteo_api_retailmedia_sdk-0.0.250425.dist-info → criteo_api_retailmedia_sdk-0.0.250606.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,335 @@
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.flight_schedule import FlightSchedule
34
+ globals()['FlightSchedule'] = FlightSchedule
35
+
36
+
37
+ class SponsoredProductsLineItemCreateRequestModel(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
+ ('bid_strategy',): {
63
+ 'UNKNOWN': "Unknown",
64
+ 'CONVERSION': "Conversion",
65
+ 'CLICKS': "Clicks",
66
+ 'REVENUE': "Revenue",
67
+ },
68
+ ('status',): {
69
+ 'ACTIVE': "Active",
70
+ 'PAUSED': "Paused",
71
+ 'DRAFT': "Draft",
72
+ },
73
+ }
74
+
75
+ validations = {
76
+ ('name',): {
77
+ 'max_length': 255,
78
+ 'min_length': 0,
79
+ },
80
+ }
81
+
82
+ additional_properties_type = None
83
+
84
+ _nullable = False
85
+
86
+ @cached_property
87
+ def openapi_types():
88
+ """
89
+ This must be a method because a model may have properties that are
90
+ of type self, this must run after the class is loaded
91
+
92
+ Returns
93
+ openapi_types (dict): The key is attribute name
94
+ and the value is attribute type.
95
+ """
96
+ lazy_import()
97
+ return {
98
+ 'name': (str,), # noqa: E501
99
+ 'start_date': (datetime,), # noqa: E501
100
+ 'target_retailer_id': (int,), # noqa: E501
101
+ 'bid_strategy': (str,), # noqa: E501
102
+ 'budget': (float, none_type,), # noqa: E501
103
+ 'daily_pacing': (float, none_type,), # noqa: E501
104
+ 'end_date': (datetime, none_type,), # noqa: E501
105
+ 'flight_schedule': (FlightSchedule,), # noqa: E501
106
+ 'is_auto_daily_pacing': (bool,), # noqa: E501
107
+ 'max_bid': (float, none_type,), # noqa: E501
108
+ 'monthly_pacing': (float, none_type,), # noqa: E501
109
+ 'status': (str,), # noqa: E501
110
+ 'target_bid': (float, none_type,), # noqa: E501
111
+ }
112
+
113
+ @cached_property
114
+ def discriminator():
115
+ return None
116
+
117
+
118
+ attribute_map = {
119
+ 'name': 'name', # noqa: E501
120
+ 'start_date': 'startDate', # noqa: E501
121
+ 'target_retailer_id': 'targetRetailerId', # noqa: E501
122
+ 'bid_strategy': 'bidStrategy', # noqa: E501
123
+ 'budget': 'budget', # noqa: E501
124
+ 'daily_pacing': 'dailyPacing', # noqa: E501
125
+ 'end_date': 'endDate', # noqa: E501
126
+ 'flight_schedule': 'flightSchedule', # noqa: E501
127
+ 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501
128
+ 'max_bid': 'maxBid', # noqa: E501
129
+ 'monthly_pacing': 'monthlyPacing', # noqa: E501
130
+ 'status': 'status', # noqa: E501
131
+ 'target_bid': 'targetBid', # noqa: E501
132
+ }
133
+
134
+ read_only_vars = {
135
+ }
136
+
137
+ _composed_schemas = {}
138
+
139
+ @classmethod
140
+ @convert_js_args_to_python_args
141
+ def _from_openapi_data(cls, name, start_date, target_retailer_id, *args, **kwargs): # noqa: E501
142
+ """SponsoredProductsLineItemCreateRequestModel - a model defined in OpenAPI
143
+
144
+ Args:
145
+ name (str):
146
+ start_date (datetime):
147
+ target_retailer_id (int):
148
+
149
+ Keyword Args:
150
+ _check_type (bool): if True, values for parameters in openapi_types
151
+ will be type checked and a TypeError will be
152
+ raised if the wrong type is input.
153
+ Defaults to True
154
+ _path_to_item (tuple/list): This is a list of keys or values to
155
+ drill down to the model in received_data
156
+ when deserializing a response
157
+ _spec_property_naming (bool): True if the variable names in the input data
158
+ are serialized names, as specified in the OpenAPI document.
159
+ False if the variable names in the input data
160
+ are pythonic names, e.g. snake case (default)
161
+ _configuration (Configuration): the instance to use when
162
+ deserializing a file_type parameter.
163
+ If passed, type conversion is attempted
164
+ If omitted no type conversion is done.
165
+ _visited_composed_classes (tuple): This stores a tuple of
166
+ classes that we have traveled through so that
167
+ if we see that class again we will not use its
168
+ discriminator again.
169
+ When traveling through a discriminator, the
170
+ composed schema that is
171
+ is traveled through is added to this set.
172
+ For example if Animal has a discriminator
173
+ petType and we pass in "Dog", and the class Dog
174
+ allOf includes Animal, we move through Animal
175
+ once using the discriminator, and pick Dog.
176
+ Then in Dog, we will make an instance of the
177
+ Animal class but this time we won't travel
178
+ through its discriminator because we passed in
179
+ _visited_composed_classes = (Animal,)
180
+ bid_strategy (str): [optional] if omitted the server will use the default value of "Conversion" # noqa: E501
181
+ budget (float, none_type): [optional] # noqa: E501
182
+ daily_pacing (float, none_type): [optional] # noqa: E501
183
+ end_date (datetime, none_type): [optional] # noqa: E501
184
+ flight_schedule (FlightSchedule): [optional] # noqa: E501
185
+ is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501
186
+ max_bid (float, none_type): [optional] # noqa: E501
187
+ monthly_pacing (float, none_type): [optional] # noqa: E501
188
+ status (str): Status of a line item.. [optional] # noqa: E501
189
+ target_bid (float, none_type): [optional] # noqa: E501
190
+ """
191
+
192
+ _check_type = kwargs.pop('_check_type', True)
193
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
194
+ _path_to_item = kwargs.pop('_path_to_item', ())
195
+ _configuration = kwargs.pop('_configuration', None)
196
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
197
+
198
+ self = super(OpenApiModel, cls).__new__(cls)
199
+
200
+ if args:
201
+ for arg in args:
202
+ if isinstance(arg, dict):
203
+ kwargs.update(arg)
204
+ else:
205
+ raise ApiTypeError(
206
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
207
+ args,
208
+ self.__class__.__name__,
209
+ ),
210
+ path_to_item=_path_to_item,
211
+ valid_classes=(self.__class__,),
212
+ )
213
+
214
+ self._data_store = {}
215
+ self._check_type = _check_type
216
+ self._spec_property_naming = _spec_property_naming
217
+ self._path_to_item = _path_to_item
218
+ self._configuration = _configuration
219
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
220
+
221
+ self.name = name
222
+ self.start_date = start_date
223
+ self.target_retailer_id = target_retailer_id
224
+ for var_name, var_value in kwargs.items():
225
+ if var_name not in self.attribute_map and \
226
+ self._configuration is not None and \
227
+ self._configuration.discard_unknown_keys and \
228
+ self.additional_properties_type is None:
229
+ # discard variable.
230
+ continue
231
+ setattr(self, var_name, var_value)
232
+ return self
233
+
234
+ required_properties = set([
235
+ '_data_store',
236
+ '_check_type',
237
+ '_spec_property_naming',
238
+ '_path_to_item',
239
+ '_configuration',
240
+ '_visited_composed_classes',
241
+ ])
242
+
243
+ @convert_js_args_to_python_args
244
+ def __init__(self, name, start_date, target_retailer_id, *args, **kwargs): # noqa: E501
245
+ """SponsoredProductsLineItemCreateRequestModel - a model defined in OpenAPI
246
+
247
+ Args:
248
+ name (str):
249
+ start_date (datetime):
250
+ target_retailer_id (int):
251
+
252
+ Keyword Args:
253
+ _check_type (bool): if True, values for parameters in openapi_types
254
+ will be type checked and a TypeError will be
255
+ raised if the wrong type is input.
256
+ Defaults to True
257
+ _path_to_item (tuple/list): This is a list of keys or values to
258
+ drill down to the model in received_data
259
+ when deserializing a response
260
+ _spec_property_naming (bool): True if the variable names in the input data
261
+ are serialized names, as specified in the OpenAPI document.
262
+ False if the variable names in the input data
263
+ are pythonic names, e.g. snake case (default)
264
+ _configuration (Configuration): the instance to use when
265
+ deserializing a file_type parameter.
266
+ If passed, type conversion is attempted
267
+ If omitted no type conversion is done.
268
+ _visited_composed_classes (tuple): This stores a tuple of
269
+ classes that we have traveled through so that
270
+ if we see that class again we will not use its
271
+ discriminator again.
272
+ When traveling through a discriminator, the
273
+ composed schema that is
274
+ is traveled through is added to this set.
275
+ For example if Animal has a discriminator
276
+ petType and we pass in "Dog", and the class Dog
277
+ allOf includes Animal, we move through Animal
278
+ once using the discriminator, and pick Dog.
279
+ Then in Dog, we will make an instance of the
280
+ Animal class but this time we won't travel
281
+ through its discriminator because we passed in
282
+ _visited_composed_classes = (Animal,)
283
+ bid_strategy (str): [optional] if omitted the server will use the default value of "Conversion" # noqa: E501
284
+ budget (float, none_type): [optional] # noqa: E501
285
+ daily_pacing (float, none_type): [optional] # noqa: E501
286
+ end_date (datetime, none_type): [optional] # noqa: E501
287
+ flight_schedule (FlightSchedule): [optional] # noqa: E501
288
+ is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501
289
+ max_bid (float, none_type): [optional] # noqa: E501
290
+ monthly_pacing (float, none_type): [optional] # noqa: E501
291
+ status (str): Status of a line item.. [optional] # noqa: E501
292
+ target_bid (float, none_type): [optional] # noqa: E501
293
+ """
294
+
295
+ _check_type = kwargs.pop('_check_type', True)
296
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
297
+ _path_to_item = kwargs.pop('_path_to_item', ())
298
+ _configuration = kwargs.pop('_configuration', None)
299
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
300
+
301
+ if args:
302
+ for arg in args:
303
+ if isinstance(arg, dict):
304
+ kwargs.update(arg)
305
+ else:
306
+ raise ApiTypeError(
307
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
308
+ args,
309
+ self.__class__.__name__,
310
+ ),
311
+ path_to_item=_path_to_item,
312
+ valid_classes=(self.__class__,),
313
+ )
314
+
315
+ self._data_store = {}
316
+ self._check_type = _check_type
317
+ self._spec_property_naming = _spec_property_naming
318
+ self._path_to_item = _path_to_item
319
+ self._configuration = _configuration
320
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
321
+
322
+ self.name = name
323
+ self.start_date = start_date
324
+ self.target_retailer_id = target_retailer_id
325
+ for var_name, var_value in kwargs.items():
326
+ if var_name not in self.attribute_map and \
327
+ self._configuration is not None and \
328
+ self._configuration.discard_unknown_keys and \
329
+ self.additional_properties_type is None:
330
+ # discard variable.
331
+ continue
332
+ setattr(self, var_name, var_value)
333
+ if var_name in self.read_only_vars:
334
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
335
+ f"class with read only attributes.")
@@ -0,0 +1,335 @@
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.flight_schedule import FlightSchedule
34
+ globals()['FlightSchedule'] = FlightSchedule
35
+
36
+
37
+ class SponsoredProductsLineItemUpdateRequestModel(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
+ ('status',): {
63
+ 'ACTIVE': "Active",
64
+ 'PAUSED': "Paused",
65
+ 'DRAFT': "Draft",
66
+ },
67
+ ('bid_strategy',): {
68
+ 'UNKNOWN': "Unknown",
69
+ 'CONVERSION': "Conversion",
70
+ 'CLICKS': "Clicks",
71
+ 'REVENUE': "Revenue",
72
+ },
73
+ }
74
+
75
+ validations = {
76
+ ('name',): {
77
+ 'max_length': 255,
78
+ 'min_length': 0,
79
+ },
80
+ }
81
+
82
+ additional_properties_type = None
83
+
84
+ _nullable = False
85
+
86
+ @cached_property
87
+ def openapi_types():
88
+ """
89
+ This must be a method because a model may have properties that are
90
+ of type self, this must run after the class is loaded
91
+
92
+ Returns
93
+ openapi_types (dict): The key is attribute name
94
+ and the value is attribute type.
95
+ """
96
+ lazy_import()
97
+ return {
98
+ 'is_auto_daily_pacing': (bool,), # noqa: E501
99
+ 'name': (str,), # noqa: E501
100
+ 'start_date': (datetime,), # noqa: E501
101
+ 'status': (str,), # noqa: E501
102
+ 'target_bid': (float,), # noqa: E501
103
+ 'bid_strategy': (str,), # noqa: E501
104
+ 'budget': (float, none_type,), # noqa: E501
105
+ 'daily_pacing': (float, none_type,), # noqa: E501
106
+ 'end_date': (datetime, none_type,), # noqa: E501
107
+ 'flight_schedule': (FlightSchedule,), # noqa: E501
108
+ 'max_bid': (float, none_type,), # noqa: E501
109
+ 'monthly_pacing': (float, none_type,), # noqa: E501
110
+ }
111
+
112
+ @cached_property
113
+ def discriminator():
114
+ return None
115
+
116
+
117
+ attribute_map = {
118
+ 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501
119
+ 'name': 'name', # noqa: E501
120
+ 'start_date': 'startDate', # noqa: E501
121
+ 'status': 'status', # noqa: E501
122
+ 'target_bid': 'targetBid', # noqa: E501
123
+ 'bid_strategy': 'bidStrategy', # noqa: E501
124
+ 'budget': 'budget', # noqa: E501
125
+ 'daily_pacing': 'dailyPacing', # noqa: E501
126
+ 'end_date': 'endDate', # noqa: E501
127
+ 'flight_schedule': 'flightSchedule', # noqa: E501
128
+ 'max_bid': 'maxBid', # noqa: E501
129
+ 'monthly_pacing': 'monthlyPacing', # noqa: E501
130
+ }
131
+
132
+ read_only_vars = {
133
+ }
134
+
135
+ _composed_schemas = {}
136
+
137
+ @classmethod
138
+ @convert_js_args_to_python_args
139
+ def _from_openapi_data(cls, is_auto_daily_pacing, name, start_date, status, target_bid, *args, **kwargs): # noqa: E501
140
+ """SponsoredProductsLineItemUpdateRequestModel - a model defined in OpenAPI
141
+
142
+ Args:
143
+ is_auto_daily_pacing (bool):
144
+ name (str):
145
+ start_date (datetime):
146
+ status (str): Status of a line item.
147
+ target_bid (float):
148
+
149
+ Keyword Args:
150
+ _check_type (bool): if True, values for parameters in openapi_types
151
+ will be type checked and a TypeError will be
152
+ raised if the wrong type is input.
153
+ Defaults to True
154
+ _path_to_item (tuple/list): This is a list of keys or values to
155
+ drill down to the model in received_data
156
+ when deserializing a response
157
+ _spec_property_naming (bool): True if the variable names in the input data
158
+ are serialized names, as specified in the OpenAPI document.
159
+ False if the variable names in the input data
160
+ are pythonic names, e.g. snake case (default)
161
+ _configuration (Configuration): the instance to use when
162
+ deserializing a file_type parameter.
163
+ If passed, type conversion is attempted
164
+ If omitted no type conversion is done.
165
+ _visited_composed_classes (tuple): This stores a tuple of
166
+ classes that we have traveled through so that
167
+ if we see that class again we will not use its
168
+ discriminator again.
169
+ When traveling through a discriminator, the
170
+ composed schema that is
171
+ is traveled through is added to this set.
172
+ For example if Animal has a discriminator
173
+ petType and we pass in "Dog", and the class Dog
174
+ allOf includes Animal, we move through Animal
175
+ once using the discriminator, and pick Dog.
176
+ Then in Dog, we will make an instance of the
177
+ Animal class but this time we won't travel
178
+ through its discriminator because we passed in
179
+ _visited_composed_classes = (Animal,)
180
+ bid_strategy (str): [optional] if omitted the server will use the default value of "Conversion" # noqa: E501
181
+ budget (float, none_type): [optional] # noqa: E501
182
+ daily_pacing (float, none_type): [optional] # noqa: E501
183
+ end_date (datetime, none_type): [optional] # noqa: E501
184
+ flight_schedule (FlightSchedule): [optional] # noqa: E501
185
+ max_bid (float, none_type): [optional] # noqa: E501
186
+ monthly_pacing (float, none_type): [optional] # noqa: E501
187
+ """
188
+
189
+ _check_type = kwargs.pop('_check_type', True)
190
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
191
+ _path_to_item = kwargs.pop('_path_to_item', ())
192
+ _configuration = kwargs.pop('_configuration', None)
193
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
194
+
195
+ self = super(OpenApiModel, cls).__new__(cls)
196
+
197
+ if args:
198
+ for arg in args:
199
+ if isinstance(arg, dict):
200
+ kwargs.update(arg)
201
+ else:
202
+ raise ApiTypeError(
203
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
204
+ args,
205
+ self.__class__.__name__,
206
+ ),
207
+ path_to_item=_path_to_item,
208
+ valid_classes=(self.__class__,),
209
+ )
210
+
211
+ self._data_store = {}
212
+ self._check_type = _check_type
213
+ self._spec_property_naming = _spec_property_naming
214
+ self._path_to_item = _path_to_item
215
+ self._configuration = _configuration
216
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
217
+
218
+ self.is_auto_daily_pacing = is_auto_daily_pacing
219
+ self.name = name
220
+ self.start_date = start_date
221
+ self.status = status
222
+ self.target_bid = target_bid
223
+ for var_name, var_value in kwargs.items():
224
+ if var_name not in self.attribute_map and \
225
+ self._configuration is not None and \
226
+ self._configuration.discard_unknown_keys and \
227
+ self.additional_properties_type is None:
228
+ # discard variable.
229
+ continue
230
+ setattr(self, var_name, var_value)
231
+ return self
232
+
233
+ required_properties = set([
234
+ '_data_store',
235
+ '_check_type',
236
+ '_spec_property_naming',
237
+ '_path_to_item',
238
+ '_configuration',
239
+ '_visited_composed_classes',
240
+ ])
241
+
242
+ @convert_js_args_to_python_args
243
+ def __init__(self, is_auto_daily_pacing, name, start_date, status, target_bid, *args, **kwargs): # noqa: E501
244
+ """SponsoredProductsLineItemUpdateRequestModel - a model defined in OpenAPI
245
+
246
+ Args:
247
+ is_auto_daily_pacing (bool):
248
+ name (str):
249
+ start_date (datetime):
250
+ status (str): Status of a line item.
251
+ target_bid (float):
252
+
253
+ Keyword Args:
254
+ _check_type (bool): if True, values for parameters in openapi_types
255
+ will be type checked and a TypeError will be
256
+ raised if the wrong type is input.
257
+ Defaults to True
258
+ _path_to_item (tuple/list): This is a list of keys or values to
259
+ drill down to the model in received_data
260
+ when deserializing a response
261
+ _spec_property_naming (bool): True if the variable names in the input data
262
+ are serialized names, as specified in the OpenAPI document.
263
+ False if the variable names in the input data
264
+ are pythonic names, e.g. snake case (default)
265
+ _configuration (Configuration): the instance to use when
266
+ deserializing a file_type parameter.
267
+ If passed, type conversion is attempted
268
+ If omitted no type conversion is done.
269
+ _visited_composed_classes (tuple): This stores a tuple of
270
+ classes that we have traveled through so that
271
+ if we see that class again we will not use its
272
+ discriminator again.
273
+ When traveling through a discriminator, the
274
+ composed schema that is
275
+ is traveled through is added to this set.
276
+ For example if Animal has a discriminator
277
+ petType and we pass in "Dog", and the class Dog
278
+ allOf includes Animal, we move through Animal
279
+ once using the discriminator, and pick Dog.
280
+ Then in Dog, we will make an instance of the
281
+ Animal class but this time we won't travel
282
+ through its discriminator because we passed in
283
+ _visited_composed_classes = (Animal,)
284
+ bid_strategy (str): [optional] if omitted the server will use the default value of "Conversion" # noqa: E501
285
+ budget (float, none_type): [optional] # noqa: E501
286
+ daily_pacing (float, none_type): [optional] # noqa: E501
287
+ end_date (datetime, none_type): [optional] # noqa: E501
288
+ flight_schedule (FlightSchedule): [optional] # noqa: E501
289
+ max_bid (float, none_type): [optional] # noqa: E501
290
+ monthly_pacing (float, none_type): [optional] # noqa: E501
291
+ """
292
+
293
+ _check_type = kwargs.pop('_check_type', True)
294
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
295
+ _path_to_item = kwargs.pop('_path_to_item', ())
296
+ _configuration = kwargs.pop('_configuration', None)
297
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
298
+
299
+ if args:
300
+ for arg in args:
301
+ if isinstance(arg, dict):
302
+ kwargs.update(arg)
303
+ else:
304
+ raise ApiTypeError(
305
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
306
+ args,
307
+ self.__class__.__name__,
308
+ ),
309
+ path_to_item=_path_to_item,
310
+ valid_classes=(self.__class__,),
311
+ )
312
+
313
+ self._data_store = {}
314
+ self._check_type = _check_type
315
+ self._spec_property_naming = _spec_property_naming
316
+ self._path_to_item = _path_to_item
317
+ self._configuration = _configuration
318
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
319
+
320
+ self.is_auto_daily_pacing = is_auto_daily_pacing
321
+ self.name = name
322
+ self.start_date = start_date
323
+ self.status = status
324
+ self.target_bid = target_bid
325
+ for var_name, var_value in kwargs.items():
326
+ if var_name not in self.attribute_map and \
327
+ self._configuration is not None and \
328
+ self._configuration.discard_unknown_keys and \
329
+ self.additional_properties_type is None:
330
+ # discard variable.
331
+ continue
332
+ setattr(self, var_name, var_value)
333
+ if var_name in self.read_only_vars:
334
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
335
+ f"class with read only attributes.")