twilio-ruby 5.18.0 → 5.19.0

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.
Files changed (57) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +0 -4
  3. data/CHANGES.md +20 -0
  4. data/LICENSE.md +1 -1
  5. data/README.md +2 -2
  6. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +21 -13
  7. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -6
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +80 -70
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +204 -196
  12. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +59 -53
  13. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +69 -61
  14. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +30 -25
  15. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +28 -16
  16. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +31 -20
  17. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +54 -50
  18. data/lib/twilio-ruby/rest/api.rb +7 -6
  19. data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
  20. data/lib/twilio-ruby/rest/authy.rb +8 -8
  21. data/lib/twilio-ruby/rest/client.rb +14 -6
  22. data/lib/twilio-ruby/rest/insights/v1/summary.rb +286 -0
  23. data/lib/twilio-ruby/rest/insights/v1.rb +43 -0
  24. data/lib/twilio-ruby/rest/insights.rb +46 -0
  25. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +22 -14
  26. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  27. data/lib/twilio-ruby/rest/preview.rb +8 -8
  28. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +5 -28
  29. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +5 -9
  30. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -13
  31. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
  32. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  33. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -2
  34. data/lib/twilio-ruby/rest/trunking/v1.rb +2 -1
  35. data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +7 -0
  36. data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +7 -4
  37. data/lib/twilio-ruby/rest/video/v1/composition.rb +25 -13
  38. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +69 -74
  39. data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -7
  40. data/lib/twilio-ruby/rest/video/v1.rb +16 -16
  41. data/lib/twilio-ruby/rest/video.rb +9 -9
  42. data/lib/twilio-ruby/rest/voice/v1/voice_permission/bulk_country_update.rb +3 -3
  43. data/lib/twilio-ruby/rest/voice/v1/voice_permission/country/highrisk_special_prefix.rb +2 -2
  44. data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +20 -20
  45. data/lib/twilio-ruby/version.rb +1 -1
  46. data/spec/integration/api/v2010/account/sip/domain_spec.rb +8 -4
  47. data/spec/integration/insights/v1/summary_spec.rb +60 -0
  48. data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -2
  49. data/spec/integration/proxy/v1/service/session/interaction_spec.rb +1 -1
  50. data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -2
  51. data/spec/integration/proxy/v1/service/session/participant_spec.rb +66 -4
  52. data/spec/integration/proxy/v1/service/session_spec.rb +8 -8
  53. data/spec/integration/proxy/v1/service_spec.rb +3 -3
  54. data/spec/integration/trunking/v1/trunk_spec.rb +80 -0
  55. data/spec/integration/verify/v1/service/verification_spec.rb +10 -1
  56. data/twilio-ruby.gemspec +1 -2
  57. 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 unique ID of the
20
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
21
- # recording.
22
- # @param [String] conference_sid The unique id for the conference associated with
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 Filter by date created
38
- # @param [Time] date_created Filter by date created
39
- # @param [Time] date_created_after Filter by date created
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 Filter by date created
62
- # @param [Time] date_created Filter by date created
63
- # @param [Time] date_created_after Filter by date created
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 Filter by date created
102
- # @param [Time] date_created Filter by date created
103
- # @param [Time] date_created_after Filter by date created
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 account_sid
184
- # @param [String] conference_sid The conference Sid that uniquely identifies this
185
- # resource
186
- # @param [String] sid The recording Sid that uniquely identifies this resource
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 to change the recording to.
199
- # Possible values: `stopped`, `paused`, `in-progress`
200
- # @param [String] pause_behavior Only applicable when setting Status parameter to
201
- # `paused`. Possible values: `skip` or `silence`. `skip` will result in no
202
- # recording at all during the pause period. `silence` will replace the actual
203
- # audio of the call with silence during the pause period. Defaults to `silence`
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 unique ID of the
265
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
266
- # recording.
267
- # @param [String] conference_sid The unique id for the conference associated with
268
- # the recording.
269
- # @param [String] sid The recording Sid that uniquely identifies this resource
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 unique sid that identifies this account
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 of the API in use during the recording.
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 unique id for the call leg that corresponds to the recording.
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 unique id for the conference associated with the recording.
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] A string that uniquely identifies this recording
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 Price property.
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 the recording.
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] The way in which this recording was created.
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 for how to decrypt the recording.
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 for this resource
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 to change the recording to.
425
- # Possible values: `stopped`, `paused`, `in-progress`
426
- # @param [String] pause_behavior Only applicable when setting Status parameter to
427
- # `paused`. Possible values: `skip` or `silence`. `skip` will result in no
428
- # recording at all during the pause period. `silence` will replace the actual
429
- # audio of the call with silence during the pause period. Defaults to `silence`
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 unique id of the
19
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
20
- # this conference.
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 Filter by date created
35
- # @param [Time] date_created Filter by date created
36
- # @param [Time] date_created_after Filter by date created
37
- # @param [Time] date_updated_before Filter by date updated
38
- # @param [Time] date_updated Filter by date updated
39
- # @param [Time] date_updated_after Filter by date updated
40
- # @param [String] friendly_name Only show results who's friendly name exactly
41
- # matches the string
42
- # @param [conference.Status] status A string representing the status of the
43
- # conference. May be `init`, `in-progress`, or `completed`.
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 Filter by date created
71
- # @param [Time] date_created Filter by date created
72
- # @param [Time] date_created_after Filter by date created
73
- # @param [Time] date_updated_before Filter by date updated
74
- # @param [Time] date_updated Filter by date updated
75
- # @param [Time] date_updated_after Filter by date updated
76
- # @param [String] friendly_name Only show results who's friendly name exactly
77
- # matches the string
78
- # @param [conference.Status] status A string representing the status of the
79
- # conference. May be `init`, `in-progress`, or `completed`.
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 Filter by date created
123
- # @param [Time] date_created Filter by date created
124
- # @param [Time] date_created_after Filter by date created
125
- # @param [Time] date_updated_before Filter by date updated
126
- # @param [Time] date_updated Filter by date updated
127
- # @param [Time] date_updated_after Filter by date updated
128
- # @param [String] friendly_name Only show results who's friendly name exactly
129
- # matches the string
130
- # @param [conference.Status] status A string representing the status of the
131
- # conference. May be `init`, `in-progress`, or `completed`.
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 account_sid
212
- # @param [String] sid The conference Sid that uniquely identifies this resource
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 Specifying `completed` will end the
249
- # conference and kick all participants
250
- # @param [String] announce_url The 'AnnounceUrl' attribute lets you specify a URL
251
- # for announcing something into a conference. The URL may return an MP3, a WAV or
252
- # a TwiML document with `<Play>` or `<Say>`.
253
- # @param [String] announce_method Specify GET or POST, defaults to POST
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 unique id of the
334
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
335
- # this conference.
336
- # @param [String] sid The conference Sid that uniquely identifies this resource
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 unique sid that identifies this account
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 api_version
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 human readable description of this resource
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 representing the Twilio Region where the conference was mixed.
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] A string that uniquely identifies this conference
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 the conference
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 for this resource
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] The subresource_uris
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 Specifying `completed` will end the
441
- # conference and kick all participants
442
- # @param [String] announce_url The 'AnnounceUrl' attribute lets you specify a URL
443
- # for announcing something into a conference. The URL may return an MP3, a WAV or
444
- # a TwiML document with `<Play>` or `<Say>`.
445
- # @param [String] announce_method Specify GET or POST, defaults to POST
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, )