bandwidth-sdk 2.2.2 → 3.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bandwidth.rb +28 -2
- data/lib/bandwidth/api_helper.rb +14 -9
- data/lib/bandwidth/client.rb +22 -2
- data/lib/bandwidth/configuration.rb +67 -12
- data/lib/bandwidth/http/auth/two_factor_auth_basic_auth.rb +22 -0
- data/lib/bandwidth/http/auth/web_rtc_basic_auth.rb +22 -0
- data/lib/bandwidth/messaging_lib/messaging.rb +1 -3
- data/lib/bandwidth/messaging_lib/messaging/client.rb +13 -2
- data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +48 -95
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/messaging_lib/messaging/exceptions/{generic_client_exception.rb → messaging_exception.rb} +2 -14
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth.rb +20 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/client.rb +51 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/api_controller.rb +158 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/controllers/base_controller.rb +49 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/exceptions/invalid_request_exception.rb +29 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_code_request_schema.rb +88 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_messaging_response.rb +35 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_verify_code_response.rb +35 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_verify_request_schema.rb +94 -0
- data/lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_voice_response.rb +35 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/bridge.rb +28 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/conference.rb +32 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/gather.rb +13 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb +5 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +6 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/redirect.rb +5 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/ring.rb +15 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/send_dtmf.rb +4 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/start_gather.rb +20 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_gather.rb +14 -0
- data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +5 -1
- data/lib/bandwidth/voice_lib/voice.rb +8 -0
- data/lib/bandwidth/voice_lib/voice/client.rb +13 -2
- data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +768 -131
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/voice_lib/voice/models/answer_fallback_method_enum.rb +17 -0
- data/lib/bandwidth/voice_lib/voice/models/api_call_response.rb +45 -0
- data/lib/bandwidth/voice_lib/voice/models/api_create_call_request.rb +65 -2
- data/lib/bandwidth/voice_lib/voice/models/api_modify_call_request.rb +36 -0
- data/lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb +11 -2
- data/lib/bandwidth/voice_lib/voice/models/call_engine_modify_conference_request.rb +107 -0
- data/lib/bandwidth/voice_lib/voice/models/conference_detail.rb +108 -0
- data/lib/bandwidth/voice_lib/voice/models/conference_event_method_enum.rb +35 -0
- data/lib/bandwidth/voice_lib/voice/models/conference_member_detail.rb +80 -0
- data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata_response.rb +126 -0
- data/lib/bandwidth/voice_lib/voice/models/disconnect_cause_enum.rb +4 -1
- data/lib/bandwidth/voice_lib/voice/models/recording_metadata_response.rb +33 -5
- data/lib/bandwidth/voice_lib/voice/models/redirect_fallback_method_enum.rb +17 -0
- data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +3 -3
- data/lib/bandwidth/voice_lib/voice/models/status1_enum.rb +10 -13
- data/lib/bandwidth/voice_lib/voice/models/status3_enum.rb +32 -0
- data/lib/bandwidth/voice_lib/voice/models/status_enum.rb +4 -13
- data/lib/bandwidth/voice_lib/voice/models/transcription.rb +1 -1
- data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +13 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc.rb +21 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/client.rb +51 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +692 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +49 -0
- data/lib/bandwidth/{messaging_lib/messaging/exceptions/path_client_exception.rb → web_rtc_lib/web_rtc/exceptions/error_exception.rb} +4 -19
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb +47 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant.rb +83 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb +35 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/publish_permission_enum.rb +17 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb +44 -0
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/subscriptions.rb +54 -0
- metadata +60 -13
- data/lib/bandwidth/messaging_lib/messaging/models/field_error.rb +0 -44
@@ -0,0 +1,17 @@
|
|
1
|
+
# bandwidth
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module Bandwidth
|
7
|
+
# AnswerFallbackMethod.
|
8
|
+
class AnswerFallbackMethodEnum
|
9
|
+
ANSWER_FALLBACK_METHOD_ENUM = [
|
10
|
+
# TODO: Write general description for POST
|
11
|
+
POST = 'POST'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for GET
|
14
|
+
GET = 'GET'.freeze
|
15
|
+
].freeze
|
16
|
+
end
|
17
|
+
end
|
@@ -39,6 +39,10 @@ module Bandwidth
|
|
39
39
|
# @return [Float]
|
40
40
|
attr_accessor :call_timeout
|
41
41
|
|
42
|
+
# TODO: Write general description for this method
|
43
|
+
# @return [Float]
|
44
|
+
attr_accessor :callback_timeout
|
45
|
+
|
42
46
|
# TODO: Write general description for this method
|
43
47
|
# @return [String]
|
44
48
|
attr_accessor :answer_url
|
@@ -47,6 +51,14 @@ module Bandwidth
|
|
47
51
|
# @return [AnswerMethodEnum]
|
48
52
|
attr_accessor :answer_method
|
49
53
|
|
54
|
+
# TODO: Write general description for this method
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :answer_fallback_url
|
57
|
+
|
58
|
+
# TODO: Write general description for this method
|
59
|
+
# @return [AnswerFallbackMethodEnum]
|
60
|
+
attr_accessor :answer_fallback_method
|
61
|
+
|
50
62
|
# TODO: Write general description for this method
|
51
63
|
# @return [String]
|
52
64
|
attr_accessor :disconnect_url
|
@@ -63,6 +75,14 @@ module Bandwidth
|
|
63
75
|
# @return [String]
|
64
76
|
attr_accessor :password
|
65
77
|
|
78
|
+
# TODO: Write general description for this method
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :fallback_username
|
81
|
+
|
82
|
+
# TODO: Write general description for this method
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :fallback_password
|
85
|
+
|
66
86
|
# TODO: Write general description for this method
|
67
87
|
# @return [String]
|
68
88
|
attr_accessor :tag
|
@@ -78,12 +98,17 @@ module Bandwidth
|
|
78
98
|
@_hash['start_time'] = 'startTime'
|
79
99
|
@_hash['call_url'] = 'callUrl'
|
80
100
|
@_hash['call_timeout'] = 'callTimeout'
|
101
|
+
@_hash['callback_timeout'] = 'callbackTimeout'
|
81
102
|
@_hash['answer_url'] = 'answerUrl'
|
82
103
|
@_hash['answer_method'] = 'answerMethod'
|
104
|
+
@_hash['answer_fallback_url'] = 'answerFallbackUrl'
|
105
|
+
@_hash['answer_fallback_method'] = 'answerFallbackMethod'
|
83
106
|
@_hash['disconnect_url'] = 'disconnectUrl'
|
84
107
|
@_hash['disconnect_method'] = 'disconnectMethod'
|
85
108
|
@_hash['username'] = 'username'
|
86
109
|
@_hash['password'] = 'password'
|
110
|
+
@_hash['fallback_username'] = 'fallbackUsername'
|
111
|
+
@_hash['fallback_password'] = 'fallbackPassword'
|
87
112
|
@_hash['tag'] = 'tag'
|
88
113
|
@_hash
|
89
114
|
end
|
@@ -99,9 +124,14 @@ module Bandwidth
|
|
99
124
|
disconnect_method = nil,
|
100
125
|
start_time = nil,
|
101
126
|
call_timeout = nil,
|
127
|
+
callback_timeout = nil,
|
128
|
+
answer_fallback_url = nil,
|
129
|
+
answer_fallback_method = nil,
|
102
130
|
disconnect_url = nil,
|
103
131
|
username = nil,
|
104
132
|
password = nil,
|
133
|
+
fallback_username = nil,
|
134
|
+
fallback_password = nil,
|
105
135
|
tag = nil)
|
106
136
|
@account_id = account_id
|
107
137
|
@call_id = call_id
|
@@ -111,12 +141,17 @@ module Bandwidth
|
|
111
141
|
@start_time = start_time
|
112
142
|
@call_url = call_url
|
113
143
|
@call_timeout = call_timeout
|
144
|
+
@callback_timeout = callback_timeout
|
114
145
|
@answer_url = answer_url
|
115
146
|
@answer_method = answer_method
|
147
|
+
@answer_fallback_url = answer_fallback_url
|
148
|
+
@answer_fallback_method = answer_fallback_method
|
116
149
|
@disconnect_url = disconnect_url
|
117
150
|
@disconnect_method = disconnect_method
|
118
151
|
@username = username
|
119
152
|
@password = password
|
153
|
+
@fallback_username = fallback_username
|
154
|
+
@fallback_password = fallback_password
|
120
155
|
@tag = tag
|
121
156
|
end
|
122
157
|
|
@@ -136,9 +171,14 @@ module Bandwidth
|
|
136
171
|
disconnect_method = hash['disconnectMethod']
|
137
172
|
start_time = APIHelper.rfc3339(hash['startTime']) if hash['startTime']
|
138
173
|
call_timeout = hash['callTimeout']
|
174
|
+
callback_timeout = hash['callbackTimeout']
|
175
|
+
answer_fallback_url = hash['answerFallbackUrl']
|
176
|
+
answer_fallback_method = hash['answerFallbackMethod']
|
139
177
|
disconnect_url = hash['disconnectUrl']
|
140
178
|
username = hash['username']
|
141
179
|
password = hash['password']
|
180
|
+
fallback_username = hash['fallbackUsername']
|
181
|
+
fallback_password = hash['fallbackPassword']
|
142
182
|
tag = hash['tag']
|
143
183
|
|
144
184
|
# Create object from extracted values.
|
@@ -153,9 +193,14 @@ module Bandwidth
|
|
153
193
|
disconnect_method,
|
154
194
|
start_time,
|
155
195
|
call_timeout,
|
196
|
+
callback_timeout,
|
197
|
+
answer_fallback_url,
|
198
|
+
answer_fallback_method,
|
156
199
|
disconnect_url,
|
157
200
|
username,
|
158
201
|
password,
|
202
|
+
fallback_username,
|
203
|
+
fallback_password,
|
159
204
|
tag)
|
160
205
|
end
|
161
206
|
end
|
@@ -18,10 +18,18 @@ module Bandwidth
|
|
18
18
|
# @return [Float]
|
19
19
|
attr_accessor :call_timeout
|
20
20
|
|
21
|
+
# Format is E164
|
22
|
+
# @return [Float]
|
23
|
+
attr_accessor :callback_timeout
|
24
|
+
|
21
25
|
# Format is E164
|
22
26
|
# @return [String]
|
23
27
|
attr_accessor :answer_url
|
24
28
|
|
29
|
+
# Format is E164
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :answer_fallback_url
|
32
|
+
|
25
33
|
# Format is E164
|
26
34
|
# @return [String]
|
27
35
|
attr_accessor :username
|
@@ -30,10 +38,22 @@ module Bandwidth
|
|
30
38
|
# @return [String]
|
31
39
|
attr_accessor :password
|
32
40
|
|
41
|
+
# Format is E164
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :fallback_username
|
44
|
+
|
45
|
+
# Format is E164
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :fallback_password
|
48
|
+
|
33
49
|
# Format is E164
|
34
50
|
# @return [AnswerMethodEnum]
|
35
51
|
attr_accessor :answer_method
|
36
52
|
|
53
|
+
# Format is E164
|
54
|
+
# @return [AnswerFallbackMethodEnum]
|
55
|
+
attr_accessor :answer_fallback_method
|
56
|
+
|
37
57
|
# Format is E164
|
38
58
|
# @return [String]
|
39
59
|
attr_accessor :disconnect_url
|
@@ -50,20 +70,35 @@ module Bandwidth
|
|
50
70
|
# @return [String]
|
51
71
|
attr_accessor :application_id
|
52
72
|
|
73
|
+
# Format is E164
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :obfuscated_to
|
76
|
+
|
77
|
+
# Format is E164
|
78
|
+
# @return [String]
|
79
|
+
attr_accessor :obfuscated_from
|
80
|
+
|
53
81
|
# A mapping from model property names to API property names.
|
54
82
|
def self.names
|
55
83
|
@_hash = {} if @_hash.nil?
|
56
84
|
@_hash['from'] = 'from'
|
57
85
|
@_hash['to'] = 'to'
|
58
86
|
@_hash['call_timeout'] = 'callTimeout'
|
87
|
+
@_hash['callback_timeout'] = 'callbackTimeout'
|
59
88
|
@_hash['answer_url'] = 'answerUrl'
|
89
|
+
@_hash['answer_fallback_url'] = 'answerFallbackUrl'
|
60
90
|
@_hash['username'] = 'username'
|
61
91
|
@_hash['password'] = 'password'
|
92
|
+
@_hash['fallback_username'] = 'fallbackUsername'
|
93
|
+
@_hash['fallback_password'] = 'fallbackPassword'
|
62
94
|
@_hash['answer_method'] = 'answerMethod'
|
95
|
+
@_hash['answer_fallback_method'] = 'answerFallbackMethod'
|
63
96
|
@_hash['disconnect_url'] = 'disconnectUrl'
|
64
97
|
@_hash['disconnect_method'] = 'disconnectMethod'
|
65
98
|
@_hash['tag'] = 'tag'
|
66
99
|
@_hash['application_id'] = 'applicationId'
|
100
|
+
@_hash['obfuscated_to'] = 'obfuscatedTo'
|
101
|
+
@_hash['obfuscated_from'] = 'obfuscatedFrom'
|
67
102
|
@_hash
|
68
103
|
end
|
69
104
|
|
@@ -72,23 +107,37 @@ module Bandwidth
|
|
72
107
|
answer_url = nil,
|
73
108
|
application_id = nil,
|
74
109
|
call_timeout = nil,
|
110
|
+
callback_timeout = nil,
|
111
|
+
answer_fallback_url = nil,
|
75
112
|
username = nil,
|
76
113
|
password = nil,
|
114
|
+
fallback_username = nil,
|
115
|
+
fallback_password = nil,
|
77
116
|
answer_method = nil,
|
117
|
+
answer_fallback_method = nil,
|
78
118
|
disconnect_url = nil,
|
79
119
|
disconnect_method = nil,
|
80
|
-
tag = nil
|
120
|
+
tag = nil,
|
121
|
+
obfuscated_to = nil,
|
122
|
+
obfuscated_from = nil)
|
81
123
|
@from = from
|
82
124
|
@to = to
|
83
125
|
@call_timeout = call_timeout
|
126
|
+
@callback_timeout = callback_timeout
|
84
127
|
@answer_url = answer_url
|
128
|
+
@answer_fallback_url = answer_fallback_url
|
85
129
|
@username = username
|
86
130
|
@password = password
|
131
|
+
@fallback_username = fallback_username
|
132
|
+
@fallback_password = fallback_password
|
87
133
|
@answer_method = answer_method
|
134
|
+
@answer_fallback_method = answer_fallback_method
|
88
135
|
@disconnect_url = disconnect_url
|
89
136
|
@disconnect_method = disconnect_method
|
90
137
|
@tag = tag
|
91
138
|
@application_id = application_id
|
139
|
+
@obfuscated_to = obfuscated_to
|
140
|
+
@obfuscated_from = obfuscated_from
|
92
141
|
end
|
93
142
|
|
94
143
|
# Creates an instance of the object from a hash.
|
@@ -101,12 +150,19 @@ module Bandwidth
|
|
101
150
|
answer_url = hash['answerUrl']
|
102
151
|
application_id = hash['applicationId']
|
103
152
|
call_timeout = hash['callTimeout']
|
153
|
+
callback_timeout = hash['callbackTimeout']
|
154
|
+
answer_fallback_url = hash['answerFallbackUrl']
|
104
155
|
username = hash['username']
|
105
156
|
password = hash['password']
|
157
|
+
fallback_username = hash['fallbackUsername']
|
158
|
+
fallback_password = hash['fallbackPassword']
|
106
159
|
answer_method = hash['answerMethod']
|
160
|
+
answer_fallback_method = hash['answerFallbackMethod']
|
107
161
|
disconnect_url = hash['disconnectUrl']
|
108
162
|
disconnect_method = hash['disconnectMethod']
|
109
163
|
tag = hash['tag']
|
164
|
+
obfuscated_to = hash['obfuscatedTo']
|
165
|
+
obfuscated_from = hash['obfuscatedFrom']
|
110
166
|
|
111
167
|
# Create object from extracted values.
|
112
168
|
ApiCreateCallRequest.new(from,
|
@@ -114,12 +170,19 @@ module Bandwidth
|
|
114
170
|
answer_url,
|
115
171
|
application_id,
|
116
172
|
call_timeout,
|
173
|
+
callback_timeout,
|
174
|
+
answer_fallback_url,
|
117
175
|
username,
|
118
176
|
password,
|
177
|
+
fallback_username,
|
178
|
+
fallback_password,
|
119
179
|
answer_method,
|
180
|
+
answer_fallback_method,
|
120
181
|
disconnect_url,
|
121
182
|
disconnect_method,
|
122
|
-
tag
|
183
|
+
tag,
|
184
|
+
obfuscated_to,
|
185
|
+
obfuscated_from)
|
123
186
|
end
|
124
187
|
end
|
125
188
|
end
|
@@ -14,10 +14,18 @@ module Bandwidth
|
|
14
14
|
# @return [String]
|
15
15
|
attr_accessor :redirect_url
|
16
16
|
|
17
|
+
# TODO: Write general description for this method
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :redirect_fallback_url
|
20
|
+
|
17
21
|
# TODO: Write general description for this method
|
18
22
|
# @return [RedirectMethodEnum]
|
19
23
|
attr_accessor :redirect_method
|
20
24
|
|
25
|
+
# TODO: Write general description for this method
|
26
|
+
# @return [RedirectFallbackMethodEnum]
|
27
|
+
attr_accessor :redirect_fallback_method
|
28
|
+
|
21
29
|
# TODO: Write general description for this method
|
22
30
|
# @return [String]
|
23
31
|
attr_accessor :username
|
@@ -26,6 +34,14 @@ module Bandwidth
|
|
26
34
|
# @return [String]
|
27
35
|
attr_accessor :password
|
28
36
|
|
37
|
+
# TODO: Write general description for this method
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :fallback_username
|
40
|
+
|
41
|
+
# TODO: Write general description for this method
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :fallback_password
|
44
|
+
|
29
45
|
# TODO: Write general description for this method
|
30
46
|
# @return [String]
|
31
47
|
attr_accessor :tag
|
@@ -35,24 +51,36 @@ module Bandwidth
|
|
35
51
|
@_hash = {} if @_hash.nil?
|
36
52
|
@_hash['state'] = 'state'
|
37
53
|
@_hash['redirect_url'] = 'redirectUrl'
|
54
|
+
@_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
|
38
55
|
@_hash['redirect_method'] = 'redirectMethod'
|
56
|
+
@_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
|
39
57
|
@_hash['username'] = 'username'
|
40
58
|
@_hash['password'] = 'password'
|
59
|
+
@_hash['fallback_username'] = 'fallbackUsername'
|
60
|
+
@_hash['fallback_password'] = 'fallbackPassword'
|
41
61
|
@_hash['tag'] = 'tag'
|
42
62
|
@_hash
|
43
63
|
end
|
44
64
|
|
45
65
|
def initialize(redirect_url = nil,
|
46
66
|
state = nil,
|
67
|
+
redirect_fallback_url = nil,
|
47
68
|
redirect_method = nil,
|
69
|
+
redirect_fallback_method = nil,
|
48
70
|
username = nil,
|
49
71
|
password = nil,
|
72
|
+
fallback_username = nil,
|
73
|
+
fallback_password = nil,
|
50
74
|
tag = nil)
|
51
75
|
@state = state
|
52
76
|
@redirect_url = redirect_url
|
77
|
+
@redirect_fallback_url = redirect_fallback_url
|
53
78
|
@redirect_method = redirect_method
|
79
|
+
@redirect_fallback_method = redirect_fallback_method
|
54
80
|
@username = username
|
55
81
|
@password = password
|
82
|
+
@fallback_username = fallback_username
|
83
|
+
@fallback_password = fallback_password
|
56
84
|
@tag = tag
|
57
85
|
end
|
58
86
|
|
@@ -63,17 +91,25 @@ module Bandwidth
|
|
63
91
|
# Extract variables from the hash.
|
64
92
|
redirect_url = hash['redirectUrl']
|
65
93
|
state = hash['state']
|
94
|
+
redirect_fallback_url = hash['redirectFallbackUrl']
|
66
95
|
redirect_method = hash['redirectMethod']
|
96
|
+
redirect_fallback_method = hash['redirectFallbackMethod']
|
67
97
|
username = hash['username']
|
68
98
|
password = hash['password']
|
99
|
+
fallback_username = hash['fallbackUsername']
|
100
|
+
fallback_password = hash['fallbackPassword']
|
69
101
|
tag = hash['tag']
|
70
102
|
|
71
103
|
# Create object from extracted values.
|
72
104
|
ApiModifyCallRequest.new(redirect_url,
|
73
105
|
state,
|
106
|
+
redirect_fallback_url,
|
74
107
|
redirect_method,
|
108
|
+
redirect_fallback_method,
|
75
109
|
username,
|
76
110
|
password,
|
111
|
+
fallback_username,
|
112
|
+
fallback_password,
|
77
113
|
tag)
|
78
114
|
end
|
79
115
|
end
|
@@ -26,6 +26,10 @@ module Bandwidth
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :tag
|
28
28
|
|
29
|
+
# TODO: Write general description for this method
|
30
|
+
# @return [Float]
|
31
|
+
attr_accessor :callback_timeout
|
32
|
+
|
29
33
|
# A mapping from model property names to API property names.
|
30
34
|
def self.names
|
31
35
|
@_hash = {} if @_hash.nil?
|
@@ -34,6 +38,7 @@ module Bandwidth
|
|
34
38
|
@_hash['username'] = 'username'
|
35
39
|
@_hash['password'] = 'password'
|
36
40
|
@_hash['tag'] = 'tag'
|
41
|
+
@_hash['callback_timeout'] = 'callbackTimeout'
|
37
42
|
@_hash
|
38
43
|
end
|
39
44
|
|
@@ -41,12 +46,14 @@ module Bandwidth
|
|
41
46
|
callback_method = nil,
|
42
47
|
username = nil,
|
43
48
|
password = nil,
|
44
|
-
tag = nil
|
49
|
+
tag = nil,
|
50
|
+
callback_timeout = nil)
|
45
51
|
@callback_url = callback_url
|
46
52
|
@callback_method = callback_method
|
47
53
|
@username = username
|
48
54
|
@password = password
|
49
55
|
@tag = tag
|
56
|
+
@callback_timeout = callback_timeout
|
50
57
|
end
|
51
58
|
|
52
59
|
# Creates an instance of the object from a hash.
|
@@ -59,13 +66,15 @@ module Bandwidth
|
|
59
66
|
username = hash['username']
|
60
67
|
password = hash['password']
|
61
68
|
tag = hash['tag']
|
69
|
+
callback_timeout = hash['callbackTimeout']
|
62
70
|
|
63
71
|
# Create object from extracted values.
|
64
72
|
ApiTranscribeRecordingRequest.new(callback_url,
|
65
73
|
callback_method,
|
66
74
|
username,
|
67
75
|
password,
|
68
|
-
tag
|
76
|
+
tag,
|
77
|
+
callback_timeout)
|
69
78
|
end
|
70
79
|
end
|
71
80
|
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# bandwidth
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module Bandwidth
|
7
|
+
# CallEngineModifyConferenceRequest Model.
|
8
|
+
class CallEngineModifyConferenceRequest < BaseModel
|
9
|
+
# TODO: Write general description for this method
|
10
|
+
# @return [StatusEnum]
|
11
|
+
attr_accessor :status
|
12
|
+
|
13
|
+
# TODO: Write general description for this method
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :redirect_url
|
16
|
+
|
17
|
+
# TODO: Write general description for this method
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :redirect_fallback_url
|
20
|
+
|
21
|
+
# TODO: Write general description for this method
|
22
|
+
# @return [RedirectMethodEnum]
|
23
|
+
attr_accessor :redirect_method
|
24
|
+
|
25
|
+
# TODO: Write general description for this method
|
26
|
+
# @return [RedirectFallbackMethodEnum]
|
27
|
+
attr_accessor :redirect_fallback_method
|
28
|
+
|
29
|
+
# TODO: Write general description for this method
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :username
|
32
|
+
|
33
|
+
# TODO: Write general description for this method
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :password
|
36
|
+
|
37
|
+
# TODO: Write general description for this method
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :fallback_username
|
40
|
+
|
41
|
+
# TODO: Write general description for this method
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :fallback_password
|
44
|
+
|
45
|
+
# A mapping from model property names to API property names.
|
46
|
+
def self.names
|
47
|
+
@_hash = {} if @_hash.nil?
|
48
|
+
@_hash['status'] = 'status'
|
49
|
+
@_hash['redirect_url'] = 'redirectUrl'
|
50
|
+
@_hash['redirect_fallback_url'] = 'redirectFallbackUrl'
|
51
|
+
@_hash['redirect_method'] = 'redirectMethod'
|
52
|
+
@_hash['redirect_fallback_method'] = 'redirectFallbackMethod'
|
53
|
+
@_hash['username'] = 'username'
|
54
|
+
@_hash['password'] = 'password'
|
55
|
+
@_hash['fallback_username'] = 'fallbackUsername'
|
56
|
+
@_hash['fallback_password'] = 'fallbackPassword'
|
57
|
+
@_hash
|
58
|
+
end
|
59
|
+
|
60
|
+
def initialize(redirect_url = nil,
|
61
|
+
status = nil,
|
62
|
+
redirect_fallback_url = nil,
|
63
|
+
redirect_method = nil,
|
64
|
+
redirect_fallback_method = nil,
|
65
|
+
username = nil,
|
66
|
+
password = nil,
|
67
|
+
fallback_username = nil,
|
68
|
+
fallback_password = nil)
|
69
|
+
@status = status
|
70
|
+
@redirect_url = redirect_url
|
71
|
+
@redirect_fallback_url = redirect_fallback_url
|
72
|
+
@redirect_method = redirect_method
|
73
|
+
@redirect_fallback_method = redirect_fallback_method
|
74
|
+
@username = username
|
75
|
+
@password = password
|
76
|
+
@fallback_username = fallback_username
|
77
|
+
@fallback_password = fallback_password
|
78
|
+
end
|
79
|
+
|
80
|
+
# Creates an instance of the object from a hash.
|
81
|
+
def self.from_hash(hash)
|
82
|
+
return nil unless hash
|
83
|
+
|
84
|
+
# Extract variables from the hash.
|
85
|
+
redirect_url = hash['redirectUrl']
|
86
|
+
status = hash['status']
|
87
|
+
redirect_fallback_url = hash['redirectFallbackUrl']
|
88
|
+
redirect_method = hash['redirectMethod']
|
89
|
+
redirect_fallback_method = hash['redirectFallbackMethod']
|
90
|
+
username = hash['username']
|
91
|
+
password = hash['password']
|
92
|
+
fallback_username = hash['fallbackUsername']
|
93
|
+
fallback_password = hash['fallbackPassword']
|
94
|
+
|
95
|
+
# Create object from extracted values.
|
96
|
+
CallEngineModifyConferenceRequest.new(redirect_url,
|
97
|
+
status,
|
98
|
+
redirect_fallback_url,
|
99
|
+
redirect_method,
|
100
|
+
redirect_fallback_method,
|
101
|
+
username,
|
102
|
+
password,
|
103
|
+
fallback_username,
|
104
|
+
fallback_password)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|