freeclimb 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +4 -1
  4. data/Gemfile.lock +41 -20
  5. data/README.md +34 -33
  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 -14
  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 -42
  23. data/docs/CallResultAllOf.md +35 -34
  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 +1670 -600
  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 +2 -3
  111. data/lib/freeclimb/api/default_api.rb +424 -272
  112. data/lib/freeclimb/api_client.rb +54 -50
  113. data/lib/freeclimb/api_error.rb +1 -1
  114. data/lib/freeclimb/configuration.rb +40 -10
  115. data/lib/freeclimb/models/account_request.rb +19 -7
  116. data/lib/freeclimb/models/account_result.rb +19 -7
  117. data/lib/freeclimb/models/account_result_all_of.rb +19 -7
  118. data/lib/freeclimb/models/add_to_conference.rb +19 -7
  119. data/lib/freeclimb/models/add_to_conference_all_of.rb +19 -7
  120. data/lib/freeclimb/models/application_list.rb +19 -7
  121. data/lib/freeclimb/models/application_list_all_of.rb +19 -7
  122. data/lib/freeclimb/models/application_request.rb +19 -7
  123. data/lib/freeclimb/models/application_result.rb +19 -7
  124. data/lib/freeclimb/models/application_result_all_of.rb +19 -7
  125. data/lib/freeclimb/models/available_number.rb +29 -8
  126. data/lib/freeclimb/models/available_number_list.rb +19 -7
  127. data/lib/freeclimb/models/available_number_list_all_of.rb +19 -7
  128. data/lib/freeclimb/models/buy_incoming_number_request.rb +19 -7
  129. data/lib/freeclimb/models/call_list.rb +19 -7
  130. data/lib/freeclimb/models/call_list_all_of.rb +19 -7
  131. data/lib/freeclimb/models/call_result.rb +19 -7
  132. data/lib/freeclimb/models/call_result_all_of.rb +19 -7
  133. data/lib/freeclimb/models/capabilities.rb +285 -0
  134. data/lib/freeclimb/models/conference_list.rb +19 -7
  135. data/lib/freeclimb/models/conference_list_all_of.rb +19 -7
  136. data/lib/freeclimb/models/conference_participant_list.rb +19 -7
  137. data/lib/freeclimb/models/conference_participant_list_all_of.rb +19 -7
  138. data/lib/freeclimb/models/conference_participant_result.rb +19 -7
  139. data/lib/freeclimb/models/conference_participant_result_all_of.rb +19 -7
  140. data/lib/freeclimb/models/conference_result.rb +19 -7
  141. data/lib/freeclimb/models/conference_result_all_of.rb +19 -7
  142. data/lib/freeclimb/models/create_conference.rb +19 -7
  143. data/lib/freeclimb/models/create_conference_all_of.rb +19 -7
  144. data/lib/freeclimb/models/create_conference_request.rb +19 -7
  145. data/lib/freeclimb/models/dequeue.rb +19 -7
  146. data/lib/freeclimb/models/enqueue.rb +19 -7
  147. data/lib/freeclimb/models/enqueue_all_of.rb +19 -7
  148. data/lib/freeclimb/models/filter_logs_request.rb +19 -7
  149. data/lib/freeclimb/models/get_digits.rb +19 -7
  150. data/lib/freeclimb/models/get_digits_all_of.rb +19 -7
  151. data/lib/freeclimb/models/get_speech.rb +19 -7
  152. data/lib/freeclimb/models/get_speech_all_of.rb +19 -7
  153. data/lib/freeclimb/models/hangup.rb +19 -7
  154. data/lib/freeclimb/models/hangup_all_of.rb +19 -7
  155. data/lib/freeclimb/models/incoming_number_list.rb +19 -7
  156. data/lib/freeclimb/models/incoming_number_list_all_of.rb +19 -7
  157. data/lib/freeclimb/models/incoming_number_request.rb +19 -7
  158. data/lib/freeclimb/models/incoming_number_result.rb +29 -8
  159. data/lib/freeclimb/models/incoming_number_result_all_of.rb +29 -8
  160. data/lib/freeclimb/models/log_list.rb +19 -7
  161. data/lib/freeclimb/models/log_list_all_of.rb +19 -7
  162. data/lib/freeclimb/models/log_result.rb +19 -7
  163. data/lib/freeclimb/models/make_call_request.rb +19 -7
  164. data/lib/freeclimb/models/message_request.rb +19 -7
  165. data/lib/freeclimb/models/message_request_all_of.rb +19 -7
  166. data/lib/freeclimb/models/message_result.rb +19 -7
  167. data/lib/freeclimb/models/message_result_all_of.rb +19 -7
  168. data/lib/freeclimb/models/messages_list.rb +19 -7
  169. data/lib/freeclimb/models/messages_list_all_of.rb +19 -7
  170. data/lib/freeclimb/models/mutable_resource_model.rb +19 -7
  171. data/lib/freeclimb/models/out_dial.rb +19 -7
  172. data/lib/freeclimb/models/out_dial_all_of.rb +19 -7
  173. data/lib/freeclimb/models/pagination_model.rb +19 -7
  174. data/lib/freeclimb/models/pause.rb +19 -7
  175. data/lib/freeclimb/models/pause_all_of.rb +19 -7
  176. data/lib/freeclimb/models/percl_command.rb +19 -7
  177. data/lib/freeclimb/models/percl_script.rb +19 -7
  178. data/lib/freeclimb/models/play.rb +19 -7
  179. data/lib/freeclimb/models/play_all_of.rb +19 -7
  180. data/lib/freeclimb/models/play_early_media.rb +19 -7
  181. data/lib/freeclimb/models/play_early_media_all_of.rb +19 -7
  182. data/lib/freeclimb/models/queue_list.rb +19 -7
  183. data/lib/freeclimb/models/queue_list_all_of.rb +19 -7
  184. data/lib/freeclimb/models/queue_member.rb +19 -7
  185. data/lib/freeclimb/models/queue_member_list.rb +19 -7
  186. data/lib/freeclimb/models/queue_member_list_all_of.rb +19 -7
  187. data/lib/freeclimb/models/queue_request.rb +19 -7
  188. data/lib/freeclimb/models/queue_result.rb +19 -7
  189. data/lib/freeclimb/models/queue_result_all_of.rb +19 -7
  190. data/lib/freeclimb/models/record_utterance.rb +19 -7
  191. data/lib/freeclimb/models/record_utterance_all_of.rb +19 -7
  192. data/lib/freeclimb/models/recording_list.rb +19 -7
  193. data/lib/freeclimb/models/recording_list_all_of.rb +19 -7
  194. data/lib/freeclimb/models/recording_result.rb +19 -7
  195. data/lib/freeclimb/models/recording_result_all_of.rb +19 -7
  196. data/lib/freeclimb/models/redirect.rb +19 -7
  197. data/lib/freeclimb/models/redirect_all_of.rb +19 -7
  198. data/lib/freeclimb/models/reject.rb +19 -7
  199. data/lib/freeclimb/models/reject_all_of.rb +19 -7
  200. data/lib/freeclimb/models/remove_from_conference.rb +19 -7
  201. data/lib/freeclimb/models/remove_from_conference_all_of.rb +19 -7
  202. data/lib/freeclimb/models/say.rb +19 -7
  203. data/lib/freeclimb/models/say_all_of.rb +19 -7
  204. data/lib/freeclimb/models/send_digits.rb +19 -7
  205. data/lib/freeclimb/models/send_digits_all_of.rb +19 -7
  206. data/lib/freeclimb/models/set_listen.rb +19 -7
  207. data/lib/freeclimb/models/set_listen_all_of.rb +19 -7
  208. data/lib/freeclimb/models/set_talk.rb +19 -7
  209. data/lib/freeclimb/models/set_talk_all_of.rb +19 -7
  210. data/lib/freeclimb/models/sms.rb +19 -7
  211. data/lib/freeclimb/models/sms_all_of.rb +19 -7
  212. data/lib/freeclimb/models/start_record_call.rb +19 -7
  213. data/lib/freeclimb/models/terminate_conference.rb +19 -7
  214. data/lib/freeclimb/models/terminate_conference_all_of.rb +19 -7
  215. data/lib/freeclimb/models/update_call_request.rb +19 -7
  216. data/lib/freeclimb/models/update_conference_participant_request.rb +19 -7
  217. data/lib/freeclimb/models/update_conference_request.rb +19 -7
  218. data/lib/freeclimb/version.rb +2 -2
  219. data/lib/freeclimb.rb +46 -46
  220. data/spec/api/default_api_spec.rb +1001 -18
  221. data/spec/api_client_spec.rb +4 -4
  222. data/spec/configuration_spec.rb +9 -9
  223. data/spec/factories.rb +80 -0
  224. data/spec/models/account_request_spec.rb +4 -11
  225. data/spec/models/account_result_spec.rb +5 -12
  226. data/spec/models/add_to_conference_spec.rb +4 -11
  227. data/spec/models/application_list_spec.rb +4 -11
  228. data/spec/models/application_request_spec.rb +4 -11
  229. data/spec/models/application_result_spec.rb +4 -11
  230. data/spec/models/available_number_list_spec.rb +4 -11
  231. data/spec/models/available_number_spec.rb +10 -11
  232. data/spec/models/buy_incoming_number_request_spec.rb +4 -11
  233. data/spec/models/call_list_spec.rb +4 -11
  234. data/spec/models/call_result_spec.rb +5 -12
  235. data/spec/models/{say_all_of_spec.rb → capabilities_spec.rb} +12 -19
  236. data/spec/models/conference_list_spec.rb +4 -11
  237. data/spec/models/conference_participant_list_spec.rb +4 -11
  238. data/spec/models/conference_participant_result_spec.rb +4 -11
  239. data/spec/models/conference_result_spec.rb +6 -13
  240. data/spec/models/create_conference_request_spec.rb +5 -12
  241. data/spec/models/create_conference_spec.rb +4 -11
  242. data/spec/models/dequeue_spec.rb +4 -11
  243. data/spec/models/enqueue_spec.rb +4 -11
  244. data/spec/models/filter_logs_request_spec.rb +4 -11
  245. data/spec/models/get_digits_spec.rb +4 -11
  246. data/spec/models/get_speech_spec.rb +4 -11
  247. data/spec/models/hangup_spec.rb +4 -11
  248. data/spec/models/incoming_number_list_spec.rb +4 -11
  249. data/spec/models/incoming_number_request_spec.rb +4 -11
  250. data/spec/models/incoming_number_result_spec.rb +10 -11
  251. data/spec/models/log_list_spec.rb +4 -11
  252. data/spec/models/log_result_spec.rb +5 -12
  253. data/spec/models/make_call_request_spec.rb +4 -11
  254. data/spec/models/message_request_spec.rb +4 -11
  255. data/spec/models/message_result_spec.rb +5 -12
  256. data/spec/models/messages_list_spec.rb +4 -11
  257. data/spec/models/mutable_resource_model_spec.rb +4 -11
  258. data/spec/models/out_dial_spec.rb +4 -11
  259. data/spec/models/pagination_model_spec.rb +4 -11
  260. data/spec/models/pause_spec.rb +4 -11
  261. data/spec/models/percl_command_spec.rb +4 -11
  262. data/spec/models/percl_script_spec.rb +4 -11
  263. data/spec/models/play_early_media_spec.rb +4 -11
  264. data/spec/models/play_spec.rb +4 -11
  265. data/spec/models/queue_list_spec.rb +4 -11
  266. data/spec/models/queue_member_list_spec.rb +4 -11
  267. data/spec/models/queue_member_spec.rb +4 -11
  268. data/spec/models/queue_request_spec.rb +4 -11
  269. data/spec/models/queue_result_spec.rb +4 -11
  270. data/spec/models/record_utterance_spec.rb +4 -11
  271. data/spec/models/recording_list_spec.rb +4 -11
  272. data/spec/models/recording_result_spec.rb +4 -11
  273. data/spec/models/redirect_spec.rb +4 -11
  274. data/spec/models/reject_spec.rb +4 -11
  275. data/spec/models/remove_from_conference_spec.rb +4 -11
  276. data/spec/models/say_spec.rb +4 -11
  277. data/spec/models/send_digits_spec.rb +4 -11
  278. data/spec/models/set_listen_spec.rb +4 -11
  279. data/spec/models/set_talk_spec.rb +4 -11
  280. data/spec/models/sms_spec.rb +4 -11
  281. data/spec/models/start_record_call_spec.rb +4 -11
  282. data/spec/models/terminate_conference_spec.rb +4 -11
  283. data/spec/models/update_call_request_spec.rb +5 -12
  284. data/spec/models/update_conference_participant_request_spec.rb +4 -11
  285. data/spec/models/update_conference_request_spec.rb +5 -12
  286. data/spec/quickstart_spec.rb +10 -0
  287. data/spec/spec_helper.rb +55 -1
  288. metadata +20 -117
  289. data/lib/freeclimb/utils.rb +0 -34
  290. data/spec/api/web_mocks.rb +0 -473
  291. data/spec/models/account_result_all_of_spec.rb +0 -81
  292. data/spec/models/add_to_conference_all_of_spec.rb +0 -95
  293. data/spec/models/application_list_all_of_spec.rb +0 -41
  294. data/spec/models/application_result_all_of_spec.rb +0 -89
  295. data/spec/models/available_number_list_all_of_spec.rb +0 -41
  296. data/spec/models/call_list_all_of_spec.rb +0 -41
  297. data/spec/models/call_result_all_of_spec.rb +0 -129
  298. data/spec/models/conference_list_all_of_spec.rb +0 -41
  299. data/spec/models/conference_participant_list_all_of_spec.rb +0 -41
  300. data/spec/models/conference_participant_result_all_of_spec.rb +0 -71
  301. data/spec/models/conference_result_all_of_spec.rb +0 -103
  302. data/spec/models/create_conference_all_of_spec.rb +0 -71
  303. data/spec/models/enqueue_all_of_spec.rb +0 -59
  304. data/spec/models/get_digits_all_of_spec.rb +0 -89
  305. data/spec/models/get_speech_all_of_spec.rb +0 -113
  306. data/spec/models/hangup_all_of_spec.rb +0 -41
  307. data/spec/models/incoming_number_list_all_of_spec.rb +0 -41
  308. data/spec/models/incoming_number_result_all_of_spec.rb +0 -89
  309. data/spec/models/log_list_all_of_spec.rb +0 -41
  310. data/spec/models/message_request_all_of_spec.rb +0 -65
  311. data/spec/models/message_result_all_of_spec.rb +0 -87
  312. data/spec/models/messages_list_all_of_spec.rb +0 -41
  313. data/spec/models/out_dial_all_of_spec.rb +0 -95
  314. data/spec/models/pause_all_of_spec.rb +0 -41
  315. data/spec/models/play_all_of_spec.rb +0 -59
  316. data/spec/models/play_early_media_all_of_spec.rb +0 -41
  317. data/spec/models/queue_list_all_of_spec.rb +0 -41
  318. data/spec/models/queue_member_list_all_of_spec.rb +0 -41
  319. data/spec/models/queue_result_all_of_spec.rb +0 -77
  320. data/spec/models/record_utterance_all_of_spec.rb +0 -77
  321. data/spec/models/recording_list_all_of_spec.rb +0 -41
  322. data/spec/models/recording_result_all_of_spec.rb +0 -65
  323. data/spec/models/redirect_all_of_spec.rb +0 -41
  324. data/spec/models/reject_all_of_spec.rb +0 -41
  325. data/spec/models/remove_from_conference_all_of_spec.rb +0 -41
  326. data/spec/models/send_digits_all_of_spec.rb +0 -53
  327. data/spec/models/set_listen_all_of_spec.rb +0 -47
  328. data/spec/models/set_talk_all_of_spec.rb +0 -47
  329. data/spec/models/sms_all_of_spec.rb +0 -59
  330. data/spec/models/terminate_conference_all_of_spec.rb +0 -41
@@ -0,0 +1,285 @@
1
+ =begin
2
+ #FreeClimb API
3
+
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
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.4.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Freeclimb
17
+ # Details for which features this number may be used.
18
+ class Capabilities
19
+ # Indicates whether a number can be used for voice calls. Replaces voiceEnabled.
20
+ attr_accessor :voice
21
+
22
+ # Indicates whether a number can be used SMS messaging. Replaces smsEnabled.
23
+ attr_accessor :sms
24
+
25
+ # Indicates that a number is toll-free and will make toll-free calls, and when enabled, toll-free messages.
26
+ attr_accessor :toll_free
27
+
28
+ # Indicates that a number, if sms is true, will be used for 10DLC messaging
29
+ attr_accessor :ten_dlc
30
+
31
+ # Indicates that a number is a short code and can be used for short code messaging
32
+ attr_accessor :short_code
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'voice' => :'voice',
38
+ :'sms' => :'sms',
39
+ :'toll_free' => :'tollFree',
40
+ :'ten_dlc' => :'tenDLC',
41
+ :'short_code' => :'shortCode'
42
+ }
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'voice' => :'Boolean',
54
+ :'sms' => :'Boolean',
55
+ :'toll_free' => :'Boolean',
56
+ :'ten_dlc' => :'Boolean',
57
+ :'short_code' => :'Boolean'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ if (!attributes.is_a?(Hash))
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::Capabilities` initialize method"
72
+ end
73
+
74
+ # check to see if the attribute exists and convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!self.class.attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::Capabilities`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'voice')
83
+ self.voice = attributes[:'voice']
84
+ end
85
+
86
+ if attributes.key?(:'sms')
87
+ self.sms = attributes[:'sms']
88
+ end
89
+
90
+ if attributes.key?(:'toll_free')
91
+ self.toll_free = attributes[:'toll_free']
92
+ end
93
+
94
+ if attributes.key?(:'ten_dlc')
95
+ self.ten_dlc = attributes[:'ten_dlc']
96
+ end
97
+
98
+ if attributes.key?(:'short_code')
99
+ self.short_code = attributes[:'short_code']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ if @voice.nil?
108
+ invalid_properties.push('invalid value for "voice", voice cannot be nil.')
109
+ end
110
+
111
+ if @sms.nil?
112
+ invalid_properties.push('invalid value for "sms", sms cannot be nil.')
113
+ end
114
+
115
+ if @toll_free.nil?
116
+ invalid_properties.push('invalid value for "toll_free", toll_free cannot be nil.')
117
+ end
118
+
119
+ if @ten_dlc.nil?
120
+ invalid_properties.push('invalid value for "ten_dlc", ten_dlc cannot be nil.')
121
+ end
122
+
123
+ if @short_code.nil?
124
+ invalid_properties.push('invalid value for "short_code", short_code cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ return false if @voice.nil?
134
+ return false if @sms.nil?
135
+ return false if @toll_free.nil?
136
+ return false if @ten_dlc.nil?
137
+ return false if @short_code.nil?
138
+ true
139
+ end
140
+
141
+ # Checks equality by comparing each attribute.
142
+ # @param [Object] Object to be compared
143
+ def ==(o)
144
+ return true if self.equal?(o)
145
+ self.class == o.class &&
146
+ voice == o.voice &&
147
+ sms == o.sms &&
148
+ toll_free == o.toll_free &&
149
+ ten_dlc == o.ten_dlc &&
150
+ short_code == o.short_code
151
+ end
152
+
153
+ # @see the `==` method
154
+ # @param [Object] Object to be compared
155
+ def eql?(o)
156
+ self == o
157
+ end
158
+
159
+ # Calculates hash code according to all attributes.
160
+ # @return [Integer] Hash code
161
+ def hash
162
+ [voice, sms, toll_free, ten_dlc, short_code].hash
163
+ end
164
+
165
+ # Builds the object from hash
166
+ # @param [Hash] attributes Model attributes in the form of hash
167
+ # @return [Object] Returns the model itself
168
+ def self.build_from_hash(attributes)
169
+ new.build_from_hash(attributes)
170
+ end
171
+
172
+ # Builds the object from hash
173
+ # @param [Hash] attributes Model attributes in the form of hash
174
+ # @return [Object] Returns the model itself
175
+ def build_from_hash(attributes)
176
+ return nil unless attributes.is_a?(Hash)
177
+ self.class.openapi_types.each_pair do |key, type|
178
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
179
+ self.send("#{key}=", nil)
180
+ elsif type =~ /\AArray<(.*)>/i
181
+ # check to ensure the input is an array given that the attribute
182
+ # is documented as an array but the input is not
183
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
184
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
+ end
186
+ elsif !attributes[self.class.attribute_map[key]].nil?
187
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
188
+ end
189
+ end
190
+
191
+ self
192
+ end
193
+
194
+ # Deserializes the data based on type
195
+ # @param string type Data type
196
+ # @param string value Value to be deserialized
197
+ # @return [Object] Deserialized data
198
+ def _deserialize(type, value)
199
+ case type.to_sym
200
+ when :Time
201
+ Time.parse(value)
202
+ when :Date
203
+ Date.parse(value)
204
+ when :String
205
+ value.to_s
206
+ when :Integer
207
+ value.to_i
208
+ when :Float
209
+ value.to_f
210
+ when :Boolean
211
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
+ true
213
+ else
214
+ false
215
+ end
216
+ when :Object
217
+ # generic object (usually a Hash), return directly
218
+ value
219
+ when /\AArray<(?<inner_type>.+)>\z/
220
+ inner_type = Regexp.last_match[:inner_type]
221
+ value.map { |v| _deserialize(inner_type, v) }
222
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
+ k_type = Regexp.last_match[:k_type]
224
+ v_type = Regexp.last_match[:v_type]
225
+ {}.tap do |hash|
226
+ value.each do |k, v|
227
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
+ end
229
+ end
230
+ else # model
231
+ # models (e.g. Pet) or oneOf
232
+ klass = Freeclimb.const_get(type)
233
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
+ end
235
+ end
236
+
237
+ # Returns the string representation of the object
238
+ # @return [String] String presentation of the object
239
+ def to_s
240
+ to_hash.to_s
241
+ end
242
+
243
+ # to_body is an alias to to_hash (backward compatibility)
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_body
246
+ to_hash
247
+ end
248
+
249
+ # Returns the object in the form of hash
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_hash
252
+ hash = {}
253
+ self.class.attribute_map.each_pair do |attr, param|
254
+ value = self.send(attr)
255
+ if value.nil?
256
+ is_nullable = self.class.openapi_nullable.include?(attr)
257
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
258
+ end
259
+
260
+ hash[param] = _to_hash(value)
261
+ end
262
+ hash
263
+ end
264
+
265
+ # Outputs non-array value in the form of hash
266
+ # For object, use to_hash. Otherwise, just return the value
267
+ # @param [Object] value Any valid value
268
+ # @return [Hash] Returns the value in the form of hash
269
+ def _to_hash(value)
270
+ if value.is_a?(Array)
271
+ value.compact.map { |v| _to_hash(v) }
272
+ elsif value.is_a?(Hash)
273
+ {}.tap do |hash|
274
+ value.each { |k, v| hash[k] = _to_hash(v) }
275
+ end
276
+ elsif value.respond_to? :to_hash
277
+ value.to_hash
278
+ else
279
+ value
280
+ end
281
+ end
282
+
283
+ end
284
+
285
+ end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
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 ConferenceList
@@ -51,6 +52,11 @@ module Freeclimb
51
52
  }
52
53
  end
53
54
 
55
+ # Returns all the JSON keys this model knows about
56
+ def self.acceptable_attributes
57
+ attribute_map.values
58
+ end
59
+
54
60
  # Attribute type mapping.
55
61
  def self.openapi_types
56
62
  {
@@ -182,7 +188,9 @@ module Freeclimb
182
188
  def build_from_hash(attributes)
183
189
  return nil unless attributes.is_a?(Hash)
184
190
  self.class.openapi_types.each_pair do |key, type|
185
- if type =~ /\AArray<(.*)>/i
191
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
192
+ self.send("#{key}=", nil)
193
+ elsif type =~ /\AArray<(.*)>/i
186
194
  # check to ensure the input is an array given that the attribute
187
195
  # is documented as an array but the input is not
188
196
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -190,7 +198,7 @@ module Freeclimb
190
198
  end
191
199
  elsif !attributes[self.class.attribute_map[key]].nil?
192
200
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
- end # or else data not found in attributes(hash), not an issue as the data can be optional
201
+ end
194
202
  end
195
203
 
196
204
  self
@@ -202,8 +210,8 @@ module Freeclimb
202
210
  # @return [Object] Deserialized data
203
211
  def _deserialize(type, value)
204
212
  case type.to_sym
205
- when :DateTime
206
- DateTime.parse(value)
213
+ when :Time
214
+ Time.parse(value)
207
215
  when :Date
208
216
  Date.parse(value)
209
217
  when :String
@@ -233,7 +241,9 @@ module Freeclimb
233
241
  end
234
242
  end
235
243
  else # model
236
- Freeclimb.const_get(type).build_from_hash(value)
244
+ # models (e.g. Pet) or oneOf
245
+ klass = Freeclimb.const_get(type)
246
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
237
247
  end
238
248
  end
239
249
 
@@ -259,7 +269,7 @@ module Freeclimb
259
269
  is_nullable = self.class.openapi_nullable.include?(attr)
260
270
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
261
271
  end
262
-
272
+
263
273
  hash[param] = _to_hash(value)
264
274
  end
265
275
  hash
@@ -282,5 +292,7 @@ module Freeclimb
282
292
  value
283
293
  end
284
294
  end
295
+
285
296
  end
297
+
286
298
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
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 ConferenceListAllOf
@@ -23,6 +24,11 @@ module Freeclimb
23
24
  }
24
25
  end
25
26
 
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
26
32
  # Attribute type mapping.
27
33
  def self.openapi_types
28
34
  {
@@ -104,7 +110,9 @@ module Freeclimb
104
110
  def build_from_hash(attributes)
105
111
  return nil unless attributes.is_a?(Hash)
106
112
  self.class.openapi_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
108
116
  # check to ensure the input is an array given that the attribute
109
117
  # is documented as an array but the input is not
110
118
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -112,7 +120,7 @@ module Freeclimb
112
120
  end
113
121
  elsif !attributes[self.class.attribute_map[key]].nil?
114
122
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
- end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
116
124
  end
117
125
 
118
126
  self
@@ -124,8 +132,8 @@ module Freeclimb
124
132
  # @return [Object] Deserialized data
125
133
  def _deserialize(type, value)
126
134
  case type.to_sym
127
- when :DateTime
128
- DateTime.parse(value)
135
+ when :Time
136
+ Time.parse(value)
129
137
  when :Date
130
138
  Date.parse(value)
131
139
  when :String
@@ -155,7 +163,9 @@ module Freeclimb
155
163
  end
156
164
  end
157
165
  else # model
158
- Freeclimb.const_get(type).build_from_hash(value)
166
+ # models (e.g. Pet) or oneOf
167
+ klass = Freeclimb.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
159
169
  end
160
170
  end
161
171
 
@@ -181,7 +191,7 @@ module Freeclimb
181
191
  is_nullable = self.class.openapi_nullable.include?(attr)
182
192
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
193
  end
184
-
194
+
185
195
  hash[param] = _to_hash(value)
186
196
  end
187
197
  hash
@@ -204,5 +214,7 @@ module Freeclimb
204
214
  value
205
215
  end
206
216
  end
217
+
207
218
  end
219
+
208
220
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
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 ConferenceParticipantList
@@ -51,6 +52,11 @@ module Freeclimb
51
52
  }
52
53
  end
53
54
 
55
+ # Returns all the JSON keys this model knows about
56
+ def self.acceptable_attributes
57
+ attribute_map.values
58
+ end
59
+
54
60
  # Attribute type mapping.
55
61
  def self.openapi_types
56
62
  {
@@ -182,7 +188,9 @@ module Freeclimb
182
188
  def build_from_hash(attributes)
183
189
  return nil unless attributes.is_a?(Hash)
184
190
  self.class.openapi_types.each_pair do |key, type|
185
- if type =~ /\AArray<(.*)>/i
191
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
192
+ self.send("#{key}=", nil)
193
+ elsif type =~ /\AArray<(.*)>/i
186
194
  # check to ensure the input is an array given that the attribute
187
195
  # is documented as an array but the input is not
188
196
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -190,7 +198,7 @@ module Freeclimb
190
198
  end
191
199
  elsif !attributes[self.class.attribute_map[key]].nil?
192
200
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
- end # or else data not found in attributes(hash), not an issue as the data can be optional
201
+ end
194
202
  end
195
203
 
196
204
  self
@@ -202,8 +210,8 @@ module Freeclimb
202
210
  # @return [Object] Deserialized data
203
211
  def _deserialize(type, value)
204
212
  case type.to_sym
205
- when :DateTime
206
- DateTime.parse(value)
213
+ when :Time
214
+ Time.parse(value)
207
215
  when :Date
208
216
  Date.parse(value)
209
217
  when :String
@@ -233,7 +241,9 @@ module Freeclimb
233
241
  end
234
242
  end
235
243
  else # model
236
- Freeclimb.const_get(type).build_from_hash(value)
244
+ # models (e.g. Pet) or oneOf
245
+ klass = Freeclimb.const_get(type)
246
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
237
247
  end
238
248
  end
239
249
 
@@ -259,7 +269,7 @@ module Freeclimb
259
269
  is_nullable = self.class.openapi_nullable.include?(attr)
260
270
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
261
271
  end
262
-
272
+
263
273
  hash[param] = _to_hash(value)
264
274
  end
265
275
  hash
@@ -282,5 +292,7 @@ module Freeclimb
282
292
  value
283
293
  end
284
294
  end
295
+
285
296
  end
297
+
286
298
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
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 ConferenceParticipantListAllOf
@@ -23,6 +24,11 @@ module Freeclimb
23
24
  }
24
25
  end
25
26
 
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
26
32
  # Attribute type mapping.
27
33
  def self.openapi_types
28
34
  {
@@ -104,7 +110,9 @@ module Freeclimb
104
110
  def build_from_hash(attributes)
105
111
  return nil unless attributes.is_a?(Hash)
106
112
  self.class.openapi_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
108
116
  # check to ensure the input is an array given that the attribute
109
117
  # is documented as an array but the input is not
110
118
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -112,7 +120,7 @@ module Freeclimb
112
120
  end
113
121
  elsif !attributes[self.class.attribute_map[key]].nil?
114
122
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
- end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
116
124
  end
117
125
 
118
126
  self
@@ -124,8 +132,8 @@ module Freeclimb
124
132
  # @return [Object] Deserialized data
125
133
  def _deserialize(type, value)
126
134
  case type.to_sym
127
- when :DateTime
128
- DateTime.parse(value)
135
+ when :Time
136
+ Time.parse(value)
129
137
  when :Date
130
138
  Date.parse(value)
131
139
  when :String
@@ -155,7 +163,9 @@ module Freeclimb
155
163
  end
156
164
  end
157
165
  else # model
158
- Freeclimb.const_get(type).build_from_hash(value)
166
+ # models (e.g. Pet) or oneOf
167
+ klass = Freeclimb.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
159
169
  end
160
170
  end
161
171
 
@@ -181,7 +191,7 @@ module Freeclimb
181
191
  is_nullable = self.class.openapi_nullable.include?(attr)
182
192
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
193
  end
184
-
194
+
185
195
  hash[param] = _to_hash(value)
186
196
  end
187
197
  hash
@@ -204,5 +214,7 @@ module Freeclimb
204
214
  value
205
215
  end
206
216
  end
217
+
207
218
  end
219
+
208
220
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
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 ConferenceParticipantResult
@@ -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
  {
@@ -201,7 +207,9 @@ module Freeclimb
201
207
  def build_from_hash(attributes)
202
208
  return nil unless attributes.is_a?(Hash)
203
209
  self.class.openapi_types.each_pair do |key, type|
204
- if type =~ /\AArray<(.*)>/i
210
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
211
+ self.send("#{key}=", nil)
212
+ elsif type =~ /\AArray<(.*)>/i
205
213
  # check to ensure the input is an array given that the attribute
206
214
  # is documented as an array but the input is not
207
215
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -209,7 +217,7 @@ module Freeclimb
209
217
  end
210
218
  elsif !attributes[self.class.attribute_map[key]].nil?
211
219
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
212
- end # or else data not found in attributes(hash), not an issue as the data can be optional
220
+ end
213
221
  end
214
222
 
215
223
  self
@@ -221,8 +229,8 @@ module Freeclimb
221
229
  # @return [Object] Deserialized data
222
230
  def _deserialize(type, value)
223
231
  case type.to_sym
224
- when :DateTime
225
- DateTime.parse(value)
232
+ when :Time
233
+ Time.parse(value)
226
234
  when :Date
227
235
  Date.parse(value)
228
236
  when :String
@@ -252,7 +260,9 @@ module Freeclimb
252
260
  end
253
261
  end
254
262
  else # model
255
- Freeclimb.const_get(type).build_from_hash(value)
263
+ # models (e.g. Pet) or oneOf
264
+ klass = Freeclimb.const_get(type)
265
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
256
266
  end
257
267
  end
258
268
 
@@ -278,7 +288,7 @@ module Freeclimb
278
288
  is_nullable = self.class.openapi_nullable.include?(attr)
279
289
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
280
290
  end
281
-
291
+
282
292
  hash[param] = _to_hash(value)
283
293
  end
284
294
  hash
@@ -301,5 +311,7 @@ module Freeclimb
301
311
  value
302
312
  end
303
313
  end
314
+
304
315
  end
316
+
305
317
  end