twilio-ruby 5.18.0 → 5.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +0 -4
- data/CHANGES.md +20 -0
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +21 -13
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +80 -70
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +204 -196
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +59 -53
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +69 -61
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +30 -25
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +28 -16
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +31 -20
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +54 -50
- data/lib/twilio-ruby/rest/api.rb +7 -6
- data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
- data/lib/twilio-ruby/rest/authy.rb +8 -8
- data/lib/twilio-ruby/rest/client.rb +14 -6
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +286 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +43 -0
- data/lib/twilio-ruby/rest/insights.rb +46 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +22 -14
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +5 -28
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +5 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -13
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -2
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +7 -4
- data/lib/twilio-ruby/rest/video/v1/composition.rb +25 -13
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +69 -74
- data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -7
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/bulk_country_update.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +20 -20
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +8 -4
- data/spec/integration/insights/v1/summary_spec.rb +60 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +1 -1
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +66 -4
- data/spec/integration/proxy/v1/service/session_spec.rb +8 -8
- data/spec/integration/proxy/v1/service_spec.rb +3 -3
- data/spec/integration/trunking/v1/trunk_spec.rb +80 -0
- data/spec/integration/verify/v1/service/verification_spec.rb +10 -1
- data/twilio-ruby.gemspec +1 -2
- metadata +16 -6
@@ -16,11 +16,11 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the RecordingList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] account_sid The
|
20
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
21
|
-
#
|
22
|
-
# @param [String] conference_sid The
|
23
|
-
# the recording.
|
19
|
+
# @param [String] account_sid The SID of the
|
20
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
21
|
+
# ConferenceRecording resource.
|
22
|
+
# @param [String] conference_sid The Conference SID that identifies the conference
|
23
|
+
# associated with the recording.
|
24
24
|
# @return [RecordingList] RecordingList
|
25
25
|
def initialize(version, account_sid: nil, conference_sid: nil)
|
26
26
|
super(version)
|
@@ -34,9 +34,9 @@ module Twilio
|
|
34
34
|
# Lists RecordingInstance records from the API as a list.
|
35
35
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
36
36
|
# memory before returning.
|
37
|
-
# @param [Time] date_created_before
|
38
|
-
# @param [Time] date_created
|
39
|
-
# @param [Time] date_created_after
|
37
|
+
# @param [Time] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
38
|
+
# @param [Time] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
39
|
+
# @param [Time] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
40
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
41
41
|
# guarantees to never return more than limit. Default is no limit
|
42
42
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -58,9 +58,9 @@ module Twilio
|
|
58
58
|
# Streams RecordingInstance records from the API as an Enumerable.
|
59
59
|
# This operation lazily loads records as efficiently as possible until the limit
|
60
60
|
# is reached.
|
61
|
-
# @param [Time] date_created_before
|
62
|
-
# @param [Time] date_created
|
63
|
-
# @param [Time] date_created_after
|
61
|
+
# @param [Time] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
62
|
+
# @param [Time] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
63
|
+
# @param [Time] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
64
64
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
65
65
|
# guarantees to never return more than limit. Default is no limit.
|
66
66
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -98,9 +98,9 @@ module Twilio
|
|
98
98
|
##
|
99
99
|
# Retrieve a single page of RecordingInstance records from the API.
|
100
100
|
# Request is executed immediately.
|
101
|
-
# @param [Time] date_created_before
|
102
|
-
# @param [Time] date_created
|
103
|
-
# @param [Time] date_created_after
|
101
|
+
# @param [Time] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
102
|
+
# @param [Time] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
103
|
+
# @param [Time] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read
|
104
104
|
# @param [String] page_token PageToken provided by the API
|
105
105
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
106
106
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -180,10 +180,13 @@ module Twilio
|
|
180
180
|
##
|
181
181
|
# Initialize the RecordingContext
|
182
182
|
# @param [Version] version Version that contains the resource
|
183
|
-
# @param [String] account_sid The
|
184
|
-
#
|
185
|
-
# resource
|
186
|
-
# @param [String]
|
183
|
+
# @param [String] account_sid The SID of the
|
184
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created the
|
185
|
+
# ConferenceRecording resource(s) to fetch.
|
186
|
+
# @param [String] conference_sid The Conference SID that identifies the conference
|
187
|
+
# associated with the recording to fetch.
|
188
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
189
|
+
# ConferenceRecording resource to fetch
|
187
190
|
# @return [RecordingContext] RecordingContext
|
188
191
|
def initialize(version, account_sid, conference_sid, sid)
|
189
192
|
super(version)
|
@@ -195,12 +198,13 @@ module Twilio
|
|
195
198
|
|
196
199
|
##
|
197
200
|
# Update the RecordingInstance
|
198
|
-
# @param [recording.Status] status The status
|
199
|
-
#
|
200
|
-
# @param [String] pause_behavior
|
201
|
-
# `
|
202
|
-
#
|
203
|
-
#
|
201
|
+
# @param [recording.Status] status The new status of the resource. Can be:
|
202
|
+
# `stopped`, `paused`, or `in-progress`
|
203
|
+
# @param [String] pause_behavior Whether to record during a pause. Can be: `skip`
|
204
|
+
# or `silence` and the default is `silence`. `skip` does not record during the
|
205
|
+
# pause period, while `silence` will replace the actual audio of the call with
|
206
|
+
# silence during the pause period. This parameter only applies when setting
|
207
|
+
# `status` is set to `paused`.
|
204
208
|
# @return [RecordingInstance] Updated RecordingInstance
|
205
209
|
def update(status: nil, pause_behavior: :unset)
|
206
210
|
data = Twilio::Values.of({'Status' => status, 'PauseBehavior' => pause_behavior, })
|
@@ -261,12 +265,13 @@ module Twilio
|
|
261
265
|
# Initialize the RecordingInstance
|
262
266
|
# @param [Version] version Version that contains the resource
|
263
267
|
# @param [Hash] payload payload that contains response from Twilio
|
264
|
-
# @param [String] account_sid The
|
265
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
266
|
-
#
|
267
|
-
# @param [String] conference_sid The
|
268
|
-
# the recording.
|
269
|
-
# @param [String] sid The
|
268
|
+
# @param [String] account_sid The SID of the
|
269
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
270
|
+
# ConferenceRecording resource.
|
271
|
+
# @param [String] conference_sid The Conference SID that identifies the conference
|
272
|
+
# associated with the recording.
|
273
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
274
|
+
# ConferenceRecording resource to fetch
|
270
275
|
# @return [RecordingInstance] RecordingInstance
|
271
276
|
def initialize(version, payload, account_sid: nil, conference_sid: nil, sid: nil)
|
272
277
|
super(version)
|
@@ -318,115 +323,116 @@ module Twilio
|
|
318
323
|
end
|
319
324
|
|
320
325
|
##
|
321
|
-
# @return [String] The
|
326
|
+
# @return [String] The SID of the Account that created this resource
|
322
327
|
def account_sid
|
323
328
|
@properties['account_sid']
|
324
329
|
end
|
325
330
|
|
326
331
|
##
|
327
|
-
# @return [String] The version
|
332
|
+
# @return [String] The API version used to create the recording
|
328
333
|
def api_version
|
329
334
|
@properties['api_version']
|
330
335
|
end
|
331
336
|
|
332
337
|
##
|
333
|
-
# @return [String] The
|
338
|
+
# @return [String] The SID of the Call this resource is associated with
|
334
339
|
def call_sid
|
335
340
|
@properties['call_sid']
|
336
341
|
end
|
337
342
|
|
338
343
|
##
|
339
|
-
# @return [String] The
|
344
|
+
# @return [String] The Conference SID that identifies the conference associated with the recording
|
340
345
|
def conference_sid
|
341
346
|
@properties['conference_sid']
|
342
347
|
end
|
343
348
|
|
344
349
|
##
|
345
|
-
# @return [Time] The date this resource was created
|
350
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was created
|
346
351
|
def date_created
|
347
352
|
@properties['date_created']
|
348
353
|
end
|
349
354
|
|
350
355
|
##
|
351
|
-
# @return [Time] The date this resource was last updated
|
356
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
|
352
357
|
def date_updated
|
353
358
|
@properties['date_updated']
|
354
359
|
end
|
355
360
|
|
356
361
|
##
|
357
|
-
# @return [Time] The start time of the recording, given in RFC 2822 format
|
362
|
+
# @return [Time] The start time of the recording, given in RFC 2822 format
|
358
363
|
def start_time
|
359
364
|
@properties['start_time']
|
360
365
|
end
|
361
366
|
|
362
367
|
##
|
363
|
-
# @return [String] The length of the recording, in seconds
|
368
|
+
# @return [String] The length of the recording, in seconds
|
364
369
|
def duration
|
365
370
|
@properties['duration']
|
366
371
|
end
|
367
372
|
|
368
373
|
##
|
369
|
-
# @return [String]
|
374
|
+
# @return [String] The unique string that identifies this resource
|
370
375
|
def sid
|
371
376
|
@properties['sid']
|
372
377
|
end
|
373
378
|
|
374
379
|
##
|
375
|
-
# @return [String] The one-time cost of creating this recording
|
380
|
+
# @return [String] The one-time cost of creating this recording
|
376
381
|
def price
|
377
382
|
@properties['price']
|
378
383
|
end
|
379
384
|
|
380
385
|
##
|
381
|
-
# @return [String] The currency used in the
|
386
|
+
# @return [String] The currency used in the price property
|
382
387
|
def price_unit
|
383
388
|
@properties['price_unit']
|
384
389
|
end
|
385
390
|
|
386
391
|
##
|
387
|
-
# @return [recording.Status] The status of
|
392
|
+
# @return [recording.Status] The status of this recording
|
388
393
|
def status
|
389
394
|
@properties['status']
|
390
395
|
end
|
391
396
|
|
392
397
|
##
|
393
|
-
# @return [String] The number of channels in the final recording file as an integer
|
398
|
+
# @return [String] The number of channels in the final recording file as an integer
|
394
399
|
def channels
|
395
400
|
@properties['channels']
|
396
401
|
end
|
397
402
|
|
398
403
|
##
|
399
|
-
# @return [recording.Source]
|
404
|
+
# @return [recording.Source] How this recording was created
|
400
405
|
def source
|
401
406
|
@properties['source']
|
402
407
|
end
|
403
408
|
|
404
409
|
##
|
405
|
-
# @return [String] More information about why the recording is missing, if Status is `absent
|
410
|
+
# @return [String] More information about why the recording is missing, if Status is `absent`
|
406
411
|
def error_code
|
407
412
|
@properties['error_code']
|
408
413
|
end
|
409
414
|
|
410
415
|
##
|
411
|
-
# @return [Hash] Details
|
416
|
+
# @return [Hash] Details about how to decrypt the recording
|
412
417
|
def encryption_details
|
413
418
|
@properties['encryption_details']
|
414
419
|
end
|
415
420
|
|
416
421
|
##
|
417
|
-
# @return [String] The URI
|
422
|
+
# @return [String] The URI of this resource, relative to `https://api.twilio.com`
|
418
423
|
def uri
|
419
424
|
@properties['uri']
|
420
425
|
end
|
421
426
|
|
422
427
|
##
|
423
428
|
# Update the RecordingInstance
|
424
|
-
# @param [recording.Status] status The status
|
425
|
-
#
|
426
|
-
# @param [String] pause_behavior
|
427
|
-
# `
|
428
|
-
#
|
429
|
-
#
|
429
|
+
# @param [recording.Status] status The new status of the resource. Can be:
|
430
|
+
# `stopped`, `paused`, or `in-progress`
|
431
|
+
# @param [String] pause_behavior Whether to record during a pause. Can be: `skip`
|
432
|
+
# or `silence` and the default is `silence`. `skip` does not record during the
|
433
|
+
# pause period, while `silence` will replace the actual audio of the call with
|
434
|
+
# silence during the pause period. This parameter only applies when setting
|
435
|
+
# `status` is set to `paused`.
|
430
436
|
# @return [RecordingInstance] Updated RecordingInstance
|
431
437
|
def update(status: nil, pause_behavior: :unset)
|
432
438
|
context.update(status: status, pause_behavior: pause_behavior, )
|
@@ -15,9 +15,9 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the ConferenceList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] account_sid The
|
19
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
20
|
-
#
|
18
|
+
# @param [String] account_sid The SID of the
|
19
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
20
|
+
# Conference resource.
|
21
21
|
# @return [ConferenceList] ConferenceList
|
22
22
|
def initialize(version, account_sid: nil)
|
23
23
|
super(version)
|
@@ -31,16 +31,16 @@ module Twilio
|
|
31
31
|
# Lists ConferenceInstance records from the API as a list.
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
33
33
|
# memory before returning.
|
34
|
-
# @param [Time] date_created_before
|
35
|
-
# @param [Time] date_created
|
36
|
-
# @param [Time] date_created_after
|
37
|
-
# @param [Time] date_updated_before
|
38
|
-
# @param [Time] date_updated
|
39
|
-
# @param [Time] date_updated_after
|
40
|
-
# @param [String] friendly_name
|
41
|
-
#
|
42
|
-
# @param [conference.Status] status
|
43
|
-
#
|
34
|
+
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
35
|
+
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
36
|
+
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
37
|
+
# @param [Time] date_updated_before The `YYYY-MM-DD` value of the resources to read
|
38
|
+
# @param [Time] date_updated The `YYYY-MM-DD` value of the resources to read
|
39
|
+
# @param [Time] date_updated_after The `YYYY-MM-DD` value of the resources to read
|
40
|
+
# @param [String] friendly_name The string that identifies the Conference
|
41
|
+
# resources to read.
|
42
|
+
# @param [conference.Status] status The status of the resources to read. Can be:
|
43
|
+
# `init`, `in-progress`, or `completed`.
|
44
44
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
45
45
|
# guarantees to never return more than limit. Default is no limit
|
46
46
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -67,16 +67,16 @@ module Twilio
|
|
67
67
|
# Streams ConferenceInstance records from the API as an Enumerable.
|
68
68
|
# This operation lazily loads records as efficiently as possible until the limit
|
69
69
|
# is reached.
|
70
|
-
# @param [Time] date_created_before
|
71
|
-
# @param [Time] date_created
|
72
|
-
# @param [Time] date_created_after
|
73
|
-
# @param [Time] date_updated_before
|
74
|
-
# @param [Time] date_updated
|
75
|
-
# @param [Time] date_updated_after
|
76
|
-
# @param [String] friendly_name
|
77
|
-
#
|
78
|
-
# @param [conference.Status] status
|
79
|
-
#
|
70
|
+
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
71
|
+
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
72
|
+
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
73
|
+
# @param [Time] date_updated_before The `YYYY-MM-DD` value of the resources to read
|
74
|
+
# @param [Time] date_updated The `YYYY-MM-DD` value of the resources to read
|
75
|
+
# @param [Time] date_updated_after The `YYYY-MM-DD` value of the resources to read
|
76
|
+
# @param [String] friendly_name The string that identifies the Conference
|
77
|
+
# resources to read.
|
78
|
+
# @param [conference.Status] status The status of the resources to read. Can be:
|
79
|
+
# `init`, `in-progress`, or `completed`.
|
80
80
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
81
81
|
# guarantees to never return more than limit. Default is no limit.
|
82
82
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -119,16 +119,16 @@ module Twilio
|
|
119
119
|
##
|
120
120
|
# Retrieve a single page of ConferenceInstance records from the API.
|
121
121
|
# Request is executed immediately.
|
122
|
-
# @param [Time] date_created_before
|
123
|
-
# @param [Time] date_created
|
124
|
-
# @param [Time] date_created_after
|
125
|
-
# @param [Time] date_updated_before
|
126
|
-
# @param [Time] date_updated
|
127
|
-
# @param [Time] date_updated_after
|
128
|
-
# @param [String] friendly_name
|
129
|
-
#
|
130
|
-
# @param [conference.Status] status
|
131
|
-
#
|
122
|
+
# @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
|
123
|
+
# @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
|
124
|
+
# @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
|
125
|
+
# @param [Time] date_updated_before The `YYYY-MM-DD` value of the resources to read
|
126
|
+
# @param [Time] date_updated The `YYYY-MM-DD` value of the resources to read
|
127
|
+
# @param [Time] date_updated_after The `YYYY-MM-DD` value of the resources to read
|
128
|
+
# @param [String] friendly_name The string that identifies the Conference
|
129
|
+
# resources to read.
|
130
|
+
# @param [conference.Status] status The status of the resources to read. Can be:
|
131
|
+
# `init`, `in-progress`, or `completed`.
|
132
132
|
# @param [String] page_token PageToken provided by the API
|
133
133
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
134
134
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -208,8 +208,11 @@ module Twilio
|
|
208
208
|
##
|
209
209
|
# Initialize the ConferenceContext
|
210
210
|
# @param [Version] version Version that contains the resource
|
211
|
-
# @param [String] account_sid The
|
212
|
-
#
|
211
|
+
# @param [String] account_sid The SID of the
|
212
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created the
|
213
|
+
# Conference resource(s) to fetch.
|
214
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
215
|
+
# Conference resource to fetch
|
213
216
|
# @return [ConferenceContext] ConferenceContext
|
214
217
|
def initialize(version, account_sid, sid)
|
215
218
|
super(version)
|
@@ -245,12 +248,14 @@ module Twilio
|
|
245
248
|
|
246
249
|
##
|
247
250
|
# Update the ConferenceInstance
|
248
|
-
# @param [conference.UpdateStatus] status
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
# a TwiML document with
|
253
|
-
#
|
251
|
+
# @param [conference.UpdateStatus] status The new status of the resource. Can be:
|
252
|
+
# Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end
|
253
|
+
# the conference and hang up all participants
|
254
|
+
# @param [String] announce_url The URL we should call to announce something into
|
255
|
+
# the conference. The URL can return an MP3, a WAV, or a TwiML document with
|
256
|
+
# `<Play>` or `<Say>`.
|
257
|
+
# @param [String] announce_method The HTTP method used to call `announce_url`. Can
|
258
|
+
# be: `GET` or `POST` and the default is `POST`
|
254
259
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
255
260
|
def update(status: :unset, announce_url: :unset, announce_method: :unset)
|
256
261
|
data = Twilio::Values.of({
|
@@ -330,10 +335,11 @@ module Twilio
|
|
330
335
|
# Initialize the ConferenceInstance
|
331
336
|
# @param [Version] version Version that contains the resource
|
332
337
|
# @param [Hash] payload payload that contains response from Twilio
|
333
|
-
# @param [String] account_sid The
|
334
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
335
|
-
#
|
336
|
-
# @param [String] sid The
|
338
|
+
# @param [String] account_sid The SID of the
|
339
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
340
|
+
# Conference resource.
|
341
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
342
|
+
# Conference resource to fetch
|
337
343
|
# @return [ConferenceInstance] ConferenceInstance
|
338
344
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
339
345
|
super(version)
|
@@ -369,61 +375,61 @@ module Twilio
|
|
369
375
|
end
|
370
376
|
|
371
377
|
##
|
372
|
-
# @return [String] The
|
378
|
+
# @return [String] The SID of the Account that created this resource
|
373
379
|
def account_sid
|
374
380
|
@properties['account_sid']
|
375
381
|
end
|
376
382
|
|
377
383
|
##
|
378
|
-
# @return [Time] The date this resource was created
|
384
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was created
|
379
385
|
def date_created
|
380
386
|
@properties['date_created']
|
381
387
|
end
|
382
388
|
|
383
389
|
##
|
384
|
-
# @return [Time] The date this resource was last updated
|
390
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
|
385
391
|
def date_updated
|
386
392
|
@properties['date_updated']
|
387
393
|
end
|
388
394
|
|
389
395
|
##
|
390
|
-
# @return [String] The
|
396
|
+
# @return [String] The API version used to create this conference
|
391
397
|
def api_version
|
392
398
|
@properties['api_version']
|
393
399
|
end
|
394
400
|
|
395
401
|
##
|
396
|
-
# @return [String] A
|
402
|
+
# @return [String] A string that you assigned to describe this conference room
|
397
403
|
def friendly_name
|
398
404
|
@properties['friendly_name']
|
399
405
|
end
|
400
406
|
|
401
407
|
##
|
402
|
-
# @return [String] A string
|
408
|
+
# @return [String] A string that represents the Twilio Region where the conference was mixed
|
403
409
|
def region
|
404
410
|
@properties['region']
|
405
411
|
end
|
406
412
|
|
407
413
|
##
|
408
|
-
# @return [String]
|
414
|
+
# @return [String] The unique string that identifies this resource
|
409
415
|
def sid
|
410
416
|
@properties['sid']
|
411
417
|
end
|
412
418
|
|
413
419
|
##
|
414
|
-
# @return [conference.Status] The status of
|
420
|
+
# @return [conference.Status] The status of this conference
|
415
421
|
def status
|
416
422
|
@properties['status']
|
417
423
|
end
|
418
424
|
|
419
425
|
##
|
420
|
-
# @return [String] The URI
|
426
|
+
# @return [String] The URI of this resource, relative to `https://api.twilio.com`
|
421
427
|
def uri
|
422
428
|
@properties['uri']
|
423
429
|
end
|
424
430
|
|
425
431
|
##
|
426
|
-
# @return [String]
|
432
|
+
# @return [String] A list of related resources identified by their relative URIs
|
427
433
|
def subresource_uris
|
428
434
|
@properties['subresource_uris']
|
429
435
|
end
|
@@ -437,12 +443,14 @@ module Twilio
|
|
437
443
|
|
438
444
|
##
|
439
445
|
# Update the ConferenceInstance
|
440
|
-
# @param [conference.UpdateStatus] status
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
# a TwiML document with
|
445
|
-
#
|
446
|
+
# @param [conference.UpdateStatus] status The new status of the resource. Can be:
|
447
|
+
# Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end
|
448
|
+
# the conference and hang up all participants
|
449
|
+
# @param [String] announce_url The URL we should call to announce something into
|
450
|
+
# the conference. The URL can return an MP3, a WAV, or a TwiML document with
|
451
|
+
# `<Play>` or `<Say>`.
|
452
|
+
# @param [String] announce_method The HTTP method used to call `announce_url`. Can
|
453
|
+
# be: `GET` or `POST` and the default is `POST`
|
446
454
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
447
455
|
def update(status: :unset, announce_url: :unset, announce_method: :unset)
|
448
456
|
context.update(status: status, announce_url: announce_url, announce_method: announce_method, )
|