freeclimb 3.0.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +4 -2
  4. data/Gemfile.lock +38 -19
  5. data/README.md +37 -35
  6. data/docs/AccountRequest.md +9 -8
  7. data/docs/AccountResult.md +27 -26
  8. data/docs/AccountResultAllOf.md +19 -18
  9. data/docs/AddToConference.md +25 -24
  10. data/docs/AddToConferenceAllOf.md +25 -24
  11. data/docs/ApplicationList.md +21 -20
  12. data/docs/ApplicationListAllOf.md +7 -6
  13. data/docs/ApplicationRequest.md +19 -18
  14. data/docs/ApplicationResult.md +31 -30
  15. data/docs/ApplicationResultAllOf.md +23 -22
  16. data/docs/AvailableNumber.md +17 -16
  17. data/docs/AvailableNumberList.md +21 -20
  18. data/docs/AvailableNumberListAllOf.md +7 -6
  19. data/docs/BuyIncomingNumberRequest.md +11 -10
  20. data/docs/CallList.md +21 -20
  21. data/docs/CallListAllOf.md +7 -6
  22. data/docs/CallResult.md +43 -44
  23. data/docs/CallResultAllOf.md +35 -36
  24. data/docs/Capabilities.md +26 -0
  25. data/docs/ConferenceList.md +21 -20
  26. data/docs/ConferenceListAllOf.md +7 -6
  27. data/docs/ConferenceParticipantList.md +21 -20
  28. data/docs/ConferenceParticipantListAllOf.md +7 -6
  29. data/docs/ConferenceParticipantResult.md +25 -24
  30. data/docs/ConferenceParticipantResultAllOf.md +17 -16
  31. data/docs/ConferenceResult.md +33 -32
  32. data/docs/ConferenceResultAllOf.md +25 -24
  33. data/docs/CreateConference.md +17 -16
  34. data/docs/CreateConferenceAllOf.md +17 -16
  35. data/docs/CreateConferenceRequest.md +15 -14
  36. data/docs/DefaultApi.md +1629 -629
  37. data/docs/Dequeue.md +3 -4
  38. data/docs/Enqueue.md +13 -12
  39. data/docs/EnqueueAllOf.md +13 -12
  40. data/docs/FilterLogsRequest.md +7 -6
  41. data/docs/GetDigits.md +23 -22
  42. data/docs/GetDigitsAllOf.md +23 -22
  43. data/docs/GetSpeech.md +31 -30
  44. data/docs/GetSpeechAllOf.md +31 -30
  45. data/docs/Hangup.md +7 -6
  46. data/docs/HangupAllOf.md +7 -6
  47. data/docs/IncomingNumberList.md +21 -20
  48. data/docs/IncomingNumberListAllOf.md +7 -6
  49. data/docs/IncomingNumberRequest.md +9 -8
  50. data/docs/IncomingNumberResult.md +33 -30
  51. data/docs/IncomingNumberResultAllOf.md +25 -22
  52. data/docs/LogList.md +21 -20
  53. data/docs/LogListAllOf.md +7 -6
  54. data/docs/LogResult.md +19 -18
  55. data/docs/MakeCallRequest.md +25 -24
  56. data/docs/MessageRequest.md +23 -22
  57. data/docs/MessageRequestAllOf.md +15 -14
  58. data/docs/MessageResult.md +29 -28
  59. data/docs/MessageResultAllOf.md +21 -20
  60. data/docs/MessagesList.md +21 -20
  61. data/docs/MessagesListAllOf.md +7 -6
  62. data/docs/MutableResourceModel.md +13 -12
  63. data/docs/OutDial.md +25 -24
  64. data/docs/OutDialAllOf.md +25 -24
  65. data/docs/PaginationModel.md +19 -18
  66. data/docs/Pause.md +7 -6
  67. data/docs/PauseAllOf.md +7 -6
  68. data/docs/PerclCommand.md +7 -6
  69. data/docs/PerclScript.md +7 -6
  70. data/docs/Play.md +13 -12
  71. data/docs/PlayAllOf.md +13 -12
  72. data/docs/PlayEarlyMedia.md +7 -6
  73. data/docs/PlayEarlyMediaAllOf.md +7 -6
  74. data/docs/QueueList.md +21 -20
  75. data/docs/QueueListAllOf.md +7 -6
  76. data/docs/QueueMember.md +15 -14
  77. data/docs/QueueMemberList.md +21 -20
  78. data/docs/QueueMemberListAllOf.md +7 -6
  79. data/docs/QueueRequest.md +9 -8
  80. data/docs/QueueResult.md +27 -26
  81. data/docs/QueueResultAllOf.md +19 -18
  82. data/docs/RecordUtterance.md +19 -18
  83. data/docs/RecordUtteranceAllOf.md +19 -18
  84. data/docs/RecordingList.md +21 -20
  85. data/docs/RecordingListAllOf.md +7 -6
  86. data/docs/RecordingResult.md +23 -22
  87. data/docs/RecordingResultAllOf.md +15 -14
  88. data/docs/Redirect.md +7 -6
  89. data/docs/RedirectAllOf.md +7 -6
  90. data/docs/Reject.md +7 -6
  91. data/docs/RejectAllOf.md +7 -6
  92. data/docs/RemoveFromConference.md +7 -6
  93. data/docs/RemoveFromConferenceAllOf.md +7 -6
  94. data/docs/Say.md +15 -14
  95. data/docs/SayAllOf.md +15 -14
  96. data/docs/SendDigits.md +11 -10
  97. data/docs/SendDigitsAllOf.md +11 -10
  98. data/docs/SetListen.md +9 -8
  99. data/docs/SetListenAllOf.md +9 -8
  100. data/docs/SetTalk.md +9 -8
  101. data/docs/SetTalkAllOf.md +9 -8
  102. data/docs/Sms.md +13 -12
  103. data/docs/SmsAllOf.md +13 -12
  104. data/docs/StartRecordCall.md +3 -4
  105. data/docs/TerminateConference.md +7 -6
  106. data/docs/TerminateConferenceAllOf.md +7 -6
  107. data/docs/UpdateCallRequest.md +7 -6
  108. data/docs/UpdateConferenceParticipantRequest.md +9 -8
  109. data/docs/UpdateConferenceRequest.md +11 -10
  110. data/freeclimb.gemspec +3 -4
  111. data/lib/freeclimb/api/default_api.rb +449 -263
  112. data/lib/freeclimb/api_client.rb +55 -51
  113. data/lib/freeclimb/api_error.rb +2 -2
  114. data/lib/freeclimb/configuration.rb +41 -11
  115. data/lib/freeclimb/models/account_request.rb +20 -8
  116. data/lib/freeclimb/models/account_result.rb +39 -8
  117. data/lib/freeclimb/models/account_result_all_of.rb +39 -8
  118. data/lib/freeclimb/models/add_to_conference.rb +21 -8
  119. data/lib/freeclimb/models/add_to_conference_all_of.rb +20 -8
  120. data/lib/freeclimb/models/application_list.rb +28 -8
  121. data/lib/freeclimb/models/application_list_all_of.rb +21 -8
  122. data/lib/freeclimb/models/application_request.rb +20 -8
  123. data/lib/freeclimb/models/application_result.rb +29 -8
  124. data/lib/freeclimb/models/application_result_all_of.rb +29 -8
  125. data/lib/freeclimb/models/available_number.rb +35 -19
  126. data/lib/freeclimb/models/available_number_list.rb +28 -8
  127. data/lib/freeclimb/models/available_number_list_all_of.rb +21 -8
  128. data/lib/freeclimb/models/buy_incoming_number_request.rb +20 -8
  129. data/lib/freeclimb/models/call_list.rb +28 -8
  130. data/lib/freeclimb/models/call_list_all_of.rb +21 -8
  131. data/lib/freeclimb/models/call_result.rb +36 -21
  132. data/lib/freeclimb/models/call_result_all_of.rb +36 -21
  133. data/lib/freeclimb/models/capabilities.rb +265 -0
  134. data/lib/freeclimb/models/conference_list.rb +28 -8
  135. data/lib/freeclimb/models/conference_list_all_of.rb +21 -8
  136. data/lib/freeclimb/models/conference_participant_list.rb +28 -8
  137. data/lib/freeclimb/models/conference_participant_list_all_of.rb +21 -8
  138. data/lib/freeclimb/models/conference_participant_result.rb +26 -8
  139. data/lib/freeclimb/models/conference_participant_result_all_of.rb +26 -8
  140. data/lib/freeclimb/models/conference_result.rb +30 -8
  141. data/lib/freeclimb/models/conference_result_all_of.rb +30 -8
  142. data/lib/freeclimb/models/create_conference.rb +21 -8
  143. data/lib/freeclimb/models/create_conference_all_of.rb +20 -8
  144. data/lib/freeclimb/models/create_conference_request.rb +20 -8
  145. data/lib/freeclimb/models/dequeue.rb +21 -8
  146. data/lib/freeclimb/models/enqueue.rb +21 -8
  147. data/lib/freeclimb/models/enqueue_all_of.rb +20 -8
  148. data/lib/freeclimb/models/filter_logs_request.rb +20 -8
  149. data/lib/freeclimb/models/get_digits.rb +21 -8
  150. data/lib/freeclimb/models/get_digits_all_of.rb +20 -8
  151. data/lib/freeclimb/models/get_speech.rb +21 -8
  152. data/lib/freeclimb/models/get_speech_all_of.rb +20 -8
  153. data/lib/freeclimb/models/hangup.rb +21 -8
  154. data/lib/freeclimb/models/hangup_all_of.rb +20 -8
  155. data/lib/freeclimb/models/incoming_number_list.rb +28 -8
  156. data/lib/freeclimb/models/incoming_number_list_all_of.rb +21 -8
  157. data/lib/freeclimb/models/incoming_number_request.rb +20 -8
  158. data/lib/freeclimb/models/incoming_number_result.rb +39 -9
  159. data/lib/freeclimb/models/incoming_number_result_all_of.rb +39 -9
  160. data/lib/freeclimb/models/log_list.rb +28 -8
  161. data/lib/freeclimb/models/log_list_all_of.rb +21 -8
  162. data/lib/freeclimb/models/log_result.rb +27 -8
  163. data/lib/freeclimb/models/make_call_request.rb +22 -8
  164. data/lib/freeclimb/models/message_request.rb +20 -8
  165. data/lib/freeclimb/models/message_request_all_of.rb +20 -8
  166. data/lib/freeclimb/models/message_result.rb +28 -8
  167. data/lib/freeclimb/models/message_result_all_of.rb +28 -8
  168. data/lib/freeclimb/models/messages_list.rb +28 -8
  169. data/lib/freeclimb/models/messages_list_all_of.rb +21 -8
  170. data/lib/freeclimb/models/mutable_resource_model.rb +20 -8
  171. data/lib/freeclimb/models/out_dial.rb +21 -8
  172. data/lib/freeclimb/models/out_dial_all_of.rb +20 -8
  173. data/lib/freeclimb/models/pagination_model.rb +27 -8
  174. data/lib/freeclimb/models/pause.rb +21 -8
  175. data/lib/freeclimb/models/pause_all_of.rb +20 -8
  176. data/lib/freeclimb/models/percl_command.rb +39 -8
  177. data/lib/freeclimb/models/percl_script.rb +24 -8
  178. data/lib/freeclimb/models/play.rb +21 -8
  179. data/lib/freeclimb/models/play_all_of.rb +20 -8
  180. data/lib/freeclimb/models/play_early_media.rb +21 -8
  181. data/lib/freeclimb/models/play_early_media_all_of.rb +20 -8
  182. data/lib/freeclimb/models/queue_list.rb +28 -8
  183. data/lib/freeclimb/models/queue_list_all_of.rb +21 -8
  184. data/lib/freeclimb/models/queue_member.rb +25 -8
  185. data/lib/freeclimb/models/queue_member_list.rb +28 -8
  186. data/lib/freeclimb/models/queue_member_list_all_of.rb +21 -8
  187. data/lib/freeclimb/models/queue_request.rb +22 -8
  188. data/lib/freeclimb/models/queue_result.rb +27 -8
  189. data/lib/freeclimb/models/queue_result_all_of.rb +27 -8
  190. data/lib/freeclimb/models/record_utterance.rb +21 -8
  191. data/lib/freeclimb/models/record_utterance_all_of.rb +20 -8
  192. data/lib/freeclimb/models/recording_list.rb +28 -8
  193. data/lib/freeclimb/models/recording_list_all_of.rb +21 -8
  194. data/lib/freeclimb/models/recording_result.rb +25 -8
  195. data/lib/freeclimb/models/recording_result_all_of.rb +25 -8
  196. data/lib/freeclimb/models/redirect.rb +21 -8
  197. data/lib/freeclimb/models/redirect_all_of.rb +20 -8
  198. data/lib/freeclimb/models/reject.rb +21 -8
  199. data/lib/freeclimb/models/reject_all_of.rb +20 -8
  200. data/lib/freeclimb/models/remove_from_conference.rb +21 -8
  201. data/lib/freeclimb/models/remove_from_conference_all_of.rb +20 -8
  202. data/lib/freeclimb/models/say.rb +21 -8
  203. data/lib/freeclimb/models/say_all_of.rb +20 -8
  204. data/lib/freeclimb/models/send_digits.rb +21 -8
  205. data/lib/freeclimb/models/send_digits_all_of.rb +20 -8
  206. data/lib/freeclimb/models/set_listen.rb +21 -8
  207. data/lib/freeclimb/models/set_listen_all_of.rb +20 -8
  208. data/lib/freeclimb/models/set_talk.rb +21 -8
  209. data/lib/freeclimb/models/set_talk_all_of.rb +20 -8
  210. data/lib/freeclimb/models/sms.rb +21 -8
  211. data/lib/freeclimb/models/sms_all_of.rb +20 -8
  212. data/lib/freeclimb/models/start_record_call.rb +21 -8
  213. data/lib/freeclimb/models/terminate_conference.rb +21 -8
  214. data/lib/freeclimb/models/terminate_conference_all_of.rb +20 -8
  215. data/lib/freeclimb/models/update_call_request.rb +20 -8
  216. data/lib/freeclimb/models/update_conference_participant_request.rb +20 -8
  217. data/lib/freeclimb/models/update_conference_request.rb +20 -8
  218. data/lib/freeclimb/version.rb +3 -3
  219. data/lib/freeclimb.rb +25 -53
  220. data/spec/api/default_api_spec.rb +1095 -668
  221. data/spec/api_client_spec.rb +7 -7
  222. data/spec/configuration_spec.rb +13 -5
  223. data/spec/factories.rb +80 -0
  224. data/spec/models/account_request_spec.rb +20 -13
  225. data/spec/models/account_result_spec.rb +81 -12
  226. data/spec/models/add_to_conference_spec.rb +7 -14
  227. data/spec/models/application_list_spec.rb +55 -12
  228. data/spec/models/application_request_spec.rb +49 -12
  229. data/spec/models/application_result_spec.rb +85 -12
  230. data/spec/models/available_number_list_spec.rb +55 -13
  231. data/spec/models/available_number_spec.rb +43 -12
  232. data/spec/models/buy_incoming_number_request_spec.rb +25 -12
  233. data/spec/models/call_list_spec.rb +55 -13
  234. data/spec/models/call_result_spec.rb +124 -12
  235. data/spec/models/capabilities_spec.rb +58 -0
  236. data/spec/models/conference_list_spec.rb +55 -12
  237. data/spec/models/conference_participant_list_spec.rb +55 -12
  238. data/spec/models/conference_participant_result_spec.rb +67 -12
  239. data/spec/models/conference_result_spec.rb +99 -13
  240. data/spec/models/create_conference_request_spec.rb +41 -13
  241. data/spec/models/create_conference_spec.rb +7 -14
  242. data/spec/models/dequeue_spec.rb +7 -14
  243. data/spec/models/enqueue_spec.rb +7 -14
  244. data/spec/models/filter_logs_request_spec.rb +15 -14
  245. data/spec/models/get_digits_spec.rb +13 -14
  246. data/spec/models/get_speech_spec.rb +8 -15
  247. data/spec/models/hangup_spec.rb +5 -12
  248. data/spec/models/incoming_number_list_spec.rb +55 -13
  249. data/spec/models/incoming_number_request_spec.rb +20 -13
  250. data/spec/models/incoming_number_result_spec.rb +91 -13
  251. data/spec/models/log_list_spec.rb +55 -12
  252. data/spec/models/log_result_spec.rb +53 -12
  253. data/spec/models/make_call_request_spec.rb +67 -12
  254. data/spec/models/message_request_spec.rb +61 -13
  255. data/spec/models/message_result_spec.rb +83 -12
  256. data/spec/models/messages_list_spec.rb +55 -12
  257. data/spec/models/mutable_resource_model_spec.rb +31 -13
  258. data/spec/models/out_dial_spec.rb +13 -14
  259. data/spec/models/pagination_model_spec.rb +49 -12
  260. data/spec/models/pause_spec.rb +7 -14
  261. data/spec/models/percl_command_spec.rb +7 -14
  262. data/spec/models/percl_script_spec.rb +7 -14
  263. data/spec/models/play_early_media_spec.rb +7 -14
  264. data/spec/models/play_spec.rb +13 -14
  265. data/spec/models/queue_list_spec.rb +54 -12
  266. data/spec/models/queue_member_list_spec.rb +55 -12
  267. data/spec/models/queue_member_spec.rb +37 -13
  268. data/spec/models/queue_request_spec.rb +20 -14
  269. data/spec/models/queue_result_spec.rb +73 -12
  270. data/spec/models/record_utterance_spec.rb +13 -14
  271. data/spec/models/recording_list_spec.rb +55 -12
  272. data/spec/models/recording_result_spec.rb +61 -12
  273. data/spec/models/redirect_spec.rb +7 -14
  274. data/spec/models/reject_spec.rb +5 -12
  275. data/spec/models/remove_from_conference_spec.rb +7 -14
  276. data/spec/models/say_spec.rb +8 -15
  277. data/spec/models/send_digits_spec.rb +13 -14
  278. data/spec/models/set_listen_spec.rb +7 -14
  279. data/spec/models/set_talk_spec.rb +7 -14
  280. data/spec/models/sms_spec.rb +7 -14
  281. data/spec/models/start_record_call_spec.rb +7 -14
  282. data/spec/models/terminate_conference_spec.rb +7 -14
  283. data/spec/models/update_call_request_spec.rb +19 -14
  284. data/spec/models/update_conference_participant_request_spec.rb +20 -13
  285. data/spec/models/update_conference_request_spec.rb +29 -12
  286. data/spec/quickstart_spec.rb +10 -0
  287. data/spec/spec_helper.rb +62 -7
  288. metadata +17 -38
  289. data/freeclimb-2.0.3.gem +0 -0
  290. data/freeclimb-2.1.0.gem +0 -0
  291. data/freeclimb-2.1.1.gem +0 -0
  292. data/freeclimb-2.1.2.gem +0 -0
  293. data/freeclimb-2.2.0.gem +0 -0
  294. data/freeclimb-3.0.0.gem +0 -0
  295. data/lib/freeclimb/utils.rb +0 -34
  296. data/spec/api/web_mocks.rb +0 -473
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class LogResult
@@ -70,6 +71,11 @@ module Freeclimb
70
71
  }
71
72
  end
72
73
 
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ attribute_map.values
77
+ end
78
+
73
79
  # Attribute type mapping.
74
80
  def self.openapi_types
75
81
  {
@@ -86,6 +92,13 @@ module Freeclimb
86
92
  # List of attributes with nullable: true
87
93
  def self.openapi_nullable
88
94
  Set.new([
95
+ :'timestamp',
96
+ :'level',
97
+ :'request_id',
98
+ :'account_id',
99
+ :'call_id',
100
+ :'message',
101
+ :'metadata'
89
102
  ])
90
103
  end
91
104
 
@@ -197,7 +210,9 @@ module Freeclimb
197
210
  def build_from_hash(attributes)
198
211
  return nil unless attributes.is_a?(Hash)
199
212
  self.class.openapi_types.each_pair do |key, type|
200
- if type =~ /\AArray<(.*)>/i
213
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
214
+ self.send("#{key}=", nil)
215
+ elsif type =~ /\AArray<(.*)>/i
201
216
  # check to ensure the input is an array given that the attribute
202
217
  # is documented as an array but the input is not
203
218
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -205,7 +220,7 @@ module Freeclimb
205
220
  end
206
221
  elsif !attributes[self.class.attribute_map[key]].nil?
207
222
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
208
- end # or else data not found in attributes(hash), not an issue as the data can be optional
223
+ end
209
224
  end
210
225
 
211
226
  self
@@ -217,8 +232,8 @@ module Freeclimb
217
232
  # @return [Object] Deserialized data
218
233
  def _deserialize(type, value)
219
234
  case type.to_sym
220
- when :DateTime
221
- DateTime.parse(value)
235
+ when :Time
236
+ Time.parse(value)
222
237
  when :Date
223
238
  Date.parse(value)
224
239
  when :String
@@ -248,7 +263,9 @@ module Freeclimb
248
263
  end
249
264
  end
250
265
  else # model
251
- Freeclimb.const_get(type).build_from_hash(value)
266
+ # models (e.g. Pet) or oneOf
267
+ klass = Freeclimb.const_get(type)
268
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
252
269
  end
253
270
  end
254
271
 
@@ -274,7 +291,7 @@ module Freeclimb
274
291
  is_nullable = self.class.openapi_nullable.include?(attr)
275
292
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
276
293
  end
277
-
294
+
278
295
  hash[param] = _to_hash(value)
279
296
  end
280
297
  hash
@@ -297,5 +314,7 @@ module Freeclimb
297
314
  value
298
315
  end
299
316
  end
317
+
300
318
  end
319
+
301
320
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MakeCallRequest
@@ -60,6 +61,11 @@ module Freeclimb
60
61
  }
61
62
  end
62
63
 
64
+ # Returns all the JSON keys this model knows about
65
+ def self.acceptable_attributes
66
+ attribute_map.values
67
+ end
68
+
63
69
  # Attribute type mapping.
64
70
  def self.openapi_types
65
71
  {
@@ -123,6 +129,8 @@ module Freeclimb
123
129
 
124
130
  if attributes.key?(:'timeout')
125
131
  self.timeout = attributes[:'timeout']
132
+ else
133
+ self.timeout = 30
126
134
  end
127
135
 
128
136
  if attributes.key?(:'parent_call_id')
@@ -203,7 +211,9 @@ module Freeclimb
203
211
  def build_from_hash(attributes)
204
212
  return nil unless attributes.is_a?(Hash)
205
213
  self.class.openapi_types.each_pair do |key, type|
206
- if type =~ /\AArray<(.*)>/i
214
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
215
+ self.send("#{key}=", nil)
216
+ elsif type =~ /\AArray<(.*)>/i
207
217
  # check to ensure the input is an array given that the attribute
208
218
  # is documented as an array but the input is not
209
219
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -211,7 +221,7 @@ module Freeclimb
211
221
  end
212
222
  elsif !attributes[self.class.attribute_map[key]].nil?
213
223
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
214
- end # or else data not found in attributes(hash), not an issue as the data can be optional
224
+ end
215
225
  end
216
226
 
217
227
  self
@@ -223,8 +233,8 @@ module Freeclimb
223
233
  # @return [Object] Deserialized data
224
234
  def _deserialize(type, value)
225
235
  case type.to_sym
226
- when :DateTime
227
- DateTime.parse(value)
236
+ when :Time
237
+ Time.parse(value)
228
238
  when :Date
229
239
  Date.parse(value)
230
240
  when :String
@@ -254,7 +264,9 @@ module Freeclimb
254
264
  end
255
265
  end
256
266
  else # model
257
- Freeclimb.const_get(type).build_from_hash(value)
267
+ # models (e.g. Pet) or oneOf
268
+ klass = Freeclimb.const_get(type)
269
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
258
270
  end
259
271
  end
260
272
 
@@ -280,7 +292,7 @@ module Freeclimb
280
292
  is_nullable = self.class.openapi_nullable.include?(attr)
281
293
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
282
294
  end
283
-
295
+
284
296
  hash[param] = _to_hash(value)
285
297
  end
286
298
  hash
@@ -303,5 +315,7 @@ module Freeclimb
303
315
  value
304
316
  end
305
317
  end
318
+
306
319
  end
320
+
307
321
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MessageRequest
@@ -56,6 +57,11 @@ module Freeclimb
56
57
  }
57
58
  end
58
59
 
60
+ # Returns all the JSON keys this model knows about
61
+ def self.acceptable_attributes
62
+ attribute_map.values
63
+ end
64
+
59
65
  # Attribute type mapping.
60
66
  def self.openapi_types
61
67
  {
@@ -206,7 +212,9 @@ module Freeclimb
206
212
  def build_from_hash(attributes)
207
213
  return nil unless attributes.is_a?(Hash)
208
214
  self.class.openapi_types.each_pair do |key, type|
209
- if type =~ /\AArray<(.*)>/i
215
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
216
+ self.send("#{key}=", nil)
217
+ elsif type =~ /\AArray<(.*)>/i
210
218
  # check to ensure the input is an array given that the attribute
211
219
  # is documented as an array but the input is not
212
220
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -214,7 +222,7 @@ module Freeclimb
214
222
  end
215
223
  elsif !attributes[self.class.attribute_map[key]].nil?
216
224
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
217
- end # or else data not found in attributes(hash), not an issue as the data can be optional
225
+ end
218
226
  end
219
227
 
220
228
  self
@@ -226,8 +234,8 @@ module Freeclimb
226
234
  # @return [Object] Deserialized data
227
235
  def _deserialize(type, value)
228
236
  case type.to_sym
229
- when :DateTime
230
- DateTime.parse(value)
237
+ when :Time
238
+ Time.parse(value)
231
239
  when :Date
232
240
  Date.parse(value)
233
241
  when :String
@@ -257,7 +265,9 @@ module Freeclimb
257
265
  end
258
266
  end
259
267
  else # model
260
- Freeclimb.const_get(type).build_from_hash(value)
268
+ # models (e.g. Pet) or oneOf
269
+ klass = Freeclimb.const_get(type)
270
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
261
271
  end
262
272
  end
263
273
 
@@ -283,7 +293,7 @@ module Freeclimb
283
293
  is_nullable = self.class.openapi_nullable.include?(attr)
284
294
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
285
295
  end
286
-
296
+
287
297
  hash[param] = _to_hash(value)
288
298
  end
289
299
  hash
@@ -306,5 +316,7 @@ module Freeclimb
306
316
  value
307
317
  end
308
318
  end
319
+
309
320
  end
321
+
310
322
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MessageRequestAllOf
@@ -40,6 +41,11 @@ module Freeclimb
40
41
  }
41
42
  end
42
43
 
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ attribute_map.values
47
+ end
48
+
43
49
  # Attribute type mapping.
44
50
  def self.openapi_types
45
51
  {
@@ -158,7 +164,9 @@ module Freeclimb
158
164
  def build_from_hash(attributes)
159
165
  return nil unless attributes.is_a?(Hash)
160
166
  self.class.openapi_types.each_pair do |key, type|
161
- if type =~ /\AArray<(.*)>/i
167
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
168
+ self.send("#{key}=", nil)
169
+ elsif type =~ /\AArray<(.*)>/i
162
170
  # check to ensure the input is an array given that the attribute
163
171
  # is documented as an array but the input is not
164
172
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -166,7 +174,7 @@ module Freeclimb
166
174
  end
167
175
  elsif !attributes[self.class.attribute_map[key]].nil?
168
176
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
- end # or else data not found in attributes(hash), not an issue as the data can be optional
177
+ end
170
178
  end
171
179
 
172
180
  self
@@ -178,8 +186,8 @@ module Freeclimb
178
186
  # @return [Object] Deserialized data
179
187
  def _deserialize(type, value)
180
188
  case type.to_sym
181
- when :DateTime
182
- DateTime.parse(value)
189
+ when :Time
190
+ Time.parse(value)
183
191
  when :Date
184
192
  Date.parse(value)
185
193
  when :String
@@ -209,7 +217,9 @@ module Freeclimb
209
217
  end
210
218
  end
211
219
  else # model
212
- Freeclimb.const_get(type).build_from_hash(value)
220
+ # models (e.g. Pet) or oneOf
221
+ klass = Freeclimb.const_get(type)
222
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
213
223
  end
214
224
  end
215
225
 
@@ -235,7 +245,7 @@ module Freeclimb
235
245
  is_nullable = self.class.openapi_nullable.include?(attr)
236
246
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
237
247
  end
238
-
248
+
239
249
  hash[param] = _to_hash(value)
240
250
  end
241
251
  hash
@@ -258,5 +268,7 @@ module Freeclimb
258
268
  value
259
269
  end
260
270
  end
271
+
261
272
  end
273
+
262
274
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MessageResult
@@ -90,6 +91,11 @@ module Freeclimb
90
91
  }
91
92
  end
92
93
 
94
+ # Returns all the JSON keys this model knows about
95
+ def self.acceptable_attributes
96
+ attribute_map.values
97
+ end
98
+
93
99
  # Attribute type mapping.
94
100
  def self.openapi_types
95
101
  {
@@ -111,6 +117,14 @@ module Freeclimb
111
117
  # List of attributes with nullable: true
112
118
  def self.openapi_nullable
113
119
  Set.new([
120
+ :'account_id',
121
+ :'message_id',
122
+ :'status',
123
+ :'from',
124
+ :'to',
125
+ :'text',
126
+ :'direction',
127
+ :'notification_url'
114
128
  ])
115
129
  end
116
130
 
@@ -255,7 +269,9 @@ module Freeclimb
255
269
  def build_from_hash(attributes)
256
270
  return nil unless attributes.is_a?(Hash)
257
271
  self.class.openapi_types.each_pair do |key, type|
258
- if type =~ /\AArray<(.*)>/i
272
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
273
+ self.send("#{key}=", nil)
274
+ elsif type =~ /\AArray<(.*)>/i
259
275
  # check to ensure the input is an array given that the attribute
260
276
  # is documented as an array but the input is not
261
277
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -263,7 +279,7 @@ module Freeclimb
263
279
  end
264
280
  elsif !attributes[self.class.attribute_map[key]].nil?
265
281
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
266
- end # or else data not found in attributes(hash), not an issue as the data can be optional
282
+ end
267
283
  end
268
284
 
269
285
  self
@@ -275,8 +291,8 @@ module Freeclimb
275
291
  # @return [Object] Deserialized data
276
292
  def _deserialize(type, value)
277
293
  case type.to_sym
278
- when :DateTime
279
- DateTime.parse(value)
294
+ when :Time
295
+ Time.parse(value)
280
296
  when :Date
281
297
  Date.parse(value)
282
298
  when :String
@@ -306,7 +322,9 @@ module Freeclimb
306
322
  end
307
323
  end
308
324
  else # model
309
- Freeclimb.const_get(type).build_from_hash(value)
325
+ # models (e.g. Pet) or oneOf
326
+ klass = Freeclimb.const_get(type)
327
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
310
328
  end
311
329
  end
312
330
 
@@ -332,7 +350,7 @@ module Freeclimb
332
350
  is_nullable = self.class.openapi_nullable.include?(attr)
333
351
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
334
352
  end
335
-
353
+
336
354
  hash[param] = _to_hash(value)
337
355
  end
338
356
  hash
@@ -355,5 +373,7 @@ module Freeclimb
355
373
  value
356
374
  end
357
375
  end
376
+
358
377
  end
378
+
359
379
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MessageResultAllOf
@@ -74,6 +75,11 @@ module Freeclimb
74
75
  }
75
76
  end
76
77
 
78
+ # Returns all the JSON keys this model knows about
79
+ def self.acceptable_attributes
80
+ attribute_map.values
81
+ end
82
+
77
83
  # Attribute type mapping.
78
84
  def self.openapi_types
79
85
  {
@@ -91,6 +97,14 @@ module Freeclimb
91
97
  # List of attributes with nullable: true
92
98
  def self.openapi_nullable
93
99
  Set.new([
100
+ :'account_id',
101
+ :'message_id',
102
+ :'status',
103
+ :'from',
104
+ :'to',
105
+ :'text',
106
+ :'direction',
107
+ :'notification_url'
94
108
  ])
95
109
  end
96
110
 
@@ -207,7 +221,9 @@ module Freeclimb
207
221
  def build_from_hash(attributes)
208
222
  return nil unless attributes.is_a?(Hash)
209
223
  self.class.openapi_types.each_pair do |key, type|
210
- if type =~ /\AArray<(.*)>/i
224
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
225
+ self.send("#{key}=", nil)
226
+ elsif type =~ /\AArray<(.*)>/i
211
227
  # check to ensure the input is an array given that the attribute
212
228
  # is documented as an array but the input is not
213
229
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -215,7 +231,7 @@ module Freeclimb
215
231
  end
216
232
  elsif !attributes[self.class.attribute_map[key]].nil?
217
233
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
218
- end # or else data not found in attributes(hash), not an issue as the data can be optional
234
+ end
219
235
  end
220
236
 
221
237
  self
@@ -227,8 +243,8 @@ module Freeclimb
227
243
  # @return [Object] Deserialized data
228
244
  def _deserialize(type, value)
229
245
  case type.to_sym
230
- when :DateTime
231
- DateTime.parse(value)
246
+ when :Time
247
+ Time.parse(value)
232
248
  when :Date
233
249
  Date.parse(value)
234
250
  when :String
@@ -258,7 +274,9 @@ module Freeclimb
258
274
  end
259
275
  end
260
276
  else # model
261
- Freeclimb.const_get(type).build_from_hash(value)
277
+ # models (e.g. Pet) or oneOf
278
+ klass = Freeclimb.const_get(type)
279
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
262
280
  end
263
281
  end
264
282
 
@@ -284,7 +302,7 @@ module Freeclimb
284
302
  is_nullable = self.class.openapi_nullable.include?(attr)
285
303
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
286
304
  end
287
-
305
+
288
306
  hash[param] = _to_hash(value)
289
307
  end
290
308
  hash
@@ -307,5 +325,7 @@ module Freeclimb
307
325
  value
308
326
  end
309
327
  end
328
+
310
329
  end
330
+
311
331
  end
@@ -4,13 +4,14 @@
4
4
  #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
-
7
+ Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module Freeclimb
16
17
  class MessagesList
@@ -52,6 +53,11 @@ module Freeclimb
52
53
  }
53
54
  end
54
55
 
56
+ # Returns all the JSON keys this model knows about
57
+ def self.acceptable_attributes
58
+ attribute_map.values
59
+ end
60
+
55
61
  # Attribute type mapping.
56
62
  def self.openapi_types
57
63
  {
@@ -69,6 +75,14 @@ module Freeclimb
69
75
  # List of attributes with nullable: true
70
76
  def self.openapi_nullable
71
77
  Set.new([
78
+ :'total',
79
+ :'start',
80
+ :'_end',
81
+ :'page',
82
+ :'num_pages',
83
+ :'page_size',
84
+ :'next_page_uri',
85
+ :'messages'
72
86
  ])
73
87
  end
74
88
 
@@ -183,7 +197,9 @@ module Freeclimb
183
197
  def build_from_hash(attributes)
184
198
  return nil unless attributes.is_a?(Hash)
185
199
  self.class.openapi_types.each_pair do |key, type|
186
- if type =~ /\AArray<(.*)>/i
200
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
201
+ self.send("#{key}=", nil)
202
+ elsif type =~ /\AArray<(.*)>/i
187
203
  # check to ensure the input is an array given that the attribute
188
204
  # is documented as an array but the input is not
189
205
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -191,7 +207,7 @@ module Freeclimb
191
207
  end
192
208
  elsif !attributes[self.class.attribute_map[key]].nil?
193
209
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
- end # or else data not found in attributes(hash), not an issue as the data can be optional
210
+ end
195
211
  end
196
212
 
197
213
  self
@@ -203,8 +219,8 @@ module Freeclimb
203
219
  # @return [Object] Deserialized data
204
220
  def _deserialize(type, value)
205
221
  case type.to_sym
206
- when :DateTime
207
- DateTime.parse(value)
222
+ when :Time
223
+ Time.parse(value)
208
224
  when :Date
209
225
  Date.parse(value)
210
226
  when :String
@@ -234,7 +250,9 @@ module Freeclimb
234
250
  end
235
251
  end
236
252
  else # model
237
- Freeclimb.const_get(type).build_from_hash(value)
253
+ # models (e.g. Pet) or oneOf
254
+ klass = Freeclimb.const_get(type)
255
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
238
256
  end
239
257
  end
240
258
 
@@ -260,7 +278,7 @@ module Freeclimb
260
278
  is_nullable = self.class.openapi_nullable.include?(attr)
261
279
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
262
280
  end
263
-
281
+
264
282
  hash[param] = _to_hash(value)
265
283
  end
266
284
  hash
@@ -283,5 +301,7 @@ module Freeclimb
283
301
  value
284
302
  end
285
303
  end
304
+
286
305
  end
306
+
287
307
  end