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 MessagesListAllOf
|
@@ -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
|
{
|
@@ -34,6 +40,7 @@ module Freeclimb
|
|
34
40
|
# List of attributes with nullable: true
|
35
41
|
def self.openapi_nullable
|
36
42
|
Set.new([
|
43
|
+
:'messages'
|
37
44
|
])
|
38
45
|
end
|
39
46
|
|
@@ -105,7 +112,9 @@ module Freeclimb
|
|
105
112
|
def build_from_hash(attributes)
|
106
113
|
return nil unless attributes.is_a?(Hash)
|
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
|
class MutableResourceModel
|
@@ -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
|
{
|
@@ -133,7 +139,9 @@ module Freeclimb
|
|
133
139
|
def build_from_hash(attributes)
|
134
140
|
return nil unless attributes.is_a?(Hash)
|
135
141
|
self.class.openapi_types.each_pair do |key, type|
|
136
|
-
if
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
|
+
self.send("#{key}=", nil)
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
137
145
|
# check to ensure the input is an array given that the attribute
|
138
146
|
# is documented as an array but the input is not
|
139
147
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -141,7 +149,7 @@ module Freeclimb
|
|
141
149
|
end
|
142
150
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
143
151
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
144
|
-
end
|
152
|
+
end
|
145
153
|
end
|
146
154
|
|
147
155
|
self
|
@@ -153,8 +161,8 @@ module Freeclimb
|
|
153
161
|
# @return [Object] Deserialized data
|
154
162
|
def _deserialize(type, value)
|
155
163
|
case type.to_sym
|
156
|
-
when :
|
157
|
-
|
164
|
+
when :Time
|
165
|
+
Time.parse(value)
|
158
166
|
when :Date
|
159
167
|
Date.parse(value)
|
160
168
|
when :String
|
@@ -184,7 +192,9 @@ module Freeclimb
|
|
184
192
|
end
|
185
193
|
end
|
186
194
|
else # model
|
187
|
-
|
195
|
+
# models (e.g. Pet) or oneOf
|
196
|
+
klass = Freeclimb.const_get(type)
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
198
|
end
|
189
199
|
end
|
190
200
|
|
@@ -210,7 +220,7 @@ module Freeclimb
|
|
210
220
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
211
221
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
212
222
|
end
|
213
|
-
|
223
|
+
|
214
224
|
hash[param] = _to_hash(value)
|
215
225
|
end
|
216
226
|
hash
|
@@ -233,5 +243,7 @@ module Freeclimb
|
|
233
243
|
value
|
234
244
|
end
|
235
245
|
end
|
246
|
+
|
236
247
|
end
|
248
|
+
|
237
249
|
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 OutDial command is used to call a phone number
|
@@ -61,6 +62,11 @@ module Freeclimb
|
|
61
62
|
}
|
62
63
|
end
|
63
64
|
|
65
|
+
# Returns all the JSON keys this model knows about, including the ones defined in its parent(s)
|
66
|
+
def self.acceptable_attributes
|
67
|
+
attribute_map.values.concat(superclass.acceptable_attributes)
|
68
|
+
end
|
69
|
+
|
64
70
|
# Attribute type mapping.
|
65
71
|
def self.openapi_types
|
66
72
|
{
|
@@ -148,6 +154,7 @@ module Freeclimb
|
|
148
154
|
if attributes.key?(:'privacy_mode')
|
149
155
|
self.privacy_mode = attributes[:'privacy_mode']
|
150
156
|
end
|
157
|
+
self.command = "OutDial"
|
151
158
|
end
|
152
159
|
|
153
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -226,7 +233,9 @@ module Freeclimb
|
|
226
233
|
return nil unless attributes.is_a?(Hash)
|
227
234
|
super(attributes)
|
228
235
|
self.class.openapi_types.each_pair do |key, type|
|
229
|
-
if
|
236
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
237
|
+
self.send("#{key}=", nil)
|
238
|
+
elsif type =~ /\AArray<(.*)>/i
|
230
239
|
# check to ensure the input is an array given that the attribute
|
231
240
|
# is documented as an array but the input is not
|
232
241
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -234,7 +243,7 @@ module Freeclimb
|
|
234
243
|
end
|
235
244
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
236
245
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
237
|
-
end
|
246
|
+
end
|
238
247
|
end
|
239
248
|
|
240
249
|
self
|
@@ -246,8 +255,8 @@ module Freeclimb
|
|
246
255
|
# @return [Object] Deserialized data
|
247
256
|
def _deserialize(type, value)
|
248
257
|
case type.to_sym
|
249
|
-
when :
|
250
|
-
|
258
|
+
when :Time
|
259
|
+
Time.parse(value)
|
251
260
|
when :Date
|
252
261
|
Date.parse(value)
|
253
262
|
when :String
|
@@ -277,7 +286,9 @@ module Freeclimb
|
|
277
286
|
end
|
278
287
|
end
|
279
288
|
else # model
|
280
|
-
|
289
|
+
# models (e.g. Pet) or oneOf
|
290
|
+
klass = Freeclimb.const_get(type)
|
291
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
281
292
|
end
|
282
293
|
end
|
283
294
|
|
@@ -303,7 +314,7 @@ module Freeclimb
|
|
303
314
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
304
315
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
305
316
|
end
|
306
|
-
|
317
|
+
|
307
318
|
hash[param] = _to_hash(value)
|
308
319
|
end
|
309
320
|
hash
|
@@ -326,5 +337,7 @@ module Freeclimb
|
|
326
337
|
value
|
327
338
|
end
|
328
339
|
end
|
340
|
+
|
329
341
|
end
|
342
|
+
|
330
343
|
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 OutDialAllOf
|
@@ -60,6 +61,11 @@ module Freeclimb
|
|
60
61
|
}
|
61
62
|
end
|
62
63
|
|
64
|
+
# Returns all the JSON keys this model knows about
|
65
|
+
def self.acceptable_attributes
|
66
|
+
attribute_map.values
|
67
|
+
end
|
68
|
+
|
63
69
|
# Attribute type mapping.
|
64
70
|
def self.openapi_types
|
65
71
|
{
|
@@ -213,7 +219,9 @@ module Freeclimb
|
|
213
219
|
def build_from_hash(attributes)
|
214
220
|
return nil unless attributes.is_a?(Hash)
|
215
221
|
self.class.openapi_types.each_pair do |key, type|
|
216
|
-
if
|
222
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
223
|
+
self.send("#{key}=", nil)
|
224
|
+
elsif type =~ /\AArray<(.*)>/i
|
217
225
|
# check to ensure the input is an array given that the attribute
|
218
226
|
# is documented as an array but the input is not
|
219
227
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -221,7 +229,7 @@ module Freeclimb
|
|
221
229
|
end
|
222
230
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
223
231
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
224
|
-
end
|
232
|
+
end
|
225
233
|
end
|
226
234
|
|
227
235
|
self
|
@@ -233,8 +241,8 @@ module Freeclimb
|
|
233
241
|
# @return [Object] Deserialized data
|
234
242
|
def _deserialize(type, value)
|
235
243
|
case type.to_sym
|
236
|
-
when :
|
237
|
-
|
244
|
+
when :Time
|
245
|
+
Time.parse(value)
|
238
246
|
when :Date
|
239
247
|
Date.parse(value)
|
240
248
|
when :String
|
@@ -264,7 +272,9 @@ module Freeclimb
|
|
264
272
|
end
|
265
273
|
end
|
266
274
|
else # model
|
267
|
-
|
275
|
+
# models (e.g. Pet) or oneOf
|
276
|
+
klass = Freeclimb.const_get(type)
|
277
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
268
278
|
end
|
269
279
|
end
|
270
280
|
|
@@ -290,7 +300,7 @@ module Freeclimb
|
|
290
300
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
291
301
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
292
302
|
end
|
293
|
-
|
303
|
+
|
294
304
|
hash[param] = _to_hash(value)
|
295
305
|
end
|
296
306
|
hash
|
@@ -313,5 +323,7 @@ module Freeclimb
|
|
313
323
|
value
|
314
324
|
end
|
315
325
|
end
|
326
|
+
|
316
327
|
end
|
328
|
+
|
317
329
|
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 PaginationModel
|
@@ -48,6 +49,11 @@ module Freeclimb
|
|
48
49
|
}
|
49
50
|
end
|
50
51
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
53
|
+
def self.acceptable_attributes
|
54
|
+
attribute_map.values
|
55
|
+
end
|
56
|
+
|
51
57
|
# Attribute type mapping.
|
52
58
|
def self.openapi_types
|
53
59
|
{
|
@@ -64,6 +70,13 @@ module Freeclimb
|
|
64
70
|
# List of attributes with nullable: true
|
65
71
|
def self.openapi_nullable
|
66
72
|
Set.new([
|
73
|
+
:'total',
|
74
|
+
:'start',
|
75
|
+
:'_end',
|
76
|
+
:'page',
|
77
|
+
:'num_pages',
|
78
|
+
:'page_size',
|
79
|
+
:'next_page_uri'
|
67
80
|
])
|
68
81
|
end
|
69
82
|
|
@@ -163,7 +176,9 @@ module Freeclimb
|
|
163
176
|
def build_from_hash(attributes)
|
164
177
|
return nil unless attributes.is_a?(Hash)
|
165
178
|
self.class.openapi_types.each_pair do |key, type|
|
166
|
-
if
|
179
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
180
|
+
self.send("#{key}=", nil)
|
181
|
+
elsif type =~ /\AArray<(.*)>/i
|
167
182
|
# check to ensure the input is an array given that the attribute
|
168
183
|
# is documented as an array but the input is not
|
169
184
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -171,7 +186,7 @@ module Freeclimb
|
|
171
186
|
end
|
172
187
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
188
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
174
|
-
end
|
189
|
+
end
|
175
190
|
end
|
176
191
|
|
177
192
|
self
|
@@ -183,8 +198,8 @@ module Freeclimb
|
|
183
198
|
# @return [Object] Deserialized data
|
184
199
|
def _deserialize(type, value)
|
185
200
|
case type.to_sym
|
186
|
-
when :
|
187
|
-
|
201
|
+
when :Time
|
202
|
+
Time.parse(value)
|
188
203
|
when :Date
|
189
204
|
Date.parse(value)
|
190
205
|
when :String
|
@@ -214,7 +229,9 @@ module Freeclimb
|
|
214
229
|
end
|
215
230
|
end
|
216
231
|
else # model
|
217
|
-
|
232
|
+
# models (e.g. Pet) or oneOf
|
233
|
+
klass = Freeclimb.const_get(type)
|
234
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
235
|
end
|
219
236
|
end
|
220
237
|
|
@@ -240,7 +257,7 @@ module Freeclimb
|
|
240
257
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
258
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
259
|
end
|
243
|
-
|
260
|
+
|
244
261
|
hash[param] = _to_hash(value)
|
245
262
|
end
|
246
263
|
hash
|
@@ -263,5 +280,7 @@ module Freeclimb
|
|
263
280
|
value
|
264
281
|
end
|
265
282
|
end
|
283
|
+
|
266
284
|
end
|
285
|
+
|
267
286
|
end
|