twilio-ruby 7.2.0 → 7.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,901 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Api
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Api < ApiBase
19
+ class V2010 < Version
20
+ class AccountContext < InstanceContext
21
+ class CallContext < InstanceContext
22
+
23
+ class TranscriptionList < ListResource
24
+
25
+ ##
26
+ # Initialize the TranscriptionList
27
+ # @param [Version] version Version that contains the resource
28
+ # @return [TranscriptionList] TranscriptionList
29
+ def initialize(version, account_sid: nil, call_sid: nil)
30
+ super(version)
31
+ # Path Solution
32
+ @solution = { account_sid: account_sid, call_sid: call_sid }
33
+ @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Transcriptions.json"
34
+
35
+ end
36
+ ##
37
+ # Create the TranscriptionInstance
38
+ # @param [String] name The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
39
+ # @param [Track] track
40
+ # @param [String] status_callback_url Absolute URL of the status callback.
41
+ # @param [String] status_callback_method The http method for the status_callback (one of GET, POST).
42
+ # @param [String] inbound_track_label Friendly name given to the Inbound Track
43
+ # @param [String] outbound_track_label Friendly name given to the Outbound Track
44
+ # @param [Boolean] partial_results Indicates if partial results are going to be send to the customer
45
+ # @param [String] language_code Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format
46
+ # @param [String] transcription_engine Definition of the transcription engine to be used, between those supported by Twilio
47
+ # @param [Boolean] profanity_filter indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks
48
+ # @param [String] speech_model Recognition model used by the transcription engine, between those supported by the provider
49
+ # @param [String] hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
50
+ # @param [Boolean] enable_automatic_punctuation The provider will adds punctuation to recognition result hypotheses
51
+ # @param [String] parameter1_name Parameter name
52
+ # @param [String] parameter1_value Parameter value
53
+ # @param [String] parameter2_name Parameter name
54
+ # @param [String] parameter2_value Parameter value
55
+ # @param [String] parameter3_name Parameter name
56
+ # @param [String] parameter3_value Parameter value
57
+ # @param [String] parameter4_name Parameter name
58
+ # @param [String] parameter4_value Parameter value
59
+ # @param [String] parameter5_name Parameter name
60
+ # @param [String] parameter5_value Parameter value
61
+ # @param [String] parameter6_name Parameter name
62
+ # @param [String] parameter6_value Parameter value
63
+ # @param [String] parameter7_name Parameter name
64
+ # @param [String] parameter7_value Parameter value
65
+ # @param [String] parameter8_name Parameter name
66
+ # @param [String] parameter8_value Parameter value
67
+ # @param [String] parameter9_name Parameter name
68
+ # @param [String] parameter9_value Parameter value
69
+ # @param [String] parameter10_name Parameter name
70
+ # @param [String] parameter10_value Parameter value
71
+ # @param [String] parameter11_name Parameter name
72
+ # @param [String] parameter11_value Parameter value
73
+ # @param [String] parameter12_name Parameter name
74
+ # @param [String] parameter12_value Parameter value
75
+ # @param [String] parameter13_name Parameter name
76
+ # @param [String] parameter13_value Parameter value
77
+ # @param [String] parameter14_name Parameter name
78
+ # @param [String] parameter14_value Parameter value
79
+ # @param [String] parameter15_name Parameter name
80
+ # @param [String] parameter15_value Parameter value
81
+ # @param [String] parameter16_name Parameter name
82
+ # @param [String] parameter16_value Parameter value
83
+ # @param [String] parameter17_name Parameter name
84
+ # @param [String] parameter17_value Parameter value
85
+ # @param [String] parameter18_name Parameter name
86
+ # @param [String] parameter18_value Parameter value
87
+ # @param [String] parameter19_name Parameter name
88
+ # @param [String] parameter19_value Parameter value
89
+ # @param [String] parameter20_name Parameter name
90
+ # @param [String] parameter20_value Parameter value
91
+ # @param [String] parameter21_name Parameter name
92
+ # @param [String] parameter21_value Parameter value
93
+ # @param [String] parameter22_name Parameter name
94
+ # @param [String] parameter22_value Parameter value
95
+ # @param [String] parameter23_name Parameter name
96
+ # @param [String] parameter23_value Parameter value
97
+ # @param [String] parameter24_name Parameter name
98
+ # @param [String] parameter24_value Parameter value
99
+ # @param [String] parameter25_name Parameter name
100
+ # @param [String] parameter25_value Parameter value
101
+ # @param [String] parameter26_name Parameter name
102
+ # @param [String] parameter26_value Parameter value
103
+ # @param [String] parameter27_name Parameter name
104
+ # @param [String] parameter27_value Parameter value
105
+ # @param [String] parameter28_name Parameter name
106
+ # @param [String] parameter28_value Parameter value
107
+ # @param [String] parameter29_name Parameter name
108
+ # @param [String] parameter29_value Parameter value
109
+ # @param [String] parameter30_name Parameter name
110
+ # @param [String] parameter30_value Parameter value
111
+ # @param [String] parameter31_name Parameter name
112
+ # @param [String] parameter31_value Parameter value
113
+ # @param [String] parameter32_name Parameter name
114
+ # @param [String] parameter32_value Parameter value
115
+ # @param [String] parameter33_name Parameter name
116
+ # @param [String] parameter33_value Parameter value
117
+ # @param [String] parameter34_name Parameter name
118
+ # @param [String] parameter34_value Parameter value
119
+ # @param [String] parameter35_name Parameter name
120
+ # @param [String] parameter35_value Parameter value
121
+ # @param [String] parameter36_name Parameter name
122
+ # @param [String] parameter36_value Parameter value
123
+ # @param [String] parameter37_name Parameter name
124
+ # @param [String] parameter37_value Parameter value
125
+ # @param [String] parameter38_name Parameter name
126
+ # @param [String] parameter38_value Parameter value
127
+ # @param [String] parameter39_name Parameter name
128
+ # @param [String] parameter39_value Parameter value
129
+ # @param [String] parameter40_name Parameter name
130
+ # @param [String] parameter40_value Parameter value
131
+ # @param [String] parameter41_name Parameter name
132
+ # @param [String] parameter41_value Parameter value
133
+ # @param [String] parameter42_name Parameter name
134
+ # @param [String] parameter42_value Parameter value
135
+ # @param [String] parameter43_name Parameter name
136
+ # @param [String] parameter43_value Parameter value
137
+ # @param [String] parameter44_name Parameter name
138
+ # @param [String] parameter44_value Parameter value
139
+ # @param [String] parameter45_name Parameter name
140
+ # @param [String] parameter45_value Parameter value
141
+ # @param [String] parameter46_name Parameter name
142
+ # @param [String] parameter46_value Parameter value
143
+ # @param [String] parameter47_name Parameter name
144
+ # @param [String] parameter47_value Parameter value
145
+ # @param [String] parameter48_name Parameter name
146
+ # @param [String] parameter48_value Parameter value
147
+ # @param [String] parameter49_name Parameter name
148
+ # @param [String] parameter49_value Parameter value
149
+ # @param [String] parameter50_name Parameter name
150
+ # @param [String] parameter50_value Parameter value
151
+ # @param [String] parameter51_name Parameter name
152
+ # @param [String] parameter51_value Parameter value
153
+ # @param [String] parameter52_name Parameter name
154
+ # @param [String] parameter52_value Parameter value
155
+ # @param [String] parameter53_name Parameter name
156
+ # @param [String] parameter53_value Parameter value
157
+ # @param [String] parameter54_name Parameter name
158
+ # @param [String] parameter54_value Parameter value
159
+ # @param [String] parameter55_name Parameter name
160
+ # @param [String] parameter55_value Parameter value
161
+ # @param [String] parameter56_name Parameter name
162
+ # @param [String] parameter56_value Parameter value
163
+ # @param [String] parameter57_name Parameter name
164
+ # @param [String] parameter57_value Parameter value
165
+ # @param [String] parameter58_name Parameter name
166
+ # @param [String] parameter58_value Parameter value
167
+ # @param [String] parameter59_name Parameter name
168
+ # @param [String] parameter59_value Parameter value
169
+ # @param [String] parameter60_name Parameter name
170
+ # @param [String] parameter60_value Parameter value
171
+ # @param [String] parameter61_name Parameter name
172
+ # @param [String] parameter61_value Parameter value
173
+ # @param [String] parameter62_name Parameter name
174
+ # @param [String] parameter62_value Parameter value
175
+ # @param [String] parameter63_name Parameter name
176
+ # @param [String] parameter63_value Parameter value
177
+ # @param [String] parameter64_name Parameter name
178
+ # @param [String] parameter64_value Parameter value
179
+ # @param [String] parameter65_name Parameter name
180
+ # @param [String] parameter65_value Parameter value
181
+ # @param [String] parameter66_name Parameter name
182
+ # @param [String] parameter66_value Parameter value
183
+ # @param [String] parameter67_name Parameter name
184
+ # @param [String] parameter67_value Parameter value
185
+ # @param [String] parameter68_name Parameter name
186
+ # @param [String] parameter68_value Parameter value
187
+ # @param [String] parameter69_name Parameter name
188
+ # @param [String] parameter69_value Parameter value
189
+ # @param [String] parameter70_name Parameter name
190
+ # @param [String] parameter70_value Parameter value
191
+ # @param [String] parameter71_name Parameter name
192
+ # @param [String] parameter71_value Parameter value
193
+ # @param [String] parameter72_name Parameter name
194
+ # @param [String] parameter72_value Parameter value
195
+ # @param [String] parameter73_name Parameter name
196
+ # @param [String] parameter73_value Parameter value
197
+ # @param [String] parameter74_name Parameter name
198
+ # @param [String] parameter74_value Parameter value
199
+ # @param [String] parameter75_name Parameter name
200
+ # @param [String] parameter75_value Parameter value
201
+ # @param [String] parameter76_name Parameter name
202
+ # @param [String] parameter76_value Parameter value
203
+ # @param [String] parameter77_name Parameter name
204
+ # @param [String] parameter77_value Parameter value
205
+ # @param [String] parameter78_name Parameter name
206
+ # @param [String] parameter78_value Parameter value
207
+ # @param [String] parameter79_name Parameter name
208
+ # @param [String] parameter79_value Parameter value
209
+ # @param [String] parameter80_name Parameter name
210
+ # @param [String] parameter80_value Parameter value
211
+ # @param [String] parameter81_name Parameter name
212
+ # @param [String] parameter81_value Parameter value
213
+ # @param [String] parameter82_name Parameter name
214
+ # @param [String] parameter82_value Parameter value
215
+ # @param [String] parameter83_name Parameter name
216
+ # @param [String] parameter83_value Parameter value
217
+ # @param [String] parameter84_name Parameter name
218
+ # @param [String] parameter84_value Parameter value
219
+ # @param [String] parameter85_name Parameter name
220
+ # @param [String] parameter85_value Parameter value
221
+ # @param [String] parameter86_name Parameter name
222
+ # @param [String] parameter86_value Parameter value
223
+ # @param [String] parameter87_name Parameter name
224
+ # @param [String] parameter87_value Parameter value
225
+ # @param [String] parameter88_name Parameter name
226
+ # @param [String] parameter88_value Parameter value
227
+ # @param [String] parameter89_name Parameter name
228
+ # @param [String] parameter89_value Parameter value
229
+ # @param [String] parameter90_name Parameter name
230
+ # @param [String] parameter90_value Parameter value
231
+ # @param [String] parameter91_name Parameter name
232
+ # @param [String] parameter91_value Parameter value
233
+ # @param [String] parameter92_name Parameter name
234
+ # @param [String] parameter92_value Parameter value
235
+ # @param [String] parameter93_name Parameter name
236
+ # @param [String] parameter93_value Parameter value
237
+ # @param [String] parameter94_name Parameter name
238
+ # @param [String] parameter94_value Parameter value
239
+ # @param [String] parameter95_name Parameter name
240
+ # @param [String] parameter95_value Parameter value
241
+ # @param [String] parameter96_name Parameter name
242
+ # @param [String] parameter96_value Parameter value
243
+ # @param [String] parameter97_name Parameter name
244
+ # @param [String] parameter97_value Parameter value
245
+ # @param [String] parameter98_name Parameter name
246
+ # @param [String] parameter98_value Parameter value
247
+ # @param [String] parameter99_name Parameter name
248
+ # @param [String] parameter99_value Parameter value
249
+ # @return [TranscriptionInstance] Created TranscriptionInstance
250
+ def create(
251
+ name: :unset,
252
+ track: :unset,
253
+ status_callback_url: :unset,
254
+ status_callback_method: :unset,
255
+ inbound_track_label: :unset,
256
+ outbound_track_label: :unset,
257
+ partial_results: :unset,
258
+ language_code: :unset,
259
+ transcription_engine: :unset,
260
+ profanity_filter: :unset,
261
+ speech_model: :unset,
262
+ hints: :unset,
263
+ enable_automatic_punctuation: :unset,
264
+ parameter1_name: :unset,
265
+ parameter1_value: :unset,
266
+ parameter2_name: :unset,
267
+ parameter2_value: :unset,
268
+ parameter3_name: :unset,
269
+ parameter3_value: :unset,
270
+ parameter4_name: :unset,
271
+ parameter4_value: :unset,
272
+ parameter5_name: :unset,
273
+ parameter5_value: :unset,
274
+ parameter6_name: :unset,
275
+ parameter6_value: :unset,
276
+ parameter7_name: :unset,
277
+ parameter7_value: :unset,
278
+ parameter8_name: :unset,
279
+ parameter8_value: :unset,
280
+ parameter9_name: :unset,
281
+ parameter9_value: :unset,
282
+ parameter10_name: :unset,
283
+ parameter10_value: :unset,
284
+ parameter11_name: :unset,
285
+ parameter11_value: :unset,
286
+ parameter12_name: :unset,
287
+ parameter12_value: :unset,
288
+ parameter13_name: :unset,
289
+ parameter13_value: :unset,
290
+ parameter14_name: :unset,
291
+ parameter14_value: :unset,
292
+ parameter15_name: :unset,
293
+ parameter15_value: :unset,
294
+ parameter16_name: :unset,
295
+ parameter16_value: :unset,
296
+ parameter17_name: :unset,
297
+ parameter17_value: :unset,
298
+ parameter18_name: :unset,
299
+ parameter18_value: :unset,
300
+ parameter19_name: :unset,
301
+ parameter19_value: :unset,
302
+ parameter20_name: :unset,
303
+ parameter20_value: :unset,
304
+ parameter21_name: :unset,
305
+ parameter21_value: :unset,
306
+ parameter22_name: :unset,
307
+ parameter22_value: :unset,
308
+ parameter23_name: :unset,
309
+ parameter23_value: :unset,
310
+ parameter24_name: :unset,
311
+ parameter24_value: :unset,
312
+ parameter25_name: :unset,
313
+ parameter25_value: :unset,
314
+ parameter26_name: :unset,
315
+ parameter26_value: :unset,
316
+ parameter27_name: :unset,
317
+ parameter27_value: :unset,
318
+ parameter28_name: :unset,
319
+ parameter28_value: :unset,
320
+ parameter29_name: :unset,
321
+ parameter29_value: :unset,
322
+ parameter30_name: :unset,
323
+ parameter30_value: :unset,
324
+ parameter31_name: :unset,
325
+ parameter31_value: :unset,
326
+ parameter32_name: :unset,
327
+ parameter32_value: :unset,
328
+ parameter33_name: :unset,
329
+ parameter33_value: :unset,
330
+ parameter34_name: :unset,
331
+ parameter34_value: :unset,
332
+ parameter35_name: :unset,
333
+ parameter35_value: :unset,
334
+ parameter36_name: :unset,
335
+ parameter36_value: :unset,
336
+ parameter37_name: :unset,
337
+ parameter37_value: :unset,
338
+ parameter38_name: :unset,
339
+ parameter38_value: :unset,
340
+ parameter39_name: :unset,
341
+ parameter39_value: :unset,
342
+ parameter40_name: :unset,
343
+ parameter40_value: :unset,
344
+ parameter41_name: :unset,
345
+ parameter41_value: :unset,
346
+ parameter42_name: :unset,
347
+ parameter42_value: :unset,
348
+ parameter43_name: :unset,
349
+ parameter43_value: :unset,
350
+ parameter44_name: :unset,
351
+ parameter44_value: :unset,
352
+ parameter45_name: :unset,
353
+ parameter45_value: :unset,
354
+ parameter46_name: :unset,
355
+ parameter46_value: :unset,
356
+ parameter47_name: :unset,
357
+ parameter47_value: :unset,
358
+ parameter48_name: :unset,
359
+ parameter48_value: :unset,
360
+ parameter49_name: :unset,
361
+ parameter49_value: :unset,
362
+ parameter50_name: :unset,
363
+ parameter50_value: :unset,
364
+ parameter51_name: :unset,
365
+ parameter51_value: :unset,
366
+ parameter52_name: :unset,
367
+ parameter52_value: :unset,
368
+ parameter53_name: :unset,
369
+ parameter53_value: :unset,
370
+ parameter54_name: :unset,
371
+ parameter54_value: :unset,
372
+ parameter55_name: :unset,
373
+ parameter55_value: :unset,
374
+ parameter56_name: :unset,
375
+ parameter56_value: :unset,
376
+ parameter57_name: :unset,
377
+ parameter57_value: :unset,
378
+ parameter58_name: :unset,
379
+ parameter58_value: :unset,
380
+ parameter59_name: :unset,
381
+ parameter59_value: :unset,
382
+ parameter60_name: :unset,
383
+ parameter60_value: :unset,
384
+ parameter61_name: :unset,
385
+ parameter61_value: :unset,
386
+ parameter62_name: :unset,
387
+ parameter62_value: :unset,
388
+ parameter63_name: :unset,
389
+ parameter63_value: :unset,
390
+ parameter64_name: :unset,
391
+ parameter64_value: :unset,
392
+ parameter65_name: :unset,
393
+ parameter65_value: :unset,
394
+ parameter66_name: :unset,
395
+ parameter66_value: :unset,
396
+ parameter67_name: :unset,
397
+ parameter67_value: :unset,
398
+ parameter68_name: :unset,
399
+ parameter68_value: :unset,
400
+ parameter69_name: :unset,
401
+ parameter69_value: :unset,
402
+ parameter70_name: :unset,
403
+ parameter70_value: :unset,
404
+ parameter71_name: :unset,
405
+ parameter71_value: :unset,
406
+ parameter72_name: :unset,
407
+ parameter72_value: :unset,
408
+ parameter73_name: :unset,
409
+ parameter73_value: :unset,
410
+ parameter74_name: :unset,
411
+ parameter74_value: :unset,
412
+ parameter75_name: :unset,
413
+ parameter75_value: :unset,
414
+ parameter76_name: :unset,
415
+ parameter76_value: :unset,
416
+ parameter77_name: :unset,
417
+ parameter77_value: :unset,
418
+ parameter78_name: :unset,
419
+ parameter78_value: :unset,
420
+ parameter79_name: :unset,
421
+ parameter79_value: :unset,
422
+ parameter80_name: :unset,
423
+ parameter80_value: :unset,
424
+ parameter81_name: :unset,
425
+ parameter81_value: :unset,
426
+ parameter82_name: :unset,
427
+ parameter82_value: :unset,
428
+ parameter83_name: :unset,
429
+ parameter83_value: :unset,
430
+ parameter84_name: :unset,
431
+ parameter84_value: :unset,
432
+ parameter85_name: :unset,
433
+ parameter85_value: :unset,
434
+ parameter86_name: :unset,
435
+ parameter86_value: :unset,
436
+ parameter87_name: :unset,
437
+ parameter87_value: :unset,
438
+ parameter88_name: :unset,
439
+ parameter88_value: :unset,
440
+ parameter89_name: :unset,
441
+ parameter89_value: :unset,
442
+ parameter90_name: :unset,
443
+ parameter90_value: :unset,
444
+ parameter91_name: :unset,
445
+ parameter91_value: :unset,
446
+ parameter92_name: :unset,
447
+ parameter92_value: :unset,
448
+ parameter93_name: :unset,
449
+ parameter93_value: :unset,
450
+ parameter94_name: :unset,
451
+ parameter94_value: :unset,
452
+ parameter95_name: :unset,
453
+ parameter95_value: :unset,
454
+ parameter96_name: :unset,
455
+ parameter96_value: :unset,
456
+ parameter97_name: :unset,
457
+ parameter97_value: :unset,
458
+ parameter98_name: :unset,
459
+ parameter98_value: :unset,
460
+ parameter99_name: :unset,
461
+ parameter99_value: :unset
462
+ )
463
+
464
+ data = Twilio::Values.of({
465
+ 'Name' => name,
466
+ 'Track' => track,
467
+ 'StatusCallbackUrl' => status_callback_url,
468
+ 'StatusCallbackMethod' => status_callback_method,
469
+ 'InboundTrackLabel' => inbound_track_label,
470
+ 'OutboundTrackLabel' => outbound_track_label,
471
+ 'PartialResults' => partial_results,
472
+ 'LanguageCode' => language_code,
473
+ 'TranscriptionEngine' => transcription_engine,
474
+ 'ProfanityFilter' => profanity_filter,
475
+ 'SpeechModel' => speech_model,
476
+ 'Hints' => hints,
477
+ 'EnableAutomaticPunctuation' => enable_automatic_punctuation,
478
+ 'Parameter1.Name' => parameter1_name,
479
+ 'Parameter1.Value' => parameter1_value,
480
+ 'Parameter2.Name' => parameter2_name,
481
+ 'Parameter2.Value' => parameter2_value,
482
+ 'Parameter3.Name' => parameter3_name,
483
+ 'Parameter3.Value' => parameter3_value,
484
+ 'Parameter4.Name' => parameter4_name,
485
+ 'Parameter4.Value' => parameter4_value,
486
+ 'Parameter5.Name' => parameter5_name,
487
+ 'Parameter5.Value' => parameter5_value,
488
+ 'Parameter6.Name' => parameter6_name,
489
+ 'Parameter6.Value' => parameter6_value,
490
+ 'Parameter7.Name' => parameter7_name,
491
+ 'Parameter7.Value' => parameter7_value,
492
+ 'Parameter8.Name' => parameter8_name,
493
+ 'Parameter8.Value' => parameter8_value,
494
+ 'Parameter9.Name' => parameter9_name,
495
+ 'Parameter9.Value' => parameter9_value,
496
+ 'Parameter10.Name' => parameter10_name,
497
+ 'Parameter10.Value' => parameter10_value,
498
+ 'Parameter11.Name' => parameter11_name,
499
+ 'Parameter11.Value' => parameter11_value,
500
+ 'Parameter12.Name' => parameter12_name,
501
+ 'Parameter12.Value' => parameter12_value,
502
+ 'Parameter13.Name' => parameter13_name,
503
+ 'Parameter13.Value' => parameter13_value,
504
+ 'Parameter14.Name' => parameter14_name,
505
+ 'Parameter14.Value' => parameter14_value,
506
+ 'Parameter15.Name' => parameter15_name,
507
+ 'Parameter15.Value' => parameter15_value,
508
+ 'Parameter16.Name' => parameter16_name,
509
+ 'Parameter16.Value' => parameter16_value,
510
+ 'Parameter17.Name' => parameter17_name,
511
+ 'Parameter17.Value' => parameter17_value,
512
+ 'Parameter18.Name' => parameter18_name,
513
+ 'Parameter18.Value' => parameter18_value,
514
+ 'Parameter19.Name' => parameter19_name,
515
+ 'Parameter19.Value' => parameter19_value,
516
+ 'Parameter20.Name' => parameter20_name,
517
+ 'Parameter20.Value' => parameter20_value,
518
+ 'Parameter21.Name' => parameter21_name,
519
+ 'Parameter21.Value' => parameter21_value,
520
+ 'Parameter22.Name' => parameter22_name,
521
+ 'Parameter22.Value' => parameter22_value,
522
+ 'Parameter23.Name' => parameter23_name,
523
+ 'Parameter23.Value' => parameter23_value,
524
+ 'Parameter24.Name' => parameter24_name,
525
+ 'Parameter24.Value' => parameter24_value,
526
+ 'Parameter25.Name' => parameter25_name,
527
+ 'Parameter25.Value' => parameter25_value,
528
+ 'Parameter26.Name' => parameter26_name,
529
+ 'Parameter26.Value' => parameter26_value,
530
+ 'Parameter27.Name' => parameter27_name,
531
+ 'Parameter27.Value' => parameter27_value,
532
+ 'Parameter28.Name' => parameter28_name,
533
+ 'Parameter28.Value' => parameter28_value,
534
+ 'Parameter29.Name' => parameter29_name,
535
+ 'Parameter29.Value' => parameter29_value,
536
+ 'Parameter30.Name' => parameter30_name,
537
+ 'Parameter30.Value' => parameter30_value,
538
+ 'Parameter31.Name' => parameter31_name,
539
+ 'Parameter31.Value' => parameter31_value,
540
+ 'Parameter32.Name' => parameter32_name,
541
+ 'Parameter32.Value' => parameter32_value,
542
+ 'Parameter33.Name' => parameter33_name,
543
+ 'Parameter33.Value' => parameter33_value,
544
+ 'Parameter34.Name' => parameter34_name,
545
+ 'Parameter34.Value' => parameter34_value,
546
+ 'Parameter35.Name' => parameter35_name,
547
+ 'Parameter35.Value' => parameter35_value,
548
+ 'Parameter36.Name' => parameter36_name,
549
+ 'Parameter36.Value' => parameter36_value,
550
+ 'Parameter37.Name' => parameter37_name,
551
+ 'Parameter37.Value' => parameter37_value,
552
+ 'Parameter38.Name' => parameter38_name,
553
+ 'Parameter38.Value' => parameter38_value,
554
+ 'Parameter39.Name' => parameter39_name,
555
+ 'Parameter39.Value' => parameter39_value,
556
+ 'Parameter40.Name' => parameter40_name,
557
+ 'Parameter40.Value' => parameter40_value,
558
+ 'Parameter41.Name' => parameter41_name,
559
+ 'Parameter41.Value' => parameter41_value,
560
+ 'Parameter42.Name' => parameter42_name,
561
+ 'Parameter42.Value' => parameter42_value,
562
+ 'Parameter43.Name' => parameter43_name,
563
+ 'Parameter43.Value' => parameter43_value,
564
+ 'Parameter44.Name' => parameter44_name,
565
+ 'Parameter44.Value' => parameter44_value,
566
+ 'Parameter45.Name' => parameter45_name,
567
+ 'Parameter45.Value' => parameter45_value,
568
+ 'Parameter46.Name' => parameter46_name,
569
+ 'Parameter46.Value' => parameter46_value,
570
+ 'Parameter47.Name' => parameter47_name,
571
+ 'Parameter47.Value' => parameter47_value,
572
+ 'Parameter48.Name' => parameter48_name,
573
+ 'Parameter48.Value' => parameter48_value,
574
+ 'Parameter49.Name' => parameter49_name,
575
+ 'Parameter49.Value' => parameter49_value,
576
+ 'Parameter50.Name' => parameter50_name,
577
+ 'Parameter50.Value' => parameter50_value,
578
+ 'Parameter51.Name' => parameter51_name,
579
+ 'Parameter51.Value' => parameter51_value,
580
+ 'Parameter52.Name' => parameter52_name,
581
+ 'Parameter52.Value' => parameter52_value,
582
+ 'Parameter53.Name' => parameter53_name,
583
+ 'Parameter53.Value' => parameter53_value,
584
+ 'Parameter54.Name' => parameter54_name,
585
+ 'Parameter54.Value' => parameter54_value,
586
+ 'Parameter55.Name' => parameter55_name,
587
+ 'Parameter55.Value' => parameter55_value,
588
+ 'Parameter56.Name' => parameter56_name,
589
+ 'Parameter56.Value' => parameter56_value,
590
+ 'Parameter57.Name' => parameter57_name,
591
+ 'Parameter57.Value' => parameter57_value,
592
+ 'Parameter58.Name' => parameter58_name,
593
+ 'Parameter58.Value' => parameter58_value,
594
+ 'Parameter59.Name' => parameter59_name,
595
+ 'Parameter59.Value' => parameter59_value,
596
+ 'Parameter60.Name' => parameter60_name,
597
+ 'Parameter60.Value' => parameter60_value,
598
+ 'Parameter61.Name' => parameter61_name,
599
+ 'Parameter61.Value' => parameter61_value,
600
+ 'Parameter62.Name' => parameter62_name,
601
+ 'Parameter62.Value' => parameter62_value,
602
+ 'Parameter63.Name' => parameter63_name,
603
+ 'Parameter63.Value' => parameter63_value,
604
+ 'Parameter64.Name' => parameter64_name,
605
+ 'Parameter64.Value' => parameter64_value,
606
+ 'Parameter65.Name' => parameter65_name,
607
+ 'Parameter65.Value' => parameter65_value,
608
+ 'Parameter66.Name' => parameter66_name,
609
+ 'Parameter66.Value' => parameter66_value,
610
+ 'Parameter67.Name' => parameter67_name,
611
+ 'Parameter67.Value' => parameter67_value,
612
+ 'Parameter68.Name' => parameter68_name,
613
+ 'Parameter68.Value' => parameter68_value,
614
+ 'Parameter69.Name' => parameter69_name,
615
+ 'Parameter69.Value' => parameter69_value,
616
+ 'Parameter70.Name' => parameter70_name,
617
+ 'Parameter70.Value' => parameter70_value,
618
+ 'Parameter71.Name' => parameter71_name,
619
+ 'Parameter71.Value' => parameter71_value,
620
+ 'Parameter72.Name' => parameter72_name,
621
+ 'Parameter72.Value' => parameter72_value,
622
+ 'Parameter73.Name' => parameter73_name,
623
+ 'Parameter73.Value' => parameter73_value,
624
+ 'Parameter74.Name' => parameter74_name,
625
+ 'Parameter74.Value' => parameter74_value,
626
+ 'Parameter75.Name' => parameter75_name,
627
+ 'Parameter75.Value' => parameter75_value,
628
+ 'Parameter76.Name' => parameter76_name,
629
+ 'Parameter76.Value' => parameter76_value,
630
+ 'Parameter77.Name' => parameter77_name,
631
+ 'Parameter77.Value' => parameter77_value,
632
+ 'Parameter78.Name' => parameter78_name,
633
+ 'Parameter78.Value' => parameter78_value,
634
+ 'Parameter79.Name' => parameter79_name,
635
+ 'Parameter79.Value' => parameter79_value,
636
+ 'Parameter80.Name' => parameter80_name,
637
+ 'Parameter80.Value' => parameter80_value,
638
+ 'Parameter81.Name' => parameter81_name,
639
+ 'Parameter81.Value' => parameter81_value,
640
+ 'Parameter82.Name' => parameter82_name,
641
+ 'Parameter82.Value' => parameter82_value,
642
+ 'Parameter83.Name' => parameter83_name,
643
+ 'Parameter83.Value' => parameter83_value,
644
+ 'Parameter84.Name' => parameter84_name,
645
+ 'Parameter84.Value' => parameter84_value,
646
+ 'Parameter85.Name' => parameter85_name,
647
+ 'Parameter85.Value' => parameter85_value,
648
+ 'Parameter86.Name' => parameter86_name,
649
+ 'Parameter86.Value' => parameter86_value,
650
+ 'Parameter87.Name' => parameter87_name,
651
+ 'Parameter87.Value' => parameter87_value,
652
+ 'Parameter88.Name' => parameter88_name,
653
+ 'Parameter88.Value' => parameter88_value,
654
+ 'Parameter89.Name' => parameter89_name,
655
+ 'Parameter89.Value' => parameter89_value,
656
+ 'Parameter90.Name' => parameter90_name,
657
+ 'Parameter90.Value' => parameter90_value,
658
+ 'Parameter91.Name' => parameter91_name,
659
+ 'Parameter91.Value' => parameter91_value,
660
+ 'Parameter92.Name' => parameter92_name,
661
+ 'Parameter92.Value' => parameter92_value,
662
+ 'Parameter93.Name' => parameter93_name,
663
+ 'Parameter93.Value' => parameter93_value,
664
+ 'Parameter94.Name' => parameter94_name,
665
+ 'Parameter94.Value' => parameter94_value,
666
+ 'Parameter95.Name' => parameter95_name,
667
+ 'Parameter95.Value' => parameter95_value,
668
+ 'Parameter96.Name' => parameter96_name,
669
+ 'Parameter96.Value' => parameter96_value,
670
+ 'Parameter97.Name' => parameter97_name,
671
+ 'Parameter97.Value' => parameter97_value,
672
+ 'Parameter98.Name' => parameter98_name,
673
+ 'Parameter98.Value' => parameter98_value,
674
+ 'Parameter99.Name' => parameter99_name,
675
+ 'Parameter99.Value' => parameter99_value,
676
+ })
677
+
678
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
679
+
680
+ payload = @version.create('POST', @uri, data: data, headers: headers)
681
+ TranscriptionInstance.new(
682
+ @version,
683
+ payload,
684
+ account_sid: @solution[:account_sid],
685
+ call_sid: @solution[:call_sid],
686
+ )
687
+ end
688
+
689
+
690
+
691
+
692
+ # Provide a user friendly representation
693
+ def to_s
694
+ '#<Twilio.Api.V2010.TranscriptionList>'
695
+ end
696
+ end
697
+
698
+
699
+ class TranscriptionContext < InstanceContext
700
+ ##
701
+ # Initialize the TranscriptionContext
702
+ # @param [Version] version Version that contains the resource
703
+ # @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Transcription resource.
704
+ # @param [String] call_sid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.
705
+ # @param [String] sid The SID of the Transcription resource, or the `name` used when creating the resource
706
+ # @return [TranscriptionContext] TranscriptionContext
707
+ def initialize(version, account_sid, call_sid, sid)
708
+ super(version)
709
+
710
+ # Path Solution
711
+ @solution = { account_sid: account_sid, call_sid: call_sid, sid: sid, }
712
+ @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Transcriptions/#{@solution[:sid]}.json"
713
+
714
+
715
+ end
716
+ ##
717
+ # Update the TranscriptionInstance
718
+ # @param [UpdateStatus] status
719
+ # @return [TranscriptionInstance] Updated TranscriptionInstance
720
+ def update(
721
+ status: nil
722
+ )
723
+
724
+ data = Twilio::Values.of({
725
+ 'Status' => status,
726
+ })
727
+
728
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
729
+
730
+ payload = @version.update('POST', @uri, data: data, headers: headers)
731
+ TranscriptionInstance.new(
732
+ @version,
733
+ payload,
734
+ account_sid: @solution[:account_sid],
735
+ call_sid: @solution[:call_sid],
736
+ sid: @solution[:sid],
737
+ )
738
+ end
739
+
740
+
741
+ ##
742
+ # Provide a user friendly representation
743
+ def to_s
744
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
745
+ "#<Twilio.Api.V2010.TranscriptionContext #{context}>"
746
+ end
747
+
748
+ ##
749
+ # Provide a detailed, user friendly representation
750
+ def inspect
751
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
752
+ "#<Twilio.Api.V2010.TranscriptionContext #{context}>"
753
+ end
754
+ end
755
+
756
+ class TranscriptionPage < Page
757
+ ##
758
+ # Initialize the TranscriptionPage
759
+ # @param [Version] version Version that contains the resource
760
+ # @param [Response] response Response from the API
761
+ # @param [Hash] solution Path solution for the resource
762
+ # @return [TranscriptionPage] TranscriptionPage
763
+ def initialize(version, response, solution)
764
+ super(version, response)
765
+
766
+ # Path Solution
767
+ @solution = solution
768
+ end
769
+
770
+ ##
771
+ # Build an instance of TranscriptionInstance
772
+ # @param [Hash] payload Payload response from the API
773
+ # @return [TranscriptionInstance] TranscriptionInstance
774
+ def get_instance(payload)
775
+ TranscriptionInstance.new(@version, payload, account_sid: @solution[:account_sid], call_sid: @solution[:call_sid])
776
+ end
777
+
778
+ ##
779
+ # Provide a user friendly representation
780
+ def to_s
781
+ '<Twilio.Api.V2010.TranscriptionPage>'
782
+ end
783
+ end
784
+ class TranscriptionInstance < InstanceResource
785
+ ##
786
+ # Initialize the TranscriptionInstance
787
+ # @param [Version] version Version that contains the resource
788
+ # @param [Hash] payload payload that contains response from Twilio
789
+ # @param [String] account_sid The SID of the
790
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Transcription
791
+ # resource.
792
+ # @param [String] sid The SID of the Call resource to fetch.
793
+ # @return [TranscriptionInstance] TranscriptionInstance
794
+ def initialize(version, payload , account_sid: nil, call_sid: nil, sid: nil)
795
+ super(version)
796
+
797
+ # Marshaled Properties
798
+ @properties = {
799
+ 'sid' => payload['sid'],
800
+ 'account_sid' => payload['account_sid'],
801
+ 'call_sid' => payload['call_sid'],
802
+ 'name' => payload['name'],
803
+ 'status' => payload['status'],
804
+ 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
805
+ 'uri' => payload['uri'],
806
+ }
807
+
808
+ # Context
809
+ @instance_context = nil
810
+ @params = { 'account_sid' => account_sid ,'call_sid' => call_sid || @properties['call_sid'] ,'sid' => sid || @properties['sid'] , }
811
+ end
812
+
813
+ ##
814
+ # Generate an instance context for the instance, the context is capable of
815
+ # performing various actions. All instance actions are proxied to the context
816
+ # @return [TranscriptionContext] CallContext for this CallInstance
817
+ def context
818
+ unless @instance_context
819
+ @instance_context = TranscriptionContext.new(@version , @params['account_sid'], @params['call_sid'], @params['sid'])
820
+ end
821
+ @instance_context
822
+ end
823
+
824
+ ##
825
+ # @return [String] The SID of the Transcription resource.
826
+ def sid
827
+ @properties['sid']
828
+ end
829
+
830
+ ##
831
+ # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Transcription resource.
832
+ def account_sid
833
+ @properties['account_sid']
834
+ end
835
+
836
+ ##
837
+ # @return [String] The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.
838
+ def call_sid
839
+ @properties['call_sid']
840
+ end
841
+
842
+ ##
843
+ # @return [String] The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
844
+ def name
845
+ @properties['name']
846
+ end
847
+
848
+ ##
849
+ # @return [Status]
850
+ def status
851
+ @properties['status']
852
+ end
853
+
854
+ ##
855
+ # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
856
+ def date_updated
857
+ @properties['date_updated']
858
+ end
859
+
860
+ ##
861
+ # @return [String]
862
+ def uri
863
+ @properties['uri']
864
+ end
865
+
866
+ ##
867
+ # Update the TranscriptionInstance
868
+ # @param [UpdateStatus] status
869
+ # @return [TranscriptionInstance] Updated TranscriptionInstance
870
+ def update(
871
+ status: nil
872
+ )
873
+
874
+ context.update(
875
+ status: status,
876
+ )
877
+ end
878
+
879
+ ##
880
+ # Provide a user friendly representation
881
+ def to_s
882
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
883
+ "<Twilio.Api.V2010.TranscriptionInstance #{values}>"
884
+ end
885
+
886
+ ##
887
+ # Provide a detailed, user friendly representation
888
+ def inspect
889
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
890
+ "<Twilio.Api.V2010.TranscriptionInstance #{values}>"
891
+ end
892
+ end
893
+
894
+ end
895
+ end
896
+ end
897
+ end
898
+ end
899
+ end
900
+
901
+