criteo-api-marketingsolutions-sdk 2024.4.0.250425__py3-none-any.whl → 2024.4.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.

Potentially problematic release.


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

Files changed (54) hide show
  1. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/RECORD +10 -54
  3. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/WHEEL +1 -1
  4. criteo_api_marketingsolutions_v2024_04/__init__.py +1 -1
  5. criteo_api_marketingsolutions_v2024_04/api/campaign_api.py +0 -554
  6. criteo_api_marketingsolutions_v2024_04/api_client.py +1 -1
  7. criteo_api_marketingsolutions_v2024_04/configuration.py +1 -1
  8. criteo_api_marketingsolutions_v2024_04/model/budget_automation_configuration.py +1 -1
  9. criteo_api_marketingsolutions_v2024_04/models/__init__.py +0 -44
  10. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations.py +0 -289
  11. criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations_v23_q1.py +0 -289
  12. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping.py +0 -274
  13. criteo_api_marketingsolutions_v2024_04/model/ad_set_frequency_capping_v23_q1.py +0 -283
  14. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location.py +0 -277
  15. criteo_api_marketingsolutions_v2024_04/model/ad_set_geo_location_v23_q1.py +0 -277
  16. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_filter_v23_q1.py +0 -271
  17. criteo_api_marketingsolutions_v2024_04/model/ad_set_search_request_v23_q1.py +0 -269
  18. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting.py +0 -281
  19. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule.py +0 -272
  20. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_rule_v23_q1.py +0 -272
  21. criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_v23_q1.py +0 -281
  22. criteo_api_marketingsolutions_v2024_04/model/create_ad_set.py +0 -350
  23. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_bidding.py +0 -283
  24. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_budget.py +0 -309
  25. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_geo_location.py +0 -277
  26. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_request.py +0 -269
  27. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_resource.py +0 -273
  28. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_schedule.py +0 -273
  29. criteo_api_marketingsolutions_v2024_04/model/create_ad_set_targeting.py +0 -287
  30. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule.py +0 -269
  31. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1.py +0 -269
  32. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_v23_q1_value.py +0 -328
  33. criteo_api_marketingsolutions_v2024_04/model/nillable_ad_set_targeting_rule_value.py +0 -328
  34. criteo_api_marketingsolutions_v2024_04/model/nillable_date_time.py +0 -263
  35. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set.py +0 -291
  36. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_bidding.py +0 -269
  37. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_budget.py +0 -313
  38. criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_scheduling.py +0 -273
  39. criteo_api_marketingsolutions_v2024_04/model/read_ad_set.py +0 -322
  40. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding.py +0 -302
  41. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_bidding_v23_q1.py +0 -285
  42. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget.py +0 -313
  43. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget_v23_q1.py +0 -313
  44. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule.py +0 -299
  45. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule_v23_q1.py +0 -299
  46. criteo_api_marketingsolutions_v2024_04/model/read_ad_set_v23_q1.py +0 -349
  47. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set.py +0 -279
  48. criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set_v23_q1.py +0 -279
  49. criteo_api_marketingsolutions_v2024_04/model/requests_patch_ad_set.py +0 -269
  50. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set.py +0 -281
  51. criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set_v23_q1.py +0 -281
  52. criteo_api_marketingsolutions_v2024_04/model/responses_read_ad_set_v23_q1.py +0 -282
  53. criteo_api_marketingsolutions_v2024_04/model/write_model_patch_ad_set.py +0 -277
  54. {criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250606.dist-info}/top_level.txt +0 -0
@@ -1,349 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_marketingsolutions_v2024_04.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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_v2024_04.model.ad_set_targeting_v23_q1 import AdSetTargetingV23Q1
34
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set_bidding_v23_q1 import ReadAdSetBiddingV23Q1
35
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set_budget_v23_q1 import ReadAdSetBudgetV23Q1
36
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set_schedule_v23_q1 import ReadAdSetScheduleV23Q1
37
- globals()['AdSetTargetingV23Q1'] = AdSetTargetingV23Q1
38
- globals()['ReadAdSetBiddingV23Q1'] = ReadAdSetBiddingV23Q1
39
- globals()['ReadAdSetBudgetV23Q1'] = ReadAdSetBudgetV23Q1
40
- globals()['ReadAdSetScheduleV23Q1'] = ReadAdSetScheduleV23Q1
41
-
42
-
43
- class ReadAdSetV23Q1(ModelNormal):
44
- """NOTE: This class is auto generated by OpenAPI Generator.
45
- Ref: https://openapi-generator.tech
46
-
47
- Do not edit the class manually.
48
-
49
- Attributes:
50
- allowed_values (dict): The key is the tuple path to the attribute
51
- and the for var_name this is (var_name,). The value is a dict
52
- with a capitalized key describing the allowed value and an allowed
53
- value. These dicts store the allowed enum values.
54
- attribute_map (dict): The key is attribute name
55
- and the value is json key in definition.
56
- discriminator_value_class_map (dict): A dict to go from the discriminator
57
- variable value to the discriminator class name.
58
- validations (dict): The key is the tuple path to the attribute
59
- and the for var_name this is (var_name,). The value is a dict
60
- that stores validations for max_length, min_length, max_items,
61
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
62
- inclusive_minimum, and regex.
63
- additional_properties_type (tuple): A tuple of classes accepted
64
- as additional properties values.
65
- """
66
-
67
- allowed_values = {
68
- ('destination_environment',): {
69
- 'None': None,
70
- 'UNDEFINED': "undefined",
71
- 'WEB': "web",
72
- 'APP': "app",
73
- },
74
- ('media_type',): {
75
- 'None': None,
76
- 'DISPLAY': "display",
77
- 'VIDEO': "video",
78
- },
79
- ('objective',): {
80
- 'None': None,
81
- 'CUSTOMACTION': "customAction",
82
- 'CLICKS': "clicks",
83
- 'CONVERSIONS': "conversions",
84
- 'DISPLAYS': "displays",
85
- 'APPPROMOTION': "appPromotion",
86
- 'REVENUE': "revenue",
87
- 'STORECONVERSIONS': "storeConversions",
88
- 'VALUE': "value",
89
- 'REACH': "reach",
90
- 'VISITS': "visits",
91
- 'VIDEOVIEWS': "videoViews",
92
- },
93
- ('video_channel',): {
94
- 'None': None,
95
- 'OLV': "olv",
96
- 'CTV': "ctv",
97
- },
98
- }
99
-
100
- validations = {
101
- }
102
-
103
- @cached_property
104
- def additional_properties_type():
105
- """
106
- This must be a method because a model may have properties that are
107
- of type self, this must run after the class is loaded
108
- """
109
- lazy_import()
110
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
111
-
112
- _nullable = True
113
-
114
- @cached_property
115
- def openapi_types():
116
- """
117
- This must be a method because a model may have properties that are
118
- of type self, this must run after the class is loaded
119
-
120
- Returns
121
- openapi_types (dict): The key is attribute name
122
- and the value is attribute type.
123
- """
124
- lazy_import()
125
- return {
126
- 'advertiser_id': (str, none_type,), # noqa: E501
127
- 'bidding': (ReadAdSetBiddingV23Q1,), # noqa: E501
128
- 'budget': (ReadAdSetBudgetV23Q1,), # noqa: E501
129
- 'campaign_id': (str, none_type,), # noqa: E501
130
- 'dataset_id': (str, none_type,), # noqa: E501
131
- 'destination_environment': (str, none_type,), # noqa: E501
132
- 'media_type': (str, none_type,), # noqa: E501
133
- 'name': (str, none_type,), # noqa: E501
134
- 'objective': (str, none_type,), # noqa: E501
135
- 'schedule': (ReadAdSetScheduleV23Q1,), # noqa: E501
136
- 'targeting': (AdSetTargetingV23Q1,), # noqa: E501
137
- 'video_channel': (str, none_type,), # noqa: E501
138
- }
139
-
140
- @cached_property
141
- def discriminator():
142
- return None
143
-
144
-
145
- attribute_map = {
146
- 'advertiser_id': 'advertiserId', # noqa: E501
147
- 'bidding': 'bidding', # noqa: E501
148
- 'budget': 'budget', # noqa: E501
149
- 'campaign_id': 'campaignId', # noqa: E501
150
- 'dataset_id': 'datasetId', # noqa: E501
151
- 'destination_environment': 'destinationEnvironment', # noqa: E501
152
- 'media_type': 'mediaType', # noqa: E501
153
- 'name': 'name', # noqa: E501
154
- 'objective': 'objective', # noqa: E501
155
- 'schedule': 'schedule', # noqa: E501
156
- 'targeting': 'targeting', # noqa: E501
157
- 'video_channel': 'videoChannel', # noqa: E501
158
- }
159
-
160
- read_only_vars = {
161
- }
162
-
163
- _composed_schemas = {}
164
-
165
- @classmethod
166
- @convert_js_args_to_python_args
167
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
168
- """ReadAdSetV23Q1 - a model defined in OpenAPI
169
-
170
- Keyword Args:
171
- _check_type (bool): if True, values for parameters in openapi_types
172
- will be type checked and a TypeError will be
173
- raised if the wrong type is input.
174
- Defaults to True
175
- _path_to_item (tuple/list): This is a list of keys or values to
176
- drill down to the model in received_data
177
- when deserializing a response
178
- _spec_property_naming (bool): True if the variable names in the input data
179
- are serialized names, as specified in the OpenAPI document.
180
- False if the variable names in the input data
181
- are pythonic names, e.g. snake case (default)
182
- _configuration (Configuration): the instance to use when
183
- deserializing a file_type parameter.
184
- If passed, type conversion is attempted
185
- If omitted no type conversion is done.
186
- _visited_composed_classes (tuple): This stores a tuple of
187
- classes that we have traveled through so that
188
- if we see that class again we will not use its
189
- discriminator again.
190
- When traveling through a discriminator, the
191
- composed schema that is
192
- is traveled through is added to this set.
193
- For example if Animal has a discriminator
194
- petType and we pass in "Dog", and the class Dog
195
- allOf includes Animal, we move through Animal
196
- once using the discriminator, and pick Dog.
197
- Then in Dog, we will make an instance of the
198
- Animal class but this time we won't travel
199
- through its discriminator because we passed in
200
- _visited_composed_classes = (Animal,)
201
- advertiser_id (str, none_type): [optional] # noqa: E501
202
- bidding (ReadAdSetBiddingV23Q1): [optional] # noqa: E501
203
- budget (ReadAdSetBudgetV23Q1): [optional] # noqa: E501
204
- campaign_id (str, none_type): [optional] # noqa: E501
205
- dataset_id (str, none_type): [optional] # noqa: E501
206
- destination_environment (str, none_type): [optional] # noqa: E501
207
- media_type (str, none_type): [optional] # noqa: E501
208
- name (str, none_type): [optional] # noqa: E501
209
- objective (str, none_type): [optional] # noqa: E501
210
- schedule (ReadAdSetScheduleV23Q1): [optional] # noqa: E501
211
- targeting (AdSetTargetingV23Q1): [optional] # noqa: E501
212
- video_channel (str, none_type): [optional] # noqa: E501
213
- """
214
-
215
- _check_type = kwargs.pop('_check_type', True)
216
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
217
- _path_to_item = kwargs.pop('_path_to_item', ())
218
- _configuration = kwargs.pop('_configuration', None)
219
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
220
-
221
- self = super(OpenApiModel, cls).__new__(cls)
222
-
223
- if args:
224
- for arg in args:
225
- if isinstance(arg, dict):
226
- kwargs.update(arg)
227
- else:
228
- raise ApiTypeError(
229
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
230
- args,
231
- self.__class__.__name__,
232
- ),
233
- path_to_item=_path_to_item,
234
- valid_classes=(self.__class__,),
235
- )
236
-
237
- self._data_store = {}
238
- self._check_type = _check_type
239
- self._spec_property_naming = _spec_property_naming
240
- self._path_to_item = _path_to_item
241
- self._configuration = _configuration
242
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
243
-
244
- for var_name, var_value in kwargs.items():
245
- if var_name not in self.attribute_map and \
246
- self._configuration is not None and \
247
- self._configuration.discard_unknown_keys and \
248
- self.additional_properties_type is None:
249
- # discard variable.
250
- continue
251
- setattr(self, var_name, var_value)
252
- return self
253
-
254
- required_properties = set([
255
- '_data_store',
256
- '_check_type',
257
- '_spec_property_naming',
258
- '_path_to_item',
259
- '_configuration',
260
- '_visited_composed_classes',
261
- ])
262
-
263
- @convert_js_args_to_python_args
264
- def __init__(self, *args, **kwargs): # noqa: E501
265
- """ReadAdSetV23Q1 - a model defined in OpenAPI
266
-
267
- Keyword Args:
268
- _check_type (bool): if True, values for parameters in openapi_types
269
- will be type checked and a TypeError will be
270
- raised if the wrong type is input.
271
- Defaults to True
272
- _path_to_item (tuple/list): This is a list of keys or values to
273
- drill down to the model in received_data
274
- when deserializing a response
275
- _spec_property_naming (bool): True if the variable names in the input data
276
- are serialized names, as specified in the OpenAPI document.
277
- False if the variable names in the input data
278
- are pythonic names, e.g. snake case (default)
279
- _configuration (Configuration): the instance to use when
280
- deserializing a file_type parameter.
281
- If passed, type conversion is attempted
282
- If omitted no type conversion is done.
283
- _visited_composed_classes (tuple): This stores a tuple of
284
- classes that we have traveled through so that
285
- if we see that class again we will not use its
286
- discriminator again.
287
- When traveling through a discriminator, the
288
- composed schema that is
289
- is traveled through is added to this set.
290
- For example if Animal has a discriminator
291
- petType and we pass in "Dog", and the class Dog
292
- allOf includes Animal, we move through Animal
293
- once using the discriminator, and pick Dog.
294
- Then in Dog, we will make an instance of the
295
- Animal class but this time we won't travel
296
- through its discriminator because we passed in
297
- _visited_composed_classes = (Animal,)
298
- advertiser_id (str, none_type): [optional] # noqa: E501
299
- bidding (ReadAdSetBiddingV23Q1): [optional] # noqa: E501
300
- budget (ReadAdSetBudgetV23Q1): [optional] # noqa: E501
301
- campaign_id (str, none_type): [optional] # noqa: E501
302
- dataset_id (str, none_type): [optional] # noqa: E501
303
- destination_environment (str, none_type): [optional] # noqa: E501
304
- media_type (str, none_type): [optional] # noqa: E501
305
- name (str, none_type): [optional] # noqa: E501
306
- objective (str, none_type): [optional] # noqa: E501
307
- schedule (ReadAdSetScheduleV23Q1): [optional] # noqa: E501
308
- targeting (AdSetTargetingV23Q1): [optional] # noqa: E501
309
- video_channel (str, none_type): [optional] # noqa: E501
310
- """
311
-
312
- _check_type = kwargs.pop('_check_type', True)
313
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
314
- _path_to_item = kwargs.pop('_path_to_item', ())
315
- _configuration = kwargs.pop('_configuration', None)
316
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
317
-
318
- if args:
319
- for arg in args:
320
- if isinstance(arg, dict):
321
- kwargs.update(arg)
322
- else:
323
- raise ApiTypeError(
324
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
325
- args,
326
- self.__class__.__name__,
327
- ),
328
- path_to_item=_path_to_item,
329
- valid_classes=(self.__class__,),
330
- )
331
-
332
- self._data_store = {}
333
- self._check_type = _check_type
334
- self._spec_property_naming = _spec_property_naming
335
- self._path_to_item = _path_to_item
336
- self._configuration = _configuration
337
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
338
-
339
- for var_name, var_value in kwargs.items():
340
- if var_name not in self.attribute_map and \
341
- self._configuration is not None and \
342
- self._configuration.discard_unknown_keys and \
343
- self.additional_properties_type is None:
344
- # discard variable.
345
- continue
346
- setattr(self, var_name, var_value)
347
- if var_name in self.read_only_vars:
348
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
349
- f"class with read only attributes.")
@@ -1,279 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
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_marketingsolutions_v2024_04.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_marketingsolutions_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set import ReadAdSet
34
- globals()['ReadAdSet'] = ReadAdSet
35
-
36
-
37
- class ReadModelReadAdSet(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
- 'attributes': (ReadAdSet,), # noqa: E501
91
- 'id': (str, none_type,), # noqa: E501
92
- 'type': (str, none_type,), # noqa: E501
93
- }
94
-
95
- @cached_property
96
- def discriminator():
97
- return None
98
-
99
-
100
- attribute_map = {
101
- 'attributes': 'attributes', # noqa: E501
102
- 'id': 'id', # noqa: E501
103
- 'type': 'type', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- 'id', # noqa: E501
108
- 'type', # noqa: E501
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
- """ReadModelReadAdSet - 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
- attributes (ReadAdSet): [optional] # noqa: E501
150
- id (str, none_type): Id of the entity. [optional] # noqa: E501
151
- type (str, none_type): [optional] # noqa: E501
152
- """
153
-
154
- _check_type = kwargs.pop('_check_type', True)
155
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
156
- _path_to_item = kwargs.pop('_path_to_item', ())
157
- _configuration = kwargs.pop('_configuration', None)
158
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
159
-
160
- self = super(OpenApiModel, cls).__new__(cls)
161
-
162
- if args:
163
- for arg in args:
164
- if isinstance(arg, dict):
165
- kwargs.update(arg)
166
- else:
167
- raise ApiTypeError(
168
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
169
- args,
170
- self.__class__.__name__,
171
- ),
172
- path_to_item=_path_to_item,
173
- valid_classes=(self.__class__,),
174
- )
175
-
176
- self._data_store = {}
177
- self._check_type = _check_type
178
- self._spec_property_naming = _spec_property_naming
179
- self._path_to_item = _path_to_item
180
- self._configuration = _configuration
181
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
-
183
- for var_name, var_value in kwargs.items():
184
- if var_name not in self.attribute_map and \
185
- self._configuration is not None and \
186
- self._configuration.discard_unknown_keys and \
187
- self.additional_properties_type is None:
188
- # discard variable.
189
- continue
190
- setattr(self, var_name, var_value)
191
- return self
192
-
193
- required_properties = set([
194
- '_data_store',
195
- '_check_type',
196
- '_spec_property_naming',
197
- '_path_to_item',
198
- '_configuration',
199
- '_visited_composed_classes',
200
- ])
201
-
202
- @convert_js_args_to_python_args
203
- def __init__(self, *args, **kwargs): # noqa: E501
204
- """ReadModelReadAdSet - a model defined in OpenAPI
205
-
206
- Keyword Args:
207
- _check_type (bool): if True, values for parameters in openapi_types
208
- will be type checked and a TypeError will be
209
- raised if the wrong type is input.
210
- Defaults to True
211
- _path_to_item (tuple/list): This is a list of keys or values to
212
- drill down to the model in received_data
213
- when deserializing a response
214
- _spec_property_naming (bool): True if the variable names in the input data
215
- are serialized names, as specified in the OpenAPI document.
216
- False if the variable names in the input data
217
- are pythonic names, e.g. snake case (default)
218
- _configuration (Configuration): the instance to use when
219
- deserializing a file_type parameter.
220
- If passed, type conversion is attempted
221
- If omitted no type conversion is done.
222
- _visited_composed_classes (tuple): This stores a tuple of
223
- classes that we have traveled through so that
224
- if we see that class again we will not use its
225
- discriminator again.
226
- When traveling through a discriminator, the
227
- composed schema that is
228
- is traveled through is added to this set.
229
- For example if Animal has a discriminator
230
- petType and we pass in "Dog", and the class Dog
231
- allOf includes Animal, we move through Animal
232
- once using the discriminator, and pick Dog.
233
- Then in Dog, we will make an instance of the
234
- Animal class but this time we won't travel
235
- through its discriminator because we passed in
236
- _visited_composed_classes = (Animal,)
237
- attributes (ReadAdSet): [optional] # noqa: E501
238
- id (str, none_type): Id of the entity. [optional] # noqa: E501
239
- type (str, none_type): [optional] # noqa: E501
240
- """
241
-
242
- _check_type = kwargs.pop('_check_type', True)
243
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
244
- _path_to_item = kwargs.pop('_path_to_item', ())
245
- _configuration = kwargs.pop('_configuration', None)
246
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
247
-
248
- if args:
249
- for arg in args:
250
- if isinstance(arg, dict):
251
- kwargs.update(arg)
252
- else:
253
- raise ApiTypeError(
254
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
255
- args,
256
- self.__class__.__name__,
257
- ),
258
- path_to_item=_path_to_item,
259
- valid_classes=(self.__class__,),
260
- )
261
-
262
- self._data_store = {}
263
- self._check_type = _check_type
264
- self._spec_property_naming = _spec_property_naming
265
- self._path_to_item = _path_to_item
266
- self._configuration = _configuration
267
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
268
-
269
- for var_name, var_value in kwargs.items():
270
- if var_name not in self.attribute_map and \
271
- self._configuration is not None and \
272
- self._configuration.discard_unknown_keys and \
273
- self.additional_properties_type is None:
274
- # discard variable.
275
- continue
276
- setattr(self, var_name, var_value)
277
- if var_name in self.read_only_vars:
278
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
279
- f"class with read only attributes.")