criteo-api-retailmedia-sdk 0.0.251015__py3-none-any.whl → 0.0.251021__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 (35) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +1 -1
  3. criteo_api_retailmedia_preview/api/campaign_api.py +144 -0
  4. criteo_api_retailmedia_preview/api/third_party_accounts_api.py +757 -0
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/display_auction_min_bid_request.py +268 -0
  9. criteo_api_retailmedia_preview/model/display_auction_min_bid_result.py +280 -0
  10. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_account_v2.py +270 -0
  11. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_retail_media_account_v2.py +274 -0
  12. criteo_api_retailmedia_preview/model/external_retail_media_account_v2.py +301 -0
  13. criteo_api_retailmedia_preview/model/external_retail_media_brand_account_creation_v2.py +269 -0
  14. criteo_api_retailmedia_preview/model/external_retail_media_brands.py +263 -0
  15. criteo_api_retailmedia_preview/model/external_retail_media_seller.py +269 -0
  16. criteo_api_retailmedia_preview/model/external_retail_media_seller_account_creation_v2.py +280 -0
  17. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  18. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_display_auction_min_bid_result.py +274 -0
  19. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  20. criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_request.py +266 -0
  21. criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_result.py +266 -0
  22. criteo_api_retailmedia_preview/model/value_resource_input_display_auction_min_bid_request.py +262 -0
  23. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation_v2.py +262 -0
  24. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
  25. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation_v2.py +262 -0
  26. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation_v2.py +266 -0
  27. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brands.py +266 -0
  28. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  29. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation_v2.py +266 -0
  30. criteo_api_retailmedia_preview/model/value_resource_outcome_of_retail_media_brands.py +274 -0
  31. criteo_api_retailmedia_preview/models/__init__.py +23 -0
  32. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/METADATA +3 -3
  33. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/RECORD +35 -11
  34. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/WHEEL +0 -0
  35. {criteo_api_retailmedia_sdk-0.0.251015.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/top_level.txt +0 -0
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/0.0.251015/python'
79
+ self.user_agent = 'OpenAPI-Generator/0.0.251021/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -23,3 +23,4 @@ from criteo_api_retailmedia_preview.api.campaign_api import CampaignApi
23
23
  from criteo_api_retailmedia_preview.api.catalog_api import CatalogApi
24
24
  from criteo_api_retailmedia_preview.api.gateway_api import GatewayApi
25
25
  from criteo_api_retailmedia_preview.api.on_site_recommendation_api import OnSiteRecommendationApi
26
+ from criteo_api_retailmedia_preview.api.third_party_accounts_api import ThirdPartyAccountsApi
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: Preview\n"\
398
- "SDK Package Version: 0.0.251015".\
398
+ "SDK Package Version: 0.0.251021".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -0,0 +1,268 @@
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 DisplayAuctionMinBidRequest(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
+ }
59
+
60
+ validations = {
61
+ ('creative_ids',): {
62
+ 'max_items': 50,
63
+ 'min_items': 1,
64
+ },
65
+ ('product_ids',): {
66
+ 'max_items': 50,
67
+ },
68
+ }
69
+
70
+ additional_properties_type = None
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'creative_ids': ([str],), # noqa: E501
86
+ 'product_ids': ([str],), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'creative_ids': 'creativeIds', # noqa: E501
96
+ 'product_ids': 'productIds', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """DisplayAuctionMinBidRequest - a model defined in OpenAPI
108
+
109
+ Keyword Args:
110
+ _check_type (bool): if True, values for parameters in openapi_types
111
+ will be type checked and a TypeError will be
112
+ raised if the wrong type is input.
113
+ Defaults to True
114
+ _path_to_item (tuple/list): This is a list of keys or values to
115
+ drill down to the model in received_data
116
+ when deserializing a response
117
+ _spec_property_naming (bool): True if the variable names in the input data
118
+ are serialized names, as specified in the OpenAPI document.
119
+ False if the variable names in the input data
120
+ are pythonic names, e.g. snake case (default)
121
+ _configuration (Configuration): the instance to use when
122
+ deserializing a file_type parameter.
123
+ If passed, type conversion is attempted
124
+ If omitted no type conversion is done.
125
+ _visited_composed_classes (tuple): This stores a tuple of
126
+ classes that we have traveled through so that
127
+ if we see that class again we will not use its
128
+ discriminator again.
129
+ When traveling through a discriminator, the
130
+ composed schema that is
131
+ is traveled through is added to this set.
132
+ For example if Animal has a discriminator
133
+ petType and we pass in "Dog", and the class Dog
134
+ allOf includes Animal, we move through Animal
135
+ once using the discriminator, and pick Dog.
136
+ Then in Dog, we will make an instance of the
137
+ Animal class but this time we won't travel
138
+ through its discriminator because we passed in
139
+ _visited_composed_classes = (Animal,)
140
+ creative_ids ([str]): List of Creatives to use. [optional] # noqa: E501
141
+ product_ids ([str]): List of potential product ids (SkuIds) to put in creatives. [optional] # noqa: E501
142
+ """
143
+
144
+ _check_type = kwargs.pop('_check_type', True)
145
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
146
+ _path_to_item = kwargs.pop('_path_to_item', ())
147
+ _configuration = kwargs.pop('_configuration', None)
148
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
149
+
150
+ self = super(OpenApiModel, cls).__new__(cls)
151
+
152
+ if args:
153
+ for arg in args:
154
+ if isinstance(arg, dict):
155
+ kwargs.update(arg)
156
+ else:
157
+ raise ApiTypeError(
158
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
+ args,
160
+ self.__class__.__name__,
161
+ ),
162
+ path_to_item=_path_to_item,
163
+ valid_classes=(self.__class__,),
164
+ )
165
+
166
+ self._data_store = {}
167
+ self._check_type = _check_type
168
+ self._spec_property_naming = _spec_property_naming
169
+ self._path_to_item = _path_to_item
170
+ self._configuration = _configuration
171
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
+
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, *args, **kwargs): # noqa: E501
194
+ """DisplayAuctionMinBidRequest - a model defined in OpenAPI
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ creative_ids ([str]): List of Creatives to use. [optional] # noqa: E501
228
+ product_ids ([str]): List of potential product ids (SkuIds) to put in creatives. [optional] # noqa: E501
229
+ """
230
+
231
+ _check_type = kwargs.pop('_check_type', True)
232
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
+ _path_to_item = kwargs.pop('_path_to_item', ())
234
+ _configuration = kwargs.pop('_configuration', None)
235
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
+
237
+ if args:
238
+ for arg in args:
239
+ if isinstance(arg, dict):
240
+ kwargs.update(arg)
241
+ else:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")
@@ -0,0 +1,280 @@
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 DisplayAuctionMinBidResult(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
+ ('page_type',): {
59
+ 'None': None,
60
+ 'UNKNOWN': "unknown",
61
+ 'SEARCH': "search",
62
+ 'HOME': "home",
63
+ 'CHECKOUT': "checkout",
64
+ 'CATEGORY': "category",
65
+ 'PRODUCTDETAIL': "productDetail",
66
+ 'CONFIRMATION': "confirmation",
67
+ 'MERCHANDISING': "merchandising",
68
+ 'DEALS': "deals",
69
+ 'FAVORITES': "favorites",
70
+ 'SEARCHBAR': "searchBar",
71
+ 'CATEGORYMENU': "categoryMenu",
72
+ },
73
+ }
74
+
75
+ validations = {
76
+ }
77
+
78
+ additional_properties_type = None
79
+
80
+ _nullable = True
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
+ return {
93
+ 'creative_id': (str, none_type,), # noqa: E501
94
+ 'min_bid': (float, none_type,), # noqa: E501
95
+ 'page_type': (str, none_type,), # noqa: E501
96
+ }
97
+
98
+ @cached_property
99
+ def discriminator():
100
+ return None
101
+
102
+
103
+ attribute_map = {
104
+ 'creative_id': 'creativeId', # noqa: E501
105
+ 'min_bid': 'minBid', # noqa: E501
106
+ 'page_type': 'pageType', # noqa: E501
107
+ }
108
+
109
+ read_only_vars = {
110
+ }
111
+
112
+ _composed_schemas = {}
113
+
114
+ @classmethod
115
+ @convert_js_args_to_python_args
116
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
117
+ """DisplayAuctionMinBidResult - a model defined in OpenAPI
118
+
119
+ Keyword Args:
120
+ _check_type (bool): if True, values for parameters in openapi_types
121
+ will be type checked and a TypeError will be
122
+ raised if the wrong type is input.
123
+ Defaults to True
124
+ _path_to_item (tuple/list): This is a list of keys or values to
125
+ drill down to the model in received_data
126
+ when deserializing a response
127
+ _spec_property_naming (bool): True if the variable names in the input data
128
+ are serialized names, as specified in the OpenAPI document.
129
+ False if the variable names in the input data
130
+ are pythonic names, e.g. snake case (default)
131
+ _configuration (Configuration): the instance to use when
132
+ deserializing a file_type parameter.
133
+ If passed, type conversion is attempted
134
+ If omitted no type conversion is done.
135
+ _visited_composed_classes (tuple): This stores a tuple of
136
+ classes that we have traveled through so that
137
+ if we see that class again we will not use its
138
+ discriminator again.
139
+ When traveling through a discriminator, the
140
+ composed schema that is
141
+ is traveled through is added to this set.
142
+ For example if Animal has a discriminator
143
+ petType and we pass in "Dog", and the class Dog
144
+ allOf includes Animal, we move through Animal
145
+ once using the discriminator, and pick Dog.
146
+ Then in Dog, we will make an instance of the
147
+ Animal class but this time we won't travel
148
+ through its discriminator because we passed in
149
+ _visited_composed_classes = (Animal,)
150
+ creative_id (str, none_type): The creativeId for the creative. [optional] # noqa: E501
151
+ min_bid (float, none_type): The minimum bid for the combination of page type, creative and categories. [optional] # noqa: E501
152
+ page_type (str, none_type): Page type for the creative to display on. [optional] # noqa: E501
153
+ """
154
+
155
+ _check_type = kwargs.pop('_check_type', True)
156
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
+ _path_to_item = kwargs.pop('_path_to_item', ())
158
+ _configuration = kwargs.pop('_configuration', None)
159
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
+
161
+ self = super(OpenApiModel, cls).__new__(cls)
162
+
163
+ if args:
164
+ for arg in args:
165
+ if isinstance(arg, dict):
166
+ kwargs.update(arg)
167
+ else:
168
+ raise ApiTypeError(
169
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
+ args,
171
+ self.__class__.__name__,
172
+ ),
173
+ path_to_item=_path_to_item,
174
+ valid_classes=(self.__class__,),
175
+ )
176
+
177
+ self._data_store = {}
178
+ self._check_type = _check_type
179
+ self._spec_property_naming = _spec_property_naming
180
+ self._path_to_item = _path_to_item
181
+ self._configuration = _configuration
182
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
+
184
+ for var_name, var_value in kwargs.items():
185
+ if var_name not in self.attribute_map and \
186
+ self._configuration is not None and \
187
+ self._configuration.discard_unknown_keys and \
188
+ self.additional_properties_type is None:
189
+ # discard variable.
190
+ continue
191
+ setattr(self, var_name, var_value)
192
+ return self
193
+
194
+ required_properties = set([
195
+ '_data_store',
196
+ '_check_type',
197
+ '_spec_property_naming',
198
+ '_path_to_item',
199
+ '_configuration',
200
+ '_visited_composed_classes',
201
+ ])
202
+
203
+ @convert_js_args_to_python_args
204
+ def __init__(self, *args, **kwargs): # noqa: E501
205
+ """DisplayAuctionMinBidResult - a model defined in OpenAPI
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
+ creative_id (str, none_type): The creativeId for the creative. [optional] # noqa: E501
239
+ min_bid (float, none_type): The minimum bid for the combination of page type, creative and categories. [optional] # noqa: E501
240
+ page_type (str, none_type): Page type for the creative to display on. [optional] # noqa: E501
241
+ """
242
+
243
+ _check_type = kwargs.pop('_check_type', True)
244
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
245
+ _path_to_item = kwargs.pop('_path_to_item', ())
246
+ _configuration = kwargs.pop('_configuration', None)
247
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
248
+
249
+ if args:
250
+ for arg in args:
251
+ if isinstance(arg, dict):
252
+ kwargs.update(arg)
253
+ else:
254
+ raise ApiTypeError(
255
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
256
+ args,
257
+ self.__class__.__name__,
258
+ ),
259
+ path_to_item=_path_to_item,
260
+ valid_classes=(self.__class__,),
261
+ )
262
+
263
+ self._data_store = {}
264
+ self._check_type = _check_type
265
+ self._spec_property_naming = _spec_property_naming
266
+ self._path_to_item = _path_to_item
267
+ self._configuration = _configuration
268
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
269
+
270
+ for var_name, var_value in kwargs.items():
271
+ if var_name not in self.attribute_map and \
272
+ self._configuration is not None and \
273
+ self._configuration.discard_unknown_keys and \
274
+ self.additional_properties_type is None:
275
+ # discard variable.
276
+ continue
277
+ setattr(self, var_name, var_value)
278
+ if var_name in self.read_only_vars:
279
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
280
+ f"class with read only attributes.")