criteo-api-retailmedia-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-retailmedia-sdk might be problematic. Click here for more details.

Files changed (86) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
  3. criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +2 -313
  5. criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
  6. criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
  7. criteo_api_retailmedia_preview/api_client.py +4 -4
  8. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  9. criteo_api_retailmedia_preview/configuration.py +1 -1
  10. criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
  11. criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
  12. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
  13. criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
  14. criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
  15. criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
  16. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
  17. criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
  18. criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
  19. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  20. criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
  21. criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
  22. criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
  24. criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
  25. criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
  26. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
  27. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
  28. criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
  29. criteo_api_retailmedia_preview/model/installment.py +273 -0
  30. criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
  31. criteo_api_retailmedia_preview/model/metadata.py +273 -0
  32. criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
  33. criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
  34. criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
  35. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
  36. criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
  37. criteo_api_retailmedia_preview/model/price.py +267 -0
  38. criteo_api_retailmedia_preview/model/product.py +626 -0
  39. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
  40. criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
  41. criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
  42. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
  43. criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
  44. criteo_api_retailmedia_preview/model/product_tax.py +283 -0
  45. criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
  46. criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
  47. criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
  48. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
  49. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
  50. criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
  51. criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
  52. criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
  53. criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
  54. criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
  55. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
  56. criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
  57. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
  58. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
  59. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
  60. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
  61. criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
  62. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  63. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
  64. criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
  65. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  66. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
  67. criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
  68. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  69. criteo_api_retailmedia_preview/models/__init__.py +48 -42
  70. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
  71. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
  72. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
  73. criteo_api_retailmedia_preview/model/choice_option.py +0 -281
  74. criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
  75. criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
  76. criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
  77. criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
  78. criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
  79. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  80. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
  81. criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
  82. criteo_api_retailmedia_preview/model/template_response.py +0 -281
  83. criteo_api_retailmedia_preview/model/template_variable.py +0 -310
  84. criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
  85. criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
  86. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
@@ -1,306 +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
-
33
- class UserBehaviorDetails(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (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
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- ('target_type',): {
59
- 'BRAND': "brand",
60
- 'CATEGORY': "category",
61
- },
62
- ('lookback_window',): {
63
- 'P7D': "P7D",
64
- 'P14D': "P14D",
65
- 'P30D': "P30D",
66
- 'P45D': "P45D",
67
- 'P60D': "P60D",
68
- 'P90D': "P90D",
69
- 'P120D': "P120D",
70
- 'P150D': "P150D",
71
- 'P180D': "P180D",
72
- },
73
- ('user_type',): {
74
- 'VIEWER': "viewer",
75
- 'BUYER': "buyer",
76
- },
77
- }
78
-
79
- validations = {
80
- }
81
-
82
- @cached_property
83
- def additional_properties_type():
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
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
89
-
90
- _nullable = False
91
-
92
- @cached_property
93
- def openapi_types():
94
- """
95
- This must be a method because a model may have properties that are
96
- of type self, this must run after the class is loaded
97
-
98
- Returns
99
- openapi_types (dict): The key is attribute name
100
- and the value is attribute type.
101
- """
102
- return {
103
- 'target_type': (str,), # noqa: E501
104
- 'target_ids': ([str],), # noqa: E501
105
- 'lookback_window': (str,), # noqa: E501
106
- 'user_type': (str,), # noqa: E501
107
- }
108
-
109
- @cached_property
110
- def discriminator():
111
- return None
112
-
113
-
114
- attribute_map = {
115
- 'target_type': 'targetType', # noqa: E501
116
- 'target_ids': 'targetIds', # noqa: E501
117
- 'lookback_window': 'lookbackWindow', # noqa: E501
118
- 'user_type': 'userType', # noqa: E501
119
- }
120
-
121
- read_only_vars = {
122
- }
123
-
124
- _composed_schemas = {}
125
-
126
- @classmethod
127
- @convert_js_args_to_python_args
128
- def _from_openapi_data(cls, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501
129
- """UserBehaviorDetails - a model defined in OpenAPI
130
-
131
- Args:
132
- target_type (str): Type of target
133
- target_ids ([str]): ist of ids for the target type
134
- lookback_window (str): Length of lookback window
135
- user_type (str): Type of the user
136
-
137
- Keyword Args:
138
- _check_type (bool): if True, values for parameters in openapi_types
139
- will be type checked and a TypeError will be
140
- raised if the wrong type is input.
141
- Defaults to True
142
- _path_to_item (tuple/list): This is a list of keys or values to
143
- drill down to the model in received_data
144
- when deserializing a response
145
- _spec_property_naming (bool): True if the variable names in the input data
146
- are serialized names, as specified in the OpenAPI document.
147
- False if the variable names in the input data
148
- are pythonic names, e.g. snake case (default)
149
- _configuration (Configuration): the instance to use when
150
- deserializing a file_type parameter.
151
- If passed, type conversion is attempted
152
- If omitted no type conversion is done.
153
- _visited_composed_classes (tuple): This stores a tuple of
154
- classes that we have traveled through so that
155
- if we see that class again we will not use its
156
- discriminator again.
157
- When traveling through a discriminator, the
158
- composed schema that is
159
- is traveled through is added to this set.
160
- For example if Animal has a discriminator
161
- petType and we pass in "Dog", and the class Dog
162
- allOf includes Animal, we move through Animal
163
- once using the discriminator, and pick Dog.
164
- Then in Dog, we will make an instance of the
165
- Animal class but this time we won't travel
166
- through its discriminator because we passed in
167
- _visited_composed_classes = (Animal,)
168
- """
169
-
170
- _check_type = kwargs.pop('_check_type', True)
171
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
172
- _path_to_item = kwargs.pop('_path_to_item', ())
173
- _configuration = kwargs.pop('_configuration', None)
174
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
175
-
176
- self = super(OpenApiModel, cls).__new__(cls)
177
-
178
- if args:
179
- for arg in args:
180
- if isinstance(arg, dict):
181
- kwargs.update(arg)
182
- else:
183
- raise ApiTypeError(
184
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
185
- args,
186
- self.__class__.__name__,
187
- ),
188
- path_to_item=_path_to_item,
189
- valid_classes=(self.__class__,),
190
- )
191
-
192
- self._data_store = {}
193
- self._check_type = _check_type
194
- self._spec_property_naming = _spec_property_naming
195
- self._path_to_item = _path_to_item
196
- self._configuration = _configuration
197
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
198
-
199
- self.target_type = target_type
200
- self.target_ids = target_ids
201
- self.lookback_window = lookback_window
202
- self.user_type = user_type
203
- for var_name, var_value in kwargs.items():
204
- if var_name not in self.attribute_map and \
205
- self._configuration is not None and \
206
- self._configuration.discard_unknown_keys and \
207
- self.additional_properties_type is None:
208
- # discard variable.
209
- continue
210
- setattr(self, var_name, var_value)
211
- return self
212
-
213
- required_properties = set([
214
- '_data_store',
215
- '_check_type',
216
- '_spec_property_naming',
217
- '_path_to_item',
218
- '_configuration',
219
- '_visited_composed_classes',
220
- ])
221
-
222
- @convert_js_args_to_python_args
223
- def __init__(self, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501
224
- """UserBehaviorDetails - a model defined in OpenAPI
225
-
226
- Args:
227
- target_type (str): Type of target
228
- target_ids ([str]): ist of ids for the target type
229
- lookback_window (str): Length of lookback window
230
- user_type (str): Type of the user
231
-
232
- Keyword Args:
233
- _check_type (bool): if True, values for parameters in openapi_types
234
- will be type checked and a TypeError will be
235
- raised if the wrong type is input.
236
- Defaults to True
237
- _path_to_item (tuple/list): This is a list of keys or values to
238
- drill down to the model in received_data
239
- when deserializing a response
240
- _spec_property_naming (bool): True if the variable names in the input data
241
- are serialized names, as specified in the OpenAPI document.
242
- False if the variable names in the input data
243
- are pythonic names, e.g. snake case (default)
244
- _configuration (Configuration): the instance to use when
245
- deserializing a file_type parameter.
246
- If passed, type conversion is attempted
247
- If omitted no type conversion is done.
248
- _visited_composed_classes (tuple): This stores a tuple of
249
- classes that we have traveled through so that
250
- if we see that class again we will not use its
251
- discriminator again.
252
- When traveling through a discriminator, the
253
- composed schema that is
254
- is traveled through is added to this set.
255
- For example if Animal has a discriminator
256
- petType and we pass in "Dog", and the class Dog
257
- allOf includes Animal, we move through Animal
258
- once using the discriminator, and pick Dog.
259
- Then in Dog, we will make an instance of the
260
- Animal class but this time we won't travel
261
- through its discriminator because we passed in
262
- _visited_composed_classes = (Animal,)
263
- """
264
-
265
- _check_type = kwargs.pop('_check_type', True)
266
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
267
- _path_to_item = kwargs.pop('_path_to_item', ())
268
- _configuration = kwargs.pop('_configuration', None)
269
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
270
-
271
- if args:
272
- for arg in args:
273
- if isinstance(arg, dict):
274
- kwargs.update(arg)
275
- else:
276
- raise ApiTypeError(
277
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
278
- args,
279
- self.__class__.__name__,
280
- ),
281
- path_to_item=_path_to_item,
282
- valid_classes=(self.__class__,),
283
- )
284
-
285
- self._data_store = {}
286
- self._check_type = _check_type
287
- self._spec_property_naming = _spec_property_naming
288
- self._path_to_item = _path_to_item
289
- self._configuration = _configuration
290
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
291
-
292
- self.target_type = target_type
293
- self.target_ids = target_ids
294
- self.lookback_window = lookback_window
295
- self.user_type = user_type
296
- for var_name, var_value in kwargs.items():
297
- if var_name not in self.attribute_map and \
298
- self._configuration is not None and \
299
- self._configuration.discard_unknown_keys and \
300
- self.additional_properties_type is None:
301
- # discard variable.
302
- continue
303
- setattr(self, var_name, var_value)
304
- if var_name in self.read_only_vars:
305
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
306
- f"class with read only attributes.")
@@ -1,279 +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.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2
34
- globals()['CreateUserBehaviorSegmentV2'] = CreateUserBehaviorSegmentV2
35
-
36
-
37
- class UserBehaviorDetailsV2(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
- 'inclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501
91
- 'exclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501
92
- }
93
-
94
- @cached_property
95
- def discriminator():
96
- return None
97
-
98
-
99
- attribute_map = {
100
- 'inclusive_segment': 'inclusiveSegment', # noqa: E501
101
- 'exclusive_segment': 'exclusiveSegment', # 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, inclusive_segment, *args, **kwargs): # noqa: E501
112
- """UserBehaviorDetailsV2 - a model defined in OpenAPI
113
-
114
- Args:
115
- inclusive_segment (CreateUserBehaviorSegmentV2):
116
-
117
- Keyword Args:
118
- _check_type (bool): if True, values for parameters in openapi_types
119
- will be type checked and a TypeError will be
120
- raised if the wrong type is input.
121
- Defaults to True
122
- _path_to_item (tuple/list): This is a list of keys or values to
123
- drill down to the model in received_data
124
- when deserializing a response
125
- _spec_property_naming (bool): True if the variable names in the input data
126
- are serialized names, as specified in the OpenAPI document.
127
- False if the variable names in the input data
128
- are pythonic names, e.g. snake case (default)
129
- _configuration (Configuration): the instance to use when
130
- deserializing a file_type parameter.
131
- If passed, type conversion is attempted
132
- If omitted no type conversion is done.
133
- _visited_composed_classes (tuple): This stores a tuple of
134
- classes that we have traveled through so that
135
- if we see that class again we will not use its
136
- discriminator again.
137
- When traveling through a discriminator, the
138
- composed schema that is
139
- is traveled through is added to this set.
140
- For example if Animal has a discriminator
141
- petType and we pass in "Dog", and the class Dog
142
- allOf includes Animal, we move through Animal
143
- once using the discriminator, and pick Dog.
144
- Then in Dog, we will make an instance of the
145
- Animal class but this time we won't travel
146
- through its discriminator because we passed in
147
- _visited_composed_classes = (Animal,)
148
- exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501
149
- """
150
-
151
- _check_type = kwargs.pop('_check_type', True)
152
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
153
- _path_to_item = kwargs.pop('_path_to_item', ())
154
- _configuration = kwargs.pop('_configuration', None)
155
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
156
-
157
- self = super(OpenApiModel, cls).__new__(cls)
158
-
159
- if args:
160
- for arg in args:
161
- if isinstance(arg, dict):
162
- kwargs.update(arg)
163
- else:
164
- raise ApiTypeError(
165
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
166
- args,
167
- self.__class__.__name__,
168
- ),
169
- path_to_item=_path_to_item,
170
- valid_classes=(self.__class__,),
171
- )
172
-
173
- self._data_store = {}
174
- self._check_type = _check_type
175
- self._spec_property_naming = _spec_property_naming
176
- self._path_to_item = _path_to_item
177
- self._configuration = _configuration
178
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
-
180
- self.inclusive_segment = inclusive_segment
181
- for var_name, var_value in kwargs.items():
182
- if var_name not in self.attribute_map and \
183
- self._configuration is not None and \
184
- self._configuration.discard_unknown_keys and \
185
- self.additional_properties_type is None:
186
- # discard variable.
187
- continue
188
- setattr(self, var_name, var_value)
189
- return self
190
-
191
- required_properties = set([
192
- '_data_store',
193
- '_check_type',
194
- '_spec_property_naming',
195
- '_path_to_item',
196
- '_configuration',
197
- '_visited_composed_classes',
198
- ])
199
-
200
- @convert_js_args_to_python_args
201
- def __init__(self, inclusive_segment, *args, **kwargs): # noqa: E501
202
- """UserBehaviorDetailsV2 - a model defined in OpenAPI
203
-
204
- Args:
205
- inclusive_segment (CreateUserBehaviorSegmentV2):
206
-
207
- Keyword Args:
208
- _check_type (bool): if True, values for parameters in openapi_types
209
- will be type checked and a TypeError will be
210
- raised if the wrong type is input.
211
- Defaults to True
212
- _path_to_item (tuple/list): This is a list of keys or values to
213
- drill down to the model in received_data
214
- when deserializing a response
215
- _spec_property_naming (bool): True if the variable names in the input data
216
- are serialized names, as specified in the OpenAPI document.
217
- False if the variable names in the input data
218
- are pythonic names, e.g. snake case (default)
219
- _configuration (Configuration): the instance to use when
220
- deserializing a file_type parameter.
221
- If passed, type conversion is attempted
222
- If omitted no type conversion is done.
223
- _visited_composed_classes (tuple): This stores a tuple of
224
- classes that we have traveled through so that
225
- if we see that class again we will not use its
226
- discriminator again.
227
- When traveling through a discriminator, the
228
- composed schema that is
229
- is traveled through is added to this set.
230
- For example if Animal has a discriminator
231
- petType and we pass in "Dog", and the class Dog
232
- allOf includes Animal, we move through Animal
233
- once using the discriminator, and pick Dog.
234
- Then in Dog, we will make an instance of the
235
- Animal class but this time we won't travel
236
- through its discriminator because we passed in
237
- _visited_composed_classes = (Animal,)
238
- exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501
239
- """
240
-
241
- _check_type = kwargs.pop('_check_type', True)
242
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
243
- _path_to_item = kwargs.pop('_path_to_item', ())
244
- _configuration = kwargs.pop('_configuration', None)
245
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
246
-
247
- if args:
248
- for arg in args:
249
- if isinstance(arg, dict):
250
- kwargs.update(arg)
251
- else:
252
- raise ApiTypeError(
253
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
254
- args,
255
- self.__class__.__name__,
256
- ),
257
- path_to_item=_path_to_item,
258
- valid_classes=(self.__class__,),
259
- )
260
-
261
- self._data_store = {}
262
- self._check_type = _check_type
263
- self._spec_property_naming = _spec_property_naming
264
- self._path_to_item = _path_to_item
265
- self._configuration = _configuration
266
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
-
268
- self.inclusive_segment = inclusive_segment
269
- for var_name, var_value in kwargs.items():
270
- if var_name not in self.attribute_map and \
271
- self._configuration is not None and \
272
- self._configuration.discard_unknown_keys and \
273
- self.additional_properties_type is None:
274
- # discard variable.
275
- continue
276
- setattr(self, var_name, var_value)
277
- if var_name in self.read_only_vars:
278
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
279
- f"class with read only attributes.")