freeclimb 3.0.2 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +4 -1
  4. data/Gemfile.lock +33 -19
  5. data/README.md +40 -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 +19 -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 +1625 -647
  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 +35 -30
  51. data/docs/IncomingNumberResultAllOf.md +27 -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/Park.md +22 -0
  67. data/docs/ParkAllOf.md +22 -0
  68. data/docs/Pause.md +7 -6
  69. data/docs/PauseAllOf.md +7 -6
  70. data/docs/PerclCommand.md +7 -6
  71. data/docs/PerclScript.md +7 -6
  72. data/docs/Play.md +13 -12
  73. data/docs/PlayAllOf.md +13 -12
  74. data/docs/PlayEarlyMedia.md +7 -6
  75. data/docs/PlayEarlyMediaAllOf.md +7 -6
  76. data/docs/QueueList.md +21 -20
  77. data/docs/QueueListAllOf.md +7 -6
  78. data/docs/QueueMember.md +15 -14
  79. data/docs/QueueMemberList.md +21 -20
  80. data/docs/QueueMemberListAllOf.md +7 -6
  81. data/docs/QueueRequest.md +9 -8
  82. data/docs/QueueResult.md +27 -26
  83. data/docs/QueueResultAllOf.md +19 -18
  84. data/docs/RecordUtterance.md +19 -18
  85. data/docs/RecordUtteranceAllOf.md +19 -18
  86. data/docs/RecordingList.md +21 -20
  87. data/docs/RecordingListAllOf.md +7 -6
  88. data/docs/RecordingResult.md +23 -22
  89. data/docs/RecordingResultAllOf.md +15 -14
  90. data/docs/Redirect.md +7 -6
  91. data/docs/RedirectAllOf.md +7 -6
  92. data/docs/Reject.md +7 -6
  93. data/docs/RejectAllOf.md +7 -6
  94. data/docs/RemoveFromConference.md +7 -6
  95. data/docs/RemoveFromConferenceAllOf.md +7 -6
  96. data/docs/Say.md +15 -14
  97. data/docs/SayAllOf.md +15 -14
  98. data/docs/SendDigits.md +11 -10
  99. data/docs/SendDigitsAllOf.md +11 -10
  100. data/docs/SetListen.md +9 -8
  101. data/docs/SetListenAllOf.md +9 -8
  102. data/docs/SetTalk.md +9 -8
  103. data/docs/SetTalkAllOf.md +9 -8
  104. data/docs/Sms.md +13 -12
  105. data/docs/SmsAllOf.md +13 -12
  106. data/docs/StartRecordCall.md +3 -4
  107. data/docs/TerminateConference.md +7 -6
  108. data/docs/TerminateConferenceAllOf.md +7 -6
  109. data/docs/Unpark.md +15 -0
  110. data/docs/UpdateCallRequest.md +7 -6
  111. data/docs/UpdateConferenceParticipantRequest.md +9 -8
  112. data/docs/UpdateConferenceRequest.md +11 -10
  113. data/freeclimb.gemspec +3 -4
  114. data/lib/freeclimb/api/default_api.rb +434 -278
  115. data/lib/freeclimb/api_client.rb +55 -51
  116. data/lib/freeclimb/api_error.rb +2 -2
  117. data/lib/freeclimb/configuration.rb +41 -11
  118. data/lib/freeclimb/models/account_request.rb +20 -8
  119. data/lib/freeclimb/models/account_result.rb +39 -8
  120. data/lib/freeclimb/models/account_result_all_of.rb +39 -8
  121. data/lib/freeclimb/models/add_to_conference.rb +21 -8
  122. data/lib/freeclimb/models/add_to_conference_all_of.rb +20 -8
  123. data/lib/freeclimb/models/application_list.rb +28 -8
  124. data/lib/freeclimb/models/application_list_all_of.rb +21 -8
  125. data/lib/freeclimb/models/application_request.rb +20 -8
  126. data/lib/freeclimb/models/application_result.rb +29 -8
  127. data/lib/freeclimb/models/application_result_all_of.rb +29 -8
  128. data/lib/freeclimb/models/available_number.rb +46 -9
  129. data/lib/freeclimb/models/available_number_list.rb +28 -8
  130. data/lib/freeclimb/models/available_number_list_all_of.rb +21 -8
  131. data/lib/freeclimb/models/buy_incoming_number_request.rb +20 -8
  132. data/lib/freeclimb/models/call_list.rb +28 -8
  133. data/lib/freeclimb/models/call_list_all_of.rb +21 -8
  134. data/lib/freeclimb/models/call_result.rb +35 -8
  135. data/lib/freeclimb/models/call_result_all_of.rb +35 -8
  136. data/lib/freeclimb/models/capabilities.rb +265 -0
  137. data/lib/freeclimb/models/conference_list.rb +28 -8
  138. data/lib/freeclimb/models/conference_list_all_of.rb +21 -8
  139. data/lib/freeclimb/models/conference_participant_list.rb +28 -8
  140. data/lib/freeclimb/models/conference_participant_list_all_of.rb +21 -8
  141. data/lib/freeclimb/models/conference_participant_result.rb +26 -8
  142. data/lib/freeclimb/models/conference_participant_result_all_of.rb +26 -8
  143. data/lib/freeclimb/models/conference_result.rb +30 -8
  144. data/lib/freeclimb/models/conference_result_all_of.rb +30 -8
  145. data/lib/freeclimb/models/create_conference.rb +21 -8
  146. data/lib/freeclimb/models/create_conference_all_of.rb +20 -8
  147. data/lib/freeclimb/models/create_conference_request.rb +20 -8
  148. data/lib/freeclimb/models/dequeue.rb +21 -8
  149. data/lib/freeclimb/models/enqueue.rb +21 -8
  150. data/lib/freeclimb/models/enqueue_all_of.rb +20 -8
  151. data/lib/freeclimb/models/filter_logs_request.rb +20 -8
  152. data/lib/freeclimb/models/get_digits.rb +21 -8
  153. data/lib/freeclimb/models/get_digits_all_of.rb +20 -8
  154. data/lib/freeclimb/models/get_speech.rb +21 -8
  155. data/lib/freeclimb/models/get_speech_all_of.rb +20 -8
  156. data/lib/freeclimb/models/hangup.rb +21 -8
  157. data/lib/freeclimb/models/hangup_all_of.rb +20 -8
  158. data/lib/freeclimb/models/incoming_number_list.rb +28 -8
  159. data/lib/freeclimb/models/incoming_number_list_all_of.rb +21 -8
  160. data/lib/freeclimb/models/incoming_number_request.rb +20 -8
  161. data/lib/freeclimb/models/incoming_number_result.rb +50 -9
  162. data/lib/freeclimb/models/incoming_number_result_all_of.rb +50 -9
  163. data/lib/freeclimb/models/log_list.rb +28 -8
  164. data/lib/freeclimb/models/log_list_all_of.rb +21 -8
  165. data/lib/freeclimb/models/log_result.rb +27 -8
  166. data/lib/freeclimb/models/make_call_request.rb +22 -8
  167. data/lib/freeclimb/models/message_request.rb +20 -8
  168. data/lib/freeclimb/models/message_request_all_of.rb +20 -8
  169. data/lib/freeclimb/models/message_result.rb +28 -8
  170. data/lib/freeclimb/models/message_result_all_of.rb +28 -8
  171. data/lib/freeclimb/models/messages_list.rb +28 -8
  172. data/lib/freeclimb/models/messages_list_all_of.rb +21 -8
  173. data/lib/freeclimb/models/mutable_resource_model.rb +20 -8
  174. data/lib/freeclimb/models/out_dial.rb +21 -8
  175. data/lib/freeclimb/models/out_dial_all_of.rb +20 -8
  176. data/lib/freeclimb/models/pagination_model.rb +27 -8
  177. data/lib/freeclimb/models/park.rb +263 -0
  178. data/lib/freeclimb/models/park_all_of.rb +249 -0
  179. data/lib/freeclimb/models/pause.rb +21 -8
  180. data/lib/freeclimb/models/pause_all_of.rb +20 -8
  181. data/lib/freeclimb/models/percl_command.rb +38 -8
  182. data/lib/freeclimb/models/percl_script.rb +24 -8
  183. data/lib/freeclimb/models/play.rb +21 -8
  184. data/lib/freeclimb/models/play_all_of.rb +20 -8
  185. data/lib/freeclimb/models/play_early_media.rb +21 -8
  186. data/lib/freeclimb/models/play_early_media_all_of.rb +20 -8
  187. data/lib/freeclimb/models/queue_list.rb +28 -8
  188. data/lib/freeclimb/models/queue_list_all_of.rb +21 -8
  189. data/lib/freeclimb/models/queue_member.rb +25 -8
  190. data/lib/freeclimb/models/queue_member_list.rb +28 -8
  191. data/lib/freeclimb/models/queue_member_list_all_of.rb +21 -8
  192. data/lib/freeclimb/models/queue_request.rb +22 -8
  193. data/lib/freeclimb/models/queue_result.rb +27 -8
  194. data/lib/freeclimb/models/queue_result_all_of.rb +27 -8
  195. data/lib/freeclimb/models/record_utterance.rb +21 -8
  196. data/lib/freeclimb/models/record_utterance_all_of.rb +20 -8
  197. data/lib/freeclimb/models/recording_list.rb +28 -8
  198. data/lib/freeclimb/models/recording_list_all_of.rb +21 -8
  199. data/lib/freeclimb/models/recording_result.rb +25 -8
  200. data/lib/freeclimb/models/recording_result_all_of.rb +25 -8
  201. data/lib/freeclimb/models/redirect.rb +21 -8
  202. data/lib/freeclimb/models/redirect_all_of.rb +20 -8
  203. data/lib/freeclimb/models/reject.rb +21 -8
  204. data/lib/freeclimb/models/reject_all_of.rb +20 -8
  205. data/lib/freeclimb/models/remove_from_conference.rb +21 -8
  206. data/lib/freeclimb/models/remove_from_conference_all_of.rb +20 -8
  207. data/lib/freeclimb/models/say.rb +23 -8
  208. data/lib/freeclimb/models/say_all_of.rb +22 -8
  209. data/lib/freeclimb/models/send_digits.rb +21 -8
  210. data/lib/freeclimb/models/send_digits_all_of.rb +20 -8
  211. data/lib/freeclimb/models/set_listen.rb +21 -8
  212. data/lib/freeclimb/models/set_listen_all_of.rb +20 -8
  213. data/lib/freeclimb/models/set_talk.rb +21 -8
  214. data/lib/freeclimb/models/set_talk_all_of.rb +20 -8
  215. data/lib/freeclimb/models/sms.rb +21 -8
  216. data/lib/freeclimb/models/sms_all_of.rb +20 -8
  217. data/lib/freeclimb/models/start_record_call.rb +21 -8
  218. data/lib/freeclimb/models/terminate_conference.rb +21 -8
  219. data/lib/freeclimb/models/terminate_conference_all_of.rb +20 -8
  220. data/lib/freeclimb/models/unpark.rb +222 -0
  221. data/lib/freeclimb/models/update_call_request.rb +20 -8
  222. data/lib/freeclimb/models/update_conference_participant_request.rb +20 -8
  223. data/lib/freeclimb/models/update_conference_request.rb +20 -8
  224. data/lib/freeclimb/version.rb +3 -3
  225. data/lib/freeclimb.rb +28 -52
  226. data/spec/api/default_api_spec.rb +1004 -21
  227. data/spec/api_client_spec.rb +5 -5
  228. data/spec/configuration_spec.rb +10 -10
  229. data/spec/factories.rb +80 -0
  230. data/spec/models/account_request_spec.rb +5 -12
  231. data/spec/models/account_result_spec.rb +10 -13
  232. data/spec/models/add_to_conference_spec.rb +5 -12
  233. data/spec/models/application_list_spec.rb +5 -12
  234. data/spec/models/application_request_spec.rb +5 -12
  235. data/spec/models/application_result_spec.rb +5 -12
  236. data/spec/models/available_number_list_spec.rb +5 -12
  237. data/spec/models/available_number_spec.rb +11 -12
  238. data/spec/models/buy_incoming_number_request_spec.rb +5 -12
  239. data/spec/models/call_list_spec.rb +5 -12
  240. data/spec/models/call_result_spec.rb +6 -13
  241. data/spec/models/{say_all_of_spec.rb → capabilities_spec.rb} +13 -20
  242. data/spec/models/conference_list_spec.rb +5 -12
  243. data/spec/models/conference_participant_list_spec.rb +5 -12
  244. data/spec/models/conference_participant_result_spec.rb +5 -12
  245. data/spec/models/conference_result_spec.rb +7 -14
  246. data/spec/models/create_conference_request_spec.rb +6 -13
  247. data/spec/models/create_conference_spec.rb +5 -12
  248. data/spec/models/dequeue_spec.rb +5 -12
  249. data/spec/models/enqueue_spec.rb +5 -12
  250. data/spec/models/filter_logs_request_spec.rb +5 -12
  251. data/spec/models/get_digits_spec.rb +5 -12
  252. data/spec/models/get_speech_spec.rb +5 -12
  253. data/spec/models/hangup_spec.rb +5 -12
  254. data/spec/models/incoming_number_list_spec.rb +5 -12
  255. data/spec/models/incoming_number_request_spec.rb +5 -12
  256. data/spec/models/incoming_number_result_spec.rb +11 -12
  257. data/spec/models/log_list_spec.rb +5 -12
  258. data/spec/models/log_result_spec.rb +6 -13
  259. data/spec/models/make_call_request_spec.rb +5 -12
  260. data/spec/models/message_request_spec.rb +5 -12
  261. data/spec/models/message_result_spec.rb +6 -13
  262. data/spec/models/messages_list_spec.rb +5 -12
  263. data/spec/models/mutable_resource_model_spec.rb +5 -12
  264. data/spec/models/out_dial_spec.rb +5 -12
  265. data/spec/models/pagination_model_spec.rb +5 -12
  266. data/spec/models/{enqueue_all_of_spec.rb → park_spec.rb} +11 -24
  267. data/spec/models/pause_spec.rb +5 -12
  268. data/spec/models/percl_command_spec.rb +5 -12
  269. data/spec/models/percl_script_spec.rb +5 -12
  270. data/spec/models/play_early_media_spec.rb +5 -12
  271. data/spec/models/play_spec.rb +5 -12
  272. data/spec/models/queue_list_spec.rb +5 -12
  273. data/spec/models/queue_member_list_spec.rb +5 -12
  274. data/spec/models/queue_member_spec.rb +5 -12
  275. data/spec/models/queue_request_spec.rb +5 -12
  276. data/spec/models/queue_result_spec.rb +5 -12
  277. data/spec/models/record_utterance_spec.rb +5 -12
  278. data/spec/models/recording_list_spec.rb +5 -12
  279. data/spec/models/recording_result_spec.rb +5 -12
  280. data/spec/models/redirect_spec.rb +5 -12
  281. data/spec/models/reject_spec.rb +5 -12
  282. data/spec/models/remove_from_conference_spec.rb +5 -12
  283. data/spec/models/say_spec.rb +5 -12
  284. data/spec/models/send_digits_spec.rb +5 -12
  285. data/spec/models/set_listen_spec.rb +5 -12
  286. data/spec/models/set_talk_spec.rb +5 -12
  287. data/spec/models/sms_spec.rb +5 -12
  288. data/spec/models/start_record_call_spec.rb +5 -12
  289. data/spec/models/terminate_conference_spec.rb +5 -12
  290. data/spec/models/{pause_all_of_spec.rb → unpark_spec.rb} +8 -21
  291. data/spec/models/update_call_request_spec.rb +6 -13
  292. data/spec/models/update_conference_participant_request_spec.rb +5 -12
  293. data/spec/models/update_conference_request_spec.rb +6 -13
  294. data/spec/quickstart_spec.rb +10 -0
  295. data/spec/spec_helper.rb +61 -2
  296. metadata +75 -162
  297. data/lib/freeclimb/utils.rb +0 -34
  298. data/spec/api/web_mocks.rb +0 -473
  299. data/spec/models/account_result_all_of_spec.rb +0 -81
  300. data/spec/models/add_to_conference_all_of_spec.rb +0 -95
  301. data/spec/models/application_list_all_of_spec.rb +0 -41
  302. data/spec/models/application_result_all_of_spec.rb +0 -89
  303. data/spec/models/available_number_list_all_of_spec.rb +0 -41
  304. data/spec/models/call_list_all_of_spec.rb +0 -41
  305. data/spec/models/call_result_all_of_spec.rb +0 -129
  306. data/spec/models/conference_list_all_of_spec.rb +0 -41
  307. data/spec/models/conference_participant_list_all_of_spec.rb +0 -41
  308. data/spec/models/conference_participant_result_all_of_spec.rb +0 -71
  309. data/spec/models/conference_result_all_of_spec.rb +0 -103
  310. data/spec/models/create_conference_all_of_spec.rb +0 -71
  311. data/spec/models/get_digits_all_of_spec.rb +0 -89
  312. data/spec/models/get_speech_all_of_spec.rb +0 -113
  313. data/spec/models/hangup_all_of_spec.rb +0 -41
  314. data/spec/models/incoming_number_list_all_of_spec.rb +0 -41
  315. data/spec/models/incoming_number_result_all_of_spec.rb +0 -89
  316. data/spec/models/log_list_all_of_spec.rb +0 -41
  317. data/spec/models/message_request_all_of_spec.rb +0 -65
  318. data/spec/models/message_result_all_of_spec.rb +0 -87
  319. data/spec/models/messages_list_all_of_spec.rb +0 -41
  320. data/spec/models/out_dial_all_of_spec.rb +0 -95
  321. data/spec/models/play_all_of_spec.rb +0 -59
  322. data/spec/models/play_early_media_all_of_spec.rb +0 -41
  323. data/spec/models/queue_list_all_of_spec.rb +0 -41
  324. data/spec/models/queue_member_list_all_of_spec.rb +0 -41
  325. data/spec/models/queue_result_all_of_spec.rb +0 -77
  326. data/spec/models/record_utterance_all_of_spec.rb +0 -77
  327. data/spec/models/recording_list_all_of_spec.rb +0 -41
  328. data/spec/models/recording_result_all_of_spec.rb +0 -65
  329. data/spec/models/redirect_all_of_spec.rb +0 -41
  330. data/spec/models/reject_all_of_spec.rb +0 -41
  331. data/spec/models/remove_from_conference_all_of_spec.rb +0 -41
  332. data/spec/models/send_digits_all_of_spec.rb +0 -53
  333. data/spec/models/set_listen_all_of_spec.rb +0 -47
  334. data/spec/models/set_talk_all_of_spec.rb +0 -47
  335. data/spec/models/sms_all_of_spec.rb +0 -59
  336. data/spec/models/terminate_conference_all_of_spec.rb +0 -41
@@ -4,9 +4,9 @@
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
 
@@ -15,69 +15,15 @@ require 'cgi'
15
15
  module Freeclimb
16
16
  class DefaultApi
17
17
  attr_accessor :api_client
18
+ attr_accessor :account_id
18
19
 
19
20
  def initialize(api_client = ApiClient.default, account_id = nil)
20
21
  @api_client = api_client
21
- if account_id.nil?
22
+ @account_id = account_id
23
+ if @account_id.nil?
22
24
  @account_id = api_client.config.username
23
- else
24
- @account_id = account_id
25
25
  end
26
26
  end
27
- # Get an Account
28
- # @param [Hash] opts the optional parameters
29
- # @return [AccountResult]
30
- def get_an_account(opts = {})
31
- data, _status_code, _headers = get_an_account_with_http_info(opts)
32
- data
33
- end
34
-
35
- # Get an Account
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
38
- def get_an_account_with_http_info(opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
41
- end
42
- # resource path
43
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
44
-
45
- # query parameters
46
- query_params = opts[:query_params] || {}
47
-
48
- # header parameters
49
- header_params = opts[:header_params] || {}
50
- # HTTP header 'Accept' (if needed)
51
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
52
-
53
- # form parameters
54
- form_params = opts[:form_params] || {}
55
-
56
- # http body (model)
57
- post_body = opts[:body]
58
-
59
- # return_type
60
- return_type = opts[:return_type] || 'AccountResult'
61
-
62
- # auth_names
63
- auth_names = opts[:auth_names] || ['fc']
64
-
65
- new_options = opts.merge(
66
- :header_params => header_params,
67
- :query_params => query_params,
68
- :form_params => form_params,
69
- :body => post_body,
70
- :auth_names => auth_names,
71
- :return_type => return_type
72
- )
73
-
74
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
75
- if @api_client.config.debugging
76
- @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
- end
78
- return data, status_code, headers
79
- end
80
-
81
27
  # Buy a Phone Number
82
28
  # @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
83
29
  # @param [Hash] opts the optional parameters
@@ -95,12 +41,13 @@ module Freeclimb
95
41
  if @api_client.config.debugging
96
42
  @api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
97
43
  end
44
+
98
45
  # verify the required parameter 'buy_incoming_number_request' is set
99
46
  if @api_client.config.client_side_validation && buy_incoming_number_request.nil?
100
47
  fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
101
48
  end
102
49
  # resource path
103
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
50
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
104
51
 
105
52
  # query parameters
106
53
  query_params = opts[:query_params] || {}
@@ -110,21 +57,25 @@ module Freeclimb
110
57
  # HTTP header 'Accept' (if needed)
111
58
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
59
  # HTTP header 'Content-Type'
113
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
60
+ content_type = @api_client.select_header_content_type(['application/json'])
61
+ if !content_type.nil?
62
+ header_params['Content-Type'] = content_type
63
+ end
114
64
 
115
65
  # form parameters
116
66
  form_params = opts[:form_params] || {}
117
67
 
118
68
  # http body (model)
119
- post_body = opts[:body] || @api_client.object_to_http_body(buy_incoming_number_request)
69
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(buy_incoming_number_request)
120
70
 
121
71
  # return_type
122
- return_type = opts[:return_type] || 'IncomingNumberResult'
72
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
123
73
 
124
74
  # auth_names
125
- auth_names = opts[:auth_names] || ['fc']
75
+ auth_names = opts[:debug_auth_names] || ['fc']
126
76
 
127
77
  new_options = opts.merge(
78
+ :operation => :"DefaultApi.buy_a_phone_number",
128
79
  :header_params => header_params,
129
80
  :query_params => query_params,
130
81
  :form_params => form_params,
@@ -158,7 +109,7 @@ module Freeclimb
158
109
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
159
110
  end
160
111
  # resource path
161
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
112
+ local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
162
113
 
163
114
  # query parameters
164
115
  query_params = opts[:query_params] || {}
@@ -168,21 +119,25 @@ module Freeclimb
168
119
  # HTTP header 'Accept' (if needed)
169
120
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
121
  # HTTP header 'Content-Type'
171
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
122
+ content_type = @api_client.select_header_content_type(['application/json'])
123
+ if !content_type.nil?
124
+ header_params['Content-Type'] = content_type
125
+ end
172
126
 
173
127
  # form parameters
174
128
  form_params = opts[:form_params] || {}
175
129
 
176
130
  # http body (model)
177
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
131
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
178
132
 
179
133
  # return_type
180
- return_type = opts[:return_type] || 'ConferenceResult'
134
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
181
135
 
182
136
  # auth_names
183
- auth_names = opts[:auth_names] || ['fc']
137
+ auth_names = opts[:debug_auth_names] || ['fc']
184
138
 
185
139
  new_options = opts.merge(
140
+ :operation => :"DefaultApi.create_a_conference",
186
141
  :header_params => header_params,
187
142
  :query_params => query_params,
188
143
  :form_params => form_params,
@@ -216,7 +171,7 @@ module Freeclimb
216
171
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
217
172
  end
218
173
  # resource path
219
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
174
+ local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
220
175
 
221
176
  # query parameters
222
177
  query_params = opts[:query_params] || {}
@@ -226,21 +181,25 @@ module Freeclimb
226
181
  # HTTP header 'Accept' (if needed)
227
182
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
183
  # HTTP header 'Content-Type'
229
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
184
+ content_type = @api_client.select_header_content_type(['application/json'])
185
+ if !content_type.nil?
186
+ header_params['Content-Type'] = content_type
187
+ end
230
188
 
231
189
  # form parameters
232
190
  form_params = opts[:form_params] || {}
233
191
 
234
192
  # http body (model)
235
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
193
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
236
194
 
237
195
  # return_type
238
- return_type = opts[:return_type] || 'QueueResult'
196
+ return_type = opts[:debug_return_type] || 'QueueResult'
239
197
 
240
198
  # auth_names
241
- auth_names = opts[:auth_names] || ['fc']
199
+ auth_names = opts[:debug_auth_names] || ['fc']
242
200
 
243
201
  new_options = opts.merge(
202
+ :operation => :"DefaultApi.create_a_queue",
244
203
  :header_params => header_params,
245
204
  :query_params => query_params,
246
205
  :form_params => form_params,
@@ -274,7 +233,7 @@ module Freeclimb
274
233
  @api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
275
234
  end
276
235
  # resource path
277
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
236
+ local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
278
237
 
279
238
  # query parameters
280
239
  query_params = opts[:query_params] || {}
@@ -284,21 +243,25 @@ module Freeclimb
284
243
  # HTTP header 'Accept' (if needed)
285
244
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
286
245
  # HTTP header 'Content-Type'
287
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
246
+ content_type = @api_client.select_header_content_type(['application/json'])
247
+ if !content_type.nil?
248
+ header_params['Content-Type'] = content_type
249
+ end
288
250
 
289
251
  # form parameters
290
252
  form_params = opts[:form_params] || {}
291
253
 
292
254
  # http body (model)
293
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
255
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
294
256
 
295
257
  # return_type
296
- return_type = opts[:return_type] || 'ApplicationResult'
258
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
297
259
 
298
260
  # auth_names
299
- auth_names = opts[:auth_names] || ['fc']
261
+ auth_names = opts[:debug_auth_names] || ['fc']
300
262
 
301
263
  new_options = opts.merge(
264
+ :operation => :"DefaultApi.create_an_application",
302
265
  :header_params => header_params,
303
266
  :query_params => query_params,
304
267
  :form_params => form_params,
@@ -331,12 +294,13 @@ module Freeclimb
331
294
  if @api_client.config.debugging
332
295
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
333
296
  end
297
+
334
298
  # verify the required parameter 'recording_id' is set
335
299
  if @api_client.config.client_side_validation && recording_id.nil?
336
300
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
337
301
  end
338
302
  # resource path
339
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
303
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
340
304
 
341
305
  # query parameters
342
306
  query_params = opts[:query_params] || {}
@@ -348,15 +312,16 @@ module Freeclimb
348
312
  form_params = opts[:form_params] || {}
349
313
 
350
314
  # http body (model)
351
- post_body = opts[:body]
315
+ post_body = opts[:debug_body]
352
316
 
353
317
  # return_type
354
- return_type = opts[:return_type]
318
+ return_type = opts[:debug_return_type]
355
319
 
356
320
  # auth_names
357
- auth_names = opts[:auth_names] || ['fc']
321
+ auth_names = opts[:debug_auth_names] || ['fc']
358
322
 
359
323
  new_options = opts.merge(
324
+ :operation => :"DefaultApi.delete_a_recording",
360
325
  :header_params => header_params,
361
326
  :query_params => query_params,
362
327
  :form_params => form_params,
@@ -389,12 +354,13 @@ module Freeclimb
389
354
  if @api_client.config.debugging
390
355
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
391
356
  end
357
+
392
358
  # verify the required parameter 'application_id' is set
393
359
  if @api_client.config.client_side_validation && application_id.nil?
394
360
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
395
361
  end
396
362
  # resource path
397
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
363
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
398
364
 
399
365
  # query parameters
400
366
  query_params = opts[:query_params] || {}
@@ -406,15 +372,16 @@ module Freeclimb
406
372
  form_params = opts[:form_params] || {}
407
373
 
408
374
  # http body (model)
409
- post_body = opts[:body]
375
+ post_body = opts[:debug_body]
410
376
 
411
377
  # return_type
412
- return_type = opts[:return_type]
378
+ return_type = opts[:debug_return_type]
413
379
 
414
380
  # auth_names
415
- auth_names = opts[:auth_names] || ['fc']
381
+ auth_names = opts[:debug_auth_names] || ['fc']
416
382
 
417
383
  new_options = opts.merge(
384
+ :operation => :"DefaultApi.delete_an_application",
418
385
  :header_params => header_params,
419
386
  :query_params => query_params,
420
387
  :form_params => form_params,
@@ -447,12 +414,13 @@ module Freeclimb
447
414
  if @api_client.config.debugging
448
415
  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
449
416
  end
417
+
450
418
  # verify the required parameter 'phone_number_id' is set
451
419
  if @api_client.config.client_side_validation && phone_number_id.nil?
452
420
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
453
421
  end
454
422
  # resource path
455
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
423
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
456
424
 
457
425
  # query parameters
458
426
  query_params = opts[:query_params] || {}
@@ -464,15 +432,16 @@ module Freeclimb
464
432
  form_params = opts[:form_params] || {}
465
433
 
466
434
  # http body (model)
467
- post_body = opts[:body]
435
+ post_body = opts[:debug_body]
468
436
 
469
437
  # return_type
470
- return_type = opts[:return_type]
438
+ return_type = opts[:debug_return_type]
471
439
 
472
440
  # auth_names
473
- auth_names = opts[:auth_names] || ['fc']
441
+ auth_names = opts[:debug_auth_names] || ['fc']
474
442
 
475
443
  new_options = opts.merge(
444
+ :operation => :"DefaultApi.delete_an_incoming_number",
476
445
  :header_params => header_params,
477
446
  :query_params => query_params,
478
447
  :form_params => form_params,
@@ -507,16 +476,18 @@ module Freeclimb
507
476
  if @api_client.config.debugging
508
477
  @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
509
478
  end
479
+
510
480
  # verify the required parameter 'queue_id' is set
511
481
  if @api_client.config.client_side_validation && queue_id.nil?
512
482
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_a_member"
513
483
  end
484
+
514
485
  # verify the required parameter 'call_id' is set
515
486
  if @api_client.config.client_side_validation && call_id.nil?
516
487
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
517
488
  end
518
489
  # resource path
519
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
490
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
520
491
 
521
492
  # query parameters
522
493
  query_params = opts[:query_params] || {}
@@ -530,15 +501,16 @@ module Freeclimb
530
501
  form_params = opts[:form_params] || {}
531
502
 
532
503
  # http body (model)
533
- post_body = opts[:body]
504
+ post_body = opts[:debug_body]
534
505
 
535
506
  # return_type
536
- return_type = opts[:return_type] || 'QueueMember'
507
+ return_type = opts[:debug_return_type] || 'QueueMember'
537
508
 
538
509
  # auth_names
539
- auth_names = opts[:auth_names] || ['fc']
510
+ auth_names = opts[:debug_auth_names] || ['fc']
540
511
 
541
512
  new_options = opts.merge(
513
+ :operation => :"DefaultApi.dequeue_a_member",
542
514
  :header_params => header_params,
543
515
  :query_params => query_params,
544
516
  :form_params => form_params,
@@ -571,12 +543,13 @@ module Freeclimb
571
543
  if @api_client.config.debugging
572
544
  @api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
573
545
  end
546
+
574
547
  # verify the required parameter 'queue_id' is set
575
548
  if @api_client.config.client_side_validation && queue_id.nil?
576
549
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
577
550
  end
578
551
  # resource path
579
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
552
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
580
553
 
581
554
  # query parameters
582
555
  query_params = opts[:query_params] || {}
@@ -590,15 +563,16 @@ module Freeclimb
590
563
  form_params = opts[:form_params] || {}
591
564
 
592
565
  # http body (model)
593
- post_body = opts[:body]
566
+ post_body = opts[:debug_body]
594
567
 
595
568
  # return_type
596
- return_type = opts[:return_type] || 'QueueMember'
569
+ return_type = opts[:debug_return_type] || 'QueueMember'
597
570
 
598
571
  # auth_names
599
- auth_names = opts[:auth_names] || ['fc']
572
+ auth_names = opts[:debug_auth_names] || ['fc']
600
573
 
601
574
  new_options = opts.merge(
575
+ :operation => :"DefaultApi.dequeue_head_member",
602
576
  :header_params => header_params,
603
577
  :query_params => query_params,
604
578
  :form_params => form_params,
@@ -631,12 +605,13 @@ module Freeclimb
631
605
  if @api_client.config.debugging
632
606
  @api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
633
607
  end
608
+
634
609
  # verify the required parameter 'recording_id' is set
635
610
  if @api_client.config.client_side_validation && recording_id.nil?
636
611
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
637
612
  end
638
613
  # resource path
639
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
614
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
640
615
 
641
616
  # query parameters
642
617
  query_params = opts[:query_params] || {}
@@ -650,15 +625,16 @@ module Freeclimb
650
625
  form_params = opts[:form_params] || {}
651
626
 
652
627
  # http body (model)
653
- post_body = opts[:body]
628
+ post_body = opts[:debug_body]
654
629
 
655
630
  # return_type
656
- return_type = opts[:return_type] || 'File'
631
+ return_type = opts[:debug_return_type] || 'File'
657
632
 
658
633
  # auth_names
659
- auth_names = opts[:auth_names] || ['fc']
634
+ auth_names = opts[:debug_auth_names] || ['fc']
660
635
 
661
636
  new_options = opts.merge(
637
+ :operation => :"DefaultApi.download_a_recording_file",
662
638
  :header_params => header_params,
663
639
  :query_params => query_params,
664
640
  :form_params => form_params,
@@ -691,12 +667,13 @@ module Freeclimb
691
667
  if @api_client.config.debugging
692
668
  @api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
693
669
  end
670
+
694
671
  # verify the required parameter 'filter_logs_request' is set
695
672
  if @api_client.config.client_side_validation && filter_logs_request.nil?
696
673
  fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
697
674
  end
698
675
  # resource path
699
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
676
+ local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
700
677
 
701
678
  # query parameters
702
679
  query_params = opts[:query_params] || {}
@@ -706,21 +683,25 @@ module Freeclimb
706
683
  # HTTP header 'Accept' (if needed)
707
684
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
708
685
  # HTTP header 'Content-Type'
709
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
686
+ content_type = @api_client.select_header_content_type(['application/json'])
687
+ if !content_type.nil?
688
+ header_params['Content-Type'] = content_type
689
+ end
710
690
 
711
691
  # form parameters
712
692
  form_params = opts[:form_params] || {}
713
693
 
714
694
  # http body (model)
715
- post_body = opts[:body] || @api_client.object_to_http_body(filter_logs_request)
695
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)
716
696
 
717
697
  # return_type
718
- return_type = opts[:return_type] || 'LogList'
698
+ return_type = opts[:debug_return_type] || 'LogList'
719
699
 
720
700
  # auth_names
721
- auth_names = opts[:auth_names] || ['fc']
701
+ auth_names = opts[:debug_auth_names] || ['fc']
722
702
 
723
703
  new_options = opts.merge(
704
+ :operation => :"DefaultApi.filter_logs",
724
705
  :header_params => header_params,
725
706
  :query_params => query_params,
726
707
  :form_params => form_params,
@@ -753,12 +734,13 @@ module Freeclimb
753
734
  if @api_client.config.debugging
754
735
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
755
736
  end
737
+
756
738
  # verify the required parameter 'call_id' is set
757
739
  if @api_client.config.client_side_validation && call_id.nil?
758
740
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
759
741
  end
760
742
  # resource path
761
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
743
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
762
744
 
763
745
  # query parameters
764
746
  query_params = opts[:query_params] || {}
@@ -772,15 +754,16 @@ module Freeclimb
772
754
  form_params = opts[:form_params] || {}
773
755
 
774
756
  # http body (model)
775
- post_body = opts[:body]
757
+ post_body = opts[:debug_body]
776
758
 
777
759
  # return_type
778
- return_type = opts[:return_type] || 'CallResult'
760
+ return_type = opts[:debug_return_type] || 'CallResult'
779
761
 
780
762
  # auth_names
781
- auth_names = opts[:auth_names] || ['fc']
763
+ auth_names = opts[:debug_auth_names] || ['fc']
782
764
 
783
765
  new_options = opts.merge(
766
+ :operation => :"DefaultApi.get_a_call",
784
767
  :header_params => header_params,
785
768
  :query_params => query_params,
786
769
  :form_params => form_params,
@@ -813,12 +796,13 @@ module Freeclimb
813
796
  if @api_client.config.debugging
814
797
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
815
798
  end
799
+
816
800
  # verify the required parameter 'conference_id' is set
817
801
  if @api_client.config.client_side_validation && conference_id.nil?
818
802
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
819
803
  end
820
804
  # resource path
821
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
805
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
822
806
 
823
807
  # query parameters
824
808
  query_params = opts[:query_params] || {}
@@ -832,15 +816,16 @@ module Freeclimb
832
816
  form_params = opts[:form_params] || {}
833
817
 
834
818
  # http body (model)
835
- post_body = opts[:body]
819
+ post_body = opts[:debug_body]
836
820
 
837
821
  # return_type
838
- return_type = opts[:return_type] || 'ConferenceResult'
822
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
839
823
 
840
824
  # auth_names
841
- auth_names = opts[:auth_names] || ['fc']
825
+ auth_names = opts[:debug_auth_names] || ['fc']
842
826
 
843
827
  new_options = opts.merge(
828
+ :operation => :"DefaultApi.get_a_conference",
844
829
  :header_params => header_params,
845
830
  :query_params => query_params,
846
831
  :form_params => form_params,
@@ -875,16 +860,18 @@ module Freeclimb
875
860
  if @api_client.config.debugging
876
861
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
877
862
  end
863
+
878
864
  # verify the required parameter 'queue_id' is set
879
865
  if @api_client.config.client_side_validation && queue_id.nil?
880
866
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_member"
881
867
  end
868
+
882
869
  # verify the required parameter 'call_id' is set
883
870
  if @api_client.config.client_side_validation && call_id.nil?
884
871
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
885
872
  end
886
873
  # resource path
887
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
874
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
888
875
 
889
876
  # query parameters
890
877
  query_params = opts[:query_params] || {}
@@ -898,15 +885,16 @@ module Freeclimb
898
885
  form_params = opts[:form_params] || {}
899
886
 
900
887
  # http body (model)
901
- post_body = opts[:body]
888
+ post_body = opts[:debug_body]
902
889
 
903
890
  # return_type
904
- return_type = opts[:return_type] || 'QueueMember'
891
+ return_type = opts[:debug_return_type] || 'QueueMember'
905
892
 
906
893
  # auth_names
907
- auth_names = opts[:auth_names] || ['fc']
894
+ auth_names = opts[:debug_auth_names] || ['fc']
908
895
 
909
896
  new_options = opts.merge(
897
+ :operation => :"DefaultApi.get_a_member",
910
898
  :header_params => header_params,
911
899
  :query_params => query_params,
912
900
  :form_params => form_params,
@@ -941,16 +929,18 @@ module Freeclimb
941
929
  if @api_client.config.debugging
942
930
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
943
931
  end
932
+
944
933
  # verify the required parameter 'conference_id' is set
945
934
  if @api_client.config.client_side_validation && conference_id.nil?
946
935
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_participant"
947
936
  end
937
+
948
938
  # verify the required parameter 'call_id' is set
949
939
  if @api_client.config.client_side_validation && call_id.nil?
950
940
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
951
941
  end
952
942
  # resource path
953
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
943
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
954
944
 
955
945
  # query parameters
956
946
  query_params = opts[:query_params] || {}
@@ -964,15 +954,16 @@ module Freeclimb
964
954
  form_params = opts[:form_params] || {}
965
955
 
966
956
  # http body (model)
967
- post_body = opts[:body]
957
+ post_body = opts[:debug_body]
968
958
 
969
959
  # return_type
970
- return_type = opts[:return_type] || 'ConferenceParticipantResult'
960
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
971
961
 
972
962
  # auth_names
973
- auth_names = opts[:auth_names] || ['fc']
963
+ auth_names = opts[:debug_auth_names] || ['fc']
974
964
 
975
965
  new_options = opts.merge(
966
+ :operation => :"DefaultApi.get_a_participant",
976
967
  :header_params => header_params,
977
968
  :query_params => query_params,
978
969
  :form_params => form_params,
@@ -1005,12 +996,13 @@ module Freeclimb
1005
996
  if @api_client.config.debugging
1006
997
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
1007
998
  end
999
+
1008
1000
  # verify the required parameter 'queue_id' is set
1009
1001
  if @api_client.config.client_side_validation && queue_id.nil?
1010
1002
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
1011
1003
  end
1012
1004
  # resource path
1013
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1005
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1014
1006
 
1015
1007
  # query parameters
1016
1008
  query_params = opts[:query_params] || {}
@@ -1024,15 +1016,16 @@ module Freeclimb
1024
1016
  form_params = opts[:form_params] || {}
1025
1017
 
1026
1018
  # http body (model)
1027
- post_body = opts[:body]
1019
+ post_body = opts[:debug_body]
1028
1020
 
1029
1021
  # return_type
1030
- return_type = opts[:return_type] || 'QueueResult'
1022
+ return_type = opts[:debug_return_type] || 'QueueResult'
1031
1023
 
1032
1024
  # auth_names
1033
- auth_names = opts[:auth_names] || ['fc']
1025
+ auth_names = opts[:debug_auth_names] || ['fc']
1034
1026
 
1035
1027
  new_options = opts.merge(
1028
+ :operation => :"DefaultApi.get_a_queue",
1036
1029
  :header_params => header_params,
1037
1030
  :query_params => query_params,
1038
1031
  :form_params => form_params,
@@ -1065,12 +1058,13 @@ module Freeclimb
1065
1058
  if @api_client.config.debugging
1066
1059
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
1067
1060
  end
1061
+
1068
1062
  # verify the required parameter 'recording_id' is set
1069
1063
  if @api_client.config.client_side_validation && recording_id.nil?
1070
1064
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
1071
1065
  end
1072
1066
  # resource path
1073
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
1067
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
1074
1068
 
1075
1069
  # query parameters
1076
1070
  query_params = opts[:query_params] || {}
@@ -1084,15 +1078,16 @@ module Freeclimb
1084
1078
  form_params = opts[:form_params] || {}
1085
1079
 
1086
1080
  # http body (model)
1087
- post_body = opts[:body]
1081
+ post_body = opts[:debug_body]
1088
1082
 
1089
1083
  # return_type
1090
- return_type = opts[:return_type] || 'RecordingResult'
1084
+ return_type = opts[:debug_return_type] || 'RecordingResult'
1091
1085
 
1092
1086
  # auth_names
1093
- auth_names = opts[:auth_names] || ['fc']
1087
+ auth_names = opts[:debug_auth_names] || ['fc']
1094
1088
 
1095
1089
  new_options = opts.merge(
1090
+ :operation => :"DefaultApi.get_a_recording",
1096
1091
  :header_params => header_params,
1097
1092
  :query_params => query_params,
1098
1093
  :form_params => form_params,
@@ -1108,6 +1103,61 @@ module Freeclimb
1108
1103
  return data, status_code, headers
1109
1104
  end
1110
1105
 
1106
+ # Get an Account
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @return [AccountResult]
1109
+ def get_an_account(opts = {})
1110
+ data, _status_code, _headers = get_an_account_with_http_info(opts)
1111
+ data
1112
+ end
1113
+
1114
+ # Get an Account
1115
+ # @param [Hash] opts the optional parameters
1116
+ # @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
1117
+ def get_an_account_with_http_info(opts = {})
1118
+ if @api_client.config.debugging
1119
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
1120
+ end
1121
+ # resource path
1122
+ local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1123
+
1124
+ # query parameters
1125
+ query_params = opts[:query_params] || {}
1126
+
1127
+ # header parameters
1128
+ header_params = opts[:header_params] || {}
1129
+ # HTTP header 'Accept' (if needed)
1130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1131
+
1132
+ # form parameters
1133
+ form_params = opts[:form_params] || {}
1134
+
1135
+ # http body (model)
1136
+ post_body = opts[:debug_body]
1137
+
1138
+ # return_type
1139
+ return_type = opts[:debug_return_type] || 'AccountResult'
1140
+
1141
+ # auth_names
1142
+ auth_names = opts[:debug_auth_names] || ['fc']
1143
+
1144
+ new_options = opts.merge(
1145
+ :operation => :"DefaultApi.get_an_account",
1146
+ :header_params => header_params,
1147
+ :query_params => query_params,
1148
+ :form_params => form_params,
1149
+ :body => post_body,
1150
+ :auth_names => auth_names,
1151
+ :return_type => return_type
1152
+ )
1153
+
1154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1155
+ if @api_client.config.debugging
1156
+ @api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1157
+ end
1158
+ return data, status_code, headers
1159
+ end
1160
+
1111
1161
  # Get an Application
1112
1162
  # @param application_id [String] A string that uniquely identifies this application resource.
1113
1163
  # @param [Hash] opts the optional parameters
@@ -1125,12 +1175,13 @@ module Freeclimb
1125
1175
  if @api_client.config.debugging
1126
1176
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
1127
1177
  end
1178
+
1128
1179
  # verify the required parameter 'application_id' is set
1129
1180
  if @api_client.config.client_side_validation && application_id.nil?
1130
1181
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
1131
1182
  end
1132
1183
  # resource path
1133
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
1184
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
1134
1185
 
1135
1186
  # query parameters
1136
1187
  query_params = opts[:query_params] || {}
@@ -1144,15 +1195,16 @@ module Freeclimb
1144
1195
  form_params = opts[:form_params] || {}
1145
1196
 
1146
1197
  # http body (model)
1147
- post_body = opts[:body]
1198
+ post_body = opts[:debug_body]
1148
1199
 
1149
1200
  # return_type
1150
- return_type = opts[:return_type] || 'ApplicationResult'
1201
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
1151
1202
 
1152
1203
  # auth_names
1153
- auth_names = opts[:auth_names] || ['fc']
1204
+ auth_names = opts[:debug_auth_names] || ['fc']
1154
1205
 
1155
1206
  new_options = opts.merge(
1207
+ :operation => :"DefaultApi.get_an_application",
1156
1208
  :header_params => header_params,
1157
1209
  :query_params => query_params,
1158
1210
  :form_params => form_params,
@@ -1171,12 +1223,6 @@ module Freeclimb
1171
1223
  # Get an Incoming Number
1172
1224
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
1173
1225
  # @param [Hash] opts the optional parameters
1174
- # @option opts [String] :region State or province of this phone number.
1175
- # @option opts [String] :country Country of this phone number.
1176
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1177
- # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
1178
- # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1179
- # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1180
1226
  # @return [IncomingNumberResult]
1181
1227
  def get_an_incoming_number(phone_number_id, opts = {})
1182
1228
  data, _status_code, _headers = get_an_incoming_number_with_http_info(phone_number_id, opts)
@@ -1186,32 +1232,21 @@ module Freeclimb
1186
1232
  # Get an Incoming Number
1187
1233
  # @param phone_number_id [String] String that uniquely identifies this phone number resource.
1188
1234
  # @param [Hash] opts the optional parameters
1189
- # @option opts [String] :region State or province of this phone number.
1190
- # @option opts [String] :country Country of this phone number.
1191
- # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1192
- # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1193
- # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1194
- # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1195
1235
  # @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
1196
1236
  def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
1197
1237
  if @api_client.config.debugging
1198
1238
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
1199
1239
  end
1240
+
1200
1241
  # verify the required parameter 'phone_number_id' is set
1201
1242
  if @api_client.config.client_side_validation && phone_number_id.nil?
1202
1243
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
1203
1244
  end
1204
1245
  # resource path
1205
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
1246
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
1206
1247
 
1207
1248
  # query parameters
1208
1249
  query_params = opts[:query_params] || {}
1209
- query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
1210
- query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1211
- query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1212
- query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1213
- query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
1214
- query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1215
1250
 
1216
1251
  # header parameters
1217
1252
  header_params = opts[:header_params] || {}
@@ -1222,15 +1257,16 @@ module Freeclimb
1222
1257
  form_params = opts[:form_params] || {}
1223
1258
 
1224
1259
  # http body (model)
1225
- post_body = opts[:body]
1260
+ post_body = opts[:debug_body]
1226
1261
 
1227
1262
  # return_type
1228
- return_type = opts[:return_type] || 'IncomingNumberResult'
1263
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
1229
1264
 
1230
1265
  # auth_names
1231
- auth_names = opts[:auth_names] || ['fc']
1266
+ auth_names = opts[:debug_auth_names] || ['fc']
1232
1267
 
1233
1268
  new_options = opts.merge(
1269
+ :operation => :"DefaultApi.get_an_incoming_number",
1234
1270
  :header_params => header_params,
1235
1271
  :query_params => query_params,
1236
1272
  :form_params => form_params,
@@ -1263,12 +1299,13 @@ module Freeclimb
1263
1299
  if @api_client.config.debugging
1264
1300
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
1265
1301
  end
1302
+
1266
1303
  # verify the required parameter 'message_id' is set
1267
1304
  if @api_client.config.client_side_validation && message_id.nil?
1268
1305
  fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
1269
1306
  end
1270
1307
  # resource path
1271
- local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
1308
+ local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
1272
1309
 
1273
1310
  # query parameters
1274
1311
  query_params = opts[:query_params] || {}
@@ -1282,15 +1319,16 @@ module Freeclimb
1282
1319
  form_params = opts[:form_params] || {}
1283
1320
 
1284
1321
  # http body (model)
1285
- post_body = opts[:body]
1322
+ post_body = opts[:debug_body]
1286
1323
 
1287
1324
  # return_type
1288
- return_type = opts[:return_type] || 'MessageResult'
1325
+ return_type = opts[:debug_return_type] || 'MessageResult'
1289
1326
 
1290
1327
  # auth_names
1291
- auth_names = opts[:auth_names] || ['fc']
1328
+ auth_names = opts[:debug_auth_names] || ['fc']
1292
1329
 
1293
1330
  new_options = opts.merge(
1331
+ :operation => :"DefaultApi.get_an_sms_message",
1294
1332
  :header_params => header_params,
1295
1333
  :query_params => query_params,
1296
1334
  :form_params => form_params,
@@ -1323,12 +1361,13 @@ module Freeclimb
1323
1361
  if @api_client.config.debugging
1324
1362
  @api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
1325
1363
  end
1364
+
1326
1365
  # verify the required parameter 'queue_id' is set
1327
1366
  if @api_client.config.client_side_validation && queue_id.nil?
1328
1367
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
1329
1368
  end
1330
1369
  # resource path
1331
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1370
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1332
1371
 
1333
1372
  # query parameters
1334
1373
  query_params = opts[:query_params] || {}
@@ -1342,15 +1381,16 @@ module Freeclimb
1342
1381
  form_params = opts[:form_params] || {}
1343
1382
 
1344
1383
  # http body (model)
1345
- post_body = opts[:body]
1384
+ post_body = opts[:debug_body]
1346
1385
 
1347
1386
  # return_type
1348
- return_type = opts[:return_type] || 'QueueMember'
1387
+ return_type = opts[:debug_return_type] || 'QueueMember'
1349
1388
 
1350
1389
  # auth_names
1351
- auth_names = opts[:auth_names] || ['fc']
1390
+ auth_names = opts[:debug_auth_names] || ['fc']
1352
1391
 
1353
1392
  new_options = opts.merge(
1393
+ :operation => :"DefaultApi.get_head_member",
1354
1394
  :header_params => header_params,
1355
1395
  :query_params => query_params,
1356
1396
  :form_params => form_params,
@@ -1384,7 +1424,7 @@ module Freeclimb
1384
1424
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
1385
1425
  end
1386
1426
  # resource path
1387
- local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1427
+ local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1388
1428
 
1389
1429
  # query parameters
1390
1430
  query_params = opts[:query_params] || {}
@@ -1399,15 +1439,16 @@ module Freeclimb
1399
1439
  form_params = opts[:form_params] || {}
1400
1440
 
1401
1441
  # http body (model)
1402
- post_body = opts[:body]
1442
+ post_body = opts[:debug_body]
1403
1443
 
1404
1444
  # return_type
1405
- return_type = opts[:return_type] || 'QueueList'
1445
+ return_type = opts[:debug_return_type] || 'QueueList'
1406
1446
 
1407
1447
  # auth_names
1408
- auth_names = opts[:auth_names] || ['fc']
1448
+ auth_names = opts[:debug_auth_names] || ['fc']
1409
1449
 
1410
1450
  new_options = opts.merge(
1451
+ :operation => :"DefaultApi.list_active_queues",
1411
1452
  :header_params => header_params,
1412
1453
  :query_params => query_params,
1413
1454
  :form_params => form_params,
@@ -1439,7 +1480,7 @@ module Freeclimb
1439
1480
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
1440
1481
  end
1441
1482
  # resource path
1442
- local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1483
+ local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1443
1484
 
1444
1485
  # query parameters
1445
1486
  query_params = opts[:query_params] || {}
@@ -1453,15 +1494,16 @@ module Freeclimb
1453
1494
  form_params = opts[:form_params] || {}
1454
1495
 
1455
1496
  # http body (model)
1456
- post_body = opts[:body]
1497
+ post_body = opts[:debug_body]
1457
1498
 
1458
1499
  # return_type
1459
- return_type = opts[:return_type] || 'LogList'
1500
+ return_type = opts[:debug_return_type] || 'LogList'
1460
1501
 
1461
1502
  # auth_names
1462
- auth_names = opts[:auth_names] || ['fc']
1503
+ auth_names = opts[:debug_auth_names] || ['fc']
1463
1504
 
1464
1505
  new_options = opts.merge(
1506
+ :operation => :"DefaultApi.list_all_account_logs",
1465
1507
  :header_params => header_params,
1466
1508
  :query_params => query_params,
1467
1509
  :form_params => form_params,
@@ -1481,8 +1523,8 @@ module Freeclimb
1481
1523
  # @param [Hash] opts the optional parameters
1482
1524
  # @option opts [String] :_alias Return only applications with aliases that exactly match this value.
1483
1525
  # @return [ApplicationList]
1484
- def list_an_application(opts = {})
1485
- data, _status_code, _headers = list_an_application_with_http_info(opts)
1526
+ def list_applications(opts = {})
1527
+ data, _status_code, _headers = list_applications_with_http_info(opts)
1486
1528
  data
1487
1529
  end
1488
1530
 
@@ -1490,12 +1532,12 @@ module Freeclimb
1490
1532
  # @param [Hash] opts the optional parameters
1491
1533
  # @option opts [String] :_alias Return only applications with aliases that exactly match this value.
1492
1534
  # @return [Array<(ApplicationList, Integer, Hash)>] ApplicationList data, response status code and response headers
1493
- def list_an_application_with_http_info(opts = {})
1535
+ def list_applications_with_http_info(opts = {})
1494
1536
  if @api_client.config.debugging
1495
- @api_client.config.logger.debug 'Calling API: DefaultApi.list_an_application ...'
1537
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
1496
1538
  end
1497
1539
  # resource path
1498
- local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1540
+ local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1499
1541
 
1500
1542
  # query parameters
1501
1543
  query_params = opts[:query_params] || {}
@@ -1510,15 +1552,16 @@ module Freeclimb
1510
1552
  form_params = opts[:form_params] || {}
1511
1553
 
1512
1554
  # http body (model)
1513
- post_body = opts[:body]
1555
+ post_body = opts[:debug_body]
1514
1556
 
1515
1557
  # return_type
1516
- return_type = opts[:return_type] || 'ApplicationList'
1558
+ return_type = opts[:debug_return_type] || 'ApplicationList'
1517
1559
 
1518
1560
  # auth_names
1519
- auth_names = opts[:auth_names] || ['fc']
1561
+ auth_names = opts[:debug_auth_names] || ['fc']
1520
1562
 
1521
1563
  new_options = opts.merge(
1564
+ :operation => :"DefaultApi.list_applications",
1522
1565
  :header_params => header_params,
1523
1566
  :query_params => query_params,
1524
1567
  :form_params => form_params,
@@ -1529,7 +1572,7 @@ module Freeclimb
1529
1572
 
1530
1573
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1531
1574
  if @api_client.config.debugging
1532
- @api_client.config.logger.debug "API called: DefaultApi#list_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1575
+ @api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1533
1576
  end
1534
1577
  return data, status_code, headers
1535
1578
  end
@@ -1541,6 +1584,11 @@ module Freeclimb
1541
1584
  # @option opts [String] :country Country of this phone number.
1542
1585
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1543
1586
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
1587
+ # @option opts [Boolean] :capabilities_voice
1588
+ # @option opts [Boolean] :capabilities_sms
1589
+ # @option opts [Boolean] :capabilities_toll_free
1590
+ # @option opts [Boolean] :capabilities_ten_dlc
1591
+ # @option opts [Boolean] :capabilities_short_code
1544
1592
  # @return [AvailableNumberList]
1545
1593
  def list_available_numbers(opts = {})
1546
1594
  data, _status_code, _headers = list_available_numbers_with_http_info(opts)
@@ -1554,6 +1602,11 @@ module Freeclimb
1554
1602
  # @option opts [String] :country Country of this phone number.
1555
1603
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1556
1604
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1605
+ # @option opts [Boolean] :capabilities_voice
1606
+ # @option opts [Boolean] :capabilities_sms
1607
+ # @option opts [Boolean] :capabilities_toll_free
1608
+ # @option opts [Boolean] :capabilities_ten_dlc
1609
+ # @option opts [Boolean] :capabilities_short_code
1557
1610
  # @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
1558
1611
  def list_available_numbers_with_http_info(opts = {})
1559
1612
  if @api_client.config.debugging
@@ -1569,6 +1622,11 @@ module Freeclimb
1569
1622
  query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1570
1623
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1571
1624
  query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1625
+ query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1626
+ query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
1627
+ query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
1628
+ query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
1629
+ query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
1572
1630
 
1573
1631
  # header parameters
1574
1632
  header_params = opts[:header_params] || {}
@@ -1579,15 +1637,16 @@ module Freeclimb
1579
1637
  form_params = opts[:form_params] || {}
1580
1638
 
1581
1639
  # http body (model)
1582
- post_body = opts[:body]
1640
+ post_body = opts[:debug_body]
1583
1641
 
1584
1642
  # return_type
1585
- return_type = opts[:return_type] || 'AvailableNumberList'
1643
+ return_type = opts[:debug_return_type] || 'AvailableNumberList'
1586
1644
 
1587
1645
  # auth_names
1588
- auth_names = opts[:auth_names] || ['fc']
1646
+ auth_names = opts[:debug_auth_names] || ['fc']
1589
1647
 
1590
1648
  new_options = opts.merge(
1649
+ :operation => :"DefaultApi.list_available_numbers",
1591
1650
  :header_params => header_params,
1592
1651
  :query_params => query_params,
1593
1652
  :form_params => form_params,
@@ -1620,12 +1679,13 @@ module Freeclimb
1620
1679
  if @api_client.config.debugging
1621
1680
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
1622
1681
  end
1682
+
1623
1683
  # verify the required parameter 'call_id' is set
1624
1684
  if @api_client.config.client_side_validation && call_id.nil?
1625
1685
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
1626
1686
  end
1627
1687
  # resource path
1628
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1688
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1629
1689
 
1630
1690
  # query parameters
1631
1691
  query_params = opts[:query_params] || {}
@@ -1639,15 +1699,16 @@ module Freeclimb
1639
1699
  form_params = opts[:form_params] || {}
1640
1700
 
1641
1701
  # http body (model)
1642
- post_body = opts[:body]
1702
+ post_body = opts[:debug_body]
1643
1703
 
1644
1704
  # return_type
1645
- return_type = opts[:return_type] || 'LogList'
1705
+ return_type = opts[:debug_return_type] || 'LogList'
1646
1706
 
1647
1707
  # auth_names
1648
- auth_names = opts[:auth_names] || ['fc']
1708
+ auth_names = opts[:debug_auth_names] || ['fc']
1649
1709
 
1650
1710
  new_options = opts.merge(
1711
+ :operation => :"DefaultApi.list_call_logs",
1651
1712
  :header_params => header_params,
1652
1713
  :query_params => query_params,
1653
1714
  :form_params => form_params,
@@ -1682,12 +1743,13 @@ module Freeclimb
1682
1743
  if @api_client.config.debugging
1683
1744
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
1684
1745
  end
1746
+
1685
1747
  # verify the required parameter 'call_id' is set
1686
1748
  if @api_client.config.client_side_validation && call_id.nil?
1687
1749
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
1688
1750
  end
1689
1751
  # resource path
1690
- local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1752
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
1691
1753
 
1692
1754
  # query parameters
1693
1755
  query_params = opts[:query_params] || {}
@@ -1702,15 +1764,16 @@ module Freeclimb
1702
1764
  form_params = opts[:form_params] || {}
1703
1765
 
1704
1766
  # http body (model)
1705
- post_body = opts[:body]
1767
+ post_body = opts[:debug_body]
1706
1768
 
1707
1769
  # return_type
1708
- return_type = opts[:return_type] || 'RecordingList'
1770
+ return_type = opts[:debug_return_type] || 'RecordingList'
1709
1771
 
1710
1772
  # auth_names
1711
- auth_names = opts[:auth_names] || ['fc']
1773
+ auth_names = opts[:debug_auth_names] || ['fc']
1712
1774
 
1713
1775
  new_options = opts.merge(
1776
+ :operation => :"DefaultApi.list_call_recordings",
1714
1777
  :header_params => header_params,
1715
1778
  :query_params => query_params,
1716
1779
  :form_params => form_params,
@@ -1756,7 +1819,7 @@ module Freeclimb
1756
1819
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
1757
1820
  end
1758
1821
  # resource path
1759
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1822
+ local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1760
1823
 
1761
1824
  # query parameters
1762
1825
  query_params = opts[:query_params] || {}
@@ -1777,15 +1840,16 @@ module Freeclimb
1777
1840
  form_params = opts[:form_params] || {}
1778
1841
 
1779
1842
  # http body (model)
1780
- post_body = opts[:body]
1843
+ post_body = opts[:debug_body]
1781
1844
 
1782
1845
  # return_type
1783
- return_type = opts[:return_type] || 'CallList'
1846
+ return_type = opts[:debug_return_type] || 'CallList'
1784
1847
 
1785
1848
  # auth_names
1786
- auth_names = opts[:auth_names] || ['fc']
1849
+ auth_names = opts[:debug_auth_names] || ['fc']
1787
1850
 
1788
1851
  new_options = opts.merge(
1852
+ :operation => :"DefaultApi.list_calls",
1789
1853
  :header_params => header_params,
1790
1854
  :query_params => query_params,
1791
1855
  :form_params => form_params,
@@ -1825,7 +1889,7 @@ module Freeclimb
1825
1889
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
1826
1890
  end
1827
1891
  # resource path
1828
- local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1892
+ local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1829
1893
 
1830
1894
  # query parameters
1831
1895
  query_params = opts[:query_params] || {}
@@ -1843,15 +1907,16 @@ module Freeclimb
1843
1907
  form_params = opts[:form_params] || {}
1844
1908
 
1845
1909
  # http body (model)
1846
- post_body = opts[:body]
1910
+ post_body = opts[:debug_body]
1847
1911
 
1848
1912
  # return_type
1849
- return_type = opts[:return_type] || 'ConferenceList'
1913
+ return_type = opts[:debug_return_type] || 'ConferenceList'
1850
1914
 
1851
1915
  # auth_names
1852
- auth_names = opts[:auth_names] || ['fc']
1916
+ auth_names = opts[:debug_auth_names] || ['fc']
1853
1917
 
1854
1918
  new_options = opts.merge(
1919
+ :operation => :"DefaultApi.list_conferences",
1855
1920
  :header_params => header_params,
1856
1921
  :query_params => query_params,
1857
1922
  :form_params => form_params,
@@ -1871,6 +1936,17 @@ module Freeclimb
1871
1936
  # @param [Hash] opts the optional parameters
1872
1937
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1873
1938
  # @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
1939
+ # @option opts [String] :region State or province of this phone number.
1940
+ # @option opts [String] :country Country of this phone number.
1941
+ # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1942
+ # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1943
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1944
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
1945
+ # @option opts [Boolean] :capabilities_voice
1946
+ # @option opts [Boolean] :capabilities_sms
1947
+ # @option opts [Boolean] :capabilities_toll_free
1948
+ # @option opts [Boolean] :capabilities_ten_dlc
1949
+ # @option opts [Boolean] :capabilities_short_code
1874
1950
  # @return [IncomingNumberList]
1875
1951
  def list_incoming_numbers(opts = {})
1876
1952
  data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
@@ -1881,18 +1957,40 @@ module Freeclimb
1881
1957
  # @param [Hash] opts the optional parameters
1882
1958
  # @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
1883
1959
  # @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
1960
+ # @option opts [String] :region State or province of this phone number.
1961
+ # @option opts [String] :country Country of this phone number.
1962
+ # @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
1963
+ # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1964
+ # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1965
+ # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
1966
+ # @option opts [Boolean] :capabilities_voice
1967
+ # @option opts [Boolean] :capabilities_sms
1968
+ # @option opts [Boolean] :capabilities_toll_free
1969
+ # @option opts [Boolean] :capabilities_ten_dlc
1970
+ # @option opts [Boolean] :capabilities_short_code
1884
1971
  # @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
1885
1972
  def list_incoming_numbers_with_http_info(opts = {})
1886
1973
  if @api_client.config.debugging
1887
1974
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
1888
1975
  end
1889
1976
  # resource path
1890
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
1977
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1891
1978
 
1892
1979
  # query parameters
1893
1980
  query_params = opts[:query_params] || {}
1894
1981
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
1895
1982
  query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
1983
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
1984
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
1985
+ query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
1986
+ query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1987
+ query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1988
+ query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
1989
+ query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1990
+ query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
1991
+ query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
1992
+ query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
1993
+ query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
1896
1994
 
1897
1995
  # header parameters
1898
1996
  header_params = opts[:header_params] || {}
@@ -1903,15 +2001,16 @@ module Freeclimb
1903
2001
  form_params = opts[:form_params] || {}
1904
2002
 
1905
2003
  # http body (model)
1906
- post_body = opts[:body]
2004
+ post_body = opts[:debug_body]
1907
2005
 
1908
2006
  # return_type
1909
- return_type = opts[:return_type] || 'IncomingNumberList'
2007
+ return_type = opts[:debug_return_type] || 'IncomingNumberList'
1910
2008
 
1911
2009
  # auth_names
1912
- auth_names = opts[:auth_names] || ['fc']
2010
+ auth_names = opts[:debug_auth_names] || ['fc']
1913
2011
 
1914
2012
  new_options = opts.merge(
2013
+ :operation => :"DefaultApi.list_incoming_numbers",
1915
2014
  :header_params => header_params,
1916
2015
  :query_params => query_params,
1917
2016
  :form_params => form_params,
@@ -1944,12 +2043,13 @@ module Freeclimb
1944
2043
  if @api_client.config.debugging
1945
2044
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
1946
2045
  end
2046
+
1947
2047
  # verify the required parameter 'queue_id' is set
1948
2048
  if @api_client.config.client_side_validation && queue_id.nil?
1949
2049
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
1950
2050
  end
1951
2051
  # resource path
1952
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2052
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
1953
2053
 
1954
2054
  # query parameters
1955
2055
  query_params = opts[:query_params] || {}
@@ -1963,15 +2063,16 @@ module Freeclimb
1963
2063
  form_params = opts[:form_params] || {}
1964
2064
 
1965
2065
  # http body (model)
1966
- post_body = opts[:body]
2066
+ post_body = opts[:debug_body]
1967
2067
 
1968
2068
  # return_type
1969
- return_type = opts[:return_type] || 'QueueMemberList'
2069
+ return_type = opts[:debug_return_type] || 'QueueMemberList'
1970
2070
 
1971
2071
  # auth_names
1972
- auth_names = opts[:auth_names] || ['fc']
2072
+ auth_names = opts[:debug_auth_names] || ['fc']
1973
2073
 
1974
2074
  new_options = opts.merge(
2075
+ :operation => :"DefaultApi.list_members",
1975
2076
  :header_params => header_params,
1976
2077
  :query_params => query_params,
1977
2078
  :form_params => form_params,
@@ -2008,12 +2109,13 @@ module Freeclimb
2008
2109
  if @api_client.config.debugging
2009
2110
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
2010
2111
  end
2112
+
2011
2113
  # verify the required parameter 'conference_id' is set
2012
2114
  if @api_client.config.client_side_validation && conference_id.nil?
2013
2115
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
2014
2116
  end
2015
2117
  # resource path
2016
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2118
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2017
2119
 
2018
2120
  # query parameters
2019
2121
  query_params = opts[:query_params] || {}
@@ -2029,15 +2131,16 @@ module Freeclimb
2029
2131
  form_params = opts[:form_params] || {}
2030
2132
 
2031
2133
  # http body (model)
2032
- post_body = opts[:body]
2134
+ post_body = opts[:debug_body]
2033
2135
 
2034
2136
  # return_type
2035
- return_type = opts[:return_type] || 'ConferenceParticipantList'
2137
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
2036
2138
 
2037
2139
  # auth_names
2038
- auth_names = opts[:auth_names] || ['fc']
2140
+ auth_names = opts[:debug_auth_names] || ['fc']
2039
2141
 
2040
2142
  new_options = opts.merge(
2143
+ :operation => :"DefaultApi.list_participants",
2041
2144
  :header_params => header_params,
2042
2145
  :query_params => query_params,
2043
2146
  :form_params => form_params,
@@ -2075,7 +2178,7 @@ module Freeclimb
2075
2178
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
2076
2179
  end
2077
2180
  # resource path
2078
- local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2181
+ local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2079
2182
 
2080
2183
  # query parameters
2081
2184
  query_params = opts[:query_params] || {}
@@ -2092,15 +2195,16 @@ module Freeclimb
2092
2195
  form_params = opts[:form_params] || {}
2093
2196
 
2094
2197
  # http body (model)
2095
- post_body = opts[:body]
2198
+ post_body = opts[:debug_body]
2096
2199
 
2097
2200
  # return_type
2098
- return_type = opts[:return_type] || 'RecordingList'
2201
+ return_type = opts[:debug_return_type] || 'RecordingList'
2099
2202
 
2100
2203
  # auth_names
2101
- auth_names = opts[:auth_names] || ['fc']
2204
+ auth_names = opts[:debug_auth_names] || ['fc']
2102
2205
 
2103
2206
  new_options = opts.merge(
2207
+ :operation => :"DefaultApi.list_recordings",
2104
2208
  :header_params => header_params,
2105
2209
  :query_params => query_params,
2106
2210
  :form_params => form_params,
@@ -2123,7 +2227,6 @@ module Freeclimb
2123
2227
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2124
2228
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2125
2229
  # @option opts [String] :direction Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.
2126
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2127
2230
  # @return [MessagesList]
2128
2231
  def list_sms_messages(opts = {})
2129
2232
  data, _status_code, _headers = list_sms_messages_with_http_info(opts)
@@ -2137,14 +2240,17 @@ module Freeclimb
2137
2240
  # @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
2138
2241
  # @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
2139
2242
  # @option opts [String] :direction Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb.
2140
- # @option opts [String] :account_id String that uniquely identifies this account resource.
2141
2243
  # @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
2142
2244
  def list_sms_messages_with_http_info(opts = {})
2143
2245
  if @api_client.config.debugging
2144
2246
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
2145
2247
  end
2248
+ allowable_values = ["inbound", "outbound"]
2249
+ if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
2250
+ fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
2251
+ end
2146
2252
  # resource path
2147
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2253
+ local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2148
2254
 
2149
2255
  # query parameters
2150
2256
  query_params = opts[:query_params] || {}
@@ -2153,7 +2259,6 @@ module Freeclimb
2153
2259
  query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
2154
2260
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
2155
2261
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
2156
- query_params[:'accountID'] = opts[:'account_id'] if !opts[:'account_id'].nil?
2157
2262
 
2158
2263
  # header parameters
2159
2264
  header_params = opts[:header_params] || {}
@@ -2164,15 +2269,16 @@ module Freeclimb
2164
2269
  form_params = opts[:form_params] || {}
2165
2270
 
2166
2271
  # http body (model)
2167
- post_body = opts[:body]
2272
+ post_body = opts[:debug_body]
2168
2273
 
2169
2274
  # return_type
2170
- return_type = opts[:return_type] || 'MessagesList'
2275
+ return_type = opts[:debug_return_type] || 'MessagesList'
2171
2276
 
2172
2277
  # auth_names
2173
- auth_names = opts[:auth_names] || ['fc']
2278
+ auth_names = opts[:debug_auth_names] || ['fc']
2174
2279
 
2175
2280
  new_options = opts.merge(
2281
+ :operation => :"DefaultApi.list_sms_messages",
2176
2282
  :header_params => header_params,
2177
2283
  :query_params => query_params,
2178
2284
  :form_params => form_params,
@@ -2206,7 +2312,7 @@ module Freeclimb
2206
2312
  @api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
2207
2313
  end
2208
2314
  # resource path
2209
- local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2315
+ local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2210
2316
 
2211
2317
  # query parameters
2212
2318
  query_params = opts[:query_params] || {}
@@ -2216,21 +2322,25 @@ module Freeclimb
2216
2322
  # HTTP header 'Accept' (if needed)
2217
2323
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2218
2324
  # HTTP header 'Content-Type'
2219
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2325
+ content_type = @api_client.select_header_content_type(['application/json'])
2326
+ if !content_type.nil?
2327
+ header_params['Content-Type'] = content_type
2328
+ end
2220
2329
 
2221
2330
  # form parameters
2222
2331
  form_params = opts[:form_params] || {}
2223
2332
 
2224
2333
  # http body (model)
2225
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'make_call_request'])
2334
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])
2226
2335
 
2227
2336
  # return_type
2228
- return_type = opts[:return_type] || 'CallResult'
2337
+ return_type = opts[:debug_return_type] || 'CallResult'
2229
2338
 
2230
2339
  # auth_names
2231
- auth_names = opts[:auth_names] || ['fc']
2340
+ auth_names = opts[:debug_auth_names] || ['fc']
2232
2341
 
2233
2342
  new_options = opts.merge(
2343
+ :operation => :"DefaultApi.make_a_call",
2234
2344
  :header_params => header_params,
2235
2345
  :query_params => query_params,
2236
2346
  :form_params => form_params,
@@ -2265,16 +2375,18 @@ module Freeclimb
2265
2375
  if @api_client.config.debugging
2266
2376
  @api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
2267
2377
  end
2378
+
2268
2379
  # verify the required parameter 'conference_id' is set
2269
2380
  if @api_client.config.client_side_validation && conference_id.nil?
2270
2381
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
2271
2382
  end
2383
+
2272
2384
  # verify the required parameter 'call_id' is set
2273
2385
  if @api_client.config.client_side_validation && call_id.nil?
2274
2386
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
2275
2387
  end
2276
2388
  # resource path
2277
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2389
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2278
2390
 
2279
2391
  # query parameters
2280
2392
  query_params = opts[:query_params] || {}
@@ -2286,15 +2398,16 @@ module Freeclimb
2286
2398
  form_params = opts[:form_params] || {}
2287
2399
 
2288
2400
  # http body (model)
2289
- post_body = opts[:body]
2401
+ post_body = opts[:debug_body]
2290
2402
 
2291
2403
  # return_type
2292
- return_type = opts[:return_type]
2404
+ return_type = opts[:debug_return_type]
2293
2405
 
2294
2406
  # auth_names
2295
- auth_names = opts[:auth_names] || ['fc']
2407
+ auth_names = opts[:debug_auth_names] || ['fc']
2296
2408
 
2297
2409
  new_options = opts.merge(
2410
+ :operation => :"DefaultApi.remove_a_participant",
2298
2411
  :header_params => header_params,
2299
2412
  :query_params => query_params,
2300
2413
  :form_params => form_params,
@@ -2327,12 +2440,13 @@ module Freeclimb
2327
2440
  if @api_client.config.debugging
2328
2441
  @api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
2329
2442
  end
2443
+
2330
2444
  # verify the required parameter 'message_request' is set
2331
2445
  if @api_client.config.client_side_validation && message_request.nil?
2332
2446
  fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
2333
2447
  end
2334
2448
  # resource path
2335
- local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2449
+ local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2336
2450
 
2337
2451
  # query parameters
2338
2452
  query_params = opts[:query_params] || {}
@@ -2342,21 +2456,25 @@ module Freeclimb
2342
2456
  # HTTP header 'Accept' (if needed)
2343
2457
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2344
2458
  # HTTP header 'Content-Type'
2345
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2459
+ content_type = @api_client.select_header_content_type(['application/json'])
2460
+ if !content_type.nil?
2461
+ header_params['Content-Type'] = content_type
2462
+ end
2346
2463
 
2347
2464
  # form parameters
2348
2465
  form_params = opts[:form_params] || {}
2349
2466
 
2350
2467
  # http body (model)
2351
- post_body = opts[:body] || @api_client.object_to_http_body(message_request)
2468
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)
2352
2469
 
2353
2470
  # return_type
2354
- return_type = opts[:return_type] || 'MessageResult'
2471
+ return_type = opts[:debug_return_type] || 'MessageResult'
2355
2472
 
2356
2473
  # auth_names
2357
- auth_names = opts[:auth_names] || ['fc']
2474
+ auth_names = opts[:debug_auth_names] || ['fc']
2358
2475
 
2359
2476
  new_options = opts.merge(
2477
+ :operation => :"DefaultApi.send_an_sms_message",
2360
2478
  :header_params => header_params,
2361
2479
  :query_params => query_params,
2362
2480
  :form_params => form_params,
@@ -2389,12 +2507,13 @@ module Freeclimb
2389
2507
  if @api_client.config.debugging
2390
2508
  @api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
2391
2509
  end
2510
+
2392
2511
  # verify the required parameter 'recording_id' is set
2393
2512
  if @api_client.config.client_side_validation && recording_id.nil?
2394
2513
  fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
2395
2514
  end
2396
2515
  # resource path
2397
- local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
2516
+ local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
2398
2517
 
2399
2518
  # query parameters
2400
2519
  query_params = opts[:query_params] || {}
@@ -2408,15 +2527,16 @@ module Freeclimb
2408
2527
  form_params = opts[:form_params] || {}
2409
2528
 
2410
2529
  # http body (model)
2411
- post_body = opts[:body]
2530
+ post_body = opts[:debug_body]
2412
2531
 
2413
2532
  # return_type
2414
- return_type = opts[:return_type] || 'File'
2533
+ return_type = opts[:debug_return_type] || 'File'
2415
2534
 
2416
2535
  # auth_names
2417
- auth_names = opts[:auth_names] || ['fc']
2536
+ auth_names = opts[:debug_auth_names] || ['fc']
2418
2537
 
2419
2538
  new_options = opts.merge(
2539
+ :operation => :"DefaultApi.stream_a_recording_file",
2420
2540
  :header_params => header_params,
2421
2541
  :query_params => query_params,
2422
2542
  :form_params => form_params,
@@ -2451,12 +2571,13 @@ module Freeclimb
2451
2571
  if @api_client.config.debugging
2452
2572
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
2453
2573
  end
2574
+
2454
2575
  # verify the required parameter 'conference_id' is set
2455
2576
  if @api_client.config.client_side_validation && conference_id.nil?
2456
2577
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
2457
2578
  end
2458
2579
  # resource path
2459
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2580
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
2460
2581
 
2461
2582
  # query parameters
2462
2583
  query_params = opts[:query_params] || {}
@@ -2466,21 +2587,25 @@ module Freeclimb
2466
2587
  # HTTP header 'Accept' (if needed)
2467
2588
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2468
2589
  # HTTP header 'Content-Type'
2469
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2590
+ content_type = @api_client.select_header_content_type(['application/json'])
2591
+ if !content_type.nil?
2592
+ header_params['Content-Type'] = content_type
2593
+ end
2470
2594
 
2471
2595
  # form parameters
2472
2596
  form_params = opts[:form_params] || {}
2473
2597
 
2474
2598
  # http body (model)
2475
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
2599
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
2476
2600
 
2477
2601
  # return_type
2478
- return_type = opts[:return_type] || 'ConferenceResult'
2602
+ return_type = opts[:debug_return_type] || 'ConferenceResult'
2479
2603
 
2480
2604
  # auth_names
2481
- auth_names = opts[:auth_names] || ['fc']
2605
+ auth_names = opts[:debug_auth_names] || ['fc']
2482
2606
 
2483
2607
  new_options = opts.merge(
2608
+ :operation => :"DefaultApi.update_a_conference",
2484
2609
  :header_params => header_params,
2485
2610
  :query_params => query_params,
2486
2611
  :form_params => form_params,
@@ -2515,16 +2640,18 @@ module Freeclimb
2515
2640
  if @api_client.config.debugging
2516
2641
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
2517
2642
  end
2643
+
2518
2644
  # verify the required parameter 'call_id' is set
2519
2645
  if @api_client.config.client_side_validation && call_id.nil?
2520
2646
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
2521
2647
  end
2648
+
2522
2649
  # verify the required parameter 'update_call_request' is set
2523
2650
  if @api_client.config.client_side_validation && update_call_request.nil?
2524
2651
  fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
2525
2652
  end
2526
2653
  # resource path
2527
- local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2654
+ local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2528
2655
 
2529
2656
  # query parameters
2530
2657
  query_params = opts[:query_params] || {}
@@ -2532,21 +2659,25 @@ module Freeclimb
2532
2659
  # header parameters
2533
2660
  header_params = opts[:header_params] || {}
2534
2661
  # HTTP header 'Content-Type'
2535
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2662
+ content_type = @api_client.select_header_content_type(['application/json'])
2663
+ if !content_type.nil?
2664
+ header_params['Content-Type'] = content_type
2665
+ end
2536
2666
 
2537
2667
  # form parameters
2538
2668
  form_params = opts[:form_params] || {}
2539
2669
 
2540
2670
  # http body (model)
2541
- post_body = opts[:body] || @api_client.object_to_http_body(update_call_request)
2671
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_call_request)
2542
2672
 
2543
2673
  # return_type
2544
- return_type = opts[:return_type]
2674
+ return_type = opts[:debug_return_type]
2545
2675
 
2546
2676
  # auth_names
2547
- auth_names = opts[:auth_names] || ['fc']
2677
+ auth_names = opts[:debug_auth_names] || ['fc']
2548
2678
 
2549
2679
  new_options = opts.merge(
2680
+ :operation => :"DefaultApi.update_a_live_call",
2550
2681
  :header_params => header_params,
2551
2682
  :query_params => query_params,
2552
2683
  :form_params => form_params,
@@ -2583,16 +2714,18 @@ module Freeclimb
2583
2714
  if @api_client.config.debugging
2584
2715
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
2585
2716
  end
2717
+
2586
2718
  # verify the required parameter 'conference_id' is set
2587
2719
  if @api_client.config.client_side_validation && conference_id.nil?
2588
2720
  fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
2589
2721
  end
2722
+
2590
2723
  # verify the required parameter 'call_id' is set
2591
2724
  if @api_client.config.client_side_validation && call_id.nil?
2592
2725
  fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
2593
2726
  end
2594
2727
  # resource path
2595
- local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2728
+ local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
2596
2729
 
2597
2730
  # query parameters
2598
2731
  query_params = opts[:query_params] || {}
@@ -2602,21 +2735,25 @@ module Freeclimb
2602
2735
  # HTTP header 'Accept' (if needed)
2603
2736
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2604
2737
  # HTTP header 'Content-Type'
2605
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2738
+ content_type = @api_client.select_header_content_type(['application/json'])
2739
+ if !content_type.nil?
2740
+ header_params['Content-Type'] = content_type
2741
+ end
2606
2742
 
2607
2743
  # form parameters
2608
2744
  form_params = opts[:form_params] || {}
2609
2745
 
2610
2746
  # http body (model)
2611
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
2747
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
2612
2748
 
2613
2749
  # return_type
2614
- return_type = opts[:return_type] || 'ConferenceParticipantResult'
2750
+ return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
2615
2751
 
2616
2752
  # auth_names
2617
- auth_names = opts[:auth_names] || ['fc']
2753
+ auth_names = opts[:debug_auth_names] || ['fc']
2618
2754
 
2619
2755
  new_options = opts.merge(
2756
+ :operation => :"DefaultApi.update_a_participant",
2620
2757
  :header_params => header_params,
2621
2758
  :query_params => query_params,
2622
2759
  :form_params => form_params,
@@ -2651,12 +2788,13 @@ module Freeclimb
2651
2788
  if @api_client.config.debugging
2652
2789
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
2653
2790
  end
2791
+
2654
2792
  # verify the required parameter 'queue_id' is set
2655
2793
  if @api_client.config.client_side_validation && queue_id.nil?
2656
2794
  fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
2657
2795
  end
2658
2796
  # resource path
2659
- local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2797
+ local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
2660
2798
 
2661
2799
  # query parameters
2662
2800
  query_params = opts[:query_params] || {}
@@ -2666,21 +2804,25 @@ module Freeclimb
2666
2804
  # HTTP header 'Accept' (if needed)
2667
2805
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2668
2806
  # HTTP header 'Content-Type'
2669
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2807
+ content_type = @api_client.select_header_content_type(['application/json'])
2808
+ if !content_type.nil?
2809
+ header_params['Content-Type'] = content_type
2810
+ end
2670
2811
 
2671
2812
  # form parameters
2672
2813
  form_params = opts[:form_params] || {}
2673
2814
 
2674
2815
  # http body (model)
2675
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
2816
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
2676
2817
 
2677
2818
  # return_type
2678
- return_type = opts[:return_type] || 'QueueResult'
2819
+ return_type = opts[:debug_return_type] || 'QueueResult'
2679
2820
 
2680
2821
  # auth_names
2681
- auth_names = opts[:auth_names] || ['fc']
2822
+ auth_names = opts[:debug_auth_names] || ['fc']
2682
2823
 
2683
2824
  new_options = opts.merge(
2825
+ :operation => :"DefaultApi.update_a_queue",
2684
2826
  :header_params => header_params,
2685
2827
  :query_params => query_params,
2686
2828
  :form_params => form_params,
@@ -2714,7 +2856,7 @@ module Freeclimb
2714
2856
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
2715
2857
  end
2716
2858
  # resource path
2717
- local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
2859
+ local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
2718
2860
 
2719
2861
  # query parameters
2720
2862
  query_params = opts[:query_params] || {}
@@ -2722,21 +2864,25 @@ module Freeclimb
2722
2864
  # header parameters
2723
2865
  header_params = opts[:header_params] || {}
2724
2866
  # HTTP header 'Content-Type'
2725
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2867
+ content_type = @api_client.select_header_content_type(['application/json'])
2868
+ if !content_type.nil?
2869
+ header_params['Content-Type'] = content_type
2870
+ end
2726
2871
 
2727
2872
  # form parameters
2728
2873
  form_params = opts[:form_params] || {}
2729
2874
 
2730
2875
  # http body (model)
2731
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'account_request'])
2876
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])
2732
2877
 
2733
2878
  # return_type
2734
- return_type = opts[:return_type]
2879
+ return_type = opts[:debug_return_type]
2735
2880
 
2736
2881
  # auth_names
2737
- auth_names = opts[:auth_names] || ['fc']
2882
+ auth_names = opts[:debug_auth_names] || ['fc']
2738
2883
 
2739
2884
  new_options = opts.merge(
2885
+ :operation => :"DefaultApi.update_an_account",
2740
2886
  :header_params => header_params,
2741
2887
  :query_params => query_params,
2742
2888
  :form_params => form_params,
@@ -2771,12 +2917,13 @@ module Freeclimb
2771
2917
  if @api_client.config.debugging
2772
2918
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
2773
2919
  end
2920
+
2774
2921
  # verify the required parameter 'application_id' is set
2775
2922
  if @api_client.config.client_side_validation && application_id.nil?
2776
2923
  fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
2777
2924
  end
2778
2925
  # resource path
2779
- local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
2926
+ local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
2780
2927
 
2781
2928
  # query parameters
2782
2929
  query_params = opts[:query_params] || {}
@@ -2786,21 +2933,25 @@ module Freeclimb
2786
2933
  # HTTP header 'Accept' (if needed)
2787
2934
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2788
2935
  # HTTP header 'Content-Type'
2789
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2936
+ content_type = @api_client.select_header_content_type(['application/json'])
2937
+ if !content_type.nil?
2938
+ header_params['Content-Type'] = content_type
2939
+ end
2790
2940
 
2791
2941
  # form parameters
2792
2942
  form_params = opts[:form_params] || {}
2793
2943
 
2794
2944
  # http body (model)
2795
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
2945
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
2796
2946
 
2797
2947
  # return_type
2798
- return_type = opts[:return_type] || 'ApplicationResult'
2948
+ return_type = opts[:debug_return_type] || 'ApplicationResult'
2799
2949
 
2800
2950
  # auth_names
2801
- auth_names = opts[:auth_names] || ['fc']
2951
+ auth_names = opts[:debug_auth_names] || ['fc']
2802
2952
 
2803
2953
  new_options = opts.merge(
2954
+ :operation => :"DefaultApi.update_an_application",
2804
2955
  :header_params => header_params,
2805
2956
  :query_params => query_params,
2806
2957
  :form_params => form_params,
@@ -2835,12 +2986,13 @@ module Freeclimb
2835
2986
  if @api_client.config.debugging
2836
2987
  @api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
2837
2988
  end
2989
+
2838
2990
  # verify the required parameter 'phone_number_id' is set
2839
2991
  if @api_client.config.client_side_validation && phone_number_id.nil?
2840
2992
  fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
2841
2993
  end
2842
2994
  # resource path
2843
- local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
2995
+ local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
2844
2996
 
2845
2997
  # query parameters
2846
2998
  query_params = opts[:query_params] || {}
@@ -2850,21 +3002,25 @@ module Freeclimb
2850
3002
  # HTTP header 'Accept' (if needed)
2851
3003
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2852
3004
  # HTTP header 'Content-Type'
2853
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3005
+ content_type = @api_client.select_header_content_type(['application/json'])
3006
+ if !content_type.nil?
3007
+ header_params['Content-Type'] = content_type
3008
+ end
2854
3009
 
2855
3010
  # form parameters
2856
3011
  form_params = opts[:form_params] || {}
2857
3012
 
2858
3013
  # http body (model)
2859
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
3014
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
2860
3015
 
2861
3016
  # return_type
2862
- return_type = opts[:return_type] || 'IncomingNumberResult'
3017
+ return_type = opts[:debug_return_type] || 'IncomingNumberResult'
2863
3018
 
2864
3019
  # auth_names
2865
- auth_names = opts[:auth_names] || ['fc']
3020
+ auth_names = opts[:debug_auth_names] || ['fc']
2866
3021
 
2867
3022
  new_options = opts.merge(
3023
+ :operation => :"DefaultApi.update_an_incoming_number",
2868
3024
  :header_params => header_params,
2869
3025
  :query_params => query_params,
2870
3026
  :form_params => form_params,