twilio-ruby 5.58.3 → 5.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +36 -0
- data/README.md +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +40 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -5
- data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
- data/lib/twilio-ruby/rest/verify.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +7 -4
@@ -0,0 +1,667 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Api < Domain
|
12
|
+
class V2010 < Version
|
13
|
+
class AccountContext < InstanceContext
|
14
|
+
class CallContext < InstanceContext
|
15
|
+
class SiprecList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the SiprecList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @param [String] account_sid The SID of the
|
20
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Siprec
|
21
|
+
# resource.
|
22
|
+
# @param [String] call_sid The SID of the
|
23
|
+
# {Call}[https://www.twilio.com/docs/voice/api/call-resource] the Siprec resource
|
24
|
+
# is associated with.
|
25
|
+
# @return [SiprecList] SiprecList
|
26
|
+
def initialize(version, account_sid: nil, call_sid: nil)
|
27
|
+
super(version)
|
28
|
+
|
29
|
+
# Path Solution
|
30
|
+
@solution = {account_sid: account_sid, call_sid: call_sid}
|
31
|
+
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Siprec.json"
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# Create the SiprecInstance
|
36
|
+
# @param [String] name The user-specified name of this Siprec, if one was given
|
37
|
+
# when the Siprec was created. This may be used to stop the Siprec.
|
38
|
+
# @param [String] connector_name Unique name used when configuring the connector
|
39
|
+
# via Marketplace Add-on.
|
40
|
+
# @param [siprec.Track] track One of `inbound_track`, `outbound_track`,
|
41
|
+
# `both_tracks`.
|
42
|
+
# @param [String] status_callback Absolute URL of the status callback.
|
43
|
+
# @param [String] status_callback_method The http method for the status_callback
|
44
|
+
# (one of GET, POST).
|
45
|
+
# @param [String] parameter1_name Parameter name
|
46
|
+
# @param [String] parameter1_value Parameter value
|
47
|
+
# @param [String] parameter2_name Parameter name
|
48
|
+
# @param [String] parameter2_value Parameter value
|
49
|
+
# @param [String] parameter3_name Parameter name
|
50
|
+
# @param [String] parameter3_value Parameter value
|
51
|
+
# @param [String] parameter4_name Parameter name
|
52
|
+
# @param [String] parameter4_value Parameter value
|
53
|
+
# @param [String] parameter5_name Parameter name
|
54
|
+
# @param [String] parameter5_value Parameter value
|
55
|
+
# @param [String] parameter6_name Parameter name
|
56
|
+
# @param [String] parameter6_value Parameter value
|
57
|
+
# @param [String] parameter7_name Parameter name
|
58
|
+
# @param [String] parameter7_value Parameter value
|
59
|
+
# @param [String] parameter8_name Parameter name
|
60
|
+
# @param [String] parameter8_value Parameter value
|
61
|
+
# @param [String] parameter9_name Parameter name
|
62
|
+
# @param [String] parameter9_value Parameter value
|
63
|
+
# @param [String] parameter10_name Parameter name
|
64
|
+
# @param [String] parameter10_value Parameter value
|
65
|
+
# @param [String] parameter11_name Parameter name
|
66
|
+
# @param [String] parameter11_value Parameter value
|
67
|
+
# @param [String] parameter12_name Parameter name
|
68
|
+
# @param [String] parameter12_value Parameter value
|
69
|
+
# @param [String] parameter13_name Parameter name
|
70
|
+
# @param [String] parameter13_value Parameter value
|
71
|
+
# @param [String] parameter14_name Parameter name
|
72
|
+
# @param [String] parameter14_value Parameter value
|
73
|
+
# @param [String] parameter15_name Parameter name
|
74
|
+
# @param [String] parameter15_value Parameter value
|
75
|
+
# @param [String] parameter16_name Parameter name
|
76
|
+
# @param [String] parameter16_value Parameter value
|
77
|
+
# @param [String] parameter17_name Parameter name
|
78
|
+
# @param [String] parameter17_value Parameter value
|
79
|
+
# @param [String] parameter18_name Parameter name
|
80
|
+
# @param [String] parameter18_value Parameter value
|
81
|
+
# @param [String] parameter19_name Parameter name
|
82
|
+
# @param [String] parameter19_value Parameter value
|
83
|
+
# @param [String] parameter20_name Parameter name
|
84
|
+
# @param [String] parameter20_value Parameter value
|
85
|
+
# @param [String] parameter21_name Parameter name
|
86
|
+
# @param [String] parameter21_value Parameter value
|
87
|
+
# @param [String] parameter22_name Parameter name
|
88
|
+
# @param [String] parameter22_value Parameter value
|
89
|
+
# @param [String] parameter23_name Parameter name
|
90
|
+
# @param [String] parameter23_value Parameter value
|
91
|
+
# @param [String] parameter24_name Parameter name
|
92
|
+
# @param [String] parameter24_value Parameter value
|
93
|
+
# @param [String] parameter25_name Parameter name
|
94
|
+
# @param [String] parameter25_value Parameter value
|
95
|
+
# @param [String] parameter26_name Parameter name
|
96
|
+
# @param [String] parameter26_value Parameter value
|
97
|
+
# @param [String] parameter27_name Parameter name
|
98
|
+
# @param [String] parameter27_value Parameter value
|
99
|
+
# @param [String] parameter28_name Parameter name
|
100
|
+
# @param [String] parameter28_value Parameter value
|
101
|
+
# @param [String] parameter29_name Parameter name
|
102
|
+
# @param [String] parameter29_value Parameter value
|
103
|
+
# @param [String] parameter30_name Parameter name
|
104
|
+
# @param [String] parameter30_value Parameter value
|
105
|
+
# @param [String] parameter31_name Parameter name
|
106
|
+
# @param [String] parameter31_value Parameter value
|
107
|
+
# @param [String] parameter32_name Parameter name
|
108
|
+
# @param [String] parameter32_value Parameter value
|
109
|
+
# @param [String] parameter33_name Parameter name
|
110
|
+
# @param [String] parameter33_value Parameter value
|
111
|
+
# @param [String] parameter34_name Parameter name
|
112
|
+
# @param [String] parameter34_value Parameter value
|
113
|
+
# @param [String] parameter35_name Parameter name
|
114
|
+
# @param [String] parameter35_value Parameter value
|
115
|
+
# @param [String] parameter36_name Parameter name
|
116
|
+
# @param [String] parameter36_value Parameter value
|
117
|
+
# @param [String] parameter37_name Parameter name
|
118
|
+
# @param [String] parameter37_value Parameter value
|
119
|
+
# @param [String] parameter38_name Parameter name
|
120
|
+
# @param [String] parameter38_value Parameter value
|
121
|
+
# @param [String] parameter39_name Parameter name
|
122
|
+
# @param [String] parameter39_value Parameter value
|
123
|
+
# @param [String] parameter40_name Parameter name
|
124
|
+
# @param [String] parameter40_value Parameter value
|
125
|
+
# @param [String] parameter41_name Parameter name
|
126
|
+
# @param [String] parameter41_value Parameter value
|
127
|
+
# @param [String] parameter42_name Parameter name
|
128
|
+
# @param [String] parameter42_value Parameter value
|
129
|
+
# @param [String] parameter43_name Parameter name
|
130
|
+
# @param [String] parameter43_value Parameter value
|
131
|
+
# @param [String] parameter44_name Parameter name
|
132
|
+
# @param [String] parameter44_value Parameter value
|
133
|
+
# @param [String] parameter45_name Parameter name
|
134
|
+
# @param [String] parameter45_value Parameter value
|
135
|
+
# @param [String] parameter46_name Parameter name
|
136
|
+
# @param [String] parameter46_value Parameter value
|
137
|
+
# @param [String] parameter47_name Parameter name
|
138
|
+
# @param [String] parameter47_value Parameter value
|
139
|
+
# @param [String] parameter48_name Parameter name
|
140
|
+
# @param [String] parameter48_value Parameter value
|
141
|
+
# @param [String] parameter49_name Parameter name
|
142
|
+
# @param [String] parameter49_value Parameter value
|
143
|
+
# @param [String] parameter50_name Parameter name
|
144
|
+
# @param [String] parameter50_value Parameter value
|
145
|
+
# @param [String] parameter51_name Parameter name
|
146
|
+
# @param [String] parameter51_value Parameter value
|
147
|
+
# @param [String] parameter52_name Parameter name
|
148
|
+
# @param [String] parameter52_value Parameter value
|
149
|
+
# @param [String] parameter53_name Parameter name
|
150
|
+
# @param [String] parameter53_value Parameter value
|
151
|
+
# @param [String] parameter54_name Parameter name
|
152
|
+
# @param [String] parameter54_value Parameter value
|
153
|
+
# @param [String] parameter55_name Parameter name
|
154
|
+
# @param [String] parameter55_value Parameter value
|
155
|
+
# @param [String] parameter56_name Parameter name
|
156
|
+
# @param [String] parameter56_value Parameter value
|
157
|
+
# @param [String] parameter57_name Parameter name
|
158
|
+
# @param [String] parameter57_value Parameter value
|
159
|
+
# @param [String] parameter58_name Parameter name
|
160
|
+
# @param [String] parameter58_value Parameter value
|
161
|
+
# @param [String] parameter59_name Parameter name
|
162
|
+
# @param [String] parameter59_value Parameter value
|
163
|
+
# @param [String] parameter60_name Parameter name
|
164
|
+
# @param [String] parameter60_value Parameter value
|
165
|
+
# @param [String] parameter61_name Parameter name
|
166
|
+
# @param [String] parameter61_value Parameter value
|
167
|
+
# @param [String] parameter62_name Parameter name
|
168
|
+
# @param [String] parameter62_value Parameter value
|
169
|
+
# @param [String] parameter63_name Parameter name
|
170
|
+
# @param [String] parameter63_value Parameter value
|
171
|
+
# @param [String] parameter64_name Parameter name
|
172
|
+
# @param [String] parameter64_value Parameter value
|
173
|
+
# @param [String] parameter65_name Parameter name
|
174
|
+
# @param [String] parameter65_value Parameter value
|
175
|
+
# @param [String] parameter66_name Parameter name
|
176
|
+
# @param [String] parameter66_value Parameter value
|
177
|
+
# @param [String] parameter67_name Parameter name
|
178
|
+
# @param [String] parameter67_value Parameter value
|
179
|
+
# @param [String] parameter68_name Parameter name
|
180
|
+
# @param [String] parameter68_value Parameter value
|
181
|
+
# @param [String] parameter69_name Parameter name
|
182
|
+
# @param [String] parameter69_value Parameter value
|
183
|
+
# @param [String] parameter70_name Parameter name
|
184
|
+
# @param [String] parameter70_value Parameter value
|
185
|
+
# @param [String] parameter71_name Parameter name
|
186
|
+
# @param [String] parameter71_value Parameter value
|
187
|
+
# @param [String] parameter72_name Parameter name
|
188
|
+
# @param [String] parameter72_value Parameter value
|
189
|
+
# @param [String] parameter73_name Parameter name
|
190
|
+
# @param [String] parameter73_value Parameter value
|
191
|
+
# @param [String] parameter74_name Parameter name
|
192
|
+
# @param [String] parameter74_value Parameter value
|
193
|
+
# @param [String] parameter75_name Parameter name
|
194
|
+
# @param [String] parameter75_value Parameter value
|
195
|
+
# @param [String] parameter76_name Parameter name
|
196
|
+
# @param [String] parameter76_value Parameter value
|
197
|
+
# @param [String] parameter77_name Parameter name
|
198
|
+
# @param [String] parameter77_value Parameter value
|
199
|
+
# @param [String] parameter78_name Parameter name
|
200
|
+
# @param [String] parameter78_value Parameter value
|
201
|
+
# @param [String] parameter79_name Parameter name
|
202
|
+
# @param [String] parameter79_value Parameter value
|
203
|
+
# @param [String] parameter80_name Parameter name
|
204
|
+
# @param [String] parameter80_value Parameter value
|
205
|
+
# @param [String] parameter81_name Parameter name
|
206
|
+
# @param [String] parameter81_value Parameter value
|
207
|
+
# @param [String] parameter82_name Parameter name
|
208
|
+
# @param [String] parameter82_value Parameter value
|
209
|
+
# @param [String] parameter83_name Parameter name
|
210
|
+
# @param [String] parameter83_value Parameter value
|
211
|
+
# @param [String] parameter84_name Parameter name
|
212
|
+
# @param [String] parameter84_value Parameter value
|
213
|
+
# @param [String] parameter85_name Parameter name
|
214
|
+
# @param [String] parameter85_value Parameter value
|
215
|
+
# @param [String] parameter86_name Parameter name
|
216
|
+
# @param [String] parameter86_value Parameter value
|
217
|
+
# @param [String] parameter87_name Parameter name
|
218
|
+
# @param [String] parameter87_value Parameter value
|
219
|
+
# @param [String] parameter88_name Parameter name
|
220
|
+
# @param [String] parameter88_value Parameter value
|
221
|
+
# @param [String] parameter89_name Parameter name
|
222
|
+
# @param [String] parameter89_value Parameter value
|
223
|
+
# @param [String] parameter90_name Parameter name
|
224
|
+
# @param [String] parameter90_value Parameter value
|
225
|
+
# @param [String] parameter91_name Parameter name
|
226
|
+
# @param [String] parameter91_value Parameter value
|
227
|
+
# @param [String] parameter92_name Parameter name
|
228
|
+
# @param [String] parameter92_value Parameter value
|
229
|
+
# @param [String] parameter93_name Parameter name
|
230
|
+
# @param [String] parameter93_value Parameter value
|
231
|
+
# @param [String] parameter94_name Parameter name
|
232
|
+
# @param [String] parameter94_value Parameter value
|
233
|
+
# @param [String] parameter95_name Parameter name
|
234
|
+
# @param [String] parameter95_value Parameter value
|
235
|
+
# @param [String] parameter96_name Parameter name
|
236
|
+
# @param [String] parameter96_value Parameter value
|
237
|
+
# @param [String] parameter97_name Parameter name
|
238
|
+
# @param [String] parameter97_value Parameter value
|
239
|
+
# @param [String] parameter98_name Parameter name
|
240
|
+
# @param [String] parameter98_value Parameter value
|
241
|
+
# @param [String] parameter99_name Parameter name
|
242
|
+
# @param [String] parameter99_value Parameter value
|
243
|
+
# @return [SiprecInstance] Created SiprecInstance
|
244
|
+
def create(name: :unset, connector_name: :unset, track: :unset, status_callback: :unset, status_callback_method: :unset, parameter1_name: :unset, parameter1_value: :unset, parameter2_name: :unset, parameter2_value: :unset, parameter3_name: :unset, parameter3_value: :unset, parameter4_name: :unset, parameter4_value: :unset, parameter5_name: :unset, parameter5_value: :unset, parameter6_name: :unset, parameter6_value: :unset, parameter7_name: :unset, parameter7_value: :unset, parameter8_name: :unset, parameter8_value: :unset, parameter9_name: :unset, parameter9_value: :unset, parameter10_name: :unset, parameter10_value: :unset, parameter11_name: :unset, parameter11_value: :unset, parameter12_name: :unset, parameter12_value: :unset, parameter13_name: :unset, parameter13_value: :unset, parameter14_name: :unset, parameter14_value: :unset, parameter15_name: :unset, parameter15_value: :unset, parameter16_name: :unset, parameter16_value: :unset, parameter17_name: :unset, parameter17_value: :unset, parameter18_name: :unset, parameter18_value: :unset, parameter19_name: :unset, parameter19_value: :unset, parameter20_name: :unset, parameter20_value: :unset, parameter21_name: :unset, parameter21_value: :unset, parameter22_name: :unset, parameter22_value: :unset, parameter23_name: :unset, parameter23_value: :unset, parameter24_name: :unset, parameter24_value: :unset, parameter25_name: :unset, parameter25_value: :unset, parameter26_name: :unset, parameter26_value: :unset, parameter27_name: :unset, parameter27_value: :unset, parameter28_name: :unset, parameter28_value: :unset, parameter29_name: :unset, parameter29_value: :unset, parameter30_name: :unset, parameter30_value: :unset, parameter31_name: :unset, parameter31_value: :unset, parameter32_name: :unset, parameter32_value: :unset, parameter33_name: :unset, parameter33_value: :unset, parameter34_name: :unset, parameter34_value: :unset, parameter35_name: :unset, parameter35_value: :unset, parameter36_name: :unset, parameter36_value: :unset, parameter37_name: :unset, parameter37_value: :unset, parameter38_name: :unset, parameter38_value: :unset, parameter39_name: :unset, parameter39_value: :unset, parameter40_name: :unset, parameter40_value: :unset, parameter41_name: :unset, parameter41_value: :unset, parameter42_name: :unset, parameter42_value: :unset, parameter43_name: :unset, parameter43_value: :unset, parameter44_name: :unset, parameter44_value: :unset, parameter45_name: :unset, parameter45_value: :unset, parameter46_name: :unset, parameter46_value: :unset, parameter47_name: :unset, parameter47_value: :unset, parameter48_name: :unset, parameter48_value: :unset, parameter49_name: :unset, parameter49_value: :unset, parameter50_name: :unset, parameter50_value: :unset, parameter51_name: :unset, parameter51_value: :unset, parameter52_name: :unset, parameter52_value: :unset, parameter53_name: :unset, parameter53_value: :unset, parameter54_name: :unset, parameter54_value: :unset, parameter55_name: :unset, parameter55_value: :unset, parameter56_name: :unset, parameter56_value: :unset, parameter57_name: :unset, parameter57_value: :unset, parameter58_name: :unset, parameter58_value: :unset, parameter59_name: :unset, parameter59_value: :unset, parameter60_name: :unset, parameter60_value: :unset, parameter61_name: :unset, parameter61_value: :unset, parameter62_name: :unset, parameter62_value: :unset, parameter63_name: :unset, parameter63_value: :unset, parameter64_name: :unset, parameter64_value: :unset, parameter65_name: :unset, parameter65_value: :unset, parameter66_name: :unset, parameter66_value: :unset, parameter67_name: :unset, parameter67_value: :unset, parameter68_name: :unset, parameter68_value: :unset, parameter69_name: :unset, parameter69_value: :unset, parameter70_name: :unset, parameter70_value: :unset, parameter71_name: :unset, parameter71_value: :unset, parameter72_name: :unset, parameter72_value: :unset, parameter73_name: :unset, parameter73_value: :unset, parameter74_name: :unset, parameter74_value: :unset, parameter75_name: :unset, parameter75_value: :unset, parameter76_name: :unset, parameter76_value: :unset, parameter77_name: :unset, parameter77_value: :unset, parameter78_name: :unset, parameter78_value: :unset, parameter79_name: :unset, parameter79_value: :unset, parameter80_name: :unset, parameter80_value: :unset, parameter81_name: :unset, parameter81_value: :unset, parameter82_name: :unset, parameter82_value: :unset, parameter83_name: :unset, parameter83_value: :unset, parameter84_name: :unset, parameter84_value: :unset, parameter85_name: :unset, parameter85_value: :unset, parameter86_name: :unset, parameter86_value: :unset, parameter87_name: :unset, parameter87_value: :unset, parameter88_name: :unset, parameter88_value: :unset, parameter89_name: :unset, parameter89_value: :unset, parameter90_name: :unset, parameter90_value: :unset, parameter91_name: :unset, parameter91_value: :unset, parameter92_name: :unset, parameter92_value: :unset, parameter93_name: :unset, parameter93_value: :unset, parameter94_name: :unset, parameter94_value: :unset, parameter95_name: :unset, parameter95_value: :unset, parameter96_name: :unset, parameter96_value: :unset, parameter97_name: :unset, parameter97_value: :unset, parameter98_name: :unset, parameter98_value: :unset, parameter99_name: :unset, parameter99_value: :unset)
|
245
|
+
data = Twilio::Values.of({
|
246
|
+
'Name' => name,
|
247
|
+
'ConnectorName' => connector_name,
|
248
|
+
'Track' => track,
|
249
|
+
'StatusCallback' => status_callback,
|
250
|
+
'StatusCallbackMethod' => status_callback_method,
|
251
|
+
'Parameter1.Name' => parameter1_name,
|
252
|
+
'Parameter1.Value' => parameter1_value,
|
253
|
+
'Parameter2.Name' => parameter2_name,
|
254
|
+
'Parameter2.Value' => parameter2_value,
|
255
|
+
'Parameter3.Name' => parameter3_name,
|
256
|
+
'Parameter3.Value' => parameter3_value,
|
257
|
+
'Parameter4.Name' => parameter4_name,
|
258
|
+
'Parameter4.Value' => parameter4_value,
|
259
|
+
'Parameter5.Name' => parameter5_name,
|
260
|
+
'Parameter5.Value' => parameter5_value,
|
261
|
+
'Parameter6.Name' => parameter6_name,
|
262
|
+
'Parameter6.Value' => parameter6_value,
|
263
|
+
'Parameter7.Name' => parameter7_name,
|
264
|
+
'Parameter7.Value' => parameter7_value,
|
265
|
+
'Parameter8.Name' => parameter8_name,
|
266
|
+
'Parameter8.Value' => parameter8_value,
|
267
|
+
'Parameter9.Name' => parameter9_name,
|
268
|
+
'Parameter9.Value' => parameter9_value,
|
269
|
+
'Parameter10.Name' => parameter10_name,
|
270
|
+
'Parameter10.Value' => parameter10_value,
|
271
|
+
'Parameter11.Name' => parameter11_name,
|
272
|
+
'Parameter11.Value' => parameter11_value,
|
273
|
+
'Parameter12.Name' => parameter12_name,
|
274
|
+
'Parameter12.Value' => parameter12_value,
|
275
|
+
'Parameter13.Name' => parameter13_name,
|
276
|
+
'Parameter13.Value' => parameter13_value,
|
277
|
+
'Parameter14.Name' => parameter14_name,
|
278
|
+
'Parameter14.Value' => parameter14_value,
|
279
|
+
'Parameter15.Name' => parameter15_name,
|
280
|
+
'Parameter15.Value' => parameter15_value,
|
281
|
+
'Parameter16.Name' => parameter16_name,
|
282
|
+
'Parameter16.Value' => parameter16_value,
|
283
|
+
'Parameter17.Name' => parameter17_name,
|
284
|
+
'Parameter17.Value' => parameter17_value,
|
285
|
+
'Parameter18.Name' => parameter18_name,
|
286
|
+
'Parameter18.Value' => parameter18_value,
|
287
|
+
'Parameter19.Name' => parameter19_name,
|
288
|
+
'Parameter19.Value' => parameter19_value,
|
289
|
+
'Parameter20.Name' => parameter20_name,
|
290
|
+
'Parameter20.Value' => parameter20_value,
|
291
|
+
'Parameter21.Name' => parameter21_name,
|
292
|
+
'Parameter21.Value' => parameter21_value,
|
293
|
+
'Parameter22.Name' => parameter22_name,
|
294
|
+
'Parameter22.Value' => parameter22_value,
|
295
|
+
'Parameter23.Name' => parameter23_name,
|
296
|
+
'Parameter23.Value' => parameter23_value,
|
297
|
+
'Parameter24.Name' => parameter24_name,
|
298
|
+
'Parameter24.Value' => parameter24_value,
|
299
|
+
'Parameter25.Name' => parameter25_name,
|
300
|
+
'Parameter25.Value' => parameter25_value,
|
301
|
+
'Parameter26.Name' => parameter26_name,
|
302
|
+
'Parameter26.Value' => parameter26_value,
|
303
|
+
'Parameter27.Name' => parameter27_name,
|
304
|
+
'Parameter27.Value' => parameter27_value,
|
305
|
+
'Parameter28.Name' => parameter28_name,
|
306
|
+
'Parameter28.Value' => parameter28_value,
|
307
|
+
'Parameter29.Name' => parameter29_name,
|
308
|
+
'Parameter29.Value' => parameter29_value,
|
309
|
+
'Parameter30.Name' => parameter30_name,
|
310
|
+
'Parameter30.Value' => parameter30_value,
|
311
|
+
'Parameter31.Name' => parameter31_name,
|
312
|
+
'Parameter31.Value' => parameter31_value,
|
313
|
+
'Parameter32.Name' => parameter32_name,
|
314
|
+
'Parameter32.Value' => parameter32_value,
|
315
|
+
'Parameter33.Name' => parameter33_name,
|
316
|
+
'Parameter33.Value' => parameter33_value,
|
317
|
+
'Parameter34.Name' => parameter34_name,
|
318
|
+
'Parameter34.Value' => parameter34_value,
|
319
|
+
'Parameter35.Name' => parameter35_name,
|
320
|
+
'Parameter35.Value' => parameter35_value,
|
321
|
+
'Parameter36.Name' => parameter36_name,
|
322
|
+
'Parameter36.Value' => parameter36_value,
|
323
|
+
'Parameter37.Name' => parameter37_name,
|
324
|
+
'Parameter37.Value' => parameter37_value,
|
325
|
+
'Parameter38.Name' => parameter38_name,
|
326
|
+
'Parameter38.Value' => parameter38_value,
|
327
|
+
'Parameter39.Name' => parameter39_name,
|
328
|
+
'Parameter39.Value' => parameter39_value,
|
329
|
+
'Parameter40.Name' => parameter40_name,
|
330
|
+
'Parameter40.Value' => parameter40_value,
|
331
|
+
'Parameter41.Name' => parameter41_name,
|
332
|
+
'Parameter41.Value' => parameter41_value,
|
333
|
+
'Parameter42.Name' => parameter42_name,
|
334
|
+
'Parameter42.Value' => parameter42_value,
|
335
|
+
'Parameter43.Name' => parameter43_name,
|
336
|
+
'Parameter43.Value' => parameter43_value,
|
337
|
+
'Parameter44.Name' => parameter44_name,
|
338
|
+
'Parameter44.Value' => parameter44_value,
|
339
|
+
'Parameter45.Name' => parameter45_name,
|
340
|
+
'Parameter45.Value' => parameter45_value,
|
341
|
+
'Parameter46.Name' => parameter46_name,
|
342
|
+
'Parameter46.Value' => parameter46_value,
|
343
|
+
'Parameter47.Name' => parameter47_name,
|
344
|
+
'Parameter47.Value' => parameter47_value,
|
345
|
+
'Parameter48.Name' => parameter48_name,
|
346
|
+
'Parameter48.Value' => parameter48_value,
|
347
|
+
'Parameter49.Name' => parameter49_name,
|
348
|
+
'Parameter49.Value' => parameter49_value,
|
349
|
+
'Parameter50.Name' => parameter50_name,
|
350
|
+
'Parameter50.Value' => parameter50_value,
|
351
|
+
'Parameter51.Name' => parameter51_name,
|
352
|
+
'Parameter51.Value' => parameter51_value,
|
353
|
+
'Parameter52.Name' => parameter52_name,
|
354
|
+
'Parameter52.Value' => parameter52_value,
|
355
|
+
'Parameter53.Name' => parameter53_name,
|
356
|
+
'Parameter53.Value' => parameter53_value,
|
357
|
+
'Parameter54.Name' => parameter54_name,
|
358
|
+
'Parameter54.Value' => parameter54_value,
|
359
|
+
'Parameter55.Name' => parameter55_name,
|
360
|
+
'Parameter55.Value' => parameter55_value,
|
361
|
+
'Parameter56.Name' => parameter56_name,
|
362
|
+
'Parameter56.Value' => parameter56_value,
|
363
|
+
'Parameter57.Name' => parameter57_name,
|
364
|
+
'Parameter57.Value' => parameter57_value,
|
365
|
+
'Parameter58.Name' => parameter58_name,
|
366
|
+
'Parameter58.Value' => parameter58_value,
|
367
|
+
'Parameter59.Name' => parameter59_name,
|
368
|
+
'Parameter59.Value' => parameter59_value,
|
369
|
+
'Parameter60.Name' => parameter60_name,
|
370
|
+
'Parameter60.Value' => parameter60_value,
|
371
|
+
'Parameter61.Name' => parameter61_name,
|
372
|
+
'Parameter61.Value' => parameter61_value,
|
373
|
+
'Parameter62.Name' => parameter62_name,
|
374
|
+
'Parameter62.Value' => parameter62_value,
|
375
|
+
'Parameter63.Name' => parameter63_name,
|
376
|
+
'Parameter63.Value' => parameter63_value,
|
377
|
+
'Parameter64.Name' => parameter64_name,
|
378
|
+
'Parameter64.Value' => parameter64_value,
|
379
|
+
'Parameter65.Name' => parameter65_name,
|
380
|
+
'Parameter65.Value' => parameter65_value,
|
381
|
+
'Parameter66.Name' => parameter66_name,
|
382
|
+
'Parameter66.Value' => parameter66_value,
|
383
|
+
'Parameter67.Name' => parameter67_name,
|
384
|
+
'Parameter67.Value' => parameter67_value,
|
385
|
+
'Parameter68.Name' => parameter68_name,
|
386
|
+
'Parameter68.Value' => parameter68_value,
|
387
|
+
'Parameter69.Name' => parameter69_name,
|
388
|
+
'Parameter69.Value' => parameter69_value,
|
389
|
+
'Parameter70.Name' => parameter70_name,
|
390
|
+
'Parameter70.Value' => parameter70_value,
|
391
|
+
'Parameter71.Name' => parameter71_name,
|
392
|
+
'Parameter71.Value' => parameter71_value,
|
393
|
+
'Parameter72.Name' => parameter72_name,
|
394
|
+
'Parameter72.Value' => parameter72_value,
|
395
|
+
'Parameter73.Name' => parameter73_name,
|
396
|
+
'Parameter73.Value' => parameter73_value,
|
397
|
+
'Parameter74.Name' => parameter74_name,
|
398
|
+
'Parameter74.Value' => parameter74_value,
|
399
|
+
'Parameter75.Name' => parameter75_name,
|
400
|
+
'Parameter75.Value' => parameter75_value,
|
401
|
+
'Parameter76.Name' => parameter76_name,
|
402
|
+
'Parameter76.Value' => parameter76_value,
|
403
|
+
'Parameter77.Name' => parameter77_name,
|
404
|
+
'Parameter77.Value' => parameter77_value,
|
405
|
+
'Parameter78.Name' => parameter78_name,
|
406
|
+
'Parameter78.Value' => parameter78_value,
|
407
|
+
'Parameter79.Name' => parameter79_name,
|
408
|
+
'Parameter79.Value' => parameter79_value,
|
409
|
+
'Parameter80.Name' => parameter80_name,
|
410
|
+
'Parameter80.Value' => parameter80_value,
|
411
|
+
'Parameter81.Name' => parameter81_name,
|
412
|
+
'Parameter81.Value' => parameter81_value,
|
413
|
+
'Parameter82.Name' => parameter82_name,
|
414
|
+
'Parameter82.Value' => parameter82_value,
|
415
|
+
'Parameter83.Name' => parameter83_name,
|
416
|
+
'Parameter83.Value' => parameter83_value,
|
417
|
+
'Parameter84.Name' => parameter84_name,
|
418
|
+
'Parameter84.Value' => parameter84_value,
|
419
|
+
'Parameter85.Name' => parameter85_name,
|
420
|
+
'Parameter85.Value' => parameter85_value,
|
421
|
+
'Parameter86.Name' => parameter86_name,
|
422
|
+
'Parameter86.Value' => parameter86_value,
|
423
|
+
'Parameter87.Name' => parameter87_name,
|
424
|
+
'Parameter87.Value' => parameter87_value,
|
425
|
+
'Parameter88.Name' => parameter88_name,
|
426
|
+
'Parameter88.Value' => parameter88_value,
|
427
|
+
'Parameter89.Name' => parameter89_name,
|
428
|
+
'Parameter89.Value' => parameter89_value,
|
429
|
+
'Parameter90.Name' => parameter90_name,
|
430
|
+
'Parameter90.Value' => parameter90_value,
|
431
|
+
'Parameter91.Name' => parameter91_name,
|
432
|
+
'Parameter91.Value' => parameter91_value,
|
433
|
+
'Parameter92.Name' => parameter92_name,
|
434
|
+
'Parameter92.Value' => parameter92_value,
|
435
|
+
'Parameter93.Name' => parameter93_name,
|
436
|
+
'Parameter93.Value' => parameter93_value,
|
437
|
+
'Parameter94.Name' => parameter94_name,
|
438
|
+
'Parameter94.Value' => parameter94_value,
|
439
|
+
'Parameter95.Name' => parameter95_name,
|
440
|
+
'Parameter95.Value' => parameter95_value,
|
441
|
+
'Parameter96.Name' => parameter96_name,
|
442
|
+
'Parameter96.Value' => parameter96_value,
|
443
|
+
'Parameter97.Name' => parameter97_name,
|
444
|
+
'Parameter97.Value' => parameter97_value,
|
445
|
+
'Parameter98.Name' => parameter98_name,
|
446
|
+
'Parameter98.Value' => parameter98_value,
|
447
|
+
'Parameter99.Name' => parameter99_name,
|
448
|
+
'Parameter99.Value' => parameter99_value,
|
449
|
+
})
|
450
|
+
|
451
|
+
payload = @version.create('POST', @uri, data: data)
|
452
|
+
|
453
|
+
SiprecInstance.new(
|
454
|
+
@version,
|
455
|
+
payload,
|
456
|
+
account_sid: @solution[:account_sid],
|
457
|
+
call_sid: @solution[:call_sid],
|
458
|
+
)
|
459
|
+
end
|
460
|
+
|
461
|
+
##
|
462
|
+
# Provide a user friendly representation
|
463
|
+
def to_s
|
464
|
+
'#<Twilio.Api.V2010.SiprecList>'
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
class SiprecPage < Page
|
469
|
+
##
|
470
|
+
# Initialize the SiprecPage
|
471
|
+
# @param [Version] version Version that contains the resource
|
472
|
+
# @param [Response] response Response from the API
|
473
|
+
# @param [Hash] solution Path solution for the resource
|
474
|
+
# @return [SiprecPage] SiprecPage
|
475
|
+
def initialize(version, response, solution)
|
476
|
+
super(version, response)
|
477
|
+
|
478
|
+
# Path Solution
|
479
|
+
@solution = solution
|
480
|
+
end
|
481
|
+
|
482
|
+
##
|
483
|
+
# Build an instance of SiprecInstance
|
484
|
+
# @param [Hash] payload Payload response from the API
|
485
|
+
# @return [SiprecInstance] SiprecInstance
|
486
|
+
def get_instance(payload)
|
487
|
+
SiprecInstance.new(
|
488
|
+
@version,
|
489
|
+
payload,
|
490
|
+
account_sid: @solution[:account_sid],
|
491
|
+
call_sid: @solution[:call_sid],
|
492
|
+
)
|
493
|
+
end
|
494
|
+
|
495
|
+
##
|
496
|
+
# Provide a user friendly representation
|
497
|
+
def to_s
|
498
|
+
'<Twilio.Api.V2010.SiprecPage>'
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
502
|
+
class SiprecContext < InstanceContext
|
503
|
+
##
|
504
|
+
# Initialize the SiprecContext
|
505
|
+
# @param [Version] version Version that contains the resource
|
506
|
+
# @param [String] account_sid The SID of the
|
507
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Siprec
|
508
|
+
# resource.
|
509
|
+
# @param [String] call_sid The SID of the
|
510
|
+
# {Call}[https://www.twilio.com/docs/voice/api/call-resource] the Siprec resource
|
511
|
+
# is associated with.
|
512
|
+
# @param [String] sid The SID of the Siprec resource, or the `name` used when
|
513
|
+
# creating the resource
|
514
|
+
# @return [SiprecContext] SiprecContext
|
515
|
+
def initialize(version, account_sid, call_sid, sid)
|
516
|
+
super(version)
|
517
|
+
|
518
|
+
# Path Solution
|
519
|
+
@solution = {account_sid: account_sid, call_sid: call_sid, sid: sid, }
|
520
|
+
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Siprec/#{@solution[:sid]}.json"
|
521
|
+
end
|
522
|
+
|
523
|
+
##
|
524
|
+
# Update the SiprecInstance
|
525
|
+
# @param [siprec.UpdateStatus] status The status. Must have the value `stopped`
|
526
|
+
# @return [SiprecInstance] Updated SiprecInstance
|
527
|
+
def update(status: nil)
|
528
|
+
data = Twilio::Values.of({'Status' => status, })
|
529
|
+
|
530
|
+
payload = @version.update('POST', @uri, data: data)
|
531
|
+
|
532
|
+
SiprecInstance.new(
|
533
|
+
@version,
|
534
|
+
payload,
|
535
|
+
account_sid: @solution[:account_sid],
|
536
|
+
call_sid: @solution[:call_sid],
|
537
|
+
sid: @solution[:sid],
|
538
|
+
)
|
539
|
+
end
|
540
|
+
|
541
|
+
##
|
542
|
+
# Provide a user friendly representation
|
543
|
+
def to_s
|
544
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
545
|
+
"#<Twilio.Api.V2010.SiprecContext #{context}>"
|
546
|
+
end
|
547
|
+
|
548
|
+
##
|
549
|
+
# Provide a detailed, user friendly representation
|
550
|
+
def inspect
|
551
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
552
|
+
"#<Twilio.Api.V2010.SiprecContext #{context}>"
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
class SiprecInstance < InstanceResource
|
557
|
+
##
|
558
|
+
# Initialize the SiprecInstance
|
559
|
+
# @param [Version] version Version that contains the resource
|
560
|
+
# @param [Hash] payload payload that contains response from Twilio
|
561
|
+
# @param [String] account_sid The SID of the
|
562
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Siprec
|
563
|
+
# resource.
|
564
|
+
# @param [String] call_sid The SID of the
|
565
|
+
# {Call}[https://www.twilio.com/docs/voice/api/call-resource] the Siprec resource
|
566
|
+
# is associated with.
|
567
|
+
# @param [String] sid The SID of the Siprec resource, or the `name` used when
|
568
|
+
# creating the resource
|
569
|
+
# @return [SiprecInstance] SiprecInstance
|
570
|
+
def initialize(version, payload, account_sid: nil, call_sid: nil, sid: nil)
|
571
|
+
super(version)
|
572
|
+
|
573
|
+
# Marshaled Properties
|
574
|
+
@properties = {
|
575
|
+
'sid' => payload['sid'],
|
576
|
+
'account_sid' => payload['account_sid'],
|
577
|
+
'call_sid' => payload['call_sid'],
|
578
|
+
'name' => payload['name'],
|
579
|
+
'status' => payload['status'],
|
580
|
+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
581
|
+
}
|
582
|
+
|
583
|
+
# Context
|
584
|
+
@instance_context = nil
|
585
|
+
@params = {'account_sid' => account_sid, 'call_sid' => call_sid, 'sid' => sid || @properties['sid'], }
|
586
|
+
end
|
587
|
+
|
588
|
+
##
|
589
|
+
# Generate an instance context for the instance, the context is capable of
|
590
|
+
# performing various actions. All instance actions are proxied to the context
|
591
|
+
# @return [SiprecContext] SiprecContext for this SiprecInstance
|
592
|
+
def context
|
593
|
+
unless @instance_context
|
594
|
+
@instance_context = SiprecContext.new(
|
595
|
+
@version,
|
596
|
+
@params['account_sid'],
|
597
|
+
@params['call_sid'],
|
598
|
+
@params['sid'],
|
599
|
+
)
|
600
|
+
end
|
601
|
+
@instance_context
|
602
|
+
end
|
603
|
+
|
604
|
+
##
|
605
|
+
# @return [String] The SID of the Siprec resource.
|
606
|
+
def sid
|
607
|
+
@properties['sid']
|
608
|
+
end
|
609
|
+
|
610
|
+
##
|
611
|
+
# @return [String] The SID of the Account that created this resource
|
612
|
+
def account_sid
|
613
|
+
@properties['account_sid']
|
614
|
+
end
|
615
|
+
|
616
|
+
##
|
617
|
+
# @return [String] The SID of the Call the resource is associated with
|
618
|
+
def call_sid
|
619
|
+
@properties['call_sid']
|
620
|
+
end
|
621
|
+
|
622
|
+
##
|
623
|
+
# @return [String] The name of this resource
|
624
|
+
def name
|
625
|
+
@properties['name']
|
626
|
+
end
|
627
|
+
|
628
|
+
##
|
629
|
+
# @return [siprec.Status] The status - one of `stopped`, `in-progress`
|
630
|
+
def status
|
631
|
+
@properties['status']
|
632
|
+
end
|
633
|
+
|
634
|
+
##
|
635
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
|
636
|
+
def date_updated
|
637
|
+
@properties['date_updated']
|
638
|
+
end
|
639
|
+
|
640
|
+
##
|
641
|
+
# Update the SiprecInstance
|
642
|
+
# @param [siprec.UpdateStatus] status The status. Must have the value `stopped`
|
643
|
+
# @return [SiprecInstance] Updated SiprecInstance
|
644
|
+
def update(status: nil)
|
645
|
+
context.update(status: status, )
|
646
|
+
end
|
647
|
+
|
648
|
+
##
|
649
|
+
# Provide a user friendly representation
|
650
|
+
def to_s
|
651
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
652
|
+
"<Twilio.Api.V2010.SiprecInstance #{values}>"
|
653
|
+
end
|
654
|
+
|
655
|
+
##
|
656
|
+
# Provide a detailed, user friendly representation
|
657
|
+
def inspect
|
658
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
659
|
+
"<Twilio.Api.V2010.SiprecInstance #{values}>"
|
660
|
+
end
|
661
|
+
end
|
662
|
+
end
|
663
|
+
end
|
664
|
+
end
|
665
|
+
end
|
666
|
+
end
|
667
|
+
end
|