criteo-api-retailmedia-sdk 0.0.250409__py3-none-any.whl → 0.0.250425__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-retailmedia-sdk might be problematic. Click here for more details.

Files changed (44) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +3 -147
  3. criteo_api_retailmedia_preview/api/analytics_api.py +1 -1
  4. criteo_api_retailmedia_preview/api/campaign_api.py +0 -421
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/configuration.py +1 -1
  7. criteo_api_retailmedia_preview/model/account_fees_update_request.py +4 -0
  8. criteo_api_retailmedia_preview/model/async_accounts_report.py +6 -6
  9. criteo_api_retailmedia_preview/model/async_campaigns_report.py +4 -4
  10. criteo_api_retailmedia_preview/model/async_line_items_report.py +4 -4
  11. criteo_api_retailmedia_preview/model/async_offsite_report.py +25 -18
  12. criteo_api_retailmedia_preview/model/brand_id_search_request.py +7 -1
  13. criteo_api_retailmedia_preview/model/brand_id_search_result.py +7 -1
  14. criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +8 -1
  15. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +8 -1
  16. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +7 -1
  17. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +6 -6
  18. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +2 -2
  19. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +4 -4
  20. criteo_api_retailmedia_preview/model/sync_line_items_report.py +4 -4
  21. criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +8 -1
  22. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_private_market_account_fees.py → value_resource_collection_outcome_private_market_account_fees_and_metadata.py} +9 -3
  23. criteo_api_retailmedia_preview/model/value_resource_input_brand_id_search_request.py +8 -1
  24. criteo_api_retailmedia_preview/models/__init__.py +1 -17
  25. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/METADATA +3 -3
  26. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/RECORD +28 -44
  27. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/WHEEL +1 -1
  28. criteo_api_retailmedia_preview/model/common_error.py +0 -301
  29. criteo_api_retailmedia_preview/model/common_warning.py +0 -301
  30. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +0 -307
  31. criteo_api_retailmedia_preview/model/grant_consent_input.py +0 -269
  32. criteo_api_retailmedia_preview/model/grant_consent_model.py +0 -279
  33. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +0 -273
  34. criteo_api_retailmedia_preview/model/input_keywords.py +0 -265
  35. criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py +0 -279
  36. criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers_v2.py +0 -287
  37. criteo_api_retailmedia_preview/model/keywords.py +0 -297
  38. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_request.py +0 -269
  39. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +0 -281
  40. criteo_api_retailmedia_preview/model/recommended_keywords_result.py +0 -266
  41. criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers_v2.py +0 -277
  42. criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +0 -266
  43. criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py +0 -274
  44. {criteo_api_retailmedia_sdk-0.0.250409.dist-info → criteo_api_retailmedia_sdk-0.0.250425.dist-info}/top_level.txt +0 -0
@@ -1,287 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.common_error import CommonError
34
- from criteo_api_retailmedia_preview.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2 import JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2
36
- globals()['CommonError'] = CommonError
37
- globals()['CommonWarning'] = CommonWarning
38
- globals()['JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2'] = JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2
39
-
40
-
41
- class JsonApiSingleResponseOfLineItemBidMultipliersV2(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
- }
70
-
71
- @cached_property
72
- def additional_properties_type():
73
- """
74
- This must be a method because a model may have properties that are
75
- of type self, this must run after the class is loaded
76
- """
77
- lazy_import()
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = False
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- lazy_import()
93
- return {
94
- 'data': (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2,), # noqa: E501
95
- 'errors': ([CommonError], none_type,), # noqa: E501
96
- 'warnings': ([CommonWarning], none_type,), # noqa: E501
97
- }
98
-
99
- @cached_property
100
- def discriminator():
101
- return None
102
-
103
-
104
- attribute_map = {
105
- 'data': 'data', # noqa: E501
106
- 'errors': 'errors', # noqa: E501
107
- 'warnings': 'warnings', # noqa: E501
108
- }
109
-
110
- read_only_vars = {
111
- }
112
-
113
- _composed_schemas = {}
114
-
115
- @classmethod
116
- @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
118
- """JsonApiSingleResponseOfLineItemBidMultipliersV2 - a model defined in OpenAPI
119
-
120
- Args:
121
- data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2):
122
-
123
- Keyword Args:
124
- _check_type (bool): if True, values for parameters in openapi_types
125
- will be type checked and a TypeError will be
126
- raised if the wrong type is input.
127
- Defaults to True
128
- _path_to_item (tuple/list): This is a list of keys or values to
129
- drill down to the model in received_data
130
- when deserializing a response
131
- _spec_property_naming (bool): True if the variable names in the input data
132
- are serialized names, as specified in the OpenAPI document.
133
- False if the variable names in the input data
134
- are pythonic names, e.g. snake case (default)
135
- _configuration (Configuration): the instance to use when
136
- deserializing a file_type parameter.
137
- If passed, type conversion is attempted
138
- If omitted no type conversion is done.
139
- _visited_composed_classes (tuple): This stores a tuple of
140
- classes that we have traveled through so that
141
- if we see that class again we will not use its
142
- discriminator again.
143
- When traveling through a discriminator, the
144
- composed schema that is
145
- is traveled through is added to this set.
146
- For example if Animal has a discriminator
147
- petType and we pass in "Dog", and the class Dog
148
- allOf includes Animal, we move through Animal
149
- once using the discriminator, and pick Dog.
150
- Then in Dog, we will make an instance of the
151
- Animal class but this time we won't travel
152
- through its discriminator because we passed in
153
- _visited_composed_classes = (Animal,)
154
- errors ([CommonError], none_type): [optional] # noqa: E501
155
- warnings ([CommonWarning], none_type): [optional] # noqa: E501
156
- """
157
-
158
- _check_type = kwargs.pop('_check_type', True)
159
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
- _path_to_item = kwargs.pop('_path_to_item', ())
161
- _configuration = kwargs.pop('_configuration', None)
162
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
-
164
- self = super(OpenApiModel, cls).__new__(cls)
165
-
166
- if args:
167
- for arg in args:
168
- if isinstance(arg, dict):
169
- kwargs.update(arg)
170
- else:
171
- raise ApiTypeError(
172
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
- args,
174
- self.__class__.__name__,
175
- ),
176
- path_to_item=_path_to_item,
177
- valid_classes=(self.__class__,),
178
- )
179
-
180
- self._data_store = {}
181
- self._check_type = _check_type
182
- self._spec_property_naming = _spec_property_naming
183
- self._path_to_item = _path_to_item
184
- self._configuration = _configuration
185
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
-
187
- self.data = data
188
- for var_name, var_value in kwargs.items():
189
- if var_name not in self.attribute_map and \
190
- self._configuration is not None and \
191
- self._configuration.discard_unknown_keys and \
192
- self.additional_properties_type is None:
193
- # discard variable.
194
- continue
195
- setattr(self, var_name, var_value)
196
- return self
197
-
198
- required_properties = set([
199
- '_data_store',
200
- '_check_type',
201
- '_spec_property_naming',
202
- '_path_to_item',
203
- '_configuration',
204
- '_visited_composed_classes',
205
- ])
206
-
207
- @convert_js_args_to_python_args
208
- def __init__(self, data, *args, **kwargs): # noqa: E501
209
- """JsonApiSingleResponseOfLineItemBidMultipliersV2 - a model defined in OpenAPI
210
-
211
- Args:
212
- data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersV2AndLineItemBidMultipliersV2):
213
-
214
- Keyword Args:
215
- _check_type (bool): if True, values for parameters in openapi_types
216
- will be type checked and a TypeError will be
217
- raised if the wrong type is input.
218
- Defaults to True
219
- _path_to_item (tuple/list): This is a list of keys or values to
220
- drill down to the model in received_data
221
- when deserializing a response
222
- _spec_property_naming (bool): True if the variable names in the input data
223
- are serialized names, as specified in the OpenAPI document.
224
- False if the variable names in the input data
225
- are pythonic names, e.g. snake case (default)
226
- _configuration (Configuration): the instance to use when
227
- deserializing a file_type parameter.
228
- If passed, type conversion is attempted
229
- If omitted no type conversion is done.
230
- _visited_composed_classes (tuple): This stores a tuple of
231
- classes that we have traveled through so that
232
- if we see that class again we will not use its
233
- discriminator again.
234
- When traveling through a discriminator, the
235
- composed schema that is
236
- is traveled through is added to this set.
237
- For example if Animal has a discriminator
238
- petType and we pass in "Dog", and the class Dog
239
- allOf includes Animal, we move through Animal
240
- once using the discriminator, and pick Dog.
241
- Then in Dog, we will make an instance of the
242
- Animal class but this time we won't travel
243
- through its discriminator because we passed in
244
- _visited_composed_classes = (Animal,)
245
- errors ([CommonError], none_type): [optional] # noqa: E501
246
- warnings ([CommonWarning], none_type): [optional] # noqa: E501
247
- """
248
-
249
- _check_type = kwargs.pop('_check_type', True)
250
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
251
- _path_to_item = kwargs.pop('_path_to_item', ())
252
- _configuration = kwargs.pop('_configuration', None)
253
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
254
-
255
- if args:
256
- for arg in args:
257
- if isinstance(arg, dict):
258
- kwargs.update(arg)
259
- else:
260
- raise ApiTypeError(
261
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
262
- args,
263
- self.__class__.__name__,
264
- ),
265
- path_to_item=_path_to_item,
266
- valid_classes=(self.__class__,),
267
- )
268
-
269
- self._data_store = {}
270
- self._check_type = _check_type
271
- self._spec_property_naming = _spec_property_naming
272
- self._path_to_item = _path_to_item
273
- self._configuration = _configuration
274
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
-
276
- self.data = data
277
- for var_name, var_value in kwargs.items():
278
- if var_name not in self.attribute_map and \
279
- self._configuration is not None and \
280
- self._configuration.discard_unknown_keys and \
281
- self.additional_properties_type is None:
282
- # discard variable.
283
- continue
284
- setattr(self, var_name, var_value)
285
- if var_name in self.read_only_vars:
286
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
287
- f"class with read only attributes.")
@@ -1,297 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: Preview
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.input_keywords import InputKeywords
34
- globals()['InputKeywords'] = InputKeywords
35
-
36
-
37
- class Keywords(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
- ('match_type',): {
63
- 'POSITIVEEXACTMATCH': "PositiveExactMatch",
64
- 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
65
- 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
66
- 'UNKNOWN': "Unknown",
67
- },
68
- ('review_state',): {
69
- 'INREVIEW': "InReview",
70
- 'RECOMMENDED': "Recommended",
71
- 'APPROVED': "Approved",
72
- 'AUTOAPPROVED': "AutoApproved",
73
- 'REJECTED': "Rejected",
74
- 'AUTOREJECTED': "AutoRejected",
75
- 'UNKOWN': "Unkown",
76
- },
77
- }
78
-
79
- validations = {
80
- }
81
-
82
- additional_properties_type = None
83
-
84
- _nullable = False
85
-
86
- @cached_property
87
- def openapi_types():
88
- """
89
- This must be a method because a model may have properties that are
90
- of type self, this must run after the class is loaded
91
-
92
- Returns
93
- openapi_types (dict): The key is attribute name
94
- and the value is attribute type.
95
- """
96
- lazy_import()
97
- return {
98
- 'bid': (float, none_type,), # noqa: E501
99
- 'created_at': (datetime,), # noqa: E501
100
- 'input_keywords': (InputKeywords,), # noqa: E501
101
- 'match_type': (str,), # noqa: E501
102
- 'review_state': (str,), # noqa: E501
103
- 'updated_at': (datetime,), # noqa: E501
104
- }
105
-
106
- @cached_property
107
- def discriminator():
108
- return None
109
-
110
-
111
- attribute_map = {
112
- 'bid': 'bid', # noqa: E501
113
- 'created_at': 'createdAt', # noqa: E501
114
- 'input_keywords': 'inputKeywords', # noqa: E501
115
- 'match_type': 'matchType', # noqa: E501
116
- 'review_state': 'reviewState', # noqa: E501
117
- 'updated_at': 'updatedAt', # noqa: E501
118
- }
119
-
120
- read_only_vars = {
121
- }
122
-
123
- _composed_schemas = {}
124
-
125
- @classmethod
126
- @convert_js_args_to_python_args
127
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
128
- """Keywords - a model defined in OpenAPI
129
-
130
- Keyword Args:
131
- _check_type (bool): if True, values for parameters in openapi_types
132
- will be type checked and a TypeError will be
133
- raised if the wrong type is input.
134
- Defaults to True
135
- _path_to_item (tuple/list): This is a list of keys or values to
136
- drill down to the model in received_data
137
- when deserializing a response
138
- _spec_property_naming (bool): True if the variable names in the input data
139
- are serialized names, as specified in the OpenAPI document.
140
- False if the variable names in the input data
141
- are pythonic names, e.g. snake case (default)
142
- _configuration (Configuration): the instance to use when
143
- deserializing a file_type parameter.
144
- If passed, type conversion is attempted
145
- If omitted no type conversion is done.
146
- _visited_composed_classes (tuple): This stores a tuple of
147
- classes that we have traveled through so that
148
- if we see that class again we will not use its
149
- discriminator again.
150
- When traveling through a discriminator, the
151
- composed schema that is
152
- is traveled through is added to this set.
153
- For example if Animal has a discriminator
154
- petType and we pass in "Dog", and the class Dog
155
- allOf includes Animal, we move through Animal
156
- once using the discriminator, and pick Dog.
157
- Then in Dog, we will make an instance of the
158
- Animal class but this time we won't travel
159
- through its discriminator because we passed in
160
- _visited_composed_classes = (Animal,)
161
- bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
162
- created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
163
- input_keywords (InputKeywords): [optional] # noqa: E501
164
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
165
- review_state (str): Review status of the keyword. [optional] # noqa: E501
166
- updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
167
- """
168
-
169
- _check_type = kwargs.pop('_check_type', True)
170
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
171
- _path_to_item = kwargs.pop('_path_to_item', ())
172
- _configuration = kwargs.pop('_configuration', None)
173
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
174
-
175
- self = super(OpenApiModel, cls).__new__(cls)
176
-
177
- if args:
178
- for arg in args:
179
- if isinstance(arg, dict):
180
- kwargs.update(arg)
181
- else:
182
- raise ApiTypeError(
183
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
184
- args,
185
- self.__class__.__name__,
186
- ),
187
- path_to_item=_path_to_item,
188
- valid_classes=(self.__class__,),
189
- )
190
-
191
- self._data_store = {}
192
- self._check_type = _check_type
193
- self._spec_property_naming = _spec_property_naming
194
- self._path_to_item = _path_to_item
195
- self._configuration = _configuration
196
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
197
-
198
- for var_name, var_value in kwargs.items():
199
- if var_name not in self.attribute_map and \
200
- self._configuration is not None and \
201
- self._configuration.discard_unknown_keys and \
202
- self.additional_properties_type is None:
203
- # discard variable.
204
- continue
205
- setattr(self, var_name, var_value)
206
- return self
207
-
208
- required_properties = set([
209
- '_data_store',
210
- '_check_type',
211
- '_spec_property_naming',
212
- '_path_to_item',
213
- '_configuration',
214
- '_visited_composed_classes',
215
- ])
216
-
217
- @convert_js_args_to_python_args
218
- def __init__(self, *args, **kwargs): # noqa: E501
219
- """Keywords - a model defined in OpenAPI
220
-
221
- Keyword Args:
222
- _check_type (bool): if True, values for parameters in openapi_types
223
- will be type checked and a TypeError will be
224
- raised if the wrong type is input.
225
- Defaults to True
226
- _path_to_item (tuple/list): This is a list of keys or values to
227
- drill down to the model in received_data
228
- when deserializing a response
229
- _spec_property_naming (bool): True if the variable names in the input data
230
- are serialized names, as specified in the OpenAPI document.
231
- False if the variable names in the input data
232
- are pythonic names, e.g. snake case (default)
233
- _configuration (Configuration): the instance to use when
234
- deserializing a file_type parameter.
235
- If passed, type conversion is attempted
236
- If omitted no type conversion is done.
237
- _visited_composed_classes (tuple): This stores a tuple of
238
- classes that we have traveled through so that
239
- if we see that class again we will not use its
240
- discriminator again.
241
- When traveling through a discriminator, the
242
- composed schema that is
243
- is traveled through is added to this set.
244
- For example if Animal has a discriminator
245
- petType and we pass in "Dog", and the class Dog
246
- allOf includes Animal, we move through Animal
247
- once using the discriminator, and pick Dog.
248
- Then in Dog, we will make an instance of the
249
- Animal class but this time we won't travel
250
- through its discriminator because we passed in
251
- _visited_composed_classes = (Animal,)
252
- bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
253
- created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
254
- input_keywords (InputKeywords): [optional] # noqa: E501
255
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
256
- review_state (str): Review status of the keyword. [optional] # noqa: E501
257
- updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
258
- """
259
-
260
- _check_type = kwargs.pop('_check_type', True)
261
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
262
- _path_to_item = kwargs.pop('_path_to_item', ())
263
- _configuration = kwargs.pop('_configuration', None)
264
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
265
-
266
- if args:
267
- for arg in args:
268
- if isinstance(arg, dict):
269
- kwargs.update(arg)
270
- else:
271
- raise ApiTypeError(
272
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
273
- args,
274
- self.__class__.__name__,
275
- ),
276
- path_to_item=_path_to_item,
277
- valid_classes=(self.__class__,),
278
- )
279
-
280
- self._data_store = {}
281
- self._check_type = _check_type
282
- self._spec_property_naming = _spec_property_naming
283
- self._path_to_item = _path_to_item
284
- self._configuration = _configuration
285
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
286
-
287
- for var_name, var_value in kwargs.items():
288
- if var_name not in self.attribute_map and \
289
- self._configuration is not None and \
290
- self._configuration.discard_unknown_keys and \
291
- self.additional_properties_type is None:
292
- # discard variable.
293
- continue
294
- setattr(self, var_name, var_value)
295
- if var_name in self.read_only_vars:
296
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
297
- f"class with read only attributes.")