criteo-api-marketingsolutions-sdk 0.0.240118__py3-none-any.whl → 0.0.240404__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 (56) hide show
  1. criteo_api_marketingsolutions_preview/__init__.py +1 -1
  2. criteo_api_marketingsolutions_preview/api/analytics_api.py +12 -9
  3. criteo_api_marketingsolutions_preview/api/campaign_api.py +57 -57
  4. criteo_api_marketingsolutions_preview/api_client.py +1 -1
  5. criteo_api_marketingsolutions_preview/configuration.py +1 -1
  6. criteo_api_marketingsolutions_preview/model/{ad_set_delivery_limitations_v23_q1.py → ad_set_delivery_limitations_v24_q1.py} +3 -3
  7. criteo_api_marketingsolutions_preview/model/{ad_set_frequency_capping_v23_q1.py → ad_set_frequency_capping_v24_q1.py} +3 -3
  8. criteo_api_marketingsolutions_preview/model/{ad_set_geo_location_v23_q1.py → ad_set_geo_location_v24_q1.py} +14 -14
  9. criteo_api_marketingsolutions_preview/model/{ad_set_search_filter_v23_q1.py → ad_set_search_filter_v24_q1.py} +3 -3
  10. criteo_api_marketingsolutions_preview/model/{ad_set_search_request_v23_q1.py → ad_set_search_request_v24_q1.py} +8 -8
  11. criteo_api_marketingsolutions_preview/model/{ad_set_targeting_rule.py → ad_set_targeting_rule_v24_q1.py} +3 -3
  12. criteo_api_marketingsolutions_preview/model/{ad_set_targeting_v23_q1.py → ad_set_targeting_v24_q1.py} +18 -18
  13. criteo_api_marketingsolutions_preview/model/{create_ad_set_bidding.py → create_ad_set_bidding_v24_q1.py} +4 -3
  14. criteo_api_marketingsolutions_preview/model/{create_ad_set_budget.py → create_ad_set_budget_v24_q1.py} +4 -3
  15. criteo_api_marketingsolutions_preview/model/{create_ad_set_geo_location.py → create_ad_set_geo_location_v24_q1.py} +14 -14
  16. criteo_api_marketingsolutions_preview/model/{create_ad_set_schedule.py → create_ad_set_schedule_v24_q1.py} +3 -3
  17. criteo_api_marketingsolutions_preview/model/{create_ad_set_targeting.py → create_ad_set_targeting_v24_q1.py} +18 -18
  18. criteo_api_marketingsolutions_preview/model/{create_ad_set.py → create_ad_set_v24_q1.py} +23 -23
  19. criteo_api_marketingsolutions_preview/model/{create_ad_set_request.py → create_ad_set_v24_q1_request.py} +8 -8
  20. criteo_api_marketingsolutions_preview/model/{create_ad_set_resource.py → create_ad_set_v24_q1_resource.py} +8 -8
  21. criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v23_q1.py → nillable_ad_set_targeting_rule_v24_q1.py} +8 -8
  22. criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v23_q1_value.py → nillable_ad_set_targeting_rule_v24_q1_value.py} +6 -6
  23. criteo_api_marketingsolutions_preview/model/{patch_ad_set_bidding.py → patch_ad_set_bidding_v24_q1.py} +3 -3
  24. criteo_api_marketingsolutions_preview/model/{patch_ad_set_budget.py → patch_ad_set_budget_v24_q1.py} +4 -3
  25. criteo_api_marketingsolutions_preview/model/{patch_ad_set_scheduling.py → patch_ad_set_scheduling_v24_q1.py} +3 -3
  26. criteo_api_marketingsolutions_preview/model/{patch_ad_set.py → patch_ad_set_v24_q1.py} +23 -23
  27. criteo_api_marketingsolutions_preview/model/product.py +16 -12
  28. criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py +2 -2
  29. criteo_api_marketingsolutions_preview/model/{read_ad_set_bidding_v23_q1.py → read_ad_set_bidding_v24_q1.py} +6 -12
  30. criteo_api_marketingsolutions_preview/model/{read_ad_set_budget.py → read_ad_set_budget_v24_q1.py} +7 -12
  31. criteo_api_marketingsolutions_preview/model/{read_ad_set_schedule.py → read_ad_set_schedule_v24_q1.py} +3 -3
  32. criteo_api_marketingsolutions_preview/model/{read_ad_set_v23_q1.py → read_ad_set_v24_q1.py} +23 -23
  33. criteo_api_marketingsolutions_preview/model/{read_model_read_ad_set.py → read_model_ad_set_id_v24_q1.py} +6 -12
  34. criteo_api_marketingsolutions_preview/model/{read_model_read_ad_set_v23_q1.py → read_model_read_ad_set_v24_q1.py} +8 -8
  35. criteo_api_marketingsolutions_preview/model/recommended_product.py +6 -2
  36. criteo_api_marketingsolutions_preview/model/{requests_patch_ad_set.py → requests_patch_ad_set_v24_q1.py} +8 -8
  37. criteo_api_marketingsolutions_preview/model/{response_read_ad_set_v23_q1.py → response_read_ad_set_v24_q1.py} +8 -8
  38. criteo_api_marketingsolutions_preview/model/{response_read_ad_set.py → responses_ad_set_id_v24_q1.py} +9 -8
  39. criteo_api_marketingsolutions_preview/model/{responses_read_ad_set_v23_q1.py → responses_read_ad_set_v24_q1.py} +8 -8
  40. criteo_api_marketingsolutions_preview/model/{write_model_patch_ad_set.py → write_model_patch_ad_set_v24_q1.py} +8 -8
  41. criteo_api_marketingsolutions_preview/models/__init__.py +32 -43
  42. {criteo_api_marketingsolutions_sdk-0.0.240118.dist-info → criteo_api_marketingsolutions_sdk-0.0.240404.dist-info}/METADATA +3 -3
  43. {criteo_api_marketingsolutions_sdk-0.0.240118.dist-info → criteo_api_marketingsolutions_sdk-0.0.240404.dist-info}/RECORD +45 -56
  44. {criteo_api_marketingsolutions_sdk-0.0.240118.dist-info → criteo_api_marketingsolutions_sdk-0.0.240404.dist-info}/WHEEL +1 -1
  45. criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py +0 -289
  46. criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py +0 -274
  47. criteo_api_marketingsolutions_preview/model/ad_set_geo_location.py +0 -277
  48. criteo_api_marketingsolutions_preview/model/ad_set_targeting.py +0 -281
  49. criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py +0 -273
  50. criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py +0 -269
  51. criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py +0 -329
  52. criteo_api_marketingsolutions_preview/model/read_ad_set.py +0 -322
  53. criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py +0 -302
  54. criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py +0 -313
  55. criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py +0 -299
  56. {criteo_api_marketingsolutions_sdk-0.0.240118.dist-info → criteo_api_marketingsolutions_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
@@ -1,329 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_preview.model.ad_set_targeting_rule import AdSetTargetingRule
34
- globals()['AdSetTargetingRule'] = AdSetTargetingRule
35
-
36
-
37
- class NillableAdSetTargetingRuleValue(ModelComposed):
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
- ('operand',): {
63
- 'None': None,
64
- 'UNDEFINED': "undefined",
65
- 'IN': "in",
66
- 'NOTIN': "notIn",
67
- },
68
- }
69
-
70
- validations = {
71
- }
72
-
73
- @cached_property
74
- def additional_properties_type():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
- """
79
- lazy_import()
80
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
81
-
82
- _nullable = True
83
-
84
- @cached_property
85
- def openapi_types():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
-
90
- Returns
91
- openapi_types (dict): The key is attribute name
92
- and the value is attribute type.
93
- """
94
- lazy_import()
95
- return {
96
- 'operand': (str, none_type,), # noqa: E501
97
- 'values': ([str], none_type,), # noqa: E501
98
- }
99
-
100
- @cached_property
101
- def discriminator():
102
- return None
103
-
104
-
105
- attribute_map = {
106
- 'operand': 'operand', # noqa: E501
107
- 'values': 'values', # noqa: E501
108
- }
109
-
110
- read_only_vars = {
111
- }
112
-
113
- @classmethod
114
- @convert_js_args_to_python_args
115
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
116
- """NillableAdSetTargetingRuleValue - 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
- operand (str, none_type): [optional] # noqa: E501
150
- values ([str], none_type): [optional] # noqa: E501
151
- """
152
-
153
- _check_type = kwargs.pop('_check_type', True)
154
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
155
- _path_to_item = kwargs.pop('_path_to_item', ())
156
- _configuration = kwargs.pop('_configuration', None)
157
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
158
-
159
- self = super(OpenApiModel, cls).__new__(cls)
160
-
161
- if args:
162
- for arg in args:
163
- if isinstance(arg, dict):
164
- kwargs.update(arg)
165
- else:
166
- raise ApiTypeError(
167
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
168
- args,
169
- self.__class__.__name__,
170
- ),
171
- path_to_item=_path_to_item,
172
- valid_classes=(self.__class__,),
173
- )
174
-
175
- self._data_store = {}
176
- self._check_type = _check_type
177
- self._spec_property_naming = _spec_property_naming
178
- self._path_to_item = _path_to_item
179
- self._configuration = _configuration
180
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181
-
182
- constant_args = {
183
- '_check_type': _check_type,
184
- '_path_to_item': _path_to_item,
185
- '_spec_property_naming': _spec_property_naming,
186
- '_configuration': _configuration,
187
- '_visited_composed_classes': self._visited_composed_classes,
188
- }
189
- composed_info = validate_get_composed_info(
190
- constant_args, kwargs, self)
191
- self._composed_instances = composed_info[0]
192
- self._var_name_to_model_instances = composed_info[1]
193
- self._additional_properties_model_instances = composed_info[2]
194
- discarded_args = composed_info[3]
195
-
196
- for var_name, var_value in kwargs.items():
197
- if var_name in discarded_args and \
198
- self._configuration is not None and \
199
- self._configuration.discard_unknown_keys and \
200
- self._additional_properties_model_instances:
201
- # discard variable.
202
- continue
203
- setattr(self, var_name, var_value)
204
-
205
- return self
206
-
207
- required_properties = set([
208
- '_data_store',
209
- '_check_type',
210
- '_spec_property_naming',
211
- '_path_to_item',
212
- '_configuration',
213
- '_visited_composed_classes',
214
- '_composed_instances',
215
- '_var_name_to_model_instances',
216
- '_additional_properties_model_instances',
217
- ])
218
-
219
- @convert_js_args_to_python_args
220
- def __init__(self, *args, **kwargs): # noqa: E501
221
- """NillableAdSetTargetingRuleValue - a model defined in OpenAPI
222
-
223
- Keyword Args:
224
- _check_type (bool): if True, values for parameters in openapi_types
225
- will be type checked and a TypeError will be
226
- raised if the wrong type is input.
227
- Defaults to True
228
- _path_to_item (tuple/list): This is a list of keys or values to
229
- drill down to the model in received_data
230
- when deserializing a response
231
- _spec_property_naming (bool): True if the variable names in the input data
232
- are serialized names, as specified in the OpenAPI document.
233
- False if the variable names in the input data
234
- are pythonic names, e.g. snake case (default)
235
- _configuration (Configuration): the instance to use when
236
- deserializing a file_type parameter.
237
- If passed, type conversion is attempted
238
- If omitted no type conversion is done.
239
- _visited_composed_classes (tuple): This stores a tuple of
240
- classes that we have traveled through so that
241
- if we see that class again we will not use its
242
- discriminator again.
243
- When traveling through a discriminator, the
244
- composed schema that is
245
- is traveled through is added to this set.
246
- For example if Animal has a discriminator
247
- petType and we pass in "Dog", and the class Dog
248
- allOf includes Animal, we move through Animal
249
- once using the discriminator, and pick Dog.
250
- Then in Dog, we will make an instance of the
251
- Animal class but this time we won't travel
252
- through its discriminator because we passed in
253
- _visited_composed_classes = (Animal,)
254
- operand (str, none_type): [optional] # noqa: E501
255
- values ([str], none_type): [optional] # noqa: E501
256
- """
257
-
258
- _check_type = kwargs.pop('_check_type', True)
259
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
260
- _path_to_item = kwargs.pop('_path_to_item', ())
261
- _configuration = kwargs.pop('_configuration', None)
262
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
263
-
264
- if args:
265
- for arg in args:
266
- if isinstance(arg, dict):
267
- kwargs.update(arg)
268
- else:
269
- raise ApiTypeError(
270
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
271
- args,
272
- self.__class__.__name__,
273
- ),
274
- path_to_item=_path_to_item,
275
- valid_classes=(self.__class__,),
276
- )
277
-
278
- self._data_store = {}
279
- self._check_type = _check_type
280
- self._spec_property_naming = _spec_property_naming
281
- self._path_to_item = _path_to_item
282
- self._configuration = _configuration
283
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284
-
285
- constant_args = {
286
- '_check_type': _check_type,
287
- '_path_to_item': _path_to_item,
288
- '_spec_property_naming': _spec_property_naming,
289
- '_configuration': _configuration,
290
- '_visited_composed_classes': self._visited_composed_classes,
291
- }
292
- composed_info = validate_get_composed_info(
293
- constant_args, kwargs, self)
294
- self._composed_instances = composed_info[0]
295
- self._var_name_to_model_instances = composed_info[1]
296
- self._additional_properties_model_instances = composed_info[2]
297
- discarded_args = composed_info[3]
298
-
299
- for var_name, var_value in kwargs.items():
300
- if var_name in discarded_args and \
301
- self._configuration is not None and \
302
- self._configuration.discard_unknown_keys and \
303
- self._additional_properties_model_instances:
304
- # discard variable.
305
- continue
306
- setattr(self, var_name, var_value)
307
- if var_name in self.read_only_vars:
308
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
309
- f"class with read only attributes.")
310
-
311
- @cached_property
312
- def _composed_schemas():
313
- # we need this here to make our import statements work
314
- # we must store _composed_schemas in here so the code is only run
315
- # when we invoke this method. If we kept this at the class
316
- # level we would get an error because the class level
317
- # code would be run when this module is imported, and these composed
318
- # classes don't exist yet because their module has not finished
319
- # loading
320
- lazy_import()
321
- return {
322
- 'anyOf': [
323
- ],
324
- 'allOf': [
325
- AdSetTargetingRule,
326
- ],
327
- 'oneOf': [
328
- ],
329
- }
@@ -1,322 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_preview.model.ad_set_targeting import AdSetTargeting
34
- from criteo_api_marketingsolutions_preview.model.read_ad_set_bidding import ReadAdSetBidding
35
- from criteo_api_marketingsolutions_preview.model.read_ad_set_budget import ReadAdSetBudget
36
- from criteo_api_marketingsolutions_preview.model.read_ad_set_schedule import ReadAdSetSchedule
37
- globals()['AdSetTargeting'] = AdSetTargeting
38
- globals()['ReadAdSetBidding'] = ReadAdSetBidding
39
- globals()['ReadAdSetBudget'] = ReadAdSetBudget
40
- globals()['ReadAdSetSchedule'] = ReadAdSetSchedule
41
-
42
-
43
- class ReadAdSet(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
- }
80
-
81
- validations = {
82
- }
83
-
84
- @cached_property
85
- def additional_properties_type():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
- """
90
- lazy_import()
91
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
92
-
93
- _nullable = False
94
-
95
- @cached_property
96
- def openapi_types():
97
- """
98
- This must be a method because a model may have properties that are
99
- of type self, this must run after the class is loaded
100
-
101
- Returns
102
- openapi_types (dict): The key is attribute name
103
- and the value is attribute type.
104
- """
105
- lazy_import()
106
- return {
107
- 'name': (str, none_type,), # noqa: E501
108
- 'advertiser_id': (str, none_type,), # noqa: E501
109
- 'dataset_id': (str, none_type,), # noqa: E501
110
- 'campaign_id': (str, none_type,), # noqa: E501
111
- 'destination_environment': (str, none_type,), # noqa: E501
112
- 'schedule': (ReadAdSetSchedule,), # noqa: E501
113
- 'bidding': (ReadAdSetBidding,), # noqa: E501
114
- 'targeting': (AdSetTargeting,), # noqa: E501
115
- 'budget': (ReadAdSetBudget,), # noqa: E501
116
- 'media_type': (str, none_type,), # noqa: E501
117
- }
118
-
119
- @cached_property
120
- def discriminator():
121
- return None
122
-
123
-
124
- attribute_map = {
125
- 'name': 'name', # noqa: E501
126
- 'advertiser_id': 'advertiserId', # noqa: E501
127
- 'dataset_id': 'datasetId', # noqa: E501
128
- 'campaign_id': 'campaignId', # noqa: E501
129
- 'destination_environment': 'destinationEnvironment', # noqa: E501
130
- 'schedule': 'schedule', # noqa: E501
131
- 'bidding': 'bidding', # noqa: E501
132
- 'targeting': 'targeting', # noqa: E501
133
- 'budget': 'budget', # noqa: E501
134
- 'media_type': 'mediaType', # noqa: E501
135
- }
136
-
137
- read_only_vars = {
138
- }
139
-
140
- _composed_schemas = {}
141
-
142
- @classmethod
143
- @convert_js_args_to_python_args
144
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
145
- """ReadAdSet - a model defined in OpenAPI
146
-
147
- Keyword Args:
148
- _check_type (bool): if True, values for parameters in openapi_types
149
- will be type checked and a TypeError will be
150
- raised if the wrong type is input.
151
- Defaults to True
152
- _path_to_item (tuple/list): This is a list of keys or values to
153
- drill down to the model in received_data
154
- when deserializing a response
155
- _spec_property_naming (bool): True if the variable names in the input data
156
- are serialized names, as specified in the OpenAPI document.
157
- False if the variable names in the input data
158
- are pythonic names, e.g. snake case (default)
159
- _configuration (Configuration): the instance to use when
160
- deserializing a file_type parameter.
161
- If passed, type conversion is attempted
162
- If omitted no type conversion is done.
163
- _visited_composed_classes (tuple): This stores a tuple of
164
- classes that we have traveled through so that
165
- if we see that class again we will not use its
166
- discriminator again.
167
- When traveling through a discriminator, the
168
- composed schema that is
169
- is traveled through is added to this set.
170
- For example if Animal has a discriminator
171
- petType and we pass in "Dog", and the class Dog
172
- allOf includes Animal, we move through Animal
173
- once using the discriminator, and pick Dog.
174
- Then in Dog, we will make an instance of the
175
- Animal class but this time we won't travel
176
- through its discriminator because we passed in
177
- _visited_composed_classes = (Animal,)
178
- name (str, none_type): [optional] # noqa: E501
179
- advertiser_id (str, none_type): [optional] # noqa: E501
180
- dataset_id (str, none_type): [optional] # noqa: E501
181
- campaign_id (str, none_type): [optional] # noqa: E501
182
- destination_environment (str, none_type): [optional] # noqa: E501
183
- schedule (ReadAdSetSchedule): [optional] # noqa: E501
184
- bidding (ReadAdSetBidding): [optional] # noqa: E501
185
- targeting (AdSetTargeting): [optional] # noqa: E501
186
- budget (ReadAdSetBudget): [optional] # noqa: E501
187
- media_type (str, none_type): [optional] # noqa: E501
188
- """
189
-
190
- _check_type = kwargs.pop('_check_type', True)
191
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
192
- _path_to_item = kwargs.pop('_path_to_item', ())
193
- _configuration = kwargs.pop('_configuration', None)
194
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
195
-
196
- self = super(OpenApiModel, cls).__new__(cls)
197
-
198
- if args:
199
- for arg in args:
200
- if isinstance(arg, dict):
201
- kwargs.update(arg)
202
- else:
203
- raise ApiTypeError(
204
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
205
- args,
206
- self.__class__.__name__,
207
- ),
208
- path_to_item=_path_to_item,
209
- valid_classes=(self.__class__,),
210
- )
211
-
212
- self._data_store = {}
213
- self._check_type = _check_type
214
- self._spec_property_naming = _spec_property_naming
215
- self._path_to_item = _path_to_item
216
- self._configuration = _configuration
217
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
218
-
219
- for var_name, var_value in kwargs.items():
220
- if var_name not in self.attribute_map and \
221
- self._configuration is not None and \
222
- self._configuration.discard_unknown_keys and \
223
- self.additional_properties_type is None:
224
- # discard variable.
225
- continue
226
- setattr(self, var_name, var_value)
227
- return self
228
-
229
- required_properties = set([
230
- '_data_store',
231
- '_check_type',
232
- '_spec_property_naming',
233
- '_path_to_item',
234
- '_configuration',
235
- '_visited_composed_classes',
236
- ])
237
-
238
- @convert_js_args_to_python_args
239
- def __init__(self, *args, **kwargs): # noqa: E501
240
- """ReadAdSet - a model defined in OpenAPI
241
-
242
- Keyword Args:
243
- _check_type (bool): if True, values for parameters in openapi_types
244
- will be type checked and a TypeError will be
245
- raised if the wrong type is input.
246
- Defaults to True
247
- _path_to_item (tuple/list): This is a list of keys or values to
248
- drill down to the model in received_data
249
- when deserializing a response
250
- _spec_property_naming (bool): True if the variable names in the input data
251
- are serialized names, as specified in the OpenAPI document.
252
- False if the variable names in the input data
253
- are pythonic names, e.g. snake case (default)
254
- _configuration (Configuration): the instance to use when
255
- deserializing a file_type parameter.
256
- If passed, type conversion is attempted
257
- If omitted no type conversion is done.
258
- _visited_composed_classes (tuple): This stores a tuple of
259
- classes that we have traveled through so that
260
- if we see that class again we will not use its
261
- discriminator again.
262
- When traveling through a discriminator, the
263
- composed schema that is
264
- is traveled through is added to this set.
265
- For example if Animal has a discriminator
266
- petType and we pass in "Dog", and the class Dog
267
- allOf includes Animal, we move through Animal
268
- once using the discriminator, and pick Dog.
269
- Then in Dog, we will make an instance of the
270
- Animal class but this time we won't travel
271
- through its discriminator because we passed in
272
- _visited_composed_classes = (Animal,)
273
- name (str, none_type): [optional] # noqa: E501
274
- advertiser_id (str, none_type): [optional] # noqa: E501
275
- dataset_id (str, none_type): [optional] # noqa: E501
276
- campaign_id (str, none_type): [optional] # noqa: E501
277
- destination_environment (str, none_type): [optional] # noqa: E501
278
- schedule (ReadAdSetSchedule): [optional] # noqa: E501
279
- bidding (ReadAdSetBidding): [optional] # noqa: E501
280
- targeting (AdSetTargeting): [optional] # noqa: E501
281
- budget (ReadAdSetBudget): [optional] # noqa: E501
282
- media_type (str, none_type): [optional] # noqa: E501
283
- """
284
-
285
- _check_type = kwargs.pop('_check_type', True)
286
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
287
- _path_to_item = kwargs.pop('_path_to_item', ())
288
- _configuration = kwargs.pop('_configuration', None)
289
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
290
-
291
- if args:
292
- for arg in args:
293
- if isinstance(arg, dict):
294
- kwargs.update(arg)
295
- else:
296
- raise ApiTypeError(
297
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
298
- args,
299
- self.__class__.__name__,
300
- ),
301
- path_to_item=_path_to_item,
302
- valid_classes=(self.__class__,),
303
- )
304
-
305
- self._data_store = {}
306
- self._check_type = _check_type
307
- self._spec_property_naming = _spec_property_naming
308
- self._path_to_item = _path_to_item
309
- self._configuration = _configuration
310
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
311
-
312
- for var_name, var_value in kwargs.items():
313
- if var_name not in self.attribute_map and \
314
- self._configuration is not None and \
315
- self._configuration.discard_unknown_keys and \
316
- self.additional_properties_type is None:
317
- # discard variable.
318
- continue
319
- setattr(self, var_name, var_value)
320
- if var_name in self.read_only_vars:
321
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
322
- f"class with read only attributes.")