criteo-api-retailmedia-sdk 0.0.240207__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 (70) 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/campaign_api.py +443 -974
  5. criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
  6. criteo_api_retailmedia_preview/api_client.py +4 -4
  7. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  8. criteo_api_retailmedia_preview/configuration.py +1 -1
  9. criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
  10. criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
  11. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
  12. criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
  13. criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
  14. criteo_api_retailmedia_preview/model/{text_variable_value.py → batch_accepted_response.py} +11 -11
  15. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
  16. criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → custom_attribute.py} +17 -11
  17. criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
  18. criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
  19. criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
  20. criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
  21. criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_preferred_line_item_create_model_v2.py} +79 -31
  22. criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
  23. criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
  24. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
  25. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → input_resource_of_preferred_line_item_create_model_v2.py} +12 -18
  26. criteo_api_retailmedia_preview/model/{choice_variable_specification.py → insertion_order_history_change_data_capture.py} +49 -29
  27. criteo_api_retailmedia_preview/model/installment.py +273 -0
  28. criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
  29. criteo_api_retailmedia_preview/model/metadata.py +273 -0
  30. criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
  31. criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
  32. criteo_api_retailmedia_preview/model/preferred_line_item_update_model_v2_request.py +269 -0
  33. criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
  34. criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
  35. criteo_api_retailmedia_preview/model/price.py +267 -0
  36. criteo_api_retailmedia_preview/model/product.py +626 -0
  37. criteo_api_retailmedia_preview/model/{template_variable.py → product_importer_error.py} +37 -48
  38. criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
  39. criteo_api_retailmedia_preview/model/{template_list_response.py → product_shipping.py} +33 -21
  40. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
  41. criteo_api_retailmedia_preview/model/{color_variable_value.py → product_shipping_weight.py} +13 -20
  42. criteo_api_retailmedia_preview/model/product_tax.py +283 -0
  43. criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
  44. criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
  45. criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
  46. criteo_api_retailmedia_preview/model/{creative_update_model202207.py → products_custom_batch_request_entry.py} +43 -35
  47. criteo_api_retailmedia_preview/model/{choice_option.py → report_detail_error.py} +41 -23
  48. criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
  49. criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
  50. criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
  51. criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
  52. criteo_api_retailmedia_preview/model/retail_media_brands.py +257 -0
  53. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
  54. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
  55. criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
  56. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  57. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
  58. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
  59. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  60. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
  61. criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
  62. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  63. criteo_api_retailmedia_preview/models/__init__.py +48 -31
  64. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
  65. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +67 -49
  66. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
  67. criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
  68. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
  69. criteo_api_retailmedia_preview/model/template_response.py +0 -281
  70. {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
@@ -65,44 +65,6 @@ class SyncLineItemsReport(ModelNormal):
65
65
  'ENVIRONMENT': "environment",
66
66
  'SERVEDCATEGORY': "servedCategory",
67
67
  },
68
- ('metrics',): {
69
- 'None': None,
70
- 'IMPRESSIONS': "impressions",
71
- 'CLICKS': "clicks",
72
- 'SPEND': "spend",
73
- 'ATTRIBUTEDSALES': "attributedSales",
74
- 'ATTRIBUTEDUNITS': "attributedUnits",
75
- 'ATTRIBUTEDORDERS': "attributedOrders",
76
- 'CTR': "ctr",
77
- 'CPC': "cpc",
78
- 'CPO': "cpo",
79
- 'ROAS': "roas",
80
- 'ASSISTEDUNITS': "assistedUnits",
81
- 'ASSISTEDSALES': "assistedSales",
82
- 'UNIQUEVISITORS': "uniqueVisitors",
83
- 'FREQUENCY': "frequency",
84
- },
85
- ('dimensions',): {
86
- 'None': None,
87
- 'DATE': "date",
88
- 'HOUR': "hour",
89
- 'CAMPAIGNID': "campaignId",
90
- 'CAMPAIGNNAME': "campaignName",
91
- 'CAMPAIGNTYPENAME': "campaignTypeName",
92
- 'ADVPRODUCTCATEGORY': "advProductCategory",
93
- 'ADVPRODUCTID': "advProductId",
94
- 'ADVPRODUCTNAME': "advProductName",
95
- 'BRANDID': "brandId",
96
- 'BRANDNAME': "brandName",
97
- 'LINEITEMID': "lineItemId",
98
- 'LINEITEMNAME': "lineItemName",
99
- 'RETAILERID': "retailerId",
100
- 'RETAILERNAME': "retailerName",
101
- 'KEYWORD': "keyword",
102
- 'PAGETYPENAME': "pageTypeName",
103
- 'SALESCHANNEL': "salesChannel",
104
- 'ENVIRONMENT': "environment",
105
- },
106
68
  ('click_attribution_window',): {
107
69
  'None': None,
108
70
  '7D': "7D",
@@ -128,6 +90,47 @@ class SyncLineItemsReport(ModelNormal):
128
90
  'OFFLINE': "offline",
129
91
  'ONLINE': "online",
130
92
  },
93
+ ('dimensions',): {
94
+ 'None': None,
95
+ 'DATE': "date",
96
+ 'HOUR': "hour",
97
+ 'ACCOUNTID': "accountId",
98
+ 'ACCOUNTNAME': "accountName",
99
+ 'CAMPAIGNID': "campaignId",
100
+ 'CAMPAIGNNAME': "campaignName",
101
+ 'CAMPAIGNTYPENAME': "campaignTypeName",
102
+ 'ADVPRODUCTCATEGORY': "advProductCategory",
103
+ 'ADVPRODUCTID': "advProductId",
104
+ 'ADVPRODUCTNAME': "advProductName",
105
+ 'BRANDID': "brandId",
106
+ 'BRANDNAME': "brandName",
107
+ 'LINEITEMID': "lineItemId",
108
+ 'LINEITEMNAME': "lineItemName",
109
+ 'RETAILERID': "retailerId",
110
+ 'RETAILERNAME': "retailerName",
111
+ 'KEYWORD': "keyword",
112
+ 'PAGETYPENAME': "pageTypeName",
113
+ 'SALESCHANNEL': "salesChannel",
114
+ 'ENVIRONMENT': "environment",
115
+ },
116
+ ('metrics',): {
117
+ 'None': None,
118
+ 'IMPRESSIONS': "impressions",
119
+ 'CLICKS': "clicks",
120
+ 'SPEND': "spend",
121
+ 'ATTRIBUTEDSALES': "attributedSales",
122
+ 'ATTRIBUTEDUNITS': "attributedUnits",
123
+ 'ATTRIBUTEDORDERS': "attributedOrders",
124
+ 'ASSISTEDSALES': "assistedSales",
125
+ 'ASSISTEDUNITS': "assistedUnits",
126
+ 'CTR': "ctr",
127
+ 'CPC': "cpc",
128
+ 'CPO': "cpo",
129
+ 'CPM': "cpm",
130
+ 'ROAS': "roas",
131
+ 'UNIQUEVISITORS': "uniqueVisitors",
132
+ 'FREQUENCY': "frequency",
133
+ },
131
134
  }
132
135
 
133
136
  validations = {
@@ -160,12 +163,12 @@ class SyncLineItemsReport(ModelNormal):
160
163
  'report_type': (str, none_type,), # noqa: E501
161
164
  'line_item_ids': ([str], none_type,), # noqa: E501
162
165
  'campaign_ids': ([str], none_type,), # noqa: E501
163
- 'metrics': ([str], none_type,), # noqa: E501
164
- 'dimensions': ([str], none_type,), # noqa: E501
165
166
  'click_attribution_window': (str, none_type,), # noqa: E501
166
167
  'view_attribution_window': (str, none_type,), # noqa: E501
167
168
  'campaign_type': (str, none_type,), # noqa: E501
168
169
  'sales_channel': (str, none_type,), # noqa: E501
170
+ 'dimensions': ([str], none_type,), # noqa: E501
171
+ 'metrics': ([str], none_type,), # noqa: E501
169
172
  'timezone': (str, none_type,), # noqa: E501
170
173
  }
171
174
 
@@ -181,12 +184,12 @@ class SyncLineItemsReport(ModelNormal):
181
184
  'report_type': 'reportType', # noqa: E501
182
185
  'line_item_ids': 'lineItemIds', # noqa: E501
183
186
  'campaign_ids': 'campaignIds', # noqa: E501
184
- 'metrics': 'metrics', # noqa: E501
185
- 'dimensions': 'dimensions', # noqa: E501
186
187
  'click_attribution_window': 'clickAttributionWindow', # noqa: E501
187
188
  'view_attribution_window': 'viewAttributionWindow', # noqa: E501
188
189
  'campaign_type': 'campaignType', # noqa: E501
189
190
  'sales_channel': 'salesChannel', # noqa: E501
191
+ 'dimensions': 'dimensions', # noqa: E501
192
+ 'metrics': 'metrics', # noqa: E501
190
193
  'timezone': 'timezone', # noqa: E501
191
194
  }
192
195
 
@@ -237,14 +240,14 @@ class SyncLineItemsReport(ModelNormal):
237
240
  through its discriminator because we passed in
238
241
  _visited_composed_classes = (Animal,)
239
242
  report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501
240
- line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501
241
- campaign_ids ([str], none_type): Campaign ids to report on. [optional] # noqa: E501
242
- metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
243
- dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
243
+ line_item_ids ([str], none_type): Line Item ids to filter. [optional] # noqa: E501
244
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
244
245
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
245
246
  view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
246
247
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
247
248
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
249
+ dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
250
+ metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
248
251
  timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
249
252
  """
250
253
 
@@ -340,14 +343,14 @@ class SyncLineItemsReport(ModelNormal):
340
343
  through its discriminator because we passed in
341
344
  _visited_composed_classes = (Animal,)
342
345
  report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501
343
- line_item_ids ([str], none_type): Line item ids to report on. [optional] # noqa: E501
344
- campaign_ids ([str], none_type): Campaign ids to report on. [optional] # noqa: E501
345
- metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
346
- dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
346
+ line_item_ids ([str], none_type): Line Item ids to filter. [optional] # noqa: E501
347
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
347
348
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
348
349
  view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
349
350
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
350
351
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
352
+ dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
353
+ metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
351
354
  timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
352
355
  """
353
356
 
@@ -0,0 +1,262 @@
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.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller
34
+ globals()['ValueResourceOfRetailMediaSeller'] = ValueResourceOfRetailMediaSeller
35
+
36
+
37
+ class ValueResourceCollectionInputOfRetailMediaSeller(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
+ additional_properties_type = None
68
+
69
+ _nullable = False
70
+
71
+ @cached_property
72
+ def openapi_types():
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
+ Returns
78
+ openapi_types (dict): The key is attribute name
79
+ and the value is attribute type.
80
+ """
81
+ lazy_import()
82
+ return {
83
+ 'data': ([ValueResourceOfRetailMediaSeller], none_type,), # noqa: E501
84
+ }
85
+
86
+ @cached_property
87
+ def discriminator():
88
+ return None
89
+
90
+
91
+ attribute_map = {
92
+ 'data': 'data', # noqa: E501
93
+ }
94
+
95
+ read_only_vars = {
96
+ }
97
+
98
+ _composed_schemas = {}
99
+
100
+ @classmethod
101
+ @convert_js_args_to_python_args
102
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
103
+ """ValueResourceCollectionInputOfRetailMediaSeller - a model defined in OpenAPI
104
+
105
+ Keyword Args:
106
+ _check_type (bool): if True, values for parameters in openapi_types
107
+ will be type checked and a TypeError will be
108
+ raised if the wrong type is input.
109
+ Defaults to True
110
+ _path_to_item (tuple/list): This is a list of keys or values to
111
+ drill down to the model in received_data
112
+ when deserializing a response
113
+ _spec_property_naming (bool): True if the variable names in the input data
114
+ are serialized names, as specified in the OpenAPI document.
115
+ False if the variable names in the input data
116
+ are pythonic names, e.g. snake case (default)
117
+ _configuration (Configuration): the instance to use when
118
+ deserializing a file_type parameter.
119
+ If passed, type conversion is attempted
120
+ If omitted no type conversion is done.
121
+ _visited_composed_classes (tuple): This stores a tuple of
122
+ classes that we have traveled through so that
123
+ if we see that class again we will not use its
124
+ discriminator again.
125
+ When traveling through a discriminator, the
126
+ composed schema that is
127
+ is traveled through is added to this set.
128
+ For example if Animal has a discriminator
129
+ petType and we pass in "Dog", and the class Dog
130
+ allOf includes Animal, we move through Animal
131
+ once using the discriminator, and pick Dog.
132
+ Then in Dog, we will make an instance of the
133
+ Animal class but this time we won't travel
134
+ through its discriminator because we passed in
135
+ _visited_composed_classes = (Animal,)
136
+ data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
137
+ """
138
+
139
+ _check_type = kwargs.pop('_check_type', True)
140
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
141
+ _path_to_item = kwargs.pop('_path_to_item', ())
142
+ _configuration = kwargs.pop('_configuration', None)
143
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
144
+
145
+ self = super(OpenApiModel, cls).__new__(cls)
146
+
147
+ if args:
148
+ for arg in args:
149
+ if isinstance(arg, dict):
150
+ kwargs.update(arg)
151
+ else:
152
+ raise ApiTypeError(
153
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
154
+ args,
155
+ self.__class__.__name__,
156
+ ),
157
+ path_to_item=_path_to_item,
158
+ valid_classes=(self.__class__,),
159
+ )
160
+
161
+ self._data_store = {}
162
+ self._check_type = _check_type
163
+ self._spec_property_naming = _spec_property_naming
164
+ self._path_to_item = _path_to_item
165
+ self._configuration = _configuration
166
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
167
+
168
+ for var_name, var_value in kwargs.items():
169
+ if var_name not in self.attribute_map and \
170
+ self._configuration is not None and \
171
+ self._configuration.discard_unknown_keys and \
172
+ self.additional_properties_type is None:
173
+ # discard variable.
174
+ continue
175
+ setattr(self, var_name, var_value)
176
+ return self
177
+
178
+ required_properties = set([
179
+ '_data_store',
180
+ '_check_type',
181
+ '_spec_property_naming',
182
+ '_path_to_item',
183
+ '_configuration',
184
+ '_visited_composed_classes',
185
+ ])
186
+
187
+ @convert_js_args_to_python_args
188
+ def __init__(self, *args, **kwargs): # noqa: E501
189
+ """ValueResourceCollectionInputOfRetailMediaSeller - a model defined in OpenAPI
190
+
191
+ Keyword Args:
192
+ _check_type (bool): if True, values for parameters in openapi_types
193
+ will be type checked and a TypeError will be
194
+ raised if the wrong type is input.
195
+ Defaults to True
196
+ _path_to_item (tuple/list): This is a list of keys or values to
197
+ drill down to the model in received_data
198
+ when deserializing a response
199
+ _spec_property_naming (bool): True if the variable names in the input data
200
+ are serialized names, as specified in the OpenAPI document.
201
+ False if the variable names in the input data
202
+ are pythonic names, e.g. snake case (default)
203
+ _configuration (Configuration): the instance to use when
204
+ deserializing a file_type parameter.
205
+ If passed, type conversion is attempted
206
+ If omitted no type conversion is done.
207
+ _visited_composed_classes (tuple): This stores a tuple of
208
+ classes that we have traveled through so that
209
+ if we see that class again we will not use its
210
+ discriminator again.
211
+ When traveling through a discriminator, the
212
+ composed schema that is
213
+ is traveled through is added to this set.
214
+ For example if Animal has a discriminator
215
+ petType and we pass in "Dog", and the class Dog
216
+ allOf includes Animal, we move through Animal
217
+ once using the discriminator, and pick Dog.
218
+ Then in Dog, we will make an instance of the
219
+ Animal class but this time we won't travel
220
+ through its discriminator because we passed in
221
+ _visited_composed_classes = (Animal,)
222
+ data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501
223
+ """
224
+
225
+ _check_type = kwargs.pop('_check_type', True)
226
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
227
+ _path_to_item = kwargs.pop('_path_to_item', ())
228
+ _configuration = kwargs.pop('_configuration', None)
229
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
230
+
231
+ if args:
232
+ for arg in args:
233
+ if isinstance(arg, dict):
234
+ kwargs.update(arg)
235
+ else:
236
+ raise ApiTypeError(
237
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
238
+ args,
239
+ self.__class__.__name__,
240
+ ),
241
+ path_to_item=_path_to_item,
242
+ valid_classes=(self.__class__,),
243
+ )
244
+
245
+ self._data_store = {}
246
+ self._check_type = _check_type
247
+ self._spec_property_naming = _spec_property_naming
248
+ self._path_to_item = _path_to_item
249
+ self._configuration = _configuration
250
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
251
+
252
+ for var_name, var_value in kwargs.items():
253
+ if var_name not in self.attribute_map and \
254
+ self._configuration is not None and \
255
+ self._configuration.discard_unknown_keys and \
256
+ self.additional_properties_type is None:
257
+ # discard variable.
258
+ continue
259
+ setattr(self, var_name, var_value)
260
+ if var_name in self.read_only_vars:
261
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
262
+ f"class with read only attributes.")