twilio-ruby 7.11.2 → 7.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +13 -1
- data/CHANGES.md +196 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
- data/lib/twilio-ruby/rest/insights/v3/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +12 -0
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +33 -1
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio API definition for public-api voice
|
|
8
|
+
# Powers Twilio public-api voice
|
|
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 Voice < VoiceBase
|
|
19
|
+
class V2 < Version
|
|
20
|
+
class RecordingAccountDefaultConfigurationList < ListResource
|
|
21
|
+
|
|
22
|
+
class VoiceV2AccountDefaultConfigurationRecordingRequest
|
|
23
|
+
# @param [description]: [String] Optional description.
|
|
24
|
+
# @param [configuration]: [RecordingAccountDefaultConfigurationList.VoiceV2ConfigurationRecordingConfiguration]
|
|
25
|
+
attr_accessor :description, :configuration
|
|
26
|
+
def initialize(payload)
|
|
27
|
+
@description = payload["description"]
|
|
28
|
+
@configuration = payload["configuration"]
|
|
29
|
+
end
|
|
30
|
+
def to_json(options = {})
|
|
31
|
+
{
|
|
32
|
+
"description": @description,
|
|
33
|
+
"configuration": @configuration,
|
|
34
|
+
}.to_json(options)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class VoiceV2ConfigurationRecordingCompositionPolicy
|
|
39
|
+
# @param [channels]: [String] The number of channels to be composed.
|
|
40
|
+
# @param [trim]: [String] Trim the silence in the recordings.
|
|
41
|
+
# @param [track]: [String] The audio track to record for the call.
|
|
42
|
+
attr_accessor :channels, :trim, :track
|
|
43
|
+
def initialize(payload)
|
|
44
|
+
@channels = payload["channels"]
|
|
45
|
+
@trim = payload["trim"]
|
|
46
|
+
@track = payload["track"]
|
|
47
|
+
end
|
|
48
|
+
def to_json(options = {})
|
|
49
|
+
{
|
|
50
|
+
"channels": @channels,
|
|
51
|
+
"trim": @trim,
|
|
52
|
+
"track": @track,
|
|
53
|
+
}.to_json(options)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class VoiceV2ConfigurationRecordingFeature
|
|
58
|
+
# @param [type]: [String] The type of feature.
|
|
59
|
+
# @param [feature_id]: [String] The ID of the feature.
|
|
60
|
+
# @param [description]: [String] The description of the feature.
|
|
61
|
+
attr_accessor :type, :feature_id, :description
|
|
62
|
+
def initialize(payload)
|
|
63
|
+
@type = payload["type"]
|
|
64
|
+
@feature_id = payload["feature_id"]
|
|
65
|
+
@description = payload["description"]
|
|
66
|
+
end
|
|
67
|
+
def to_json(options = {})
|
|
68
|
+
{
|
|
69
|
+
"type": @type,
|
|
70
|
+
"featureId": @feature_id,
|
|
71
|
+
"description": @description,
|
|
72
|
+
}.to_json(options)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class VoiceV2ConfigurationRecordingStatusCallback
|
|
77
|
+
# @param [url]: [String] The recording status callback URL.
|
|
78
|
+
# @param [method]: [String] The recording status callback method.
|
|
79
|
+
# @param [events]: [Array<String>] The recording status callback events.
|
|
80
|
+
attr_accessor :url, :method, :events
|
|
81
|
+
def initialize(payload)
|
|
82
|
+
@url = payload["url"]
|
|
83
|
+
@method = payload["method"]
|
|
84
|
+
@events = payload["events"]
|
|
85
|
+
end
|
|
86
|
+
def to_json(options = {})
|
|
87
|
+
{
|
|
88
|
+
"url": @url,
|
|
89
|
+
"method": @method,
|
|
90
|
+
"events": @events,
|
|
91
|
+
}.to_json(options)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
##
|
|
97
|
+
# Initialize the RecordingAccountDefaultConfigurationList
|
|
98
|
+
# @param [Version] version Version that contains the resource
|
|
99
|
+
# @return [RecordingAccountDefaultConfigurationList] RecordingAccountDefaultConfigurationList
|
|
100
|
+
def initialize(version)
|
|
101
|
+
super(version)
|
|
102
|
+
|
|
103
|
+
# Path Solution
|
|
104
|
+
@solution = { }
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Provide a user friendly representation
|
|
112
|
+
def to_s
|
|
113
|
+
'#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationList>'
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class RecordingAccountDefaultConfigurationContext < InstanceContext
|
|
119
|
+
##
|
|
120
|
+
# Initialize the RecordingAccountDefaultConfigurationContext
|
|
121
|
+
# @param [Version] version Version that contains the resource
|
|
122
|
+
# @return [RecordingAccountDefaultConfigurationContext] RecordingAccountDefaultConfigurationContext
|
|
123
|
+
def initialize(version)
|
|
124
|
+
super(version)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# Path Solution
|
|
128
|
+
@solution = { }
|
|
129
|
+
@uri = "/AccountDefaultConfiguration/Recording"
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
end
|
|
133
|
+
##
|
|
134
|
+
# Create the RecordingAccountDefaultConfigurationInstance
|
|
135
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
136
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
137
|
+
def create(voice_v2_account_default_configuration_recording_request: :unset
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
141
|
+
headers['Content-Type'] = 'application/json'
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
payload = @version.create('POST', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
147
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
148
|
+
@version,
|
|
149
|
+
payload,
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
##
|
|
154
|
+
# Create the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
155
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
156
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
157
|
+
def create_with_metadata(voice_v2_account_default_configuration_recording_request: :unset
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
161
|
+
headers['Content-Type'] = 'application/json'
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
response = @version.create_with_metadata('POST', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
167
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
168
|
+
@version,
|
|
169
|
+
response.body,
|
|
170
|
+
)
|
|
171
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
172
|
+
@version,
|
|
173
|
+
recording_account_default_configuration_instance,
|
|
174
|
+
response.headers,
|
|
175
|
+
response.status_code
|
|
176
|
+
)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
##
|
|
180
|
+
# Delete the RecordingAccountDefaultConfigurationInstance
|
|
181
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
182
|
+
def delete
|
|
183
|
+
|
|
184
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
##
|
|
193
|
+
# Delete the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
194
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
195
|
+
def delete_with_metadata
|
|
196
|
+
|
|
197
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
202
|
+
recordingAccountDefaultConfiguration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
203
|
+
@version,
|
|
204
|
+
response.body,
|
|
205
|
+
account_sid: @solution[:account_sid],
|
|
206
|
+
sid: @solution[:sid],
|
|
207
|
+
)
|
|
208
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(@version, recordingAccountDefaultConfiguration_instance, response.headers, response.status_code)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
##
|
|
212
|
+
# Fetch the RecordingAccountDefaultConfigurationInstance
|
|
213
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
214
|
+
def fetch
|
|
215
|
+
|
|
216
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
223
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
224
|
+
@version,
|
|
225
|
+
payload,
|
|
226
|
+
)
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
##
|
|
230
|
+
# Fetch the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
231
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
232
|
+
def fetch_with_metadata
|
|
233
|
+
|
|
234
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
241
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
242
|
+
@version,
|
|
243
|
+
response.body,
|
|
244
|
+
)
|
|
245
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
246
|
+
@version,
|
|
247
|
+
recording_account_default_configuration_instance,
|
|
248
|
+
response.headers,
|
|
249
|
+
response.status_code
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
##
|
|
254
|
+
# Update the RecordingAccountDefaultConfigurationInstance
|
|
255
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
256
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
257
|
+
def update(voice_v2_account_default_configuration_recording_request: :unset
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
261
|
+
headers['Content-Type'] = 'application/json'
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
payload = @version.update('PUT', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
267
|
+
RecordingAccountDefaultConfigurationInstance.new(
|
|
268
|
+
@version,
|
|
269
|
+
payload,
|
|
270
|
+
)
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
##
|
|
274
|
+
# Update the RecordingAccountDefaultConfigurationInstanceMetadata
|
|
275
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
276
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
277
|
+
def update_with_metadata(voice_v2_account_default_configuration_recording_request: :unset
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
281
|
+
headers['Content-Type'] = 'application/json'
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
response = @version.update_with_metadata('PUT', @uri, headers: headers, data: voice_v2_account_default_configuration_recording_request.to_json)
|
|
287
|
+
recording_account_default_configuration_instance = RecordingAccountDefaultConfigurationInstance.new(
|
|
288
|
+
@version,
|
|
289
|
+
response.body,
|
|
290
|
+
)
|
|
291
|
+
RecordingAccountDefaultConfigurationInstanceMetadata.new(
|
|
292
|
+
@version,
|
|
293
|
+
recording_account_default_configuration_instance,
|
|
294
|
+
response.headers,
|
|
295
|
+
response.status_code
|
|
296
|
+
)
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
##
|
|
301
|
+
# Provide a user friendly representation
|
|
302
|
+
def to_s
|
|
303
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
304
|
+
"#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationContext #{context}>"
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
##
|
|
308
|
+
# Provide a detailed, user friendly representation
|
|
309
|
+
def inspect
|
|
310
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
311
|
+
"#<Twilio.Voice.V2.RecordingAccountDefaultConfigurationContext #{context}>"
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
class RecordingAccountDefaultConfigurationInstanceMetadata < InstanceResourceMetadata
|
|
316
|
+
##
|
|
317
|
+
# Initializes a new RecordingAccountDefaultConfigurationInstanceMetadata.
|
|
318
|
+
# @param [Version] version Version that contains the resource
|
|
319
|
+
# @param [}RecordingAccountDefaultConfigurationInstance] recording_account_default_configuration_instance The instance associated with the metadata.
|
|
320
|
+
# @param [Hash] headers Header object with response headers.
|
|
321
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
322
|
+
# @return [RecordingAccountDefaultConfigurationInstanceMetadata] The initialized instance with metadata.
|
|
323
|
+
def initialize(version, recording_account_default_configuration_instance, headers, status_code)
|
|
324
|
+
super(version, headers, status_code)
|
|
325
|
+
@recording_account_default_configuration_instance = recording_account_default_configuration_instance
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
def recording_account_default_configuration
|
|
329
|
+
@recording_account_default_configuration_instance
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def headers
|
|
333
|
+
@headers
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
def status_code
|
|
337
|
+
@status_code
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def to_s
|
|
341
|
+
"<Twilio.Api.V2010.RecordingAccountDefaultConfigurationInstanceMetadata status=#{@status_code}>"
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
class RecordingAccountDefaultConfigurationListResponse < InstanceListResource
|
|
346
|
+
# @param [Array<RecordingAccountDefaultConfigurationInstance>] instance
|
|
347
|
+
# @param [Hash{String => Object}] headers
|
|
348
|
+
# @param [Integer] status_code
|
|
349
|
+
def initialize(version, payload, key)
|
|
350
|
+
@recording_account_default_configuration_instance = payload.body[key].map do |data|
|
|
351
|
+
RecordingAccountDefaultConfigurationInstance.new(version, data)
|
|
352
|
+
end
|
|
353
|
+
@headers = payload.headers
|
|
354
|
+
@status_code = payload.status_code
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
def recording_account_default_configuration_instance
|
|
358
|
+
@instance
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class RecordingAccountDefaultConfigurationPage < Page
|
|
363
|
+
##
|
|
364
|
+
# Initialize the RecordingAccountDefaultConfigurationPage
|
|
365
|
+
# @param [Version] version Version that contains the resource
|
|
366
|
+
# @param [Response] response Response from the API
|
|
367
|
+
# @param [Hash] solution Path solution for the resource
|
|
368
|
+
# @return [RecordingAccountDefaultConfigurationPage] RecordingAccountDefaultConfigurationPage
|
|
369
|
+
def initialize(version, response, solution)
|
|
370
|
+
super(version, response)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
# Path Solution
|
|
374
|
+
@solution = solution
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
##
|
|
378
|
+
# Build an instance of RecordingAccountDefaultConfigurationInstance
|
|
379
|
+
# @param [Hash] payload Payload response from the API
|
|
380
|
+
# @return [RecordingAccountDefaultConfigurationInstance] RecordingAccountDefaultConfigurationInstance
|
|
381
|
+
def get_instance(payload)
|
|
382
|
+
RecordingAccountDefaultConfigurationInstance.new(@version, payload)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
##
|
|
386
|
+
# Provide a user friendly representation
|
|
387
|
+
def to_s
|
|
388
|
+
'<Twilio.Voice.V2.RecordingAccountDefaultConfigurationPage>'
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
class RecordingAccountDefaultConfigurationInstance < InstanceResource
|
|
393
|
+
##
|
|
394
|
+
# Initialize the RecordingAccountDefaultConfigurationInstance
|
|
395
|
+
# @param [Version] version Version that contains the resource
|
|
396
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
397
|
+
# @param [String] account_sid The SID of the
|
|
398
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this RecordingAccountDefaultConfiguration
|
|
399
|
+
# resource.
|
|
400
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
401
|
+
# @return [RecordingAccountDefaultConfigurationInstance] RecordingAccountDefaultConfigurationInstance
|
|
402
|
+
def initialize(version, payload )
|
|
403
|
+
super(version)
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
# Marshaled Properties
|
|
407
|
+
@properties = {
|
|
408
|
+
'account_sid' => payload['account_sid'],
|
|
409
|
+
'description' => payload['description'],
|
|
410
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
411
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
412
|
+
'configuration' => payload['configuration'],
|
|
413
|
+
'message' => payload['message'],
|
|
414
|
+
'code' => payload['code'],
|
|
415
|
+
'status' => payload['status'],
|
|
416
|
+
'more_info' => payload['more_info'],
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
# Context
|
|
420
|
+
@instance_context = nil
|
|
421
|
+
@params = { }
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
##
|
|
425
|
+
# Generate an instance context for the instance, the context is capable of
|
|
426
|
+
# performing various actions. All instance actions are proxied to the context
|
|
427
|
+
# @return [RecordingAccountDefaultConfigurationContext] CallContext for this CallInstance
|
|
428
|
+
def context
|
|
429
|
+
unless @instance_context
|
|
430
|
+
@instance_context = RecordingAccountDefaultConfigurationContext.new(@version )
|
|
431
|
+
end
|
|
432
|
+
@instance_context
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
##
|
|
436
|
+
# @return [String] Account SID.
|
|
437
|
+
def account_sid
|
|
438
|
+
@properties['account_sid']
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
##
|
|
442
|
+
# @return [String] The description.
|
|
443
|
+
def description
|
|
444
|
+
@properties['description']
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
##
|
|
448
|
+
# @return [Time] The created date.
|
|
449
|
+
def date_created
|
|
450
|
+
@properties['date_created']
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
##
|
|
454
|
+
# @return [Time] The updated date.
|
|
455
|
+
def date_updated
|
|
456
|
+
@properties['date_updated']
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
##
|
|
460
|
+
# @return [VoiceV2ConfigurationRecordingConfiguration]
|
|
461
|
+
def configuration
|
|
462
|
+
@properties['configuration']
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
##
|
|
466
|
+
# @return [String] Error message
|
|
467
|
+
def message
|
|
468
|
+
@properties['message']
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
##
|
|
472
|
+
# @return [String] Twilio error code
|
|
473
|
+
def code
|
|
474
|
+
@properties['code']
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
##
|
|
478
|
+
# @return [String] status code
|
|
479
|
+
def status
|
|
480
|
+
@properties['status']
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
##
|
|
484
|
+
# @return [String] More information about the error
|
|
485
|
+
def more_info
|
|
486
|
+
@properties['more_info']
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
##
|
|
490
|
+
# Create the RecordingAccountDefaultConfigurationInstance
|
|
491
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
492
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Created RecordingAccountDefaultConfigurationInstance
|
|
493
|
+
def create(voice_v2_account_default_configuration_recording_request: :unset
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
context.create(
|
|
497
|
+
voice_v2_account_default_configuration_recording_request: voice_v2_account_default_configuration_recording_request,
|
|
498
|
+
)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
##
|
|
502
|
+
# Delete the RecordingAccountDefaultConfigurationInstance
|
|
503
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
504
|
+
def delete
|
|
505
|
+
|
|
506
|
+
context.delete
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
##
|
|
510
|
+
# Fetch the RecordingAccountDefaultConfigurationInstance
|
|
511
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Fetched RecordingAccountDefaultConfigurationInstance
|
|
512
|
+
def fetch
|
|
513
|
+
|
|
514
|
+
context.fetch
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
##
|
|
518
|
+
# Update the RecordingAccountDefaultConfigurationInstance
|
|
519
|
+
# @param [VoiceV2AccountDefaultConfigurationRecordingRequest] voice_v2_account_default_configuration_recording_request
|
|
520
|
+
# @return [RecordingAccountDefaultConfigurationInstance] Updated RecordingAccountDefaultConfigurationInstance
|
|
521
|
+
def update(voice_v2_account_default_configuration_recording_request: :unset
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
context.update(
|
|
525
|
+
voice_v2_account_default_configuration_recording_request: voice_v2_account_default_configuration_recording_request,
|
|
526
|
+
)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
##
|
|
530
|
+
# Provide a user friendly representation
|
|
531
|
+
def to_s
|
|
532
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
533
|
+
"<Twilio.Voice.V2.RecordingAccountDefaultConfigurationInstance #{values}>"
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
##
|
|
537
|
+
# Provide a detailed, user friendly representation
|
|
538
|
+
def inspect
|
|
539
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
540
|
+
"<Twilio.Voice.V2.RecordingAccountDefaultConfigurationInstance #{values}>"
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
end
|
|
@@ -24,6 +24,7 @@ module Twilio
|
|
|
24
24
|
@account_default_configuration = nil
|
|
25
25
|
@configurations = nil
|
|
26
26
|
@recording = nil
|
|
27
|
+
@recording_account_default_configuration = nil
|
|
27
28
|
@transcription = nil
|
|
28
29
|
@type = nil
|
|
29
30
|
end
|
|
@@ -74,6 +75,11 @@ module Twilio
|
|
|
74
75
|
end
|
|
75
76
|
end
|
|
76
77
|
##
|
|
78
|
+
# @return [Twilio::REST::Voice::V2::recordingAccountDefaultConfigurationContext]
|
|
79
|
+
def recording_account_default_configuration
|
|
80
|
+
@recording_account_default_configuration ||= RecordingAccountDefaultConfigurationContext.new self
|
|
81
|
+
end
|
|
82
|
+
##
|
|
77
83
|
# @param [String] id_or_unique_name Config id or unique name
|
|
78
84
|
# @return [Twilio::REST::Voice::V2::TranscriptionContext] if idOrUniqueName was passed.
|
|
79
85
|
# @return [Twilio::REST::Voice::V2::TranscriptionList]
|
|
@@ -353,9 +353,11 @@ module Twilio
|
|
|
353
353
|
# track:: Track to be streamed to remote service
|
|
354
354
|
# status_callback:: Status Callback URL
|
|
355
355
|
# status_callback_method:: Status Callback URL method
|
|
356
|
+
# audio_format:: Required Audio Format
|
|
357
|
+
# sample_rate:: Sample Rate for HD Codec
|
|
356
358
|
# keyword_args:: additional attributes
|
|
357
|
-
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
|
358
|
-
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
|
|
359
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, audio_format: nil, sample_rate: nil, **keyword_args)
|
|
360
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, audio_format: audio_format, sample_rate: sample_rate, **keyword_args)
|
|
359
361
|
|
|
360
362
|
yield(stream) if block_given?
|
|
361
363
|
append(stream)
|
|
@@ -510,9 +512,11 @@ module Twilio
|
|
|
510
512
|
# track:: Track to be streamed to remote service
|
|
511
513
|
# status_callback:: Status Callback URL
|
|
512
514
|
# status_callback_method:: Status Callback URL method
|
|
515
|
+
# audio_format:: Required Audio Format
|
|
516
|
+
# sample_rate:: Sample Rate for HD Codec
|
|
513
517
|
# keyword_args:: additional attributes
|
|
514
|
-
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
|
515
|
-
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
|
|
518
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, audio_format: nil, sample_rate: nil, **keyword_args)
|
|
519
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, audio_format: audio_format, sample_rate: sample_rate, **keyword_args)
|
|
516
520
|
|
|
517
521
|
yield(stream) if block_given?
|
|
518
522
|
append(stream)
|
|
@@ -2040,9 +2044,11 @@ module Twilio
|
|
|
2040
2044
|
# track:: Track to be streamed to remote service
|
|
2041
2045
|
# status_callback:: Status Callback URL
|
|
2042
2046
|
# status_callback_method:: Status Callback URL method
|
|
2047
|
+
# audio_format:: Required Audio Format
|
|
2048
|
+
# sample_rate:: Sample Rate for HD Codec
|
|
2043
2049
|
# keyword_args:: additional attributes
|
|
2044
|
-
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
|
|
2045
|
-
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
|
|
2050
|
+
def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, audio_format: nil, sample_rate: nil, **keyword_args)
|
|
2051
|
+
stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, audio_format: audio_format, sample_rate: sample_rate, **keyword_args)
|
|
2046
2052
|
|
|
2047
2053
|
yield(stream) if block_given?
|
|
2048
2054
|
append(stream)
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.11.
|
|
4
|
+
version: 7.11.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twilio API Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -519,6 +519,8 @@ files:
|
|
|
519
519
|
- lib/twilio-ruby/rest/insights/v2/outbound_report.rb
|
|
520
520
|
- lib/twilio-ruby/rest/insights/v2/report.rb
|
|
521
521
|
- lib/twilio-ruby/rest/insights/v3.rb
|
|
522
|
+
- lib/twilio-ruby/rest/insights/v3/capacity.rb
|
|
523
|
+
- lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb
|
|
522
524
|
- lib/twilio-ruby/rest/insights/v3/metadata.rb
|
|
523
525
|
- lib/twilio-ruby/rest/insights/v3/query.rb
|
|
524
526
|
- lib/twilio-ruby/rest/insights/v3/query_job.rb
|
|
@@ -961,6 +963,7 @@ files:
|
|
|
961
963
|
- lib/twilio-ruby/rest/voice/v2/configuration.rb
|
|
962
964
|
- lib/twilio-ruby/rest/voice/v2/configuration/default.rb
|
|
963
965
|
- lib/twilio-ruby/rest/voice/v2/recording.rb
|
|
966
|
+
- lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb
|
|
964
967
|
- lib/twilio-ruby/rest/voice/v2/transcription.rb
|
|
965
968
|
- lib/twilio-ruby/rest/voice/v2/type.rb
|
|
966
969
|
- lib/twilio-ruby/rest/voice/v3.rb
|