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,273 +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.nillable_date_time import NillableDateTime
34
- globals()['NillableDateTime'] = NillableDateTime
35
-
36
-
37
- class PatchAdSetScheduling(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 = False
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
- 'end_date': (NillableDateTime,), # noqa: E501
91
- 'start_date': (NillableDateTime,), # noqa: E501
92
- }
93
-
94
- @cached_property
95
- def discriminator():
96
- return None
97
-
98
-
99
- attribute_map = {
100
- 'end_date': 'endDate', # noqa: E501
101
- 'start_date': 'startDate', # noqa: E501
102
- }
103
-
104
- read_only_vars = {
105
- }
106
-
107
- _composed_schemas = {}
108
-
109
- @classmethod
110
- @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
112
- """PatchAdSetScheduling - a model defined in OpenAPI
113
-
114
- Keyword Args:
115
- _check_type (bool): if True, values for parameters in openapi_types
116
- will be type checked and a TypeError will be
117
- raised if the wrong type is input.
118
- Defaults to True
119
- _path_to_item (tuple/list): This is a list of keys or values to
120
- drill down to the model in received_data
121
- when deserializing a response
122
- _spec_property_naming (bool): True if the variable names in the input data
123
- are serialized names, as specified in the OpenAPI document.
124
- False if the variable names in the input data
125
- are pythonic names, e.g. snake case (default)
126
- _configuration (Configuration): the instance to use when
127
- deserializing a file_type parameter.
128
- If passed, type conversion is attempted
129
- If omitted no type conversion is done.
130
- _visited_composed_classes (tuple): This stores a tuple of
131
- classes that we have traveled through so that
132
- if we see that class again we will not use its
133
- discriminator again.
134
- When traveling through a discriminator, the
135
- composed schema that is
136
- is traveled through is added to this set.
137
- For example if Animal has a discriminator
138
- petType and we pass in "Dog", and the class Dog
139
- allOf includes Animal, we move through Animal
140
- once using the discriminator, and pick Dog.
141
- Then in Dog, we will make an instance of the
142
- Animal class but this time we won't travel
143
- through its discriminator because we passed in
144
- _visited_composed_classes = (Animal,)
145
- end_date (NillableDateTime): [optional] # noqa: E501
146
- start_date (NillableDateTime): [optional] # noqa: E501
147
- """
148
-
149
- _check_type = kwargs.pop('_check_type', True)
150
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
- _path_to_item = kwargs.pop('_path_to_item', ())
152
- _configuration = kwargs.pop('_configuration', None)
153
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
-
155
- self = super(OpenApiModel, cls).__new__(cls)
156
-
157
- if args:
158
- for arg in args:
159
- if isinstance(arg, dict):
160
- kwargs.update(arg)
161
- else:
162
- raise ApiTypeError(
163
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
- args,
165
- self.__class__.__name__,
166
- ),
167
- path_to_item=_path_to_item,
168
- valid_classes=(self.__class__,),
169
- )
170
-
171
- self._data_store = {}
172
- self._check_type = _check_type
173
- self._spec_property_naming = _spec_property_naming
174
- self._path_to_item = _path_to_item
175
- self._configuration = _configuration
176
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
-
178
- for var_name, var_value in kwargs.items():
179
- if var_name not in self.attribute_map and \
180
- self._configuration is not None and \
181
- self._configuration.discard_unknown_keys and \
182
- self.additional_properties_type is None:
183
- # discard variable.
184
- continue
185
- setattr(self, var_name, var_value)
186
- return self
187
-
188
- required_properties = set([
189
- '_data_store',
190
- '_check_type',
191
- '_spec_property_naming',
192
- '_path_to_item',
193
- '_configuration',
194
- '_visited_composed_classes',
195
- ])
196
-
197
- @convert_js_args_to_python_args
198
- def __init__(self, *args, **kwargs): # noqa: E501
199
- """PatchAdSetScheduling - a model defined in OpenAPI
200
-
201
- Keyword Args:
202
- _check_type (bool): if True, values for parameters in openapi_types
203
- will be type checked and a TypeError will be
204
- raised if the wrong type is input.
205
- Defaults to True
206
- _path_to_item (tuple/list): This is a list of keys or values to
207
- drill down to the model in received_data
208
- when deserializing a response
209
- _spec_property_naming (bool): True if the variable names in the input data
210
- are serialized names, as specified in the OpenAPI document.
211
- False if the variable names in the input data
212
- are pythonic names, e.g. snake case (default)
213
- _configuration (Configuration): the instance to use when
214
- deserializing a file_type parameter.
215
- If passed, type conversion is attempted
216
- If omitted no type conversion is done.
217
- _visited_composed_classes (tuple): This stores a tuple of
218
- classes that we have traveled through so that
219
- if we see that class again we will not use its
220
- discriminator again.
221
- When traveling through a discriminator, the
222
- composed schema that is
223
- is traveled through is added to this set.
224
- For example if Animal has a discriminator
225
- petType and we pass in "Dog", and the class Dog
226
- allOf includes Animal, we move through Animal
227
- once using the discriminator, and pick Dog.
228
- Then in Dog, we will make an instance of the
229
- Animal class but this time we won't travel
230
- through its discriminator because we passed in
231
- _visited_composed_classes = (Animal,)
232
- end_date (NillableDateTime): [optional] # noqa: E501
233
- start_date (NillableDateTime): [optional] # noqa: E501
234
- """
235
-
236
- _check_type = kwargs.pop('_check_type', True)
237
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
238
- _path_to_item = kwargs.pop('_path_to_item', ())
239
- _configuration = kwargs.pop('_configuration', None)
240
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
241
-
242
- if args:
243
- for arg in args:
244
- if isinstance(arg, dict):
245
- kwargs.update(arg)
246
- else:
247
- raise ApiTypeError(
248
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
249
- args,
250
- self.__class__.__name__,
251
- ),
252
- path_to_item=_path_to_item,
253
- valid_classes=(self.__class__,),
254
- )
255
-
256
- self._data_store = {}
257
- self._check_type = _check_type
258
- self._spec_property_naming = _spec_property_naming
259
- self._path_to_item = _path_to_item
260
- self._configuration = _configuration
261
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
262
-
263
- for var_name, var_value in kwargs.items():
264
- if var_name not in self.attribute_map and \
265
- self._configuration is not None and \
266
- self._configuration.discard_unknown_keys and \
267
- self.additional_properties_type is None:
268
- # discard variable.
269
- continue
270
- setattr(self, var_name, var_value)
271
- if var_name in self.read_only_vars:
272
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
273
- f"class with read only attributes.")
@@ -1,322 +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 import AdSetTargeting
34
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set_bidding import ReadAdSetBidding
35
- from criteo_api_marketingsolutions_v2024_04.model.read_ad_set_budget import ReadAdSetBudget
36
- from criteo_api_marketingsolutions_v2024_04.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 = True
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
- 'advertiser_id': (str, none_type,), # noqa: E501
108
- 'bidding': (ReadAdSetBidding,), # noqa: E501
109
- 'budget': (ReadAdSetBudget,), # noqa: E501
110
- 'campaign_id': (str, none_type,), # noqa: E501
111
- 'dataset_id': (str, none_type,), # noqa: E501
112
- 'destination_environment': (str, none_type,), # noqa: E501
113
- 'media_type': (str, none_type,), # noqa: E501
114
- 'name': (str, none_type,), # noqa: E501
115
- 'schedule': (ReadAdSetSchedule,), # noqa: E501
116
- 'targeting': (AdSetTargeting,), # noqa: E501
117
- }
118
-
119
- @cached_property
120
- def discriminator():
121
- return None
122
-
123
-
124
- attribute_map = {
125
- 'advertiser_id': 'advertiserId', # noqa: E501
126
- 'bidding': 'bidding', # noqa: E501
127
- 'budget': 'budget', # noqa: E501
128
- 'campaign_id': 'campaignId', # noqa: E501
129
- 'dataset_id': 'datasetId', # noqa: E501
130
- 'destination_environment': 'destinationEnvironment', # noqa: E501
131
- 'media_type': 'mediaType', # noqa: E501
132
- 'name': 'name', # noqa: E501
133
- 'schedule': 'schedule', # noqa: E501
134
- 'targeting': 'targeting', # 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
- advertiser_id (str, none_type): [optional] # noqa: E501
179
- bidding (ReadAdSetBidding): [optional] # noqa: E501
180
- budget (ReadAdSetBudget): [optional] # noqa: E501
181
- campaign_id (str, none_type): [optional] # noqa: E501
182
- dataset_id (str, none_type): [optional] # noqa: E501
183
- destination_environment (str, none_type): [optional] # noqa: E501
184
- media_type (str, none_type): [optional] # noqa: E501
185
- name (str, none_type): [optional] # noqa: E501
186
- schedule (ReadAdSetSchedule): [optional] # noqa: E501
187
- targeting (AdSetTargeting): [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
- advertiser_id (str, none_type): [optional] # noqa: E501
274
- bidding (ReadAdSetBidding): [optional] # noqa: E501
275
- budget (ReadAdSetBudget): [optional] # noqa: E501
276
- campaign_id (str, none_type): [optional] # noqa: E501
277
- dataset_id (str, none_type): [optional] # noqa: E501
278
- destination_environment (str, none_type): [optional] # noqa: E501
279
- media_type (str, none_type): [optional] # noqa: E501
280
- name (str, none_type): [optional] # noqa: E501
281
- schedule (ReadAdSetSchedule): [optional] # noqa: E501
282
- targeting (AdSetTargeting): [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.")