ultracart-rest-sdk 4.1.41__py3-none-any.whl → 4.1.54__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.
Files changed (46) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +1293 -53
  3. ultracart/api_client.py +1 -1
  4. ultracart/configuration.py +1 -1
  5. ultracart/model/cart.py +6 -0
  6. ultracart/model/cart_utm.py +388 -0
  7. ultracart/model/conversation_agent_auth.py +8 -0
  8. ultracart/model/conversation_department_member.py +4 -0
  9. ultracart/model/conversation_pbx_address.py +4 -0
  10. ultracart/model/conversation_pbx_agent.py +21 -4
  11. ultracart/model/conversation_pbx_available_phone_number.py +4 -0
  12. ultracart/model/conversation_pbx_call.py +370 -0
  13. ultracart/model/conversation_pbx_call_agent.py +296 -0
  14. ultracart/model/conversation_pbx_call_ai_cost.py +276 -0
  15. ultracart/model/conversation_pbx_call_ai_engagement.py +314 -0
  16. ultracart/model/conversation_pbx_call_ai_tool_call.py +296 -0
  17. ultracart/model/conversation_pbx_call_ai_whisper.py +276 -0
  18. ultracart/model/conversation_pbx_call_caller.py +280 -0
  19. ultracart/model/conversation_pbx_call_financial.py +288 -0
  20. ultracart/model/conversation_pbx_call_hold.py +276 -0
  21. ultracart/model/conversation_pbx_call_queue.py +284 -0
  22. ultracart/model/conversation_pbx_call_recording.py +294 -0
  23. ultracart/model/conversation_pbx_call_response.py +292 -0
  24. ultracart/model/conversation_pbx_call_routing.py +278 -0
  25. ultracart/model/conversation_pbx_call_search_request.py +324 -0
  26. ultracart/model/conversation_pbx_call_search_response.py +292 -0
  27. ultracart/model/conversation_pbx_call_timeline.py +284 -0
  28. ultracart/model/conversation_pbx_call_transcript.py +294 -0
  29. ultracart/model/conversation_pbx_call_transcript_segment.py +292 -0
  30. ultracart/model/conversation_pbx_call_transfer.py +280 -0
  31. ultracart/model/conversation_pbx_hardware_phone.py +361 -0
  32. ultracart/model/conversation_pbx_hardware_phone_response.py +292 -0
  33. ultracart/model/conversation_pbx_hardware_phones_response.py +270 -0
  34. ultracart/model/conversation_pbx_phone_manufacturer.py +278 -0
  35. ultracart/model/conversation_pbx_phone_manufacturers_response.py +292 -0
  36. ultracart/model/conversation_pbx_phone_model.py +268 -0
  37. ultracart/model/conversation_pbx_phone_number.py +11 -0
  38. ultracart/model/conversation_pbx_queue.py +4 -0
  39. ultracart/model/coupon_codes_request.py +7 -0
  40. ultracart/model/item_content_multimedia.py +4 -0
  41. ultracart/models/__init__.py +26 -0
  42. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/METADATA +1 -1
  43. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/RECORD +46 -20
  44. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/LICENSE +0 -0
  45. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/WHEEL +0 -0
  46. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,324 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class ConversationPbxCallSearchRequest(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
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
+ 'agent_ids': ([str],), # noqa: E501
86
+ 'customer_name': (str,), # noqa: E501
87
+ 'direction': (str,), # noqa: E501
88
+ 'disposition': (str,), # noqa: E501
89
+ 'end_date': (str,), # noqa: E501
90
+ 'has_ai_engagement': (bool,), # noqa: E501
91
+ 'has_recording': (bool,), # noqa: E501
92
+ 'has_transcript': (bool,), # noqa: E501
93
+ 'max_duration_seconds': (int,), # noqa: E501
94
+ 'min_duration_seconds': (int,), # noqa: E501
95
+ 'phone_number': (str,), # noqa: E501
96
+ 'queue_uuids': ([str],), # noqa: E501
97
+ 'search_term': (str,), # noqa: E501
98
+ 'start_date': (str,), # noqa: E501
99
+ 'statuses': ([str],), # noqa: E501
100
+ 'transcript_search': (str,), # noqa: E501
101
+ }
102
+
103
+ @cached_property
104
+ def discriminator():
105
+ return None
106
+
107
+
108
+ attribute_map = {
109
+ 'agent_ids': 'agent_ids', # noqa: E501
110
+ 'customer_name': 'customer_name', # noqa: E501
111
+ 'direction': 'direction', # noqa: E501
112
+ 'disposition': 'disposition', # noqa: E501
113
+ 'end_date': 'end_date', # noqa: E501
114
+ 'has_ai_engagement': 'has_ai_engagement', # noqa: E501
115
+ 'has_recording': 'has_recording', # noqa: E501
116
+ 'has_transcript': 'has_transcript', # noqa: E501
117
+ 'max_duration_seconds': 'max_duration_seconds', # noqa: E501
118
+ 'min_duration_seconds': 'min_duration_seconds', # noqa: E501
119
+ 'phone_number': 'phone_number', # noqa: E501
120
+ 'queue_uuids': 'queue_uuids', # noqa: E501
121
+ 'search_term': 'search_term', # noqa: E501
122
+ 'start_date': 'start_date', # noqa: E501
123
+ 'statuses': 'statuses', # noqa: E501
124
+ 'transcript_search': 'transcript_search', # noqa: E501
125
+ }
126
+
127
+ read_only_vars = {
128
+ }
129
+
130
+ _composed_schemas = {}
131
+
132
+ @classmethod
133
+ @convert_js_args_to_python_args
134
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
135
+ """ConversationPbxCallSearchRequest - a model defined in OpenAPI
136
+
137
+ Keyword Args:
138
+ _check_type (bool): if True, values for parameters in openapi_types
139
+ will be type checked and a TypeError will be
140
+ raised if the wrong type is input.
141
+ Defaults to True
142
+ _path_to_item (tuple/list): This is a list of keys or values to
143
+ drill down to the model in received_data
144
+ when deserializing a response
145
+ _spec_property_naming (bool): True if the variable names in the input data
146
+ are serialized names, as specified in the OpenAPI document.
147
+ False if the variable names in the input data
148
+ are pythonic names, e.g. snake case (default)
149
+ _configuration (Configuration): the instance to use when
150
+ deserializing a file_type parameter.
151
+ If passed, type conversion is attempted
152
+ If omitted no type conversion is done.
153
+ _visited_composed_classes (tuple): This stores a tuple of
154
+ classes that we have traveled through so that
155
+ if we see that class again we will not use its
156
+ discriminator again.
157
+ When traveling through a discriminator, the
158
+ composed schema that is
159
+ is traveled through is added to this set.
160
+ For example if Animal has a discriminator
161
+ petType and we pass in "Dog", and the class Dog
162
+ allOf includes Animal, we move through Animal
163
+ once using the discriminator, and pick Dog.
164
+ Then in Dog, we will make an instance of the
165
+ Animal class but this time we won't travel
166
+ through its discriminator because we passed in
167
+ _visited_composed_classes = (Animal,)
168
+ agent_ids ([str]): Filter by agent IDs. [optional] # noqa: E501
169
+ customer_name (str): Filter by customer name. [optional] # noqa: E501
170
+ direction (str): Filter by call direction (inbound/outbound). [optional] # noqa: E501
171
+ disposition (str): Filter by call disposition. [optional] # noqa: E501
172
+ end_date (str): Filter calls created on or before this date (ISO 8601). [optional] # noqa: E501
173
+ has_ai_engagement (bool): Filter to calls with AI agent engagement. [optional] # noqa: E501
174
+ has_recording (bool): Filter to calls that have a recording. [optional] # noqa: E501
175
+ has_transcript (bool): Filter to calls that have a transcript. [optional] # noqa: E501
176
+ max_duration_seconds (int): Filter by maximum call duration in seconds. [optional] # noqa: E501
177
+ min_duration_seconds (int): Filter by minimum call duration in seconds. [optional] # noqa: E501
178
+ phone_number (str): Filter by phone number (partial match supported). [optional] # noqa: E501
179
+ queue_uuids ([str]): Filter by queue UUIDs. [optional] # noqa: E501
180
+ search_term (str): Free text search term - smart-routed based on content (phone, email, UUID, or general text). [optional] # noqa: E501
181
+ start_date (str): Filter calls created on or after this date (ISO 8601). [optional] # noqa: E501
182
+ statuses ([str]): Filter by call statuses. [optional] # noqa: E501
183
+ transcript_search (str): Search within transcript text. [optional] # noqa: E501
184
+ """
185
+
186
+ _check_type = kwargs.pop('_check_type', True)
187
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
188
+ _path_to_item = kwargs.pop('_path_to_item', ())
189
+ _configuration = kwargs.pop('_configuration', None)
190
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
191
+
192
+ self = super(OpenApiModel, cls).__new__(cls)
193
+
194
+ if args:
195
+ for arg in args:
196
+ if isinstance(arg, dict):
197
+ kwargs.update(arg)
198
+ else:
199
+ raise ApiTypeError(
200
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
201
+ args,
202
+ self.__class__.__name__,
203
+ ),
204
+ path_to_item=_path_to_item,
205
+ valid_classes=(self.__class__,),
206
+ )
207
+
208
+ self._data_store = {}
209
+ self._check_type = _check_type
210
+ self._spec_property_naming = _spec_property_naming
211
+ self._path_to_item = _path_to_item
212
+ self._configuration = _configuration
213
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
214
+
215
+ for var_name, var_value in kwargs.items():
216
+ if var_name not in self.attribute_map and \
217
+ self._configuration is not None and \
218
+ self._configuration.discard_unknown_keys and \
219
+ self.additional_properties_type is None:
220
+ # discard variable.
221
+ continue
222
+ setattr(self, var_name, var_value)
223
+ return self
224
+
225
+ required_properties = set([
226
+ '_data_store',
227
+ '_check_type',
228
+ '_spec_property_naming',
229
+ '_path_to_item',
230
+ '_configuration',
231
+ '_visited_composed_classes',
232
+ ])
233
+
234
+ @convert_js_args_to_python_args
235
+ def __init__(self, *args, **kwargs): # noqa: E501
236
+ """ConversationPbxCallSearchRequest - a model defined in OpenAPI
237
+
238
+ Keyword Args:
239
+ _check_type (bool): if True, values for parameters in openapi_types
240
+ will be type checked and a TypeError will be
241
+ raised if the wrong type is input.
242
+ Defaults to True
243
+ _path_to_item (tuple/list): This is a list of keys or values to
244
+ drill down to the model in received_data
245
+ when deserializing a response
246
+ _spec_property_naming (bool): True if the variable names in the input data
247
+ are serialized names, as specified in the OpenAPI document.
248
+ False if the variable names in the input data
249
+ are pythonic names, e.g. snake case (default)
250
+ _configuration (Configuration): the instance to use when
251
+ deserializing a file_type parameter.
252
+ If passed, type conversion is attempted
253
+ If omitted no type conversion is done.
254
+ _visited_composed_classes (tuple): This stores a tuple of
255
+ classes that we have traveled through so that
256
+ if we see that class again we will not use its
257
+ discriminator again.
258
+ When traveling through a discriminator, the
259
+ composed schema that is
260
+ is traveled through is added to this set.
261
+ For example if Animal has a discriminator
262
+ petType and we pass in "Dog", and the class Dog
263
+ allOf includes Animal, we move through Animal
264
+ once using the discriminator, and pick Dog.
265
+ Then in Dog, we will make an instance of the
266
+ Animal class but this time we won't travel
267
+ through its discriminator because we passed in
268
+ _visited_composed_classes = (Animal,)
269
+ agent_ids ([str]): Filter by agent IDs. [optional] # noqa: E501
270
+ customer_name (str): Filter by customer name. [optional] # noqa: E501
271
+ direction (str): Filter by call direction (inbound/outbound). [optional] # noqa: E501
272
+ disposition (str): Filter by call disposition. [optional] # noqa: E501
273
+ end_date (str): Filter calls created on or before this date (ISO 8601). [optional] # noqa: E501
274
+ has_ai_engagement (bool): Filter to calls with AI agent engagement. [optional] # noqa: E501
275
+ has_recording (bool): Filter to calls that have a recording. [optional] # noqa: E501
276
+ has_transcript (bool): Filter to calls that have a transcript. [optional] # noqa: E501
277
+ max_duration_seconds (int): Filter by maximum call duration in seconds. [optional] # noqa: E501
278
+ min_duration_seconds (int): Filter by minimum call duration in seconds. [optional] # noqa: E501
279
+ phone_number (str): Filter by phone number (partial match supported). [optional] # noqa: E501
280
+ queue_uuids ([str]): Filter by queue UUIDs. [optional] # noqa: E501
281
+ search_term (str): Free text search term - smart-routed based on content (phone, email, UUID, or general text). [optional] # noqa: E501
282
+ start_date (str): Filter calls created on or after this date (ISO 8601). [optional] # noqa: E501
283
+ statuses ([str]): Filter by call statuses. [optional] # noqa: E501
284
+ transcript_search (str): Search within transcript text. [optional] # noqa: E501
285
+ """
286
+
287
+ _check_type = kwargs.pop('_check_type', True)
288
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
289
+ _path_to_item = kwargs.pop('_path_to_item', ())
290
+ _configuration = kwargs.pop('_configuration', None)
291
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
292
+
293
+ if args:
294
+ for arg in args:
295
+ if isinstance(arg, dict):
296
+ kwargs.update(arg)
297
+ else:
298
+ raise ApiTypeError(
299
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
300
+ args,
301
+ self.__class__.__name__,
302
+ ),
303
+ path_to_item=_path_to_item,
304
+ valid_classes=(self.__class__,),
305
+ )
306
+
307
+ self._data_store = {}
308
+ self._check_type = _check_type
309
+ self._spec_property_naming = _spec_property_naming
310
+ self._path_to_item = _path_to_item
311
+ self._configuration = _configuration
312
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
313
+
314
+ for var_name, var_value in kwargs.items():
315
+ if var_name not in self.attribute_map and \
316
+ self._configuration is not None and \
317
+ self._configuration.discard_unknown_keys and \
318
+ self.additional_properties_type is None:
319
+ # discard variable.
320
+ continue
321
+ setattr(self, var_name, var_value)
322
+ if var_name in self.read_only_vars:
323
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
324
+ f"class with read only attributes.")
@@ -0,0 +1,292 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from ultracart.model.conversation_pbx_call import ConversationPbxCall
35
+ from ultracart.model.error import Error
36
+ from ultracart.model.response_metadata import ResponseMetadata
37
+ from ultracart.model.warning import Warning
38
+ globals()['ConversationPbxCall'] = ConversationPbxCall
39
+ globals()['Error'] = Error
40
+ globals()['ResponseMetadata'] = ResponseMetadata
41
+ globals()['Warning'] = Warning
42
+
43
+
44
+ class ConversationPbxCallSearchResponse(ModelNormal):
45
+ """NOTE: This class is auto generated by OpenAPI Generator.
46
+ Ref: https://openapi-generator.tech
47
+
48
+ Do not edit the class manually.
49
+
50
+ Attributes:
51
+ allowed_values (dict): The key is the tuple path to the attribute
52
+ and the for var_name this is (var_name,). The value is a dict
53
+ with a capitalized key describing the allowed value and an allowed
54
+ value. These dicts store the allowed enum values.
55
+ attribute_map (dict): The key is attribute name
56
+ and the value is json key in definition.
57
+ discriminator_value_class_map (dict): A dict to go from the discriminator
58
+ variable value to the discriminator class name.
59
+ validations (dict): The key is the tuple path to the attribute
60
+ and the for var_name this is (var_name,). The value is a dict
61
+ that stores validations for max_length, min_length, max_items,
62
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
63
+ inclusive_minimum, and regex.
64
+ additional_properties_type (tuple): A tuple of classes accepted
65
+ as additional properties values.
66
+ """
67
+
68
+ allowed_values = {
69
+ }
70
+
71
+ validations = {
72
+ }
73
+
74
+ @cached_property
75
+ def additional_properties_type():
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
+ lazy_import()
81
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
82
+
83
+ _nullable = False
84
+
85
+ @cached_property
86
+ def openapi_types():
87
+ """
88
+ This must be a method because a model may have properties that are
89
+ of type self, this must run after the class is loaded
90
+
91
+ Returns
92
+ openapi_types (dict): The key is attribute name
93
+ and the value is attribute type.
94
+ """
95
+ lazy_import()
96
+ return {
97
+ 'calls': ([ConversationPbxCall],), # noqa: E501
98
+ 'error': (Error,), # noqa: E501
99
+ 'metadata': (ResponseMetadata,), # noqa: E501
100
+ 'success': (bool,), # noqa: E501
101
+ 'warning': (Warning,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'calls': 'calls', # noqa: E501
111
+ 'error': 'error', # noqa: E501
112
+ 'metadata': 'metadata', # noqa: E501
113
+ 'success': 'success', # noqa: E501
114
+ 'warning': 'warning', # noqa: E501
115
+ }
116
+
117
+ read_only_vars = {
118
+ }
119
+
120
+ _composed_schemas = {}
121
+
122
+ @classmethod
123
+ @convert_js_args_to_python_args
124
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
125
+ """ConversationPbxCallSearchResponse - a model defined in OpenAPI
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ calls ([ConversationPbxCall]): calls. [optional] # noqa: E501
159
+ error (Error): [optional] # noqa: E501
160
+ metadata (ResponseMetadata): [optional] # noqa: E501
161
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
162
+ warning (Warning): [optional] # noqa: E501
163
+ """
164
+
165
+ _check_type = kwargs.pop('_check_type', True)
166
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
167
+ _path_to_item = kwargs.pop('_path_to_item', ())
168
+ _configuration = kwargs.pop('_configuration', None)
169
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
170
+
171
+ self = super(OpenApiModel, cls).__new__(cls)
172
+
173
+ if args:
174
+ for arg in args:
175
+ if isinstance(arg, dict):
176
+ kwargs.update(arg)
177
+ else:
178
+ raise ApiTypeError(
179
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
180
+ args,
181
+ self.__class__.__name__,
182
+ ),
183
+ path_to_item=_path_to_item,
184
+ valid_classes=(self.__class__,),
185
+ )
186
+
187
+ self._data_store = {}
188
+ self._check_type = _check_type
189
+ self._spec_property_naming = _spec_property_naming
190
+ self._path_to_item = _path_to_item
191
+ self._configuration = _configuration
192
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
193
+
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, *args, **kwargs): # noqa: E501
215
+ """ConversationPbxCallSearchResponse - a model defined in OpenAPI
216
+
217
+ Keyword Args:
218
+ _check_type (bool): if True, values for parameters in openapi_types
219
+ will be type checked and a TypeError will be
220
+ raised if the wrong type is input.
221
+ Defaults to True
222
+ _path_to_item (tuple/list): This is a list of keys or values to
223
+ drill down to the model in received_data
224
+ when deserializing a response
225
+ _spec_property_naming (bool): True if the variable names in the input data
226
+ are serialized names, as specified in the OpenAPI document.
227
+ False if the variable names in the input data
228
+ are pythonic names, e.g. snake case (default)
229
+ _configuration (Configuration): the instance to use when
230
+ deserializing a file_type parameter.
231
+ If passed, type conversion is attempted
232
+ If omitted no type conversion is done.
233
+ _visited_composed_classes (tuple): This stores a tuple of
234
+ classes that we have traveled through so that
235
+ if we see that class again we will not use its
236
+ discriminator again.
237
+ When traveling through a discriminator, the
238
+ composed schema that is
239
+ is traveled through is added to this set.
240
+ For example if Animal has a discriminator
241
+ petType and we pass in "Dog", and the class Dog
242
+ allOf includes Animal, we move through Animal
243
+ once using the discriminator, and pick Dog.
244
+ Then in Dog, we will make an instance of the
245
+ Animal class but this time we won't travel
246
+ through its discriminator because we passed in
247
+ _visited_composed_classes = (Animal,)
248
+ calls ([ConversationPbxCall]): calls. [optional] # noqa: E501
249
+ error (Error): [optional] # noqa: E501
250
+ metadata (ResponseMetadata): [optional] # noqa: E501
251
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
252
+ warning (Warning): [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
+ for var_name, var_value in kwargs.items():
283
+ if var_name not in self.attribute_map and \
284
+ self._configuration is not None and \
285
+ self._configuration.discard_unknown_keys and \
286
+ self.additional_properties_type is None:
287
+ # discard variable.
288
+ continue
289
+ setattr(self, var_name, var_value)
290
+ if var_name in self.read_only_vars:
291
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
+ f"class with read only attributes.")