freeclimb 3.0.2 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -1
- data/Gemfile.lock +33 -19
- data/README.md +40 -35
- data/docs/AccountRequest.md +9 -8
- data/docs/AccountResult.md +27 -26
- data/docs/AccountResultAllOf.md +19 -18
- data/docs/AddToConference.md +25 -24
- data/docs/AddToConferenceAllOf.md +25 -24
- data/docs/ApplicationList.md +21 -20
- data/docs/ApplicationListAllOf.md +7 -6
- data/docs/ApplicationRequest.md +19 -18
- data/docs/ApplicationResult.md +31 -30
- data/docs/ApplicationResultAllOf.md +23 -22
- data/docs/AvailableNumber.md +19 -14
- data/docs/AvailableNumberList.md +21 -20
- data/docs/AvailableNumberListAllOf.md +7 -6
- data/docs/BuyIncomingNumberRequest.md +11 -10
- data/docs/CallList.md +21 -20
- data/docs/CallListAllOf.md +7 -6
- data/docs/CallResult.md +43 -42
- data/docs/CallResultAllOf.md +35 -34
- data/docs/Capabilities.md +26 -0
- data/docs/ConferenceList.md +21 -20
- data/docs/ConferenceListAllOf.md +7 -6
- data/docs/ConferenceParticipantList.md +21 -20
- data/docs/ConferenceParticipantListAllOf.md +7 -6
- data/docs/ConferenceParticipantResult.md +25 -24
- data/docs/ConferenceParticipantResultAllOf.md +17 -16
- data/docs/ConferenceResult.md +33 -32
- data/docs/ConferenceResultAllOf.md +25 -24
- data/docs/CreateConference.md +17 -16
- data/docs/CreateConferenceAllOf.md +17 -16
- data/docs/CreateConferenceRequest.md +15 -14
- data/docs/DefaultApi.md +1625 -647
- data/docs/Dequeue.md +3 -4
- data/docs/Enqueue.md +13 -12
- data/docs/EnqueueAllOf.md +13 -12
- data/docs/FilterLogsRequest.md +7 -6
- data/docs/GetDigits.md +23 -22
- data/docs/GetDigitsAllOf.md +23 -22
- data/docs/GetSpeech.md +31 -30
- data/docs/GetSpeechAllOf.md +31 -30
- data/docs/Hangup.md +7 -6
- data/docs/HangupAllOf.md +7 -6
- data/docs/IncomingNumberList.md +21 -20
- data/docs/IncomingNumberListAllOf.md +7 -6
- data/docs/IncomingNumberRequest.md +9 -8
- data/docs/IncomingNumberResult.md +35 -30
- data/docs/IncomingNumberResultAllOf.md +27 -22
- data/docs/LogList.md +21 -20
- data/docs/LogListAllOf.md +7 -6
- data/docs/LogResult.md +19 -18
- data/docs/MakeCallRequest.md +25 -24
- data/docs/MessageRequest.md +23 -22
- data/docs/MessageRequestAllOf.md +15 -14
- data/docs/MessageResult.md +29 -28
- data/docs/MessageResultAllOf.md +21 -20
- data/docs/MessagesList.md +21 -20
- data/docs/MessagesListAllOf.md +7 -6
- data/docs/MutableResourceModel.md +13 -12
- data/docs/OutDial.md +25 -24
- data/docs/OutDialAllOf.md +25 -24
- data/docs/PaginationModel.md +19 -18
- data/docs/Park.md +22 -0
- data/docs/ParkAllOf.md +22 -0
- data/docs/Pause.md +7 -6
- data/docs/PauseAllOf.md +7 -6
- data/docs/PerclCommand.md +7 -6
- data/docs/PerclScript.md +7 -6
- data/docs/Play.md +13 -12
- data/docs/PlayAllOf.md +13 -12
- data/docs/PlayEarlyMedia.md +7 -6
- data/docs/PlayEarlyMediaAllOf.md +7 -6
- data/docs/QueueList.md +21 -20
- data/docs/QueueListAllOf.md +7 -6
- data/docs/QueueMember.md +15 -14
- data/docs/QueueMemberList.md +21 -20
- data/docs/QueueMemberListAllOf.md +7 -6
- data/docs/QueueRequest.md +9 -8
- data/docs/QueueResult.md +27 -26
- data/docs/QueueResultAllOf.md +19 -18
- data/docs/RecordUtterance.md +19 -18
- data/docs/RecordUtteranceAllOf.md +19 -18
- data/docs/RecordingList.md +21 -20
- data/docs/RecordingListAllOf.md +7 -6
- data/docs/RecordingResult.md +23 -22
- data/docs/RecordingResultAllOf.md +15 -14
- data/docs/Redirect.md +7 -6
- data/docs/RedirectAllOf.md +7 -6
- data/docs/Reject.md +7 -6
- data/docs/RejectAllOf.md +7 -6
- data/docs/RemoveFromConference.md +7 -6
- data/docs/RemoveFromConferenceAllOf.md +7 -6
- data/docs/Say.md +15 -14
- data/docs/SayAllOf.md +15 -14
- data/docs/SendDigits.md +11 -10
- data/docs/SendDigitsAllOf.md +11 -10
- data/docs/SetListen.md +9 -8
- data/docs/SetListenAllOf.md +9 -8
- data/docs/SetTalk.md +9 -8
- data/docs/SetTalkAllOf.md +9 -8
- data/docs/Sms.md +13 -12
- data/docs/SmsAllOf.md +13 -12
- data/docs/StartRecordCall.md +3 -4
- data/docs/TerminateConference.md +7 -6
- data/docs/TerminateConferenceAllOf.md +7 -6
- data/docs/Unpark.md +15 -0
- data/docs/UpdateCallRequest.md +7 -6
- data/docs/UpdateConferenceParticipantRequest.md +9 -8
- data/docs/UpdateConferenceRequest.md +11 -10
- data/freeclimb.gemspec +3 -4
- data/lib/freeclimb/api/default_api.rb +434 -278
- data/lib/freeclimb/api_client.rb +55 -51
- data/lib/freeclimb/api_error.rb +2 -2
- data/lib/freeclimb/configuration.rb +41 -11
- data/lib/freeclimb/models/account_request.rb +20 -8
- data/lib/freeclimb/models/account_result.rb +39 -8
- data/lib/freeclimb/models/account_result_all_of.rb +39 -8
- data/lib/freeclimb/models/add_to_conference.rb +21 -8
- data/lib/freeclimb/models/add_to_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/application_list.rb +28 -8
- data/lib/freeclimb/models/application_list_all_of.rb +21 -8
- data/lib/freeclimb/models/application_request.rb +20 -8
- data/lib/freeclimb/models/application_result.rb +29 -8
- data/lib/freeclimb/models/application_result_all_of.rb +29 -8
- data/lib/freeclimb/models/available_number.rb +46 -9
- data/lib/freeclimb/models/available_number_list.rb +28 -8
- data/lib/freeclimb/models/available_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/buy_incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/call_list.rb +28 -8
- data/lib/freeclimb/models/call_list_all_of.rb +21 -8
- data/lib/freeclimb/models/call_result.rb +35 -8
- data/lib/freeclimb/models/call_result_all_of.rb +35 -8
- data/lib/freeclimb/models/capabilities.rb +265 -0
- data/lib/freeclimb/models/conference_list.rb +28 -8
- data/lib/freeclimb/models/conference_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_list.rb +28 -8
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_result.rb +26 -8
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +26 -8
- data/lib/freeclimb/models/conference_result.rb +30 -8
- data/lib/freeclimb/models/conference_result_all_of.rb +30 -8
- data/lib/freeclimb/models/create_conference.rb +21 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/create_conference_request.rb +20 -8
- data/lib/freeclimb/models/dequeue.rb +21 -8
- data/lib/freeclimb/models/enqueue.rb +21 -8
- data/lib/freeclimb/models/enqueue_all_of.rb +20 -8
- data/lib/freeclimb/models/filter_logs_request.rb +20 -8
- data/lib/freeclimb/models/get_digits.rb +21 -8
- data/lib/freeclimb/models/get_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/get_speech.rb +21 -8
- data/lib/freeclimb/models/get_speech_all_of.rb +20 -8
- data/lib/freeclimb/models/hangup.rb +21 -8
- data/lib/freeclimb/models/hangup_all_of.rb +20 -8
- data/lib/freeclimb/models/incoming_number_list.rb +28 -8
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/incoming_number_result.rb +50 -9
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +50 -9
- data/lib/freeclimb/models/log_list.rb +28 -8
- data/lib/freeclimb/models/log_list_all_of.rb +21 -8
- data/lib/freeclimb/models/log_result.rb +27 -8
- data/lib/freeclimb/models/make_call_request.rb +22 -8
- data/lib/freeclimb/models/message_request.rb +20 -8
- data/lib/freeclimb/models/message_request_all_of.rb +20 -8
- data/lib/freeclimb/models/message_result.rb +28 -8
- data/lib/freeclimb/models/message_result_all_of.rb +28 -8
- data/lib/freeclimb/models/messages_list.rb +28 -8
- data/lib/freeclimb/models/messages_list_all_of.rb +21 -8
- data/lib/freeclimb/models/mutable_resource_model.rb +20 -8
- data/lib/freeclimb/models/out_dial.rb +21 -8
- data/lib/freeclimb/models/out_dial_all_of.rb +20 -8
- data/lib/freeclimb/models/pagination_model.rb +27 -8
- data/lib/freeclimb/models/park.rb +263 -0
- data/lib/freeclimb/models/park_all_of.rb +249 -0
- data/lib/freeclimb/models/pause.rb +21 -8
- data/lib/freeclimb/models/pause_all_of.rb +20 -8
- data/lib/freeclimb/models/percl_command.rb +38 -8
- data/lib/freeclimb/models/percl_script.rb +24 -8
- data/lib/freeclimb/models/play.rb +21 -8
- data/lib/freeclimb/models/play_all_of.rb +20 -8
- data/lib/freeclimb/models/play_early_media.rb +21 -8
- data/lib/freeclimb/models/play_early_media_all_of.rb +20 -8
- data/lib/freeclimb/models/queue_list.rb +28 -8
- data/lib/freeclimb/models/queue_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_member.rb +25 -8
- data/lib/freeclimb/models/queue_member_list.rb +28 -8
- data/lib/freeclimb/models/queue_member_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_request.rb +22 -8
- data/lib/freeclimb/models/queue_result.rb +27 -8
- data/lib/freeclimb/models/queue_result_all_of.rb +27 -8
- data/lib/freeclimb/models/record_utterance.rb +21 -8
- data/lib/freeclimb/models/record_utterance_all_of.rb +20 -8
- data/lib/freeclimb/models/recording_list.rb +28 -8
- data/lib/freeclimb/models/recording_list_all_of.rb +21 -8
- data/lib/freeclimb/models/recording_result.rb +25 -8
- data/lib/freeclimb/models/recording_result_all_of.rb +25 -8
- data/lib/freeclimb/models/redirect.rb +21 -8
- data/lib/freeclimb/models/redirect_all_of.rb +20 -8
- data/lib/freeclimb/models/reject.rb +21 -8
- data/lib/freeclimb/models/reject_all_of.rb +20 -8
- data/lib/freeclimb/models/remove_from_conference.rb +21 -8
- data/lib/freeclimb/models/remove_from_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/say.rb +23 -8
- data/lib/freeclimb/models/say_all_of.rb +22 -8
- data/lib/freeclimb/models/send_digits.rb +21 -8
- data/lib/freeclimb/models/send_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/set_listen.rb +21 -8
- data/lib/freeclimb/models/set_listen_all_of.rb +20 -8
- data/lib/freeclimb/models/set_talk.rb +21 -8
- data/lib/freeclimb/models/set_talk_all_of.rb +20 -8
- data/lib/freeclimb/models/sms.rb +21 -8
- data/lib/freeclimb/models/sms_all_of.rb +20 -8
- data/lib/freeclimb/models/start_record_call.rb +21 -8
- data/lib/freeclimb/models/terminate_conference.rb +21 -8
- data/lib/freeclimb/models/terminate_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/unpark.rb +222 -0
- data/lib/freeclimb/models/update_call_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_participant_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_request.rb +20 -8
- data/lib/freeclimb/version.rb +3 -3
- data/lib/freeclimb.rb +28 -52
- data/spec/api/default_api_spec.rb +1004 -21
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +10 -10
- data/spec/factories.rb +80 -0
- data/spec/models/account_request_spec.rb +5 -12
- data/spec/models/account_result_spec.rb +10 -13
- data/spec/models/add_to_conference_spec.rb +5 -12
- data/spec/models/application_list_spec.rb +5 -12
- data/spec/models/application_request_spec.rb +5 -12
- data/spec/models/application_result_spec.rb +5 -12
- data/spec/models/available_number_list_spec.rb +5 -12
- data/spec/models/available_number_spec.rb +11 -12
- data/spec/models/buy_incoming_number_request_spec.rb +5 -12
- data/spec/models/call_list_spec.rb +5 -12
- data/spec/models/call_result_spec.rb +6 -13
- data/spec/models/{say_all_of_spec.rb → capabilities_spec.rb} +13 -20
- data/spec/models/conference_list_spec.rb +5 -12
- data/spec/models/conference_participant_list_spec.rb +5 -12
- data/spec/models/conference_participant_result_spec.rb +5 -12
- data/spec/models/conference_result_spec.rb +7 -14
- data/spec/models/create_conference_request_spec.rb +6 -13
- data/spec/models/create_conference_spec.rb +5 -12
- data/spec/models/dequeue_spec.rb +5 -12
- data/spec/models/enqueue_spec.rb +5 -12
- data/spec/models/filter_logs_request_spec.rb +5 -12
- data/spec/models/get_digits_spec.rb +5 -12
- data/spec/models/get_speech_spec.rb +5 -12
- data/spec/models/hangup_spec.rb +5 -12
- data/spec/models/incoming_number_list_spec.rb +5 -12
- data/spec/models/incoming_number_request_spec.rb +5 -12
- data/spec/models/incoming_number_result_spec.rb +11 -12
- data/spec/models/log_list_spec.rb +5 -12
- data/spec/models/log_result_spec.rb +6 -13
- data/spec/models/make_call_request_spec.rb +5 -12
- data/spec/models/message_request_spec.rb +5 -12
- data/spec/models/message_result_spec.rb +6 -13
- data/spec/models/messages_list_spec.rb +5 -12
- data/spec/models/mutable_resource_model_spec.rb +5 -12
- data/spec/models/out_dial_spec.rb +5 -12
- data/spec/models/pagination_model_spec.rb +5 -12
- data/spec/models/{enqueue_all_of_spec.rb → park_spec.rb} +11 -24
- data/spec/models/pause_spec.rb +5 -12
- data/spec/models/percl_command_spec.rb +5 -12
- data/spec/models/percl_script_spec.rb +5 -12
- data/spec/models/play_early_media_spec.rb +5 -12
- data/spec/models/play_spec.rb +5 -12
- data/spec/models/queue_list_spec.rb +5 -12
- data/spec/models/queue_member_list_spec.rb +5 -12
- data/spec/models/queue_member_spec.rb +5 -12
- data/spec/models/queue_request_spec.rb +5 -12
- data/spec/models/queue_result_spec.rb +5 -12
- data/spec/models/record_utterance_spec.rb +5 -12
- data/spec/models/recording_list_spec.rb +5 -12
- data/spec/models/recording_result_spec.rb +5 -12
- data/spec/models/redirect_spec.rb +5 -12
- data/spec/models/reject_spec.rb +5 -12
- data/spec/models/remove_from_conference_spec.rb +5 -12
- data/spec/models/say_spec.rb +5 -12
- data/spec/models/send_digits_spec.rb +5 -12
- data/spec/models/set_listen_spec.rb +5 -12
- data/spec/models/set_talk_spec.rb +5 -12
- data/spec/models/sms_spec.rb +5 -12
- data/spec/models/start_record_call_spec.rb +5 -12
- data/spec/models/terminate_conference_spec.rb +5 -12
- data/spec/models/{pause_all_of_spec.rb → unpark_spec.rb} +8 -21
- data/spec/models/update_call_request_spec.rb +6 -13
- data/spec/models/update_conference_participant_request_spec.rb +5 -12
- data/spec/models/update_conference_request_spec.rb +6 -13
- data/spec/quickstart_spec.rb +10 -0
- data/spec/spec_helper.rb +61 -2
- metadata +75 -162
- data/lib/freeclimb/utils.rb +0 -34
- data/spec/api/web_mocks.rb +0 -473
- data/spec/models/account_result_all_of_spec.rb +0 -81
- data/spec/models/add_to_conference_all_of_spec.rb +0 -95
- data/spec/models/application_list_all_of_spec.rb +0 -41
- data/spec/models/application_result_all_of_spec.rb +0 -89
- data/spec/models/available_number_list_all_of_spec.rb +0 -41
- data/spec/models/call_list_all_of_spec.rb +0 -41
- data/spec/models/call_result_all_of_spec.rb +0 -129
- data/spec/models/conference_list_all_of_spec.rb +0 -41
- data/spec/models/conference_participant_list_all_of_spec.rb +0 -41
- data/spec/models/conference_participant_result_all_of_spec.rb +0 -71
- data/spec/models/conference_result_all_of_spec.rb +0 -103
- data/spec/models/create_conference_all_of_spec.rb +0 -71
- data/spec/models/get_digits_all_of_spec.rb +0 -89
- data/spec/models/get_speech_all_of_spec.rb +0 -113
- data/spec/models/hangup_all_of_spec.rb +0 -41
- data/spec/models/incoming_number_list_all_of_spec.rb +0 -41
- data/spec/models/incoming_number_result_all_of_spec.rb +0 -89
- data/spec/models/log_list_all_of_spec.rb +0 -41
- data/spec/models/message_request_all_of_spec.rb +0 -65
- data/spec/models/message_result_all_of_spec.rb +0 -87
- data/spec/models/messages_list_all_of_spec.rb +0 -41
- data/spec/models/out_dial_all_of_spec.rb +0 -95
- data/spec/models/play_all_of_spec.rb +0 -59
- data/spec/models/play_early_media_all_of_spec.rb +0 -41
- data/spec/models/queue_list_all_of_spec.rb +0 -41
- data/spec/models/queue_member_list_all_of_spec.rb +0 -41
- data/spec/models/queue_result_all_of_spec.rb +0 -77
- data/spec/models/record_utterance_all_of_spec.rb +0 -77
- data/spec/models/recording_list_all_of_spec.rb +0 -41
- data/spec/models/recording_result_all_of_spec.rb +0 -65
- data/spec/models/redirect_all_of_spec.rb +0 -41
- data/spec/models/reject_all_of_spec.rb +0 -41
- data/spec/models/remove_from_conference_all_of_spec.rb +0 -41
- data/spec/models/send_digits_all_of_spec.rb +0 -53
- data/spec/models/set_listen_all_of_spec.rb +0 -47
- data/spec/models/set_talk_all_of_spec.rb +0 -47
- data/spec/models/sms_all_of_spec.rb +0 -59
- data/spec/models/terminate_conference_all_of_spec.rb +0 -41
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
class CreateConferenceAllOf
|
@@ -44,6 +45,11 @@ module Freeclimb
|
|
44
45
|
}
|
45
46
|
end
|
46
47
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
47
53
|
# Attribute type mapping.
|
48
54
|
def self.openapi_types
|
49
55
|
{
|
@@ -158,7 +164,9 @@ module Freeclimb
|
|
158
164
|
def build_from_hash(attributes)
|
159
165
|
return nil unless attributes.is_a?(Hash)
|
160
166
|
self.class.openapi_types.each_pair do |key, type|
|
161
|
-
if
|
167
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
168
|
+
self.send("#{key}=", nil)
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
162
170
|
# check to ensure the input is an array given that the attribute
|
163
171
|
# is documented as an array but the input is not
|
164
172
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -166,7 +174,7 @@ module Freeclimb
|
|
166
174
|
end
|
167
175
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
176
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
169
|
-
end
|
177
|
+
end
|
170
178
|
end
|
171
179
|
|
172
180
|
self
|
@@ -178,8 +186,8 @@ module Freeclimb
|
|
178
186
|
# @return [Object] Deserialized data
|
179
187
|
def _deserialize(type, value)
|
180
188
|
case type.to_sym
|
181
|
-
when :
|
182
|
-
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
183
191
|
when :Date
|
184
192
|
Date.parse(value)
|
185
193
|
when :String
|
@@ -209,7 +217,9 @@ module Freeclimb
|
|
209
217
|
end
|
210
218
|
end
|
211
219
|
else # model
|
212
|
-
|
220
|
+
# models (e.g. Pet) or oneOf
|
221
|
+
klass = Freeclimb.const_get(type)
|
222
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
223
|
end
|
214
224
|
end
|
215
225
|
|
@@ -235,7 +245,7 @@ module Freeclimb
|
|
235
245
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
246
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
247
|
end
|
238
|
-
|
248
|
+
|
239
249
|
hash[param] = _to_hash(value)
|
240
250
|
end
|
241
251
|
hash
|
@@ -258,5 +268,7 @@ module Freeclimb
|
|
258
268
|
value
|
259
269
|
end
|
260
270
|
end
|
271
|
+
|
261
272
|
end
|
273
|
+
|
262
274
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
class CreateConferenceRequest
|
@@ -62,6 +63,11 @@ module Freeclimb
|
|
62
63
|
}
|
63
64
|
end
|
64
65
|
|
66
|
+
# Returns all the JSON keys this model knows about
|
67
|
+
def self.acceptable_attributes
|
68
|
+
attribute_map.values
|
69
|
+
end
|
70
|
+
|
65
71
|
# Attribute type mapping.
|
66
72
|
def self.openapi_types
|
67
73
|
{
|
@@ -179,7 +185,9 @@ module Freeclimb
|
|
179
185
|
def build_from_hash(attributes)
|
180
186
|
return nil unless attributes.is_a?(Hash)
|
181
187
|
self.class.openapi_types.each_pair do |key, type|
|
182
|
-
if
|
188
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
189
|
+
self.send("#{key}=", nil)
|
190
|
+
elsif type =~ /\AArray<(.*)>/i
|
183
191
|
# check to ensure the input is an array given that the attribute
|
184
192
|
# is documented as an array but the input is not
|
185
193
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -187,7 +195,7 @@ module Freeclimb
|
|
187
195
|
end
|
188
196
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
189
197
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
190
|
-
end
|
198
|
+
end
|
191
199
|
end
|
192
200
|
|
193
201
|
self
|
@@ -199,8 +207,8 @@ module Freeclimb
|
|
199
207
|
# @return [Object] Deserialized data
|
200
208
|
def _deserialize(type, value)
|
201
209
|
case type.to_sym
|
202
|
-
when :
|
203
|
-
|
210
|
+
when :Time
|
211
|
+
Time.parse(value)
|
204
212
|
when :Date
|
205
213
|
Date.parse(value)
|
206
214
|
when :String
|
@@ -230,7 +238,9 @@ module Freeclimb
|
|
230
238
|
end
|
231
239
|
end
|
232
240
|
else # model
|
233
|
-
|
241
|
+
# models (e.g. Pet) or oneOf
|
242
|
+
klass = Freeclimb.const_get(type)
|
243
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
234
244
|
end
|
235
245
|
end
|
236
246
|
|
@@ -256,7 +266,7 @@ module Freeclimb
|
|
256
266
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
257
267
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
258
268
|
end
|
259
|
-
|
269
|
+
|
260
270
|
hash[param] = _to_hash(value)
|
261
271
|
end
|
262
272
|
hash
|
@@ -279,5 +289,7 @@ module Freeclimb
|
|
279
289
|
value
|
280
290
|
end
|
281
291
|
end
|
292
|
+
|
282
293
|
end
|
294
|
+
|
283
295
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
# The `Dequeue` command transfers control of a Call that is in a Queue so that the waiting caller exits the Queue. Execution continues with the first command in the PerCL script returned by the `actionUrl` specified in the `Enqueue` command.
|
@@ -21,6 +22,11 @@ module Freeclimb
|
|
21
22
|
}
|
22
23
|
end
|
23
24
|
|
25
|
+
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
26
|
+
def self.acceptable_attributes
|
27
|
+
attribute_map.values.concat(superclass.acceptable_attributes)
|
28
|
+
end
|
29
|
+
|
24
30
|
# Attribute type mapping.
|
25
31
|
def self.openapi_types
|
26
32
|
{
|
@@ -57,6 +63,7 @@ module Freeclimb
|
|
57
63
|
|
58
64
|
# call parent's initialize
|
59
65
|
super(attributes)
|
66
|
+
self.command = "Dequeue"
|
60
67
|
end
|
61
68
|
|
62
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -105,7 +112,9 @@ module Freeclimb
|
|
105
112
|
return nil unless attributes.is_a?(Hash)
|
106
113
|
super(attributes)
|
107
114
|
self.class.openapi_types.each_pair do |key, type|
|
108
|
-
if
|
115
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
116
|
+
self.send("#{key}=", nil)
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
109
118
|
# check to ensure the input is an array given that the attribute
|
110
119
|
# is documented as an array but the input is not
|
111
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -113,7 +122,7 @@ module Freeclimb
|
|
113
122
|
end
|
114
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
-
end
|
125
|
+
end
|
117
126
|
end
|
118
127
|
|
119
128
|
self
|
@@ -125,8 +134,8 @@ module Freeclimb
|
|
125
134
|
# @return [Object] Deserialized data
|
126
135
|
def _deserialize(type, value)
|
127
136
|
case type.to_sym
|
128
|
-
when :
|
129
|
-
|
137
|
+
when :Time
|
138
|
+
Time.parse(value)
|
130
139
|
when :Date
|
131
140
|
Date.parse(value)
|
132
141
|
when :String
|
@@ -156,7 +165,9 @@ module Freeclimb
|
|
156
165
|
end
|
157
166
|
end
|
158
167
|
else # model
|
159
|
-
|
168
|
+
# models (e.g. Pet) or oneOf
|
169
|
+
klass = Freeclimb.const_get(type)
|
170
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
160
171
|
end
|
161
172
|
end
|
162
173
|
|
@@ -182,7 +193,7 @@ module Freeclimb
|
|
182
193
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
183
194
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
184
195
|
end
|
185
|
-
|
196
|
+
|
186
197
|
hash[param] = _to_hash(value)
|
187
198
|
end
|
188
199
|
hash
|
@@ -205,5 +216,7 @@ module Freeclimb
|
|
205
216
|
value
|
206
217
|
end
|
207
218
|
end
|
219
|
+
|
208
220
|
end
|
221
|
+
|
209
222
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
# The `Enqueue` command adds the current Call to a call Queue. If the specified Queue does not exist, it is created and then the Call is added to it. The default maximum length of the queue is 100. This can be modified using the REST API.
|
@@ -37,6 +38,11 @@ module Freeclimb
|
|
37
38
|
}
|
38
39
|
end
|
39
40
|
|
41
|
+
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values.concat(superclass.acceptable_attributes)
|
44
|
+
end
|
45
|
+
|
40
46
|
# Attribute type mapping.
|
41
47
|
def self.openapi_types
|
42
48
|
{
|
@@ -94,6 +100,7 @@ module Freeclimb
|
|
94
100
|
if attributes.key?(:'wait_url')
|
95
101
|
self.wait_url = attributes[:'wait_url']
|
96
102
|
end
|
103
|
+
self.command = "Enqueue"
|
97
104
|
end
|
98
105
|
|
99
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -161,7 +168,9 @@ module Freeclimb
|
|
161
168
|
return nil unless attributes.is_a?(Hash)
|
162
169
|
super(attributes)
|
163
170
|
self.class.openapi_types.each_pair do |key, type|
|
164
|
-
if
|
171
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
172
|
+
self.send("#{key}=", nil)
|
173
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
174
|
# check to ensure the input is an array given that the attribute
|
166
175
|
# is documented as an array but the input is not
|
167
176
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -169,7 +178,7 @@ module Freeclimb
|
|
169
178
|
end
|
170
179
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
180
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
-
end
|
181
|
+
end
|
173
182
|
end
|
174
183
|
|
175
184
|
self
|
@@ -181,8 +190,8 @@ module Freeclimb
|
|
181
190
|
# @return [Object] Deserialized data
|
182
191
|
def _deserialize(type, value)
|
183
192
|
case type.to_sym
|
184
|
-
when :
|
185
|
-
|
193
|
+
when :Time
|
194
|
+
Time.parse(value)
|
186
195
|
when :Date
|
187
196
|
Date.parse(value)
|
188
197
|
when :String
|
@@ -212,7 +221,9 @@ module Freeclimb
|
|
212
221
|
end
|
213
222
|
end
|
214
223
|
else # model
|
215
|
-
|
224
|
+
# models (e.g. Pet) or oneOf
|
225
|
+
klass = Freeclimb.const_get(type)
|
226
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
227
|
end
|
217
228
|
end
|
218
229
|
|
@@ -238,7 +249,7 @@ module Freeclimb
|
|
238
249
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
239
250
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
240
251
|
end
|
241
|
-
|
252
|
+
|
242
253
|
hash[param] = _to_hash(value)
|
243
254
|
end
|
244
255
|
hash
|
@@ -261,5 +272,7 @@ module Freeclimb
|
|
261
272
|
value
|
262
273
|
end
|
263
274
|
end
|
275
|
+
|
264
276
|
end
|
277
|
+
|
265
278
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
class EnqueueAllOf
|
@@ -36,6 +37,11 @@ module Freeclimb
|
|
36
37
|
}
|
37
38
|
end
|
38
39
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
39
45
|
# Attribute type mapping.
|
40
46
|
def self.openapi_types
|
41
47
|
{
|
@@ -148,7 +154,9 @@ module Freeclimb
|
|
148
154
|
def build_from_hash(attributes)
|
149
155
|
return nil unless attributes.is_a?(Hash)
|
150
156
|
self.class.openapi_types.each_pair do |key, type|
|
151
|
-
if
|
157
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
158
|
+
self.send("#{key}=", nil)
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
152
160
|
# check to ensure the input is an array given that the attribute
|
153
161
|
# is documented as an array but the input is not
|
154
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -156,7 +164,7 @@ module Freeclimb
|
|
156
164
|
end
|
157
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
166
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
|
-
end
|
167
|
+
end
|
160
168
|
end
|
161
169
|
|
162
170
|
self
|
@@ -168,8 +176,8 @@ module Freeclimb
|
|
168
176
|
# @return [Object] Deserialized data
|
169
177
|
def _deserialize(type, value)
|
170
178
|
case type.to_sym
|
171
|
-
when :
|
172
|
-
|
179
|
+
when :Time
|
180
|
+
Time.parse(value)
|
173
181
|
when :Date
|
174
182
|
Date.parse(value)
|
175
183
|
when :String
|
@@ -199,7 +207,9 @@ module Freeclimb
|
|
199
207
|
end
|
200
208
|
end
|
201
209
|
else # model
|
202
|
-
|
210
|
+
# models (e.g. Pet) or oneOf
|
211
|
+
klass = Freeclimb.const_get(type)
|
212
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
203
213
|
end
|
204
214
|
end
|
205
215
|
|
@@ -225,7 +235,7 @@ module Freeclimb
|
|
225
235
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
226
236
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
227
237
|
end
|
228
|
-
|
238
|
+
|
229
239
|
hash[param] = _to_hash(value)
|
230
240
|
end
|
231
241
|
hash
|
@@ -248,5 +258,7 @@ module Freeclimb
|
|
248
258
|
value
|
249
259
|
end
|
250
260
|
end
|
261
|
+
|
251
262
|
end
|
263
|
+
|
252
264
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
class FilterLogsRequest
|
@@ -24,6 +25,11 @@ module Freeclimb
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -108,7 +114,9 @@ module Freeclimb
|
|
108
114
|
def build_from_hash(attributes)
|
109
115
|
return nil unless attributes.is_a?(Hash)
|
110
116
|
self.class.openapi_types.each_pair do |key, type|
|
111
|
-
if
|
117
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
118
|
+
self.send("#{key}=", nil)
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
112
120
|
# check to ensure the input is an array given that the attribute
|
113
121
|
# is documented as an array but the input is not
|
114
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -116,7 +124,7 @@ module Freeclimb
|
|
116
124
|
end
|
117
125
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
126
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
-
end
|
127
|
+
end
|
120
128
|
end
|
121
129
|
|
122
130
|
self
|
@@ -128,8 +136,8 @@ module Freeclimb
|
|
128
136
|
# @return [Object] Deserialized data
|
129
137
|
def _deserialize(type, value)
|
130
138
|
case type.to_sym
|
131
|
-
when :
|
132
|
-
|
139
|
+
when :Time
|
140
|
+
Time.parse(value)
|
133
141
|
when :Date
|
134
142
|
Date.parse(value)
|
135
143
|
when :String
|
@@ -159,7 +167,9 @@ module Freeclimb
|
|
159
167
|
end
|
160
168
|
end
|
161
169
|
else # model
|
162
|
-
|
170
|
+
# models (e.g. Pet) or oneOf
|
171
|
+
klass = Freeclimb.const_get(type)
|
172
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
173
|
end
|
164
174
|
end
|
165
175
|
|
@@ -185,7 +195,7 @@ module Freeclimb
|
|
185
195
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
196
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
197
|
end
|
188
|
-
|
198
|
+
|
189
199
|
hash[param] = _to_hash(value)
|
190
200
|
end
|
191
201
|
hash
|
@@ -208,5 +218,7 @@ module Freeclimb
|
|
208
218
|
value
|
209
219
|
end
|
210
220
|
end
|
221
|
+
|
211
222
|
end
|
223
|
+
|
212
224
|
end
|
@@ -4,13 +4,14 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module Freeclimb
|
16
17
|
# The `GetDigits` command collects DTMF inputs from the caller. It is only supported only when there is a single party on the Call. `GetDigits` is a Terminal Command — any actions following it are never executed. When the Caller is done entering the digits, FreeClimb submits that data to the provided `actionUrl` using an HTTP POST request. Your server will be required to respond to the FreeClimb Webhook with PerCL to continue handling the call.
|
@@ -57,6 +58,11 @@ module Freeclimb
|
|
57
58
|
}
|
58
59
|
end
|
59
60
|
|
61
|
+
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
62
|
+
def self.acceptable_attributes
|
63
|
+
attribute_map.values.concat(superclass.acceptable_attributes)
|
64
|
+
end
|
65
|
+
|
60
66
|
# Attribute type mapping.
|
61
67
|
def self.openapi_types
|
62
68
|
{
|
@@ -141,6 +147,7 @@ module Freeclimb
|
|
141
147
|
if attributes.key?(:'privacy_mode')
|
142
148
|
self.privacy_mode = attributes[:'privacy_mode']
|
143
149
|
end
|
150
|
+
self.command = "GetDigits"
|
144
151
|
end
|
145
152
|
|
146
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -203,7 +210,9 @@ module Freeclimb
|
|
203
210
|
return nil unless attributes.is_a?(Hash)
|
204
211
|
super(attributes)
|
205
212
|
self.class.openapi_types.each_pair do |key, type|
|
206
|
-
if
|
213
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
214
|
+
self.send("#{key}=", nil)
|
215
|
+
elsif type =~ /\AArray<(.*)>/i
|
207
216
|
# check to ensure the input is an array given that the attribute
|
208
217
|
# is documented as an array but the input is not
|
209
218
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -211,7 +220,7 @@ module Freeclimb
|
|
211
220
|
end
|
212
221
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
213
222
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
214
|
-
end
|
223
|
+
end
|
215
224
|
end
|
216
225
|
|
217
226
|
self
|
@@ -223,8 +232,8 @@ module Freeclimb
|
|
223
232
|
# @return [Object] Deserialized data
|
224
233
|
def _deserialize(type, value)
|
225
234
|
case type.to_sym
|
226
|
-
when :
|
227
|
-
|
235
|
+
when :Time
|
236
|
+
Time.parse(value)
|
228
237
|
when :Date
|
229
238
|
Date.parse(value)
|
230
239
|
when :String
|
@@ -254,7 +263,9 @@ module Freeclimb
|
|
254
263
|
end
|
255
264
|
end
|
256
265
|
else # model
|
257
|
-
|
266
|
+
# models (e.g. Pet) or oneOf
|
267
|
+
klass = Freeclimb.const_get(type)
|
268
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
258
269
|
end
|
259
270
|
end
|
260
271
|
|
@@ -280,7 +291,7 @@ module Freeclimb
|
|
280
291
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
281
292
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
282
293
|
end
|
283
|
-
|
294
|
+
|
284
295
|
hash[param] = _to_hash(value)
|
285
296
|
end
|
286
297
|
hash
|
@@ -303,5 +314,7 @@ module Freeclimb
|
|
303
314
|
value
|
304
315
|
end
|
305
316
|
end
|
317
|
+
|
306
318
|
end
|
319
|
+
|
307
320
|
end
|