freeclimb 4.0.4 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +91 -9
- data/Gemfile.lock +1 -1
- data/README.md +25 -4
- data/docs/AccountResult.md +2 -2
- data/docs/AccountResultAllOf.md +2 -2
- data/docs/AccountStatus.md +18 -0
- data/docs/AccountType.md +17 -0
- data/docs/AnsweredBy.md +17 -0
- data/docs/CallDirection.md +18 -0
- data/docs/CallResult.md +3 -3
- data/docs/CallResultAllOf.md +3 -3
- data/docs/CallStatus.md +23 -0
- data/docs/ConferenceResult.md +2 -2
- data/docs/ConferenceResultAllOf.md +2 -2
- data/docs/ConferenceStatus.md +19 -0
- data/docs/CreateConference.md +2 -2
- data/docs/CreateConferenceAllOf.md +2 -2
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +5 -5
- data/docs/Dequeue.md +1 -1
- data/docs/GetSpeech.md +3 -3
- data/docs/GetSpeechAllOf.md +3 -3
- data/docs/GetSpeechReason.md +21 -0
- data/docs/GrammarFileBuiltIn.md +30 -0
- data/docs/GrammarType.md +17 -0
- data/docs/IfMachine.md +17 -0
- data/docs/Language.md +41 -0
- data/docs/LogLevel.md +18 -0
- data/docs/LogResult.md +1 -1
- data/docs/MachineType.md +17 -0
- data/docs/MessageDirection.md +17 -0
- data/docs/MessageResult.md +1 -1
- data/docs/MessageResultAllOf.md +1 -1
- data/docs/MessageStatus.md +26 -0
- data/docs/OutDial.md +1 -1
- data/docs/OutDialAllOf.md +1 -1
- data/docs/PlayBeep.md +19 -0
- data/docs/QueueResultStatus.md +19 -0
- data/docs/RecordUtteranceTermReason.md +19 -0
- data/docs/RequestType.md +38 -0
- data/docs/StartRecordCall.md +1 -1
- data/docs/Unpark.md +1 -1
- data/docs/UpdateCallRequest.md +1 -1
- data/docs/UpdateCallRequestStatus.md +17 -0
- data/docs/UpdateConferenceRequest.md +2 -2
- data/docs/UpdateConferenceRequestStatus.md +17 -0
- data/lib/freeclimb/api/default_api.rb +4 -8
- data/lib/freeclimb/models/account_result.rb +2 -52
- data/lib/freeclimb/models/account_result_all_of.rb +2 -52
- data/lib/freeclimb/models/account_status.rb +38 -0
- data/lib/freeclimb/models/account_type.rb +37 -0
- data/lib/freeclimb/models/answered_by.rb +37 -0
- data/lib/freeclimb/models/call_direction.rb +38 -0
- data/lib/freeclimb/models/call_result.rb +3 -43
- data/lib/freeclimb/models/call_result_all_of.rb +3 -43
- data/lib/freeclimb/models/call_status.rb +43 -0
- data/lib/freeclimb/models/conference_result.rb +4 -52
- data/lib/freeclimb/models/conference_result_all_of.rb +4 -52
- data/lib/freeclimb/models/conference_status.rb +39 -0
- data/lib/freeclimb/models/create_conference.rb +4 -3
- data/lib/freeclimb/models/create_conference_all_of.rb +4 -3
- data/lib/freeclimb/models/create_conference_request.rb +1 -36
- data/lib/freeclimb/models/get_speech.rb +3 -4
- data/lib/freeclimb/models/get_speech_all_of.rb +3 -4
- data/lib/freeclimb/models/get_speech_reason.rb +41 -0
- data/lib/freeclimb/models/grammar_file_built_in.rb +50 -0
- data/lib/freeclimb/models/grammar_type.rb +37 -0
- data/lib/freeclimb/models/if_machine.rb +37 -0
- data/lib/freeclimb/models/language.rb +61 -0
- data/lib/freeclimb/models/log_level.rb +38 -0
- data/lib/freeclimb/models/log_result.rb +1 -37
- data/lib/freeclimb/models/machine_type.rb +37 -0
- data/lib/freeclimb/models/message_direction.rb +37 -0
- data/lib/freeclimb/models/message_result.rb +1 -37
- data/lib/freeclimb/models/message_result_all_of.rb +1 -37
- data/lib/freeclimb/models/message_status.rb +46 -0
- data/lib/freeclimb/models/out_dial.rb +1 -2
- data/lib/freeclimb/models/out_dial_all_of.rb +1 -2
- data/lib/freeclimb/models/play_beep.rb +39 -0
- data/lib/freeclimb/models/queue_result_status.rb +39 -0
- data/lib/freeclimb/models/record_utterance_term_reason.rb +39 -0
- data/lib/freeclimb/models/request_type.rb +58 -0
- data/lib/freeclimb/models/update_call_request.rb +1 -36
- data/lib/freeclimb/models/update_call_request_status.rb +37 -0
- data/lib/freeclimb/models/update_conference_request.rb +2 -50
- data/lib/freeclimb/models/update_conference_request_status.rb +37 -0
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +21 -0
- data/openapi.json +4220 -0
- data/spec/api/default_api_spec.rb +532 -700
- data/spec/configuration_spec.rb +2 -1
- data/spec/models/account_result_spec.rb +0 -8
- data/spec/models/account_status_spec.rb +43 -0
- data/spec/models/account_type_spec.rb +38 -0
- data/spec/models/answered_by_spec.rb +38 -0
- data/spec/models/available_number_spec.rb +6 -0
- data/spec/models/call_direction_spec.rb +43 -0
- data/spec/models/call_result_spec.rb +0 -4
- data/spec/models/call_status_spec.rb +68 -0
- data/spec/models/conference_result_spec.rb +0 -8
- data/spec/models/conference_status_spec.rb +48 -0
- data/spec/models/create_conference_request_spec.rb +0 -4
- data/spec/models/get_speech_reason_spec.rb +58 -0
- data/spec/models/grammar_file_built_in_spec.rb +103 -0
- data/spec/models/grammar_type_spec.rb +38 -0
- data/spec/models/if_machine_spec.rb +38 -0
- data/spec/models/incoming_number_result_spec.rb +12 -0
- data/spec/models/language_spec.rb +158 -0
- data/spec/models/log_level_spec.rb +43 -0
- data/spec/models/log_result_spec.rb +0 -4
- data/spec/models/machine_type_spec.rb +38 -0
- data/spec/models/message_direction_spec.rb +38 -0
- data/spec/models/message_result_spec.rb +0 -4
- data/spec/models/message_status_spec.rb +83 -0
- data/spec/models/play_beep_spec.rb +48 -0
- data/spec/models/queue_result_spec.rb +1 -1
- data/spec/models/queue_result_status_spec.rb +48 -0
- data/spec/models/record_utterance_term_reason_spec.rb +48 -0
- data/spec/models/request_type_spec.rb +143 -0
- data/spec/models/update_call_request_spec.rb +0 -4
- data/spec/models/update_call_request_status_spec.rb +38 -0
- data/spec/models/update_conference_request_spec.rb +0 -4
- data/spec/models/update_conference_request_status_spec.rb +38 -0
- metadata +138 -53
@@ -36,13 +36,11 @@ module Freeclimb
|
|
36
36
|
# A description for this Conference.
|
37
37
|
attr_accessor :_alias
|
38
38
|
|
39
|
-
# Setting that controls when a beep is played. One of: always, never, entryOnly, exitOnly. Defaults to always.
|
40
39
|
attr_accessor :play_beep
|
41
40
|
|
42
41
|
# Flag indicating whether recording is enabled for this Conference.
|
43
42
|
attr_accessor :record
|
44
43
|
|
45
|
-
# The status of the Conference. One of: creating, empty, populated, inProgress, or terminated.
|
46
44
|
attr_accessor :status
|
47
45
|
|
48
46
|
# URL referencing the audio file to be used as default wait music for the Conference when it is in the populated state.
|
@@ -57,28 +55,6 @@ module Freeclimb
|
|
57
55
|
# The list of subresources for this Conference. This includes participants and/or recordings.
|
58
56
|
attr_accessor :subresource_uris
|
59
57
|
|
60
|
-
class EnumAttributeValidator
|
61
|
-
attr_reader :datatype
|
62
|
-
attr_reader :allowable_values
|
63
|
-
|
64
|
-
def initialize(datatype, allowable_values)
|
65
|
-
@allowable_values = allowable_values.map do |value|
|
66
|
-
case datatype.to_s
|
67
|
-
when /Integer/i
|
68
|
-
value.to_i
|
69
|
-
when /Float/i
|
70
|
-
value.to_f
|
71
|
-
else
|
72
|
-
value
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
def valid?(value)
|
78
|
-
!value || allowable_values.include?(value)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
59
|
def self.attribute_map
|
84
60
|
{
|
@@ -114,9 +90,9 @@ module Freeclimb
|
|
114
90
|
:'conference_id' => :'String',
|
115
91
|
:'account_id' => :'String',
|
116
92
|
:'_alias' => :'String',
|
117
|
-
:'play_beep' => :'
|
93
|
+
:'play_beep' => :'PlayBeep',
|
118
94
|
:'record' => :'Boolean',
|
119
|
-
:'status' => :'
|
95
|
+
:'status' => :'ConferenceStatus',
|
120
96
|
:'wait_url' => :'String',
|
121
97
|
:'action_url' => :'String',
|
122
98
|
:'status_callback_url' => :'String',
|
@@ -130,9 +106,7 @@ module Freeclimb
|
|
130
106
|
:'conference_id',
|
131
107
|
:'account_id',
|
132
108
|
:'_alias',
|
133
|
-
:'play_beep',
|
134
109
|
:'record',
|
135
|
-
:'status',
|
136
110
|
:'wait_url',
|
137
111
|
:'action_url',
|
138
112
|
:'status_callback_url',
|
@@ -193,6 +167,8 @@ module Freeclimb
|
|
193
167
|
|
194
168
|
if attributes.key?(:'play_beep')
|
195
169
|
self.play_beep = attributes[:'play_beep']
|
170
|
+
else
|
171
|
+
self.play_beep = 'always'
|
196
172
|
end
|
197
173
|
|
198
174
|
if attributes.key?(:'record')
|
@@ -230,33 +206,9 @@ module Freeclimb
|
|
230
206
|
# Check to see if the all the properties in the model are valid
|
231
207
|
# @return true if the model is valid
|
232
208
|
def valid?
|
233
|
-
play_beep_validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
234
|
-
return false unless play_beep_validator.valid?(@play_beep)
|
235
|
-
status_validator = EnumAttributeValidator.new('String', ["creating", "empty", "populated", "inProgress", "terminated"])
|
236
|
-
return false unless status_validator.valid?(@status)
|
237
209
|
true
|
238
210
|
end
|
239
211
|
|
240
|
-
# Custom attribute writer method checking allowed values (enum).
|
241
|
-
# @param [Object] play_beep Object to be assigned
|
242
|
-
def play_beep=(play_beep)
|
243
|
-
validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
244
|
-
unless validator.valid?(play_beep)
|
245
|
-
fail ArgumentError, "invalid value for \"play_beep\", must be one of #{validator.allowable_values}."
|
246
|
-
end
|
247
|
-
@play_beep = play_beep
|
248
|
-
end
|
249
|
-
|
250
|
-
# Custom attribute writer method checking allowed values (enum).
|
251
|
-
# @param [Object] status Object to be assigned
|
252
|
-
def status=(status)
|
253
|
-
validator = EnumAttributeValidator.new('String', ["creating", "empty", "populated", "inProgress", "terminated"])
|
254
|
-
unless validator.valid?(status)
|
255
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
256
|
-
end
|
257
|
-
@status = status
|
258
|
-
end
|
259
|
-
|
260
212
|
# Checks equality by comparing each attribute.
|
261
213
|
# @param [Object] Object to be compared
|
262
214
|
def ==(o)
|
@@ -24,13 +24,11 @@ module Freeclimb
|
|
24
24
|
# A description for this Conference.
|
25
25
|
attr_accessor :_alias
|
26
26
|
|
27
|
-
# Setting that controls when a beep is played. One of: always, never, entryOnly, exitOnly. Defaults to always.
|
28
27
|
attr_accessor :play_beep
|
29
28
|
|
30
29
|
# Flag indicating whether recording is enabled for this Conference.
|
31
30
|
attr_accessor :record
|
32
31
|
|
33
|
-
# The status of the Conference. One of: creating, empty, populated, inProgress, or terminated.
|
34
32
|
attr_accessor :status
|
35
33
|
|
36
34
|
# URL referencing the audio file to be used as default wait music for the Conference when it is in the populated state.
|
@@ -45,28 +43,6 @@ module Freeclimb
|
|
45
43
|
# The list of subresources for this Conference. This includes participants and/or recordings.
|
46
44
|
attr_accessor :subresource_uris
|
47
45
|
|
48
|
-
class EnumAttributeValidator
|
49
|
-
attr_reader :datatype
|
50
|
-
attr_reader :allowable_values
|
51
|
-
|
52
|
-
def initialize(datatype, allowable_values)
|
53
|
-
@allowable_values = allowable_values.map do |value|
|
54
|
-
case datatype.to_s
|
55
|
-
when /Integer/i
|
56
|
-
value.to_i
|
57
|
-
when /Float/i
|
58
|
-
value.to_f
|
59
|
-
else
|
60
|
-
value
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def valid?(value)
|
66
|
-
!value || allowable_values.include?(value)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
47
|
def self.attribute_map
|
72
48
|
{
|
@@ -94,9 +70,9 @@ module Freeclimb
|
|
94
70
|
:'conference_id' => :'String',
|
95
71
|
:'account_id' => :'String',
|
96
72
|
:'_alias' => :'String',
|
97
|
-
:'play_beep' => :'
|
73
|
+
:'play_beep' => :'PlayBeep',
|
98
74
|
:'record' => :'Boolean',
|
99
|
-
:'status' => :'
|
75
|
+
:'status' => :'ConferenceStatus',
|
100
76
|
:'wait_url' => :'String',
|
101
77
|
:'action_url' => :'String',
|
102
78
|
:'status_callback_url' => :'String',
|
@@ -110,9 +86,7 @@ module Freeclimb
|
|
110
86
|
:'conference_id',
|
111
87
|
:'account_id',
|
112
88
|
:'_alias',
|
113
|
-
:'play_beep',
|
114
89
|
:'record',
|
115
|
-
:'status',
|
116
90
|
:'wait_url',
|
117
91
|
:'action_url',
|
118
92
|
:'status_callback_url',
|
@@ -149,6 +123,8 @@ module Freeclimb
|
|
149
123
|
|
150
124
|
if attributes.key?(:'play_beep')
|
151
125
|
self.play_beep = attributes[:'play_beep']
|
126
|
+
else
|
127
|
+
self.play_beep = 'always'
|
152
128
|
end
|
153
129
|
|
154
130
|
if attributes.key?(:'record')
|
@@ -186,33 +162,9 @@ module Freeclimb
|
|
186
162
|
# Check to see if the all the properties in the model are valid
|
187
163
|
# @return true if the model is valid
|
188
164
|
def valid?
|
189
|
-
play_beep_validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
190
|
-
return false unless play_beep_validator.valid?(@play_beep)
|
191
|
-
status_validator = EnumAttributeValidator.new('String', ["creating", "empty", "populated", "inProgress", "terminated"])
|
192
|
-
return false unless status_validator.valid?(@status)
|
193
165
|
true
|
194
166
|
end
|
195
167
|
|
196
|
-
# Custom attribute writer method checking allowed values (enum).
|
197
|
-
# @param [Object] play_beep Object to be assigned
|
198
|
-
def play_beep=(play_beep)
|
199
|
-
validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
200
|
-
unless validator.valid?(play_beep)
|
201
|
-
fail ArgumentError, "invalid value for \"play_beep\", must be one of #{validator.allowable_values}."
|
202
|
-
end
|
203
|
-
@play_beep = play_beep
|
204
|
-
end
|
205
|
-
|
206
|
-
# Custom attribute writer method checking allowed values (enum).
|
207
|
-
# @param [Object] status Object to be assigned
|
208
|
-
def status=(status)
|
209
|
-
validator = EnumAttributeValidator.new('String', ["creating", "empty", "populated", "inProgress", "terminated"])
|
210
|
-
unless validator.valid?(status)
|
211
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
212
|
-
end
|
213
|
-
@status = status
|
214
|
-
end
|
215
|
-
|
216
168
|
# Checks equality by comparing each attribute.
|
217
169
|
# @param [Object] Object to be compared
|
218
170
|
def ==(o)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class ConferenceStatus
|
18
|
+
EMPTY = "empty".freeze
|
19
|
+
POPULATED = "populated".freeze
|
20
|
+
IN_PROGRESS = "inProgress".freeze
|
21
|
+
TERMINATED = "terminated".freeze
|
22
|
+
|
23
|
+
# Builds the enum from string
|
24
|
+
# @param [String] The enum value in the form of the string
|
25
|
+
# @return [String] The enum value
|
26
|
+
def self.build_from_hash(value)
|
27
|
+
new.build_from_hash(value)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
constantValues = ConferenceStatus.constants.select { |c| ConferenceStatus::const_get(c) == value }
|
35
|
+
raise "Invalid ENUM value #{value} for class #ConferenceStatus" if constantValues.empty?
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -22,7 +22,6 @@ module Freeclimb
|
|
22
22
|
# Descriptive name for the Conference.
|
23
23
|
attr_accessor :_alias
|
24
24
|
|
25
|
-
# Indicates whether to play a beep when a Participant enters or leaves the Conference. either `always`, `never`, `entryOnly`, or `exitOnly`. Leaving this unset will make conference default to `always`
|
26
25
|
attr_accessor :play_beep
|
27
26
|
|
28
27
|
# When set to `true`, the entire Conference is recorded. The `statusCallbackUrl` of the Conference will receive a `conferenceRecordingEnded` Webhook when the Conference transitions from the `inProgress` to empty state.
|
@@ -56,9 +55,9 @@ module Freeclimb
|
|
56
55
|
{
|
57
56
|
:'action_url' => :'String',
|
58
57
|
:'_alias' => :'Boolean',
|
59
|
-
:'play_beep' => :'
|
58
|
+
:'play_beep' => :'PlayBeep',
|
60
59
|
:'record' => :'Boolean',
|
61
|
-
:'status_callback_url' => :'
|
60
|
+
:'status_callback_url' => :'String',
|
62
61
|
:'wait_url' => :'String'
|
63
62
|
}
|
64
63
|
end
|
@@ -105,6 +104,8 @@ module Freeclimb
|
|
105
104
|
|
106
105
|
if attributes.key?(:'play_beep')
|
107
106
|
self.play_beep = attributes[:'play_beep']
|
107
|
+
else
|
108
|
+
self.play_beep = 'always'
|
108
109
|
end
|
109
110
|
|
110
111
|
if attributes.key?(:'record')
|
@@ -21,7 +21,6 @@ module Freeclimb
|
|
21
21
|
# Descriptive name for the Conference.
|
22
22
|
attr_accessor :_alias
|
23
23
|
|
24
|
-
# Indicates whether to play a beep when a Participant enters or leaves the Conference. either `always`, `never`, `entryOnly`, or `exitOnly`. Leaving this unset will make conference default to `always`
|
25
24
|
attr_accessor :play_beep
|
26
25
|
|
27
26
|
# When set to `true`, the entire Conference is recorded. The `statusCallbackUrl` of the Conference will receive a `conferenceRecordingEnded` Webhook when the Conference transitions from the `inProgress` to empty state.
|
@@ -55,9 +54,9 @@ module Freeclimb
|
|
55
54
|
{
|
56
55
|
:'action_url' => :'String',
|
57
56
|
:'_alias' => :'Boolean',
|
58
|
-
:'play_beep' => :'
|
57
|
+
:'play_beep' => :'PlayBeep',
|
59
58
|
:'record' => :'Boolean',
|
60
|
-
:'status_callback_url' => :'
|
59
|
+
:'status_callback_url' => :'String',
|
61
60
|
:'wait_url' => :'String'
|
62
61
|
}
|
63
62
|
end
|
@@ -93,6 +92,8 @@ module Freeclimb
|
|
93
92
|
|
94
93
|
if attributes.key?(:'play_beep')
|
95
94
|
self.play_beep = attributes[:'play_beep']
|
95
|
+
else
|
96
|
+
self.play_beep = 'always'
|
96
97
|
end
|
97
98
|
|
98
99
|
if attributes.key?(:'record')
|
@@ -18,7 +18,6 @@ module Freeclimb
|
|
18
18
|
# A description for this Conference. Maximum 64 characters.
|
19
19
|
attr_accessor :_alias
|
20
20
|
|
21
|
-
# Controls when a beep is played. Valid values: `always`, `never`, `entryOnly`, `exitOnly`.
|
22
21
|
attr_accessor :play_beep
|
23
22
|
|
24
23
|
# Setting to `true` records the entire Conference.
|
@@ -30,28 +29,6 @@ module Freeclimb
|
|
30
29
|
# This URL is invoked when the status of the Conference changes. For more information, see **statusCallbackUrl** (below).
|
31
30
|
attr_accessor :status_callback_url
|
32
31
|
|
33
|
-
class EnumAttributeValidator
|
34
|
-
attr_reader :datatype
|
35
|
-
attr_reader :allowable_values
|
36
|
-
|
37
|
-
def initialize(datatype, allowable_values)
|
38
|
-
@allowable_values = allowable_values.map do |value|
|
39
|
-
case datatype.to_s
|
40
|
-
when /Integer/i
|
41
|
-
value.to_i
|
42
|
-
when /Float/i
|
43
|
-
value.to_f
|
44
|
-
else
|
45
|
-
value
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
def valid?(value)
|
51
|
-
!value || allowable_values.include?(value)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
33
|
def self.attribute_map
|
57
34
|
{
|
@@ -72,7 +49,7 @@ module Freeclimb
|
|
72
49
|
def self.openapi_types
|
73
50
|
{
|
74
51
|
:'_alias' => :'String',
|
75
|
-
:'play_beep' => :'
|
52
|
+
:'play_beep' => :'PlayBeep',
|
76
53
|
:'record' => :'Boolean',
|
77
54
|
:'wait_url' => :'String',
|
78
55
|
:'status_callback_url' => :'String'
|
@@ -133,21 +110,9 @@ module Freeclimb
|
|
133
110
|
# Check to see if the all the properties in the model are valid
|
134
111
|
# @return true if the model is valid
|
135
112
|
def valid?
|
136
|
-
play_beep_validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
137
|
-
return false unless play_beep_validator.valid?(@play_beep)
|
138
113
|
true
|
139
114
|
end
|
140
115
|
|
141
|
-
# Custom attribute writer method checking allowed values (enum).
|
142
|
-
# @param [Object] play_beep Object to be assigned
|
143
|
-
def play_beep=(play_beep)
|
144
|
-
validator = EnumAttributeValidator.new('String', ["always", "never", "entryOnly", "exitOnly"])
|
145
|
-
unless validator.valid?(play_beep)
|
146
|
-
fail ArgumentError, "invalid value for \"play_beep\", must be one of #{validator.allowable_values}."
|
147
|
-
end
|
148
|
-
@play_beep = play_beep
|
149
|
-
end
|
150
|
-
|
151
116
|
# Checks equality by comparing each attribute.
|
152
117
|
# @param [Object] Object to be compared
|
153
118
|
def ==(o)
|
@@ -19,7 +19,6 @@ module Freeclimb
|
|
19
19
|
# When the caller has finished speaking or the command has timed out, FreeClimb will make a POST request to this URL. A PerCL response is expected to continue handling the call.
|
20
20
|
attr_accessor :action_url
|
21
21
|
|
22
|
-
# The grammar file type to use for speech recognition. A value of 'URL' indicates the grammarFile attribute specifies a URL that points to the grammar file. A value of `BUILTIN` indicates the grammarFile attribute specifies the name of one of the platform built-in grammar files.
|
23
22
|
attr_accessor :grammar_type
|
24
23
|
|
25
24
|
# The grammar file to use for speech recognition. If grammarType is set to URL, this attribute is specified as a download URL.
|
@@ -83,10 +82,10 @@ module Freeclimb
|
|
83
82
|
def self.openapi_types
|
84
83
|
{
|
85
84
|
:'action_url' => :'String',
|
86
|
-
:'grammar_type' => :'
|
85
|
+
:'grammar_type' => :'GrammarType',
|
87
86
|
:'grammar_file' => :'String',
|
88
|
-
:'grammar_rule' => :'
|
89
|
-
:'play_beep' => :'
|
87
|
+
:'grammar_rule' => :'String',
|
88
|
+
:'play_beep' => :'Boolean',
|
90
89
|
:'prompts' => :'Array<PerclCommand>',
|
91
90
|
:'no_input_timeout_ms' => :'Integer',
|
92
91
|
:'recognition_timeout_ms' => :'Integer',
|
@@ -18,7 +18,6 @@ module Freeclimb
|
|
18
18
|
# When the caller has finished speaking or the command has timed out, FreeClimb will make a POST request to this URL. A PerCL response is expected to continue handling the call.
|
19
19
|
attr_accessor :action_url
|
20
20
|
|
21
|
-
# The grammar file type to use for speech recognition. A value of 'URL' indicates the grammarFile attribute specifies a URL that points to the grammar file. A value of `BUILTIN` indicates the grammarFile attribute specifies the name of one of the platform built-in grammar files.
|
22
21
|
attr_accessor :grammar_type
|
23
22
|
|
24
23
|
# The grammar file to use for speech recognition. If grammarType is set to URL, this attribute is specified as a download URL.
|
@@ -82,10 +81,10 @@ module Freeclimb
|
|
82
81
|
def self.openapi_types
|
83
82
|
{
|
84
83
|
:'action_url' => :'String',
|
85
|
-
:'grammar_type' => :'
|
84
|
+
:'grammar_type' => :'GrammarType',
|
86
85
|
:'grammar_file' => :'String',
|
87
|
-
:'grammar_rule' => :'
|
88
|
-
:'play_beep' => :'
|
86
|
+
:'grammar_rule' => :'String',
|
87
|
+
:'play_beep' => :'Boolean',
|
89
88
|
:'prompts' => :'Array<PerclCommand>',
|
90
89
|
:'no_input_timeout_ms' => :'Integer',
|
91
90
|
:'recognition_timeout_ms' => :'Integer',
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class GetSpeechReason
|
18
|
+
ERROR = "error".freeze
|
19
|
+
HANGUP = "hangup".freeze
|
20
|
+
DIGIT = "digit".freeze
|
21
|
+
NO_INPUT = "noInput".freeze
|
22
|
+
NO_MATCH = "noMatch".freeze
|
23
|
+
RECOGNITION = "recognition".freeze
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
constantValues = GetSpeechReason.constants.select { |c| GetSpeechReason::const_get(c) == value }
|
37
|
+
raise "Invalid ENUM value #{value} for class #GetSpeechReason" if constantValues.empty?
|
38
|
+
value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class GrammarFileBuiltIn
|
18
|
+
ALPHNUM6 = "ALPHNUM6".freeze
|
19
|
+
ANY_DIG = "ANY_DIG".freeze
|
20
|
+
DIG1 = "DIG1".freeze
|
21
|
+
DIG2 = "DIG2".freeze
|
22
|
+
DIG3 = "DIG3".freeze
|
23
|
+
DIG4 = "DIG4".freeze
|
24
|
+
DIG5 = "DIG5".freeze
|
25
|
+
DIG6 = "DIG6".freeze
|
26
|
+
DIG7 = "DIG7".freeze
|
27
|
+
DIG8 = "DIG8".freeze
|
28
|
+
DIG9 = "DIG9".freeze
|
29
|
+
DIG10 = "DIG10".freeze
|
30
|
+
DIG11 = "DIG11".freeze
|
31
|
+
UP_TO_20_DIGIT_SEQUENCE = "UP_TO_20_DIGIT_SEQUENCE".freeze
|
32
|
+
VERSAY_YESNO = "VERSAY_YESNO".freeze
|
33
|
+
|
34
|
+
# Builds the enum from string
|
35
|
+
# @param [String] The enum value in the form of the string
|
36
|
+
# @return [String] The enum value
|
37
|
+
def self.build_from_hash(value)
|
38
|
+
new.build_from_hash(value)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Builds the enum from string
|
42
|
+
# @param [String] The enum value in the form of the string
|
43
|
+
# @return [String] The enum value
|
44
|
+
def build_from_hash(value)
|
45
|
+
constantValues = GrammarFileBuiltIn.constants.select { |c| GrammarFileBuiltIn::const_get(c) == value }
|
46
|
+
raise "Invalid ENUM value #{value} for class #GrammarFileBuiltIn" if constantValues.empty?
|
47
|
+
value
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class GrammarType
|
18
|
+
URL = "URL".freeze
|
19
|
+
BUILT_IN = "BUILTIN".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = GrammarType.constants.select { |c| GrammarType::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #GrammarType" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class IfMachine
|
18
|
+
REDIRECT = "redirect".freeze
|
19
|
+
HANGUP = "hangup".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = IfMachine.constants.select { |c| IfMachine::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #IfMachine" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Freeclimb
|
17
|
+
class Language
|
18
|
+
CATALAN = "ca-ES".freeze
|
19
|
+
DANISH = "da-DK".freeze
|
20
|
+
GERMAN = "de-DE".freeze
|
21
|
+
ENGLISH_AU = "en-AU".freeze
|
22
|
+
ENGLISH_CA = "en-CA".freeze
|
23
|
+
ENGLISH_UK = "en-GB".freeze
|
24
|
+
ENGLISH_IN = "en-IN".freeze
|
25
|
+
ENGLISH_US = "en-US".freeze
|
26
|
+
ENGLISH_ES = "es-ES".freeze
|
27
|
+
ENGLISH_MX = "es-MX".freeze
|
28
|
+
FINNISH = "fi-FI".freeze
|
29
|
+
FRENCH_CA = "fr-CA".freeze
|
30
|
+
FRENCH_FR = "fr-FR".freeze
|
31
|
+
ITALIAN = "it-IT".freeze
|
32
|
+
JAPANESE = "ja-JP".freeze
|
33
|
+
KOREAN = "ko-KR".freeze
|
34
|
+
NORWEGIAN = "nb-NO".freeze
|
35
|
+
DUTCH = "nl-NL".freeze
|
36
|
+
POLISH = "pl-PL".freeze
|
37
|
+
PORTUGESE_BR = "pt-BR".freeze
|
38
|
+
PORTUGESE_PT = "pt-PT".freeze
|
39
|
+
RUSSIAN = "ru-RU".freeze
|
40
|
+
SWEDISH = "sv-SE".freeze
|
41
|
+
CHINESE_CN = "zh-CN".freeze
|
42
|
+
CHINESE_HK = "zh-HK".freeze
|
43
|
+
CHINESE_TW = "zh-TW".freeze
|
44
|
+
|
45
|
+
# Builds the enum from string
|
46
|
+
# @param [String] The enum value in the form of the string
|
47
|
+
# @return [String] The enum value
|
48
|
+
def self.build_from_hash(value)
|
49
|
+
new.build_from_hash(value)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Builds the enum from string
|
53
|
+
# @param [String] The enum value in the form of the string
|
54
|
+
# @return [String] The enum value
|
55
|
+
def build_from_hash(value)
|
56
|
+
constantValues = Language.constants.select { |c| Language::const_get(c) == value }
|
57
|
+
raise "Invalid ENUM value #{value} for class #Language" if constantValues.empty?
|
58
|
+
value
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|