criteo-api-retailmedia-sdk 2023.1.0.240118__py3-none-any.whl → 2023.1.0.240207__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 (47) hide show
  1. {criteo_api_retailmedia_sdk-2023.1.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.1.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/RECORD +34 -46
  3. criteo_api_retailmedia_v2023_01/__init__.py +1 -1
  4. criteo_api_retailmedia_v2023_01/api/audience_api.py +113 -100
  5. criteo_api_retailmedia_v2023_01/api/campaign_api.py +0 -442
  6. criteo_api_retailmedia_v2023_01/api_client.py +1 -1
  7. criteo_api_retailmedia_v2023_01/configuration.py +1 -1
  8. criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py +4 -0
  9. criteo_api_retailmedia_v2023_01/model/campaign_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_01/model/external_account.py +4 -0
  12. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  13. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  14. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  15. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  16. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
  17. criteo_api_retailmedia_v2023_01/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  18. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  19. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  20. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  21. criteo_api_retailmedia_v2023_01/model/{creative202207_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +16 -16
  22. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  23. criteo_api_retailmedia_v2023_01/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  24. criteo_api_retailmedia_v2023_01/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +18 -20
  25. criteo_api_retailmedia_v2023_01/model/{resource_of_creative202207.py → rm_legacy_audience_get_entity_v2_resource.py} +10 -10
  26. criteo_api_retailmedia_v2023_01/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  27. criteo_api_retailmedia_v2023_01/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  28. criteo_api_retailmedia_v2023_01/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  29. criteo_api_retailmedia_v2023_01/model/{color_variable_value.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -15
  30. criteo_api_retailmedia_v2023_01/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  31. criteo_api_retailmedia_v2023_01/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  32. criteo_api_retailmedia_v2023_01/models/__init__.py +20 -32
  33. criteo_api_retailmedia_v2023_01/model/choice_variable_value.py +0 -269
  34. criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py +0 -287
  35. criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py +0 -287
  36. criteo_api_retailmedia_v2023_01/model/creative202207.py +0 -340
  37. criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py +0 -297
  38. criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py +0 -297
  39. criteo_api_retailmedia_v2023_01/model/files_variable_value.py +0 -271
  40. criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py +0 -295
  41. criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py +0 -269
  42. criteo_api_retailmedia_v2023_01/model/retail_media_audience.py +0 -297
  43. criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py +0 -293
  44. criteo_api_retailmedia_v2023_01/model/template_variable_value.py +0 -303
  45. criteo_api_retailmedia_v2023_01/model/text_variable_value.py +0 -269
  46. {criteo_api_retailmedia_sdk-2023.1.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/WHEEL +0 -0
  47. {criteo_api_retailmedia_sdk-2023.1.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.1.0.240207.dist-info}/top_level.txt +0 -0
@@ -1,297 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-01
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_v2023_01.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_v2023_01.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_attributes import RetailMediaAudienceAttributes
34
- globals()['RetailMediaAudienceAttributes'] = RetailMediaAudienceAttributes
35
-
36
-
37
- class RetailMediaAudience(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
- ('audience_type',): {
63
- 'CUSTOMERLIST': "customerList",
64
- 'USERBEHAVIOR': "userBehavior",
65
- },
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
- 'audience_type': (str,), # noqa: E501
95
- 'id': (str,), # noqa: E501
96
- 'type': (str,), # noqa: E501
97
- 'attributes': (RetailMediaAudienceAttributes,), # noqa: E501
98
- }
99
-
100
- @cached_property
101
- def discriminator():
102
- return None
103
-
104
-
105
- attribute_map = {
106
- 'audience_type': 'audienceType', # noqa: E501
107
- 'id': 'id', # noqa: E501
108
- 'type': 'type', # noqa: E501
109
- 'attributes': 'attributes', # noqa: E501
110
- }
111
-
112
- read_only_vars = {
113
- }
114
-
115
- _composed_schemas = {}
116
-
117
- @classmethod
118
- @convert_js_args_to_python_args
119
- def _from_openapi_data(cls, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501
120
- """RetailMediaAudience - a model defined in OpenAPI
121
-
122
- Args:
123
- audience_type (str): Type of the audience
124
- id (str): Unique ID of this audience.
125
- type (str): Name of the entity i.e. RetailMediaAudienceSummary
126
- attributes (RetailMediaAudienceAttributes):
127
-
128
- Keyword Args:
129
- _check_type (bool): if True, values for parameters in openapi_types
130
- will be type checked and a TypeError will be
131
- raised if the wrong type is input.
132
- Defaults to True
133
- _path_to_item (tuple/list): This is a list of keys or values to
134
- drill down to the model in received_data
135
- when deserializing a response
136
- _spec_property_naming (bool): True if the variable names in the input data
137
- are serialized names, as specified in the OpenAPI document.
138
- False if the variable names in the input data
139
- are pythonic names, e.g. snake case (default)
140
- _configuration (Configuration): the instance to use when
141
- deserializing a file_type parameter.
142
- If passed, type conversion is attempted
143
- If omitted no type conversion is done.
144
- _visited_composed_classes (tuple): This stores a tuple of
145
- classes that we have traveled through so that
146
- if we see that class again we will not use its
147
- discriminator again.
148
- When traveling through a discriminator, the
149
- composed schema that is
150
- is traveled through is added to this set.
151
- For example if Animal has a discriminator
152
- petType and we pass in "Dog", and the class Dog
153
- allOf includes Animal, we move through Animal
154
- once using the discriminator, and pick Dog.
155
- Then in Dog, we will make an instance of the
156
- Animal class but this time we won't travel
157
- through its discriminator because we passed in
158
- _visited_composed_classes = (Animal,)
159
- """
160
-
161
- _check_type = kwargs.pop('_check_type', True)
162
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
163
- _path_to_item = kwargs.pop('_path_to_item', ())
164
- _configuration = kwargs.pop('_configuration', None)
165
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
166
-
167
- self = super(OpenApiModel, cls).__new__(cls)
168
-
169
- if args:
170
- for arg in args:
171
- if isinstance(arg, dict):
172
- kwargs.update(arg)
173
- else:
174
- raise ApiTypeError(
175
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
176
- args,
177
- self.__class__.__name__,
178
- ),
179
- path_to_item=_path_to_item,
180
- valid_classes=(self.__class__,),
181
- )
182
-
183
- self._data_store = {}
184
- self._check_type = _check_type
185
- self._spec_property_naming = _spec_property_naming
186
- self._path_to_item = _path_to_item
187
- self._configuration = _configuration
188
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
189
-
190
- self.audience_type = audience_type
191
- self.id = id
192
- self.type = type
193
- self.attributes = attributes
194
- for var_name, var_value in kwargs.items():
195
- if var_name not in self.attribute_map and \
196
- self._configuration is not None and \
197
- self._configuration.discard_unknown_keys and \
198
- self.additional_properties_type is None:
199
- # discard variable.
200
- continue
201
- setattr(self, var_name, var_value)
202
- return self
203
-
204
- required_properties = set([
205
- '_data_store',
206
- '_check_type',
207
- '_spec_property_naming',
208
- '_path_to_item',
209
- '_configuration',
210
- '_visited_composed_classes',
211
- ])
212
-
213
- @convert_js_args_to_python_args
214
- def __init__(self, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501
215
- """RetailMediaAudience - a model defined in OpenAPI
216
-
217
- Args:
218
- audience_type (str): Type of the audience
219
- id (str): Unique ID of this audience.
220
- type (str): Name of the entity i.e. RetailMediaAudienceSummary
221
- attributes (RetailMediaAudienceAttributes):
222
-
223
- Keyword Args:
224
- _check_type (bool): if True, values for parameters in openapi_types
225
- will be type checked and a TypeError will be
226
- raised if the wrong type is input.
227
- Defaults to True
228
- _path_to_item (tuple/list): This is a list of keys or values to
229
- drill down to the model in received_data
230
- when deserializing a response
231
- _spec_property_naming (bool): True if the variable names in the input data
232
- are serialized names, as specified in the OpenAPI document.
233
- False if the variable names in the input data
234
- are pythonic names, e.g. snake case (default)
235
- _configuration (Configuration): the instance to use when
236
- deserializing a file_type parameter.
237
- If passed, type conversion is attempted
238
- If omitted no type conversion is done.
239
- _visited_composed_classes (tuple): This stores a tuple of
240
- classes that we have traveled through so that
241
- if we see that class again we will not use its
242
- discriminator again.
243
- When traveling through a discriminator, the
244
- composed schema that is
245
- is traveled through is added to this set.
246
- For example if Animal has a discriminator
247
- petType and we pass in "Dog", and the class Dog
248
- allOf includes Animal, we move through Animal
249
- once using the discriminator, and pick Dog.
250
- Then in Dog, we will make an instance of the
251
- Animal class but this time we won't travel
252
- through its discriminator because we passed in
253
- _visited_composed_classes = (Animal,)
254
- """
255
-
256
- _check_type = kwargs.pop('_check_type', True)
257
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
258
- _path_to_item = kwargs.pop('_path_to_item', ())
259
- _configuration = kwargs.pop('_configuration', None)
260
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
261
-
262
- if args:
263
- for arg in args:
264
- if isinstance(arg, dict):
265
- kwargs.update(arg)
266
- else:
267
- raise ApiTypeError(
268
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
269
- args,
270
- self.__class__.__name__,
271
- ),
272
- path_to_item=_path_to_item,
273
- valid_classes=(self.__class__,),
274
- )
275
-
276
- self._data_store = {}
277
- self._check_type = _check_type
278
- self._spec_property_naming = _spec_property_naming
279
- self._path_to_item = _path_to_item
280
- self._configuration = _configuration
281
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282
-
283
- self.audience_type = audience_type
284
- self.id = id
285
- self.type = type
286
- self.attributes = attributes
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.")
@@ -1,293 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-01
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_v2023_01.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_v2023_01.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2023_01.model.common_problem import CommonProblem
34
- from criteo_api_retailmedia_v2023_01.model.page_metadata import PageMetadata
35
- from criteo_api_retailmedia_v2023_01.model.retail_media_audience_v2 import RetailMediaAudienceV2
36
- globals()['CommonProblem'] = CommonProblem
37
- globals()['PageMetadata'] = PageMetadata
38
- globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2
39
-
40
-
41
- class RetailMediaAudienceV2ListResponse(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': ([RetailMediaAudienceV2],), # noqa: E501
95
- 'metadata': (PageMetadata,), # noqa: E501
96
- 'errors': ([CommonProblem], none_type,), # noqa: E501
97
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
98
- }
99
-
100
- @cached_property
101
- def discriminator():
102
- return None
103
-
104
-
105
- attribute_map = {
106
- 'data': 'data', # noqa: E501
107
- 'metadata': 'metadata', # noqa: E501
108
- 'errors': 'errors', # noqa: E501
109
- 'warnings': 'warnings', # noqa: E501
110
- }
111
-
112
- read_only_vars = {
113
- 'data', # noqa: E501
114
- 'errors', # noqa: E501
115
- 'warnings', # noqa: E501
116
- }
117
-
118
- _composed_schemas = {}
119
-
120
- @classmethod
121
- @convert_js_args_to_python_args
122
- def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501
123
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
124
-
125
- Args:
126
- data ([RetailMediaAudienceV2]): data
127
- metadata (PageMetadata):
128
-
129
- Keyword Args:
130
- _check_type (bool): if True, values for parameters in openapi_types
131
- will be type checked and a TypeError will be
132
- raised if the wrong type is input.
133
- Defaults to True
134
- _path_to_item (tuple/list): This is a list of keys or values to
135
- drill down to the model in received_data
136
- when deserializing a response
137
- _spec_property_naming (bool): True if the variable names in the input data
138
- are serialized names, as specified in the OpenAPI document.
139
- False if the variable names in the input data
140
- are pythonic names, e.g. snake case (default)
141
- _configuration (Configuration): the instance to use when
142
- deserializing a file_type parameter.
143
- If passed, type conversion is attempted
144
- If omitted no type conversion is done.
145
- _visited_composed_classes (tuple): This stores a tuple of
146
- classes that we have traveled through so that
147
- if we see that class again we will not use its
148
- discriminator again.
149
- When traveling through a discriminator, the
150
- composed schema that is
151
- is traveled through is added to this set.
152
- For example if Animal has a discriminator
153
- petType and we pass in "Dog", and the class Dog
154
- allOf includes Animal, we move through Animal
155
- once using the discriminator, and pick Dog.
156
- Then in Dog, we will make an instance of the
157
- Animal class but this time we won't travel
158
- through its discriminator because we passed in
159
- _visited_composed_classes = (Animal,)
160
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
161
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
162
- """
163
-
164
- _check_type = kwargs.pop('_check_type', True)
165
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
166
- _path_to_item = kwargs.pop('_path_to_item', ())
167
- _configuration = kwargs.pop('_configuration', None)
168
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
169
-
170
- self = super(OpenApiModel, cls).__new__(cls)
171
-
172
- if args:
173
- for arg in args:
174
- if isinstance(arg, dict):
175
- kwargs.update(arg)
176
- else:
177
- raise ApiTypeError(
178
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
179
- args,
180
- self.__class__.__name__,
181
- ),
182
- path_to_item=_path_to_item,
183
- valid_classes=(self.__class__,),
184
- )
185
-
186
- self._data_store = {}
187
- self._check_type = _check_type
188
- self._spec_property_naming = _spec_property_naming
189
- self._path_to_item = _path_to_item
190
- self._configuration = _configuration
191
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192
-
193
- self.data = data
194
- self.metadata = metadata
195
- for var_name, var_value in kwargs.items():
196
- if var_name not in self.attribute_map and \
197
- self._configuration is not None and \
198
- self._configuration.discard_unknown_keys and \
199
- self.additional_properties_type is None:
200
- # discard variable.
201
- continue
202
- setattr(self, var_name, var_value)
203
- return self
204
-
205
- required_properties = set([
206
- '_data_store',
207
- '_check_type',
208
- '_spec_property_naming',
209
- '_path_to_item',
210
- '_configuration',
211
- '_visited_composed_classes',
212
- ])
213
-
214
- @convert_js_args_to_python_args
215
- def __init__(self, metadata, *args, **kwargs): # noqa: E501
216
- """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI
217
-
218
- metadata (PageMetadata):
219
-
220
- Keyword Args:
221
- _check_type (bool): if True, values for parameters in openapi_types
222
- will be type checked and a TypeError will be
223
- raised if the wrong type is input.
224
- Defaults to True
225
- _path_to_item (tuple/list): This is a list of keys or values to
226
- drill down to the model in received_data
227
- when deserializing a response
228
- _spec_property_naming (bool): True if the variable names in the input data
229
- are serialized names, as specified in the OpenAPI document.
230
- False if the variable names in the input data
231
- are pythonic names, e.g. snake case (default)
232
- _configuration (Configuration): the instance to use when
233
- deserializing a file_type parameter.
234
- If passed, type conversion is attempted
235
- If omitted no type conversion is done.
236
- _visited_composed_classes (tuple): This stores a tuple of
237
- classes that we have traveled through so that
238
- if we see that class again we will not use its
239
- discriminator again.
240
- When traveling through a discriminator, the
241
- composed schema that is
242
- is traveled through is added to this set.
243
- For example if Animal has a discriminator
244
- petType and we pass in "Dog", and the class Dog
245
- allOf includes Animal, we move through Animal
246
- once using the discriminator, and pick Dog.
247
- Then in Dog, we will make an instance of the
248
- Animal class but this time we won't travel
249
- through its discriminator because we passed in
250
- _visited_composed_classes = (Animal,)
251
- errors ([CommonProblem], none_type): errors. [optional] # noqa: E501
252
- warnings ([CommonProblem], none_type): warnings. [optional] # noqa: E501
253
- """
254
-
255
- _check_type = kwargs.pop('_check_type', True)
256
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
- _path_to_item = kwargs.pop('_path_to_item', ())
258
- _configuration = kwargs.pop('_configuration', None)
259
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
-
261
- if args:
262
- for arg in args:
263
- if isinstance(arg, dict):
264
- kwargs.update(arg)
265
- else:
266
- raise ApiTypeError(
267
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
- args,
269
- self.__class__.__name__,
270
- ),
271
- path_to_item=_path_to_item,
272
- valid_classes=(self.__class__,),
273
- )
274
-
275
- self._data_store = {}
276
- self._check_type = _check_type
277
- self._spec_property_naming = _spec_property_naming
278
- self._path_to_item = _path_to_item
279
- self._configuration = _configuration
280
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
-
282
- self.metadata = metadata
283
- for var_name, var_value in kwargs.items():
284
- if var_name not in self.attribute_map and \
285
- self._configuration is not None and \
286
- self._configuration.discard_unknown_keys and \
287
- self.additional_properties_type is None:
288
- # discard variable.
289
- continue
290
- setattr(self, var_name, var_value)
291
- if var_name in self.read_only_vars:
292
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
293
- f"class with read only attributes.")