criteo-api-retailmedia-sdk 2023.10.0.231113__py3-none-any.whl → 2023.10.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 (39) hide show
  1. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/RECORD +34 -38
  3. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_10/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_10/api/campaign_api.py +16 -171
  7. criteo_api_retailmedia_v2023_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_10/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_10/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
  18. criteo_api_retailmedia_v2023_10/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  23. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  26. criteo_api_retailmedia_v2023_10/model/{resource_of_balance202110.py → rm_legacy_audience_get_entity_v2_resource.py} +11 -11
  27. criteo_api_retailmedia_v2023_10/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_10/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_10/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_10/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  31. criteo_api_retailmedia_v2023_10/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_10/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_10/models/__init__.py +20 -24
  34. criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +0 -287
  35. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py +0 -287
  36. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py +0 -287
  37. criteo_api_retailmedia_v2023_10/model/external_balance202110.py +0 -333
  38. criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py +0 -295
  39. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/top_level.txt +0 -0
@@ -1,333 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-10
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_10.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_10.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalBalance202110(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
- ('status',): {
59
- 'UNKNOWN': "unknown",
60
- 'SCHEDULED': "scheduled",
61
- 'ACTIVE': "active",
62
- 'ENDED': "ended",
63
- },
64
- }
65
-
66
- validations = {
67
- }
68
-
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
-
77
- _nullable = False
78
-
79
- @cached_property
80
- def openapi_types():
81
- """
82
- This must be a method because a model may have properties that are
83
- of type self, this must run after the class is loaded
84
-
85
- Returns
86
- openapi_types (dict): The key is attribute name
87
- and the value is attribute type.
88
- """
89
- return {
90
- 'name': (str,), # noqa: E501
91
- 'po_number': (str,), # noqa: E501
92
- 'memo': (str,), # noqa: E501
93
- 'deposited': (float, none_type,), # noqa: E501
94
- 'spent': (float, none_type,), # noqa: E501
95
- 'remaining': (float, none_type,), # noqa: E501
96
- 'start_date': (date,), # noqa: E501
97
- 'status': (str,), # noqa: E501
98
- 'created_at': (datetime,), # noqa: E501
99
- 'updated_at': (datetime,), # noqa: E501
100
- 'end_date': (date, none_type,), # noqa: E501
101
- }
102
-
103
- @cached_property
104
- def discriminator():
105
- return None
106
-
107
-
108
- attribute_map = {
109
- 'name': 'name', # noqa: E501
110
- 'po_number': 'poNumber', # noqa: E501
111
- 'memo': 'memo', # noqa: E501
112
- 'deposited': 'deposited', # noqa: E501
113
- 'spent': 'spent', # noqa: E501
114
- 'remaining': 'remaining', # noqa: E501
115
- 'start_date': 'startDate', # noqa: E501
116
- 'status': 'status', # noqa: E501
117
- 'created_at': 'createdAt', # noqa: E501
118
- 'updated_at': 'updatedAt', # noqa: E501
119
- 'end_date': 'endDate', # noqa: E501
120
- }
121
-
122
- read_only_vars = {
123
- }
124
-
125
- _composed_schemas = {}
126
-
127
- @classmethod
128
- @convert_js_args_to_python_args
129
- def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501
130
- """ExternalBalance202110 - a model defined in OpenAPI
131
-
132
- Args:
133
- name (str):
134
- po_number (str):
135
- memo (str):
136
- deposited (float, none_type):
137
- spent (float, none_type):
138
- remaining (float, none_type):
139
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
140
- status (str):
141
- created_at (datetime):
142
- updated_at (datetime):
143
-
144
- Keyword Args:
145
- _check_type (bool): if True, values for parameters in openapi_types
146
- will be type checked and a TypeError will be
147
- raised if the wrong type is input.
148
- Defaults to True
149
- _path_to_item (tuple/list): This is a list of keys or values to
150
- drill down to the model in received_data
151
- when deserializing a response
152
- _spec_property_naming (bool): True if the variable names in the input data
153
- are serialized names, as specified in the OpenAPI document.
154
- False if the variable names in the input data
155
- are pythonic names, e.g. snake case (default)
156
- _configuration (Configuration): the instance to use when
157
- deserializing a file_type parameter.
158
- If passed, type conversion is attempted
159
- If omitted no type conversion is done.
160
- _visited_composed_classes (tuple): This stores a tuple of
161
- classes that we have traveled through so that
162
- if we see that class again we will not use its
163
- discriminator again.
164
- When traveling through a discriminator, the
165
- composed schema that is
166
- is traveled through is added to this set.
167
- For example if Animal has a discriminator
168
- petType and we pass in "Dog", and the class Dog
169
- allOf includes Animal, we move through Animal
170
- once using the discriminator, and pick Dog.
171
- Then in Dog, we will make an instance of the
172
- Animal class but this time we won't travel
173
- through its discriminator because we passed in
174
- _visited_composed_classes = (Animal,)
175
- end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
176
- """
177
-
178
- _check_type = kwargs.pop('_check_type', True)
179
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
180
- _path_to_item = kwargs.pop('_path_to_item', ())
181
- _configuration = kwargs.pop('_configuration', None)
182
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
183
-
184
- self = super(OpenApiModel, cls).__new__(cls)
185
-
186
- if args:
187
- for arg in args:
188
- if isinstance(arg, dict):
189
- kwargs.update(arg)
190
- else:
191
- raise ApiTypeError(
192
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
193
- args,
194
- self.__class__.__name__,
195
- ),
196
- path_to_item=_path_to_item,
197
- valid_classes=(self.__class__,),
198
- )
199
-
200
- self._data_store = {}
201
- self._check_type = _check_type
202
- self._spec_property_naming = _spec_property_naming
203
- self._path_to_item = _path_to_item
204
- self._configuration = _configuration
205
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
206
-
207
- self.name = name
208
- self.po_number = po_number
209
- self.memo = memo
210
- self.deposited = deposited
211
- self.spent = spent
212
- self.remaining = remaining
213
- self.start_date = start_date
214
- self.status = status
215
- self.created_at = created_at
216
- self.updated_at = updated_at
217
- for var_name, var_value in kwargs.items():
218
- if var_name not in self.attribute_map and \
219
- self._configuration is not None and \
220
- self._configuration.discard_unknown_keys and \
221
- self.additional_properties_type is None:
222
- # discard variable.
223
- continue
224
- setattr(self, var_name, var_value)
225
- return self
226
-
227
- required_properties = set([
228
- '_data_store',
229
- '_check_type',
230
- '_spec_property_naming',
231
- '_path_to_item',
232
- '_configuration',
233
- '_visited_composed_classes',
234
- ])
235
-
236
- @convert_js_args_to_python_args
237
- def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501
238
- """ExternalBalance202110 - a model defined in OpenAPI
239
-
240
- Args:
241
- name (str):
242
- po_number (str):
243
- memo (str):
244
- deposited (float, none_type):
245
- spent (float, none_type):
246
- remaining (float, none_type):
247
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
248
- status (str):
249
- created_at (datetime):
250
- updated_at (datetime):
251
-
252
- Keyword Args:
253
- _check_type (bool): if True, values for parameters in openapi_types
254
- will be type checked and a TypeError will be
255
- raised if the wrong type is input.
256
- Defaults to True
257
- _path_to_item (tuple/list): This is a list of keys or values to
258
- drill down to the model in received_data
259
- when deserializing a response
260
- _spec_property_naming (bool): True if the variable names in the input data
261
- are serialized names, as specified in the OpenAPI document.
262
- False if the variable names in the input data
263
- are pythonic names, e.g. snake case (default)
264
- _configuration (Configuration): the instance to use when
265
- deserializing a file_type parameter.
266
- If passed, type conversion is attempted
267
- If omitted no type conversion is done.
268
- _visited_composed_classes (tuple): This stores a tuple of
269
- classes that we have traveled through so that
270
- if we see that class again we will not use its
271
- discriminator again.
272
- When traveling through a discriminator, the
273
- composed schema that is
274
- is traveled through is added to this set.
275
- For example if Animal has a discriminator
276
- petType and we pass in "Dog", and the class Dog
277
- allOf includes Animal, we move through Animal
278
- once using the discriminator, and pick Dog.
279
- Then in Dog, we will make an instance of the
280
- Animal class but this time we won't travel
281
- through its discriminator because we passed in
282
- _visited_composed_classes = (Animal,)
283
- end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
284
- """
285
-
286
- _check_type = kwargs.pop('_check_type', True)
287
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
288
- _path_to_item = kwargs.pop('_path_to_item', ())
289
- _configuration = kwargs.pop('_configuration', None)
290
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
291
-
292
- if args:
293
- for arg in args:
294
- if isinstance(arg, dict):
295
- kwargs.update(arg)
296
- else:
297
- raise ApiTypeError(
298
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
299
- args,
300
- self.__class__.__name__,
301
- ),
302
- path_to_item=_path_to_item,
303
- valid_classes=(self.__class__,),
304
- )
305
-
306
- self._data_store = {}
307
- self._check_type = _check_type
308
- self._spec_property_naming = _spec_property_naming
309
- self._path_to_item = _path_to_item
310
- self._configuration = _configuration
311
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
312
-
313
- self.name = name
314
- self.po_number = po_number
315
- self.memo = memo
316
- self.deposited = deposited
317
- self.spent = spent
318
- self.remaining = remaining
319
- self.start_date = start_date
320
- self.status = status
321
- self.created_at = created_at
322
- self.updated_at = updated_at
323
- for var_name, var_value in kwargs.items():
324
- if var_name not in self.attribute_map and \
325
- self._configuration is not None and \
326
- self._configuration.discard_unknown_keys and \
327
- self.additional_properties_type is None:
328
- # discard variable.
329
- continue
330
- setattr(self, var_name, var_value)
331
- if var_name in self.read_only_vars:
332
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
333
- f"class with read only attributes.")
@@ -1,295 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2023-10
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_10.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_10.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.common_error import CommonError
34
- from criteo_api_retailmedia_v2023_10.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata
36
- from criteo_api_retailmedia_v2023_10.model.retail_media_audience import RetailMediaAudience
37
- globals()['CommonError'] = CommonError
38
- globals()['CommonWarning'] = CommonWarning
39
- globals()['PageMetadata'] = PageMetadata
40
- globals()['RetailMediaAudience'] = RetailMediaAudience
41
-
42
-
43
- class GetPageOfAudiencesByAccountIdResponse(ModelNormal):
44
- """NOTE: This class is auto generated by OpenAPI Generator.
45
- Ref: https://openapi-generator.tech
46
-
47
- Do not edit the class manually.
48
-
49
- Attributes:
50
- allowed_values (dict): The key is the tuple path to the attribute
51
- and the for var_name this is (var_name,). The value is a dict
52
- with a capitalized key describing the allowed value and an allowed
53
- value. These dicts store the allowed enum values.
54
- attribute_map (dict): The key is attribute name
55
- and the value is json key in definition.
56
- discriminator_value_class_map (dict): A dict to go from the discriminator
57
- variable value to the discriminator class name.
58
- validations (dict): The key is the tuple path to the attribute
59
- and the for var_name this is (var_name,). The value is a dict
60
- that stores validations for max_length, min_length, max_items,
61
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
62
- inclusive_minimum, and regex.
63
- additional_properties_type (tuple): A tuple of classes accepted
64
- as additional properties values.
65
- """
66
-
67
- allowed_values = {
68
- }
69
-
70
- validations = {
71
- }
72
-
73
- @cached_property
74
- def additional_properties_type():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
- """
79
- lazy_import()
80
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
81
-
82
- _nullable = False
83
-
84
- @cached_property
85
- def openapi_types():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
-
90
- Returns
91
- openapi_types (dict): The key is attribute name
92
- and the value is attribute type.
93
- """
94
- lazy_import()
95
- return {
96
- 'data': ([RetailMediaAudience],), # noqa: E501
97
- 'metadata': (PageMetadata,), # noqa: E501
98
- 'errors': ([CommonError], none_type,), # noqa: E501
99
- 'warnings': ([CommonWarning], none_type,), # noqa: E501
100
- }
101
-
102
- @cached_property
103
- def discriminator():
104
- return None
105
-
106
-
107
- attribute_map = {
108
- 'data': 'data', # noqa: E501
109
- 'metadata': 'metadata', # noqa: E501
110
- 'errors': 'errors', # noqa: E501
111
- 'warnings': 'warnings', # noqa: E501
112
- }
113
-
114
- read_only_vars = {
115
- 'data', # noqa: E501
116
- 'errors', # noqa: E501
117
- 'warnings', # noqa: E501
118
- }
119
-
120
- _composed_schemas = {}
121
-
122
- @classmethod
123
- @convert_js_args_to_python_args
124
- def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501
125
- """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI
126
-
127
- Args:
128
- data ([RetailMediaAudience]): data
129
- metadata (PageMetadata):
130
-
131
- Keyword Args:
132
- _check_type (bool): if True, values for parameters in openapi_types
133
- will be type checked and a TypeError will be
134
- raised if the wrong type is input.
135
- Defaults to True
136
- _path_to_item (tuple/list): This is a list of keys or values to
137
- drill down to the model in received_data
138
- when deserializing a response
139
- _spec_property_naming (bool): True if the variable names in the input data
140
- are serialized names, as specified in the OpenAPI document.
141
- False if the variable names in the input data
142
- are pythonic names, e.g. snake case (default)
143
- _configuration (Configuration): the instance to use when
144
- deserializing a file_type parameter.
145
- If passed, type conversion is attempted
146
- If omitted no type conversion is done.
147
- _visited_composed_classes (tuple): This stores a tuple of
148
- classes that we have traveled through so that
149
- if we see that class again we will not use its
150
- discriminator again.
151
- When traveling through a discriminator, the
152
- composed schema that is
153
- is traveled through is added to this set.
154
- For example if Animal has a discriminator
155
- petType and we pass in "Dog", and the class Dog
156
- allOf includes Animal, we move through Animal
157
- once using the discriminator, and pick Dog.
158
- Then in Dog, we will make an instance of the
159
- Animal class but this time we won't travel
160
- through its discriminator because we passed in
161
- _visited_composed_classes = (Animal,)
162
- errors ([CommonError], none_type): errors. [optional] # noqa: E501
163
- warnings ([CommonWarning], none_type): warnings. [optional] # noqa: E501
164
- """
165
-
166
- _check_type = kwargs.pop('_check_type', True)
167
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
168
- _path_to_item = kwargs.pop('_path_to_item', ())
169
- _configuration = kwargs.pop('_configuration', None)
170
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
171
-
172
- self = super(OpenApiModel, cls).__new__(cls)
173
-
174
- if args:
175
- for arg in args:
176
- if isinstance(arg, dict):
177
- kwargs.update(arg)
178
- else:
179
- raise ApiTypeError(
180
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
181
- args,
182
- self.__class__.__name__,
183
- ),
184
- path_to_item=_path_to_item,
185
- valid_classes=(self.__class__,),
186
- )
187
-
188
- self._data_store = {}
189
- self._check_type = _check_type
190
- self._spec_property_naming = _spec_property_naming
191
- self._path_to_item = _path_to_item
192
- self._configuration = _configuration
193
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
194
-
195
- self.data = data
196
- self.metadata = metadata
197
- for var_name, var_value in kwargs.items():
198
- if var_name not in self.attribute_map and \
199
- self._configuration is not None and \
200
- self._configuration.discard_unknown_keys and \
201
- self.additional_properties_type is None:
202
- # discard variable.
203
- continue
204
- setattr(self, var_name, var_value)
205
- return self
206
-
207
- required_properties = set([
208
- '_data_store',
209
- '_check_type',
210
- '_spec_property_naming',
211
- '_path_to_item',
212
- '_configuration',
213
- '_visited_composed_classes',
214
- ])
215
-
216
- @convert_js_args_to_python_args
217
- def __init__(self, metadata, *args, **kwargs): # noqa: E501
218
- """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI
219
-
220
- metadata (PageMetadata):
221
-
222
- Keyword Args:
223
- _check_type (bool): if True, values for parameters in openapi_types
224
- will be type checked and a TypeError will be
225
- raised if the wrong type is input.
226
- Defaults to True
227
- _path_to_item (tuple/list): This is a list of keys or values to
228
- drill down to the model in received_data
229
- when deserializing a response
230
- _spec_property_naming (bool): True if the variable names in the input data
231
- are serialized names, as specified in the OpenAPI document.
232
- False if the variable names in the input data
233
- are pythonic names, e.g. snake case (default)
234
- _configuration (Configuration): the instance to use when
235
- deserializing a file_type parameter.
236
- If passed, type conversion is attempted
237
- If omitted no type conversion is done.
238
- _visited_composed_classes (tuple): This stores a tuple of
239
- classes that we have traveled through so that
240
- if we see that class again we will not use its
241
- discriminator again.
242
- When traveling through a discriminator, the
243
- composed schema that is
244
- is traveled through is added to this set.
245
- For example if Animal has a discriminator
246
- petType and we pass in "Dog", and the class Dog
247
- allOf includes Animal, we move through Animal
248
- once using the discriminator, and pick Dog.
249
- Then in Dog, we will make an instance of the
250
- Animal class but this time we won't travel
251
- through its discriminator because we passed in
252
- _visited_composed_classes = (Animal,)
253
- errors ([CommonError], none_type): errors. [optional] # noqa: E501
254
- warnings ([CommonWarning], none_type): warnings. [optional] # noqa: E501
255
- """
256
-
257
- _check_type = kwargs.pop('_check_type', True)
258
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
259
- _path_to_item = kwargs.pop('_path_to_item', ())
260
- _configuration = kwargs.pop('_configuration', None)
261
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
262
-
263
- if args:
264
- for arg in args:
265
- if isinstance(arg, dict):
266
- kwargs.update(arg)
267
- else:
268
- raise ApiTypeError(
269
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
270
- args,
271
- self.__class__.__name__,
272
- ),
273
- path_to_item=_path_to_item,
274
- valid_classes=(self.__class__,),
275
- )
276
-
277
- self._data_store = {}
278
- self._check_type = _check_type
279
- self._spec_property_naming = _spec_property_naming
280
- self._path_to_item = _path_to_item
281
- self._configuration = _configuration
282
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
283
-
284
- self.metadata = metadata
285
- for var_name, var_value in kwargs.items():
286
- if var_name not in self.attribute_map and \
287
- self._configuration is not None and \
288
- self._configuration.discard_unknown_keys and \
289
- self.additional_properties_type is None:
290
- # discard variable.
291
- continue
292
- setattr(self, var_name, var_value)
293
- if var_name in self.read_only_vars:
294
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
295
- f"class with read only attributes.")