ultracart-rest-sdk 4.0.201__py3-none-any.whl → 4.0.203__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 (45) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +6408 -711
  3. ultracart/api/workflow_api.py +248 -0
  4. ultracart/api_client.py +1 -1
  5. ultracart/configuration.py +1 -1
  6. ultracart/model/conversation_pbx_agent.py +308 -0
  7. ultracart/model/conversation_pbx_agent_response.py +292 -0
  8. ultracart/model/conversation_pbx_agents_response.py +292 -0
  9. ultracart/model/conversation_pbx_audio.py +314 -0
  10. ultracart/model/conversation_pbx_audio_response.py +292 -0
  11. ultracart/model/conversation_pbx_audios_response.py +292 -0
  12. ultracart/model/conversation_pbx_customer_snapshot_request.py +302 -0
  13. ultracart/model/conversation_pbx_customer_snapshot_response.py +304 -0
  14. ultracart/model/conversation_pbx_menu.py +324 -0
  15. ultracart/model/conversation_pbx_menu_mapping.py +276 -0
  16. ultracart/model/conversation_pbx_menu_response.py +292 -0
  17. ultracart/model/conversation_pbx_menus_response.py +292 -0
  18. ultracart/model/conversation_pbx_phone_number.py +295 -0
  19. ultracart/model/conversation_pbx_phone_number_response.py +292 -0
  20. ultracart/model/conversation_pbx_phone_numbers_response.py +292 -0
  21. ultracart/model/conversation_pbx_queue.py +376 -0
  22. ultracart/model/conversation_pbx_queue_members.py +268 -0
  23. ultracart/model/conversation_pbx_queue_response.py +292 -0
  24. ultracart/model/conversation_pbx_queues_response.py +292 -0
  25. ultracart/model/conversation_pbx_time_based.py +282 -0
  26. ultracart/model/conversation_pbx_time_based_mapping.py +288 -0
  27. ultracart/model/conversation_pbx_time_based_mapping_config.py +274 -0
  28. ultracart/model/conversation_pbx_time_based_response.py +292 -0
  29. ultracart/model/conversation_pbx_time_baseds_response.py +292 -0
  30. ultracart/model/conversation_pbx_time_range.py +298 -0
  31. ultracart/model/conversation_pbx_time_range_config.py +284 -0
  32. ultracart/model/conversation_pbx_time_range_response.py +292 -0
  33. ultracart/model/conversation_pbx_time_ranges_response.py +292 -0
  34. ultracart/model/conversation_pbx_voicemail_mailbox.py +328 -0
  35. ultracart/model/conversation_pbx_voicemail_mailbox_response.py +292 -0
  36. ultracart/model/conversation_pbx_voicemail_mailboxes_response.py +292 -0
  37. ultracart/model/workflow_agent_auth.py +272 -0
  38. ultracart/model/workflow_agent_auth_response.py +292 -0
  39. ultracart/model/workflow_task_tags_response.py +290 -0
  40. ultracart/models/__init__.py +34 -0
  41. {ultracart_rest_sdk-4.0.201.dist-info → ultracart_rest_sdk-4.0.203.dist-info}/METADATA +1 -1
  42. {ultracart_rest_sdk-4.0.201.dist-info → ultracart_rest_sdk-4.0.203.dist-info}/RECORD +45 -11
  43. {ultracart_rest_sdk-4.0.201.dist-info → ultracart_rest_sdk-4.0.203.dist-info}/LICENSE +0 -0
  44. {ultracart_rest_sdk-4.0.201.dist-info → ultracart_rest_sdk-4.0.203.dist-info}/WHEEL +0 -0
  45. {ultracart_rest_sdk-4.0.201.dist-info → ultracart_rest_sdk-4.0.203.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,304 @@
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.auto_order import AutoOrder
35
+ from ultracart.model.customer import Customer
36
+ from ultracart.model.error import Error
37
+ from ultracart.model.order import Order
38
+ from ultracart.model.response_metadata import ResponseMetadata
39
+ from ultracart.model.warning import Warning
40
+ globals()['AutoOrder'] = AutoOrder
41
+ globals()['Customer'] = Customer
42
+ globals()['Error'] = Error
43
+ globals()['Order'] = Order
44
+ globals()['ResponseMetadata'] = ResponseMetadata
45
+ globals()['Warning'] = Warning
46
+
47
+
48
+ class ConversationPbxCustomerSnapshotResponse(ModelNormal):
49
+ """NOTE: This class is auto generated by OpenAPI Generator.
50
+ Ref: https://openapi-generator.tech
51
+
52
+ Do not edit the class manually.
53
+
54
+ Attributes:
55
+ allowed_values (dict): The key is the tuple path to the attribute
56
+ and the for var_name this is (var_name,). The value is a dict
57
+ with a capitalized key describing the allowed value and an allowed
58
+ value. These dicts store the allowed enum values.
59
+ attribute_map (dict): The key is attribute name
60
+ and the value is json key in definition.
61
+ discriminator_value_class_map (dict): A dict to go from the discriminator
62
+ variable value to the discriminator class name.
63
+ validations (dict): The key is the tuple path to the attribute
64
+ and the for var_name this is (var_name,). The value is a dict
65
+ that stores validations for max_length, min_length, max_items,
66
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
67
+ inclusive_minimum, and regex.
68
+ additional_properties_type (tuple): A tuple of classes accepted
69
+ as additional properties values.
70
+ """
71
+
72
+ allowed_values = {
73
+ }
74
+
75
+ validations = {
76
+ }
77
+
78
+ @cached_property
79
+ def additional_properties_type():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+ """
84
+ lazy_import()
85
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
86
+
87
+ _nullable = False
88
+
89
+ @cached_property
90
+ def openapi_types():
91
+ """
92
+ This must be a method because a model may have properties that are
93
+ of type self, this must run after the class is loaded
94
+
95
+ Returns
96
+ openapi_types (dict): The key is attribute name
97
+ and the value is attribute type.
98
+ """
99
+ lazy_import()
100
+ return {
101
+ 'auto_orders': ([AutoOrder],), # noqa: E501
102
+ 'customer': (Customer,), # noqa: E501
103
+ 'error': (Error,), # noqa: E501
104
+ 'metadata': (ResponseMetadata,), # noqa: E501
105
+ 'orders': ([Order],), # noqa: E501
106
+ 'success': (bool,), # noqa: E501
107
+ 'warning': (Warning,), # noqa: E501
108
+ }
109
+
110
+ @cached_property
111
+ def discriminator():
112
+ return None
113
+
114
+
115
+ attribute_map = {
116
+ 'auto_orders': 'auto_orders', # noqa: E501
117
+ 'customer': 'customer', # noqa: E501
118
+ 'error': 'error', # noqa: E501
119
+ 'metadata': 'metadata', # noqa: E501
120
+ 'orders': 'orders', # noqa: E501
121
+ 'success': 'success', # noqa: E501
122
+ 'warning': 'warning', # noqa: E501
123
+ }
124
+
125
+ read_only_vars = {
126
+ }
127
+
128
+ _composed_schemas = {}
129
+
130
+ @classmethod
131
+ @convert_js_args_to_python_args
132
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
133
+ """ConversationPbxCustomerSnapshotResponse - a model defined in OpenAPI
134
+
135
+ Keyword Args:
136
+ _check_type (bool): if True, values for parameters in openapi_types
137
+ will be type checked and a TypeError will be
138
+ raised if the wrong type is input.
139
+ Defaults to True
140
+ _path_to_item (tuple/list): This is a list of keys or values to
141
+ drill down to the model in received_data
142
+ when deserializing a response
143
+ _spec_property_naming (bool): True if the variable names in the input data
144
+ are serialized names, as specified in the OpenAPI document.
145
+ False if the variable names in the input data
146
+ are pythonic names, e.g. snake case (default)
147
+ _configuration (Configuration): the instance to use when
148
+ deserializing a file_type parameter.
149
+ If passed, type conversion is attempted
150
+ If omitted no type conversion is done.
151
+ _visited_composed_classes (tuple): This stores a tuple of
152
+ classes that we have traveled through so that
153
+ if we see that class again we will not use its
154
+ discriminator again.
155
+ When traveling through a discriminator, the
156
+ composed schema that is
157
+ is traveled through is added to this set.
158
+ For example if Animal has a discriminator
159
+ petType and we pass in "Dog", and the class Dog
160
+ allOf includes Animal, we move through Animal
161
+ once using the discriminator, and pick Dog.
162
+ Then in Dog, we will make an instance of the
163
+ Animal class but this time we won't travel
164
+ through its discriminator because we passed in
165
+ _visited_composed_classes = (Animal,)
166
+ auto_orders ([AutoOrder]): [optional] # noqa: E501
167
+ customer (Customer): [optional] # noqa: E501
168
+ error (Error): [optional] # noqa: E501
169
+ metadata (ResponseMetadata): [optional] # noqa: E501
170
+ orders ([Order]): [optional] # noqa: E501
171
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
172
+ warning (Warning): [optional] # noqa: E501
173
+ """
174
+
175
+ _check_type = kwargs.pop('_check_type', True)
176
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
177
+ _path_to_item = kwargs.pop('_path_to_item', ())
178
+ _configuration = kwargs.pop('_configuration', None)
179
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
180
+
181
+ self = super(OpenApiModel, cls).__new__(cls)
182
+
183
+ if args:
184
+ for arg in args:
185
+ if isinstance(arg, dict):
186
+ kwargs.update(arg)
187
+ else:
188
+ raise ApiTypeError(
189
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
190
+ args,
191
+ self.__class__.__name__,
192
+ ),
193
+ path_to_item=_path_to_item,
194
+ valid_classes=(self.__class__,),
195
+ )
196
+
197
+ self._data_store = {}
198
+ self._check_type = _check_type
199
+ self._spec_property_naming = _spec_property_naming
200
+ self._path_to_item = _path_to_item
201
+ self._configuration = _configuration
202
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
203
+
204
+ for var_name, var_value in kwargs.items():
205
+ if var_name not in self.attribute_map and \
206
+ self._configuration is not None and \
207
+ self._configuration.discard_unknown_keys and \
208
+ self.additional_properties_type is None:
209
+ # discard variable.
210
+ continue
211
+ setattr(self, var_name, var_value)
212
+ return self
213
+
214
+ required_properties = set([
215
+ '_data_store',
216
+ '_check_type',
217
+ '_spec_property_naming',
218
+ '_path_to_item',
219
+ '_configuration',
220
+ '_visited_composed_classes',
221
+ ])
222
+
223
+ @convert_js_args_to_python_args
224
+ def __init__(self, *args, **kwargs): # noqa: E501
225
+ """ConversationPbxCustomerSnapshotResponse - a model defined in OpenAPI
226
+
227
+ Keyword Args:
228
+ _check_type (bool): if True, values for parameters in openapi_types
229
+ will be type checked and a TypeError will be
230
+ raised if the wrong type is input.
231
+ Defaults to True
232
+ _path_to_item (tuple/list): This is a list of keys or values to
233
+ drill down to the model in received_data
234
+ when deserializing a response
235
+ _spec_property_naming (bool): True if the variable names in the input data
236
+ are serialized names, as specified in the OpenAPI document.
237
+ False if the variable names in the input data
238
+ are pythonic names, e.g. snake case (default)
239
+ _configuration (Configuration): the instance to use when
240
+ deserializing a file_type parameter.
241
+ If passed, type conversion is attempted
242
+ If omitted no type conversion is done.
243
+ _visited_composed_classes (tuple): This stores a tuple of
244
+ classes that we have traveled through so that
245
+ if we see that class again we will not use its
246
+ discriminator again.
247
+ When traveling through a discriminator, the
248
+ composed schema that is
249
+ is traveled through is added to this set.
250
+ For example if Animal has a discriminator
251
+ petType and we pass in "Dog", and the class Dog
252
+ allOf includes Animal, we move through Animal
253
+ once using the discriminator, and pick Dog.
254
+ Then in Dog, we will make an instance of the
255
+ Animal class but this time we won't travel
256
+ through its discriminator because we passed in
257
+ _visited_composed_classes = (Animal,)
258
+ auto_orders ([AutoOrder]): [optional] # noqa: E501
259
+ customer (Customer): [optional] # noqa: E501
260
+ error (Error): [optional] # noqa: E501
261
+ metadata (ResponseMetadata): [optional] # noqa: E501
262
+ orders ([Order]): [optional] # noqa: E501
263
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
264
+ warning (Warning): [optional] # noqa: E501
265
+ """
266
+
267
+ _check_type = kwargs.pop('_check_type', True)
268
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
269
+ _path_to_item = kwargs.pop('_path_to_item', ())
270
+ _configuration = kwargs.pop('_configuration', None)
271
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
272
+
273
+ if args:
274
+ for arg in args:
275
+ if isinstance(arg, dict):
276
+ kwargs.update(arg)
277
+ else:
278
+ raise ApiTypeError(
279
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
280
+ args,
281
+ self.__class__.__name__,
282
+ ),
283
+ path_to_item=_path_to_item,
284
+ valid_classes=(self.__class__,),
285
+ )
286
+
287
+ self._data_store = {}
288
+ self._check_type = _check_type
289
+ self._spec_property_naming = _spec_property_naming
290
+ self._path_to_item = _path_to_item
291
+ self._configuration = _configuration
292
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
293
+
294
+ for var_name, var_value in kwargs.items():
295
+ if var_name not in self.attribute_map and \
296
+ self._configuration is not None and \
297
+ self._configuration.discard_unknown_keys and \
298
+ self.additional_properties_type is None:
299
+ # discard variable.
300
+ continue
301
+ setattr(self, var_name, var_value)
302
+ if var_name in self.read_only_vars:
303
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
304
+ f"class with read only attributes.")
@@ -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
+ def lazy_import():
34
+ from ultracart.model.conversation_pbx_menu_mapping import ConversationPbxMenuMapping
35
+ globals()['ConversationPbxMenuMapping'] = ConversationPbxMenuMapping
36
+
37
+
38
+ class ConversationPbxMenu(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ ('conversation_pbx_menu_uuid',): {
67
+ 'max_length': 50,
68
+ },
69
+ ('default_action',): {
70
+ 'max_length': 30,
71
+ },
72
+ ('default_action_target',): {
73
+ 'max_length': 50,
74
+ },
75
+ ('merchant_id',): {
76
+ 'max_length': 5,
77
+ },
78
+ ('name',): {
79
+ 'max_length': 50,
80
+ },
81
+ ('play_audio_uuid',): {
82
+ 'max_length': 50,
83
+ },
84
+ }
85
+
86
+ @cached_property
87
+ def additional_properties_type():
88
+ """
89
+ This must be a method because a model may have properties that are
90
+ of type self, this must run after the class is loaded
91
+ """
92
+ lazy_import()
93
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
94
+
95
+ _nullable = False
96
+
97
+ @cached_property
98
+ def openapi_types():
99
+ """
100
+ This must be a method because a model may have properties that are
101
+ of type self, this must run after the class is loaded
102
+
103
+ Returns
104
+ openapi_types (dict): The key is attribute name
105
+ and the value is attribute type.
106
+ """
107
+ lazy_import()
108
+ return {
109
+ 'allow_direct_extensions': (bool,), # noqa: E501
110
+ 'conversation_pbx_menu_uuid': (str,), # noqa: E501
111
+ 'default_action': (str,), # noqa: E501
112
+ 'default_action_target': (str,), # noqa: E501
113
+ 'mappings': ([ConversationPbxMenuMapping],), # noqa: E501
114
+ 'merchant_id': (str,), # noqa: E501
115
+ 'name': (str,), # noqa: E501
116
+ 'play_audio_uuid': (str,), # noqa: E501
117
+ 'say': (str,), # noqa: E501
118
+ 'timeout': (int,), # noqa: E501
119
+ }
120
+
121
+ @cached_property
122
+ def discriminator():
123
+ return None
124
+
125
+
126
+ attribute_map = {
127
+ 'allow_direct_extensions': 'allow_direct_extensions', # noqa: E501
128
+ 'conversation_pbx_menu_uuid': 'conversation_pbx_menu_uuid', # noqa: E501
129
+ 'default_action': 'default_action', # noqa: E501
130
+ 'default_action_target': 'default_action_target', # noqa: E501
131
+ 'mappings': 'mappings', # noqa: E501
132
+ 'merchant_id': 'merchant_id', # noqa: E501
133
+ 'name': 'name', # noqa: E501
134
+ 'play_audio_uuid': 'play_audio_uuid', # noqa: E501
135
+ 'say': 'say', # noqa: E501
136
+ 'timeout': 'timeout', # noqa: E501
137
+ }
138
+
139
+ read_only_vars = {
140
+ }
141
+
142
+ _composed_schemas = {}
143
+
144
+ @classmethod
145
+ @convert_js_args_to_python_args
146
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
147
+ """ConversationPbxMenu - a model defined in OpenAPI
148
+
149
+ Keyword Args:
150
+ _check_type (bool): if True, values for parameters in openapi_types
151
+ will be type checked and a TypeError will be
152
+ raised if the wrong type is input.
153
+ Defaults to True
154
+ _path_to_item (tuple/list): This is a list of keys or values to
155
+ drill down to the model in received_data
156
+ when deserializing a response
157
+ _spec_property_naming (bool): True if the variable names in the input data
158
+ are serialized names, as specified in the OpenAPI document.
159
+ False if the variable names in the input data
160
+ are pythonic names, e.g. snake case (default)
161
+ _configuration (Configuration): the instance to use when
162
+ deserializing a file_type parameter.
163
+ If passed, type conversion is attempted
164
+ If omitted no type conversion is done.
165
+ _visited_composed_classes (tuple): This stores a tuple of
166
+ classes that we have traveled through so that
167
+ if we see that class again we will not use its
168
+ discriminator again.
169
+ When traveling through a discriminator, the
170
+ composed schema that is
171
+ is traveled through is added to this set.
172
+ For example if Animal has a discriminator
173
+ petType and we pass in "Dog", and the class Dog
174
+ allOf includes Animal, we move through Animal
175
+ once using the discriminator, and pick Dog.
176
+ Then in Dog, we will make an instance of the
177
+ Animal class but this time we won't travel
178
+ through its discriminator because we passed in
179
+ _visited_composed_classes = (Animal,)
180
+ allow_direct_extensions (bool): If true, the customer is allowed to input direct extensions within this menu. [optional] # noqa: E501
181
+ conversation_pbx_menu_uuid (str): Conversation Pbx Menu UUID. [optional] # noqa: E501
182
+ default_action (str): The default action for this menu. [optional] # noqa: E501
183
+ default_action_target (str): The default action target for this menu. [optional] # noqa: E501
184
+ mappings ([ConversationPbxMenuMapping]): Action mappings for this menu. [optional] # noqa: E501
185
+ merchant_id (str): Merchant Id. [optional] # noqa: E501
186
+ name (str): Menu name. [optional] # noqa: E501
187
+ play_audio_uuid (str): An optional audio clip that plays when a customer enters this menu. [optional] # noqa: E501
188
+ say (str): An optional saying that plays when a customer enters this menu. [optional] # noqa: E501
189
+ timeout (int): The idle seconds before this menu times out. [optional] # noqa: E501
190
+ """
191
+
192
+ _check_type = kwargs.pop('_check_type', True)
193
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
194
+ _path_to_item = kwargs.pop('_path_to_item', ())
195
+ _configuration = kwargs.pop('_configuration', None)
196
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
197
+
198
+ self = super(OpenApiModel, cls).__new__(cls)
199
+
200
+ if args:
201
+ for arg in args:
202
+ if isinstance(arg, dict):
203
+ kwargs.update(arg)
204
+ else:
205
+ raise ApiTypeError(
206
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
207
+ args,
208
+ self.__class__.__name__,
209
+ ),
210
+ path_to_item=_path_to_item,
211
+ valid_classes=(self.__class__,),
212
+ )
213
+
214
+ self._data_store = {}
215
+ self._check_type = _check_type
216
+ self._spec_property_naming = _spec_property_naming
217
+ self._path_to_item = _path_to_item
218
+ self._configuration = _configuration
219
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
220
+
221
+ for var_name, var_value in kwargs.items():
222
+ if var_name not in self.attribute_map and \
223
+ self._configuration is not None and \
224
+ self._configuration.discard_unknown_keys and \
225
+ self.additional_properties_type is None:
226
+ # discard variable.
227
+ continue
228
+ setattr(self, var_name, var_value)
229
+ return self
230
+
231
+ required_properties = set([
232
+ '_data_store',
233
+ '_check_type',
234
+ '_spec_property_naming',
235
+ '_path_to_item',
236
+ '_configuration',
237
+ '_visited_composed_classes',
238
+ ])
239
+
240
+ @convert_js_args_to_python_args
241
+ def __init__(self, *args, **kwargs): # noqa: E501
242
+ """ConversationPbxMenu - a model defined in OpenAPI
243
+
244
+ Keyword Args:
245
+ _check_type (bool): if True, values for parameters in openapi_types
246
+ will be type checked and a TypeError will be
247
+ raised if the wrong type is input.
248
+ Defaults to True
249
+ _path_to_item (tuple/list): This is a list of keys or values to
250
+ drill down to the model in received_data
251
+ when deserializing a response
252
+ _spec_property_naming (bool): True if the variable names in the input data
253
+ are serialized names, as specified in the OpenAPI document.
254
+ False if the variable names in the input data
255
+ are pythonic names, e.g. snake case (default)
256
+ _configuration (Configuration): the instance to use when
257
+ deserializing a file_type parameter.
258
+ If passed, type conversion is attempted
259
+ If omitted no type conversion is done.
260
+ _visited_composed_classes (tuple): This stores a tuple of
261
+ classes that we have traveled through so that
262
+ if we see that class again we will not use its
263
+ discriminator again.
264
+ When traveling through a discriminator, the
265
+ composed schema that is
266
+ is traveled through is added to this set.
267
+ For example if Animal has a discriminator
268
+ petType and we pass in "Dog", and the class Dog
269
+ allOf includes Animal, we move through Animal
270
+ once using the discriminator, and pick Dog.
271
+ Then in Dog, we will make an instance of the
272
+ Animal class but this time we won't travel
273
+ through its discriminator because we passed in
274
+ _visited_composed_classes = (Animal,)
275
+ allow_direct_extensions (bool): If true, the customer is allowed to input direct extensions within this menu. [optional] # noqa: E501
276
+ conversation_pbx_menu_uuid (str): Conversation Pbx Menu UUID. [optional] # noqa: E501
277
+ default_action (str): The default action for this menu. [optional] # noqa: E501
278
+ default_action_target (str): The default action target for this menu. [optional] # noqa: E501
279
+ mappings ([ConversationPbxMenuMapping]): Action mappings for this menu. [optional] # noqa: E501
280
+ merchant_id (str): Merchant Id. [optional] # noqa: E501
281
+ name (str): Menu name. [optional] # noqa: E501
282
+ play_audio_uuid (str): An optional audio clip that plays when a customer enters this menu. [optional] # noqa: E501
283
+ say (str): An optional saying that plays when a customer enters this menu. [optional] # noqa: E501
284
+ timeout (int): The idle seconds before this menu times out. [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.")