criteo-api-marketingsolutions-sdk 0.0.250811__py3-none-any.whl → 0.0.250819__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.

@@ -1,285 +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.common_problem import CommonProblem
34
- from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2
35
- from criteo_api_marketingsolutions_preview.model.entity_v2_of_object import EntityV2OfObject
36
- globals()['CommonProblem'] = CommonProblem
37
- globals()['CriteoApiWarningV2'] = CriteoApiWarningV2
38
- globals()['EntityV2OfObject'] = EntityV2OfObject
39
-
40
-
41
- class UnauthorizedResponseV2(ModelNormal):
42
- """NOTE: This class is auto generated by OpenAPI Generator.
43
- Ref: https://openapi-generator.tech
44
-
45
- Do not edit the class manually.
46
-
47
- Attributes:
48
- allowed_values (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- with a capitalized key describing the allowed value and an allowed
51
- value. These dicts store the allowed enum values.
52
- attribute_map (dict): The key is attribute name
53
- and the value is json key in definition.
54
- discriminator_value_class_map (dict): A dict to go from the discriminator
55
- variable value to the discriminator class name.
56
- validations (dict): The key is the tuple path to the attribute
57
- and the for var_name this is (var_name,). The value is a dict
58
- that stores validations for max_length, min_length, max_items,
59
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
- inclusive_minimum, and regex.
61
- additional_properties_type (tuple): A tuple of classes accepted
62
- as additional properties values.
63
- """
64
-
65
- allowed_values = {
66
- }
67
-
68
- validations = {
69
- ('errors',): {
70
- },
71
- ('warnings',): {
72
- },
73
- }
74
-
75
- @cached_property
76
- def additional_properties_type():
77
- """
78
- This must be a method because a model may have properties that are
79
- of type self, this must run after the class is loaded
80
- """
81
- lazy_import()
82
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
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
- 'data': (EntityV2OfObject,), # noqa: E501
99
- 'errors': ([CommonProblem], none_type,), # noqa: E501
100
- 'warnings': ([CriteoApiWarningV2], none_type,), # noqa: E501
101
- }
102
-
103
- @cached_property
104
- def discriminator():
105
- return None
106
-
107
-
108
- attribute_map = {
109
- 'data': 'data', # noqa: E501
110
- 'errors': 'errors', # noqa: E501
111
- 'warnings': 'warnings', # noqa: E501
112
- }
113
-
114
- read_only_vars = {
115
- }
116
-
117
- _composed_schemas = {}
118
-
119
- @classmethod
120
- @convert_js_args_to_python_args
121
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
122
- """UnauthorizedResponseV2 - a model defined in OpenAPI
123
-
124
- Keyword Args:
125
- _check_type (bool): if True, values for parameters in openapi_types
126
- will be type checked and a TypeError will be
127
- raised if the wrong type is input.
128
- Defaults to True
129
- _path_to_item (tuple/list): This is a list of keys or values to
130
- drill down to the model in received_data
131
- when deserializing a response
132
- _spec_property_naming (bool): True if the variable names in the input data
133
- are serialized names, as specified in the OpenAPI document.
134
- False if the variable names in the input data
135
- are pythonic names, e.g. snake case (default)
136
- _configuration (Configuration): the instance to use when
137
- deserializing a file_type parameter.
138
- If passed, type conversion is attempted
139
- If omitted no type conversion is done.
140
- _visited_composed_classes (tuple): This stores a tuple of
141
- classes that we have traveled through so that
142
- if we see that class again we will not use its
143
- discriminator again.
144
- When traveling through a discriminator, the
145
- composed schema that is
146
- is traveled through is added to this set.
147
- For example if Animal has a discriminator
148
- petType and we pass in "Dog", and the class Dog
149
- allOf includes Animal, we move through Animal
150
- once using the discriminator, and pick Dog.
151
- Then in Dog, we will make an instance of the
152
- Animal class but this time we won't travel
153
- through its discriminator because we passed in
154
- _visited_composed_classes = (Animal,)
155
- data (EntityV2OfObject): [optional] # noqa: E501
156
- errors ([CommonProblem], none_type): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501
157
- warnings ([CriteoApiWarningV2], none_type): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501
158
- """
159
-
160
- _check_type = kwargs.pop('_check_type', True)
161
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
162
- _path_to_item = kwargs.pop('_path_to_item', ())
163
- _configuration = kwargs.pop('_configuration', None)
164
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
165
-
166
- self = super(OpenApiModel, cls).__new__(cls)
167
-
168
- if args:
169
- for arg in args:
170
- if isinstance(arg, dict):
171
- kwargs.update(arg)
172
- else:
173
- raise ApiTypeError(
174
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
175
- args,
176
- self.__class__.__name__,
177
- ),
178
- path_to_item=_path_to_item,
179
- valid_classes=(self.__class__,),
180
- )
181
-
182
- self._data_store = {}
183
- self._check_type = _check_type
184
- self._spec_property_naming = _spec_property_naming
185
- self._path_to_item = _path_to_item
186
- self._configuration = _configuration
187
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
188
-
189
- for var_name, var_value in kwargs.items():
190
- if var_name not in self.attribute_map and \
191
- self._configuration is not None and \
192
- self._configuration.discard_unknown_keys and \
193
- self.additional_properties_type is None:
194
- # discard variable.
195
- continue
196
- setattr(self, var_name, var_value)
197
- return self
198
-
199
- required_properties = set([
200
- '_data_store',
201
- '_check_type',
202
- '_spec_property_naming',
203
- '_path_to_item',
204
- '_configuration',
205
- '_visited_composed_classes',
206
- ])
207
-
208
- @convert_js_args_to_python_args
209
- def __init__(self, *args, **kwargs): # noqa: E501
210
- """UnauthorizedResponseV2 - a model defined in OpenAPI
211
-
212
- Keyword Args:
213
- _check_type (bool): if True, values for parameters in openapi_types
214
- will be type checked and a TypeError will be
215
- raised if the wrong type is input.
216
- Defaults to True
217
- _path_to_item (tuple/list): This is a list of keys or values to
218
- drill down to the model in received_data
219
- when deserializing a response
220
- _spec_property_naming (bool): True if the variable names in the input data
221
- are serialized names, as specified in the OpenAPI document.
222
- False if the variable names in the input data
223
- are pythonic names, e.g. snake case (default)
224
- _configuration (Configuration): the instance to use when
225
- deserializing a file_type parameter.
226
- If passed, type conversion is attempted
227
- If omitted no type conversion is done.
228
- _visited_composed_classes (tuple): This stores a tuple of
229
- classes that we have traveled through so that
230
- if we see that class again we will not use its
231
- discriminator again.
232
- When traveling through a discriminator, the
233
- composed schema that is
234
- is traveled through is added to this set.
235
- For example if Animal has a discriminator
236
- petType and we pass in "Dog", and the class Dog
237
- allOf includes Animal, we move through Animal
238
- once using the discriminator, and pick Dog.
239
- Then in Dog, we will make an instance of the
240
- Animal class but this time we won't travel
241
- through its discriminator because we passed in
242
- _visited_composed_classes = (Animal,)
243
- data (EntityV2OfObject): [optional] # noqa: E501
244
- errors ([CommonProblem], none_type): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501
245
- warnings ([CriteoApiWarningV2], none_type): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501
246
- """
247
-
248
- _check_type = kwargs.pop('_check_type', True)
249
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
250
- _path_to_item = kwargs.pop('_path_to_item', ())
251
- _configuration = kwargs.pop('_configuration', None)
252
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
253
-
254
- if args:
255
- for arg in args:
256
- if isinstance(arg, dict):
257
- kwargs.update(arg)
258
- else:
259
- raise ApiTypeError(
260
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
261
- args,
262
- self.__class__.__name__,
263
- ),
264
- path_to_item=_path_to_item,
265
- valid_classes=(self.__class__,),
266
- )
267
-
268
- self._data_store = {}
269
- self._check_type = _check_type
270
- self._spec_property_naming = _spec_property_naming
271
- self._path_to_item = _path_to_item
272
- self._configuration = _configuration
273
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
274
-
275
- for var_name, var_value in kwargs.items():
276
- if var_name not in self.attribute_map and \
277
- self._configuration is not None and \
278
- self._configuration.discard_unknown_keys and \
279
- self.additional_properties_type is None:
280
- # discard variable.
281
- continue
282
- setattr(self, var_name, var_value)
283
- if var_name in self.read_only_vars:
284
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
285
- f"class with read only attributes.")
@@ -1,273 +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.advertiser_creation_input import AdvertiserCreationInput
34
- globals()['AdvertiserCreationInput'] = AdvertiserCreationInput
35
-
36
-
37
- class ValueResourceOfAdvertiserCreationInput(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
- 'attributes': (AdvertiserCreationInput,), # noqa: E501
91
- 'type': (str,), # noqa: E501
92
- }
93
-
94
- @cached_property
95
- def discriminator():
96
- return None
97
-
98
-
99
- attribute_map = {
100
- 'attributes': 'attributes', # noqa: E501
101
- 'type': 'type', # 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
- """ValueResourceOfAdvertiserCreationInput - 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
- attributes (AdvertiserCreationInput): [optional] # noqa: E501
146
- type (str): [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
- """ValueResourceOfAdvertiserCreationInput - 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
- attributes (AdvertiserCreationInput): [optional] # noqa: E501
233
- type (str): [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.")