twilio-ruby 5.27.0 → 5.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. metadata +4 -4
@@ -26,30 +26,38 @@ module Twilio
26
26
  ##
27
27
  # Retrieve a single page of RoomInstance records from the API.
28
28
  # Request is executed immediately.
29
- # @param [Boolean] enable_turn Deprecated. Enable [Twilio's Network Traversal
30
- # TURN service](https://www.twilio.com/stun-turn). TURN service is used when
31
- # direct peer-to-peer media connections cannot be established due to firewall
32
- # restrictions. This setting only applies to Rooms with type `peer-to-peer`.
33
- # @param [room.RoomType] type Type of room, either `peer-to-peer`, `group-small`
34
- # or `group`. Will be `group` by default.
35
- # @param [String] unique_name Name of the Room. This is unique for `in-progress`
36
- # rooms. If not provided, Room name will be set to the Room Sid.
37
- # @param [String] status_callback A URL that Twilio sends asynchronous webhook
38
- # requests to on every room event. If not provided, status callback events will
39
- # not be dispatched.
40
- # @param [String] status_callback_method HTTP method Twilio should use when
41
- # requesting the above URL. Defaults to `POST`.
42
- # @param [String] max_participants Maximum number of Participants in the Room.
43
- # Peer-to-peer rooms can have a maximum of 10 Participants. Small Group rooms can
44
- # have a max of 4 Participants. Group rooms can have a max of 50 Participants
45
- # @param [Boolean] record_participants_on_connect Start Participant recording when
46
- # connected. ***This feature is not available in `peer-to-peer` rooms.***
47
- # @param [room.VideoCodec] video_codecs An array of video codecs supported when
48
- # publishing a Track in the Room. `VP8` and `H264` codecs are supported. ***This
49
- # feature is not available in `peer-to-peer` rooms***
50
- # @param [String] media_region Region for the media server in Group Rooms.
51
- # Default region is `us1`. See the list of [available Media
52
- # Regions.](https://www.twilio.com/docs/api/video/ip-address-whitelisting#group-rooms-media-servers)***This feature is not available in `peer-to-peer` rooms.***
29
+ # @param [Boolean] enable_turn Deprecated. Whether to enable [Twilio's Network
30
+ # Traversal TURN service](https://www.twilio.com/stun-turn). TURN service is used
31
+ # when direct peer-to-peer media connections cannot be established due to firewall
32
+ # restrictions. This setting only applies to rooms with type `peer-to-peer`.
33
+ # @param [room.RoomType] type The type of room. Can be: `peer-to-peer`,
34
+ # `group-small`, or `group`. The default value is `group`.
35
+ # @param [String] unique_name An application-defined string that uniquely
36
+ # identifies the resource. It can be used as a `room_sid` in place of the
37
+ # resource's `sid` in the URL to address the resource. This value is unique for
38
+ # `in-progress` rooms. SDK clients can use this name to connect to the room. REST
39
+ # API clients can use this name in place of the Room SID to interact with the room
40
+ # as long as the room is `in-progress`.
41
+ # @param [String] status_callback The URL we should call using the
42
+ # `status_callback_method` to send status information to your application on every
43
+ # room event. See [Status
44
+ # Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more
45
+ # info.
46
+ # @param [String] status_callback_method The HTTP method we should use to call
47
+ # `status_callback`. Can be `POST` or `GET`.
48
+ # @param [String] max_participants The maximum number of concurrent Participants
49
+ # allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small
50
+ # Group rooms can have up to 4 Participants. Group rooms can have up to 50
51
+ # Participants.
52
+ # @param [Boolean] record_participants_on_connect Whether to start recording when
53
+ # Participants connect. ***This feature is not available in `peer-to-peer`
54
+ # rooms.***
55
+ # @param [room.VideoCodec] video_codecs An array of the video codecs that are
56
+ # supported when publishing a track in the room. Can be: `VP8` and `H264`.
57
+ # ***This feature is not available in `peer-to-peer` rooms***
58
+ # @param [String] media_region The region for the media server in Group Rooms.
59
+ # Can be: one of the [available Media
60
+ # Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.***
53
61
  # @return [RoomInstance] Newly created RoomInstance
54
62
  def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset)
55
63
  data = Twilio::Values.of({
@@ -77,12 +85,12 @@ module Twilio
77
85
  # Lists RoomInstance records from the API as a list.
78
86
  # Unlike stream(), this operation is eager and will load `limit` records into
79
87
  # memory before returning.
80
- # @param [room.RoomStatus] status Only show Rooms with the given status:
81
- # `in-progress` (default), or `completed`
82
- # @param [String] unique_name Only show Rooms with the provided Name.
83
- # @param [Time] date_created_after Only show Rooms that started on or after this
88
+ # @param [room.RoomStatus] status Read only the rooms with this status. Can be:
89
+ # `in-progress` (default) or `completed`
90
+ # @param [String] unique_name Read only rooms with the this `unique_name`.
91
+ # @param [Time] date_created_after Read only rooms that started on or after this
84
92
  # date, given as `YYYY-MM-DD`.
85
- # @param [Time] date_created_before Only show Rooms that started before this date,
93
+ # @param [Time] date_created_before Read only rooms that started before this date,
86
94
  # given as `YYYY-MM-DD`.
87
95
  # @param [Integer] limit Upper limit for the number of records to return. stream()
88
96
  # guarantees to never return more than limit. Default is no limit
@@ -106,12 +114,12 @@ module Twilio
106
114
  # Streams RoomInstance records from the API as an Enumerable.
107
115
  # This operation lazily loads records as efficiently as possible until the limit
108
116
  # is reached.
109
- # @param [room.RoomStatus] status Only show Rooms with the given status:
110
- # `in-progress` (default), or `completed`
111
- # @param [String] unique_name Only show Rooms with the provided Name.
112
- # @param [Time] date_created_after Only show Rooms that started on or after this
117
+ # @param [room.RoomStatus] status Read only the rooms with this status. Can be:
118
+ # `in-progress` (default) or `completed`
119
+ # @param [String] unique_name Read only rooms with the this `unique_name`.
120
+ # @param [Time] date_created_after Read only rooms that started on or after this
113
121
  # date, given as `YYYY-MM-DD`.
114
- # @param [Time] date_created_before Only show Rooms that started before this date,
122
+ # @param [Time] date_created_before Read only rooms that started before this date,
115
123
  # given as `YYYY-MM-DD`.
116
124
  # @param [Integer] limit Upper limit for the number of records to return. stream()
117
125
  # guarantees to never return more than limit. Default is no limit.
@@ -151,12 +159,12 @@ module Twilio
151
159
  ##
152
160
  # Retrieve a single page of RoomInstance records from the API.
153
161
  # Request is executed immediately.
154
- # @param [room.RoomStatus] status Only show Rooms with the given status:
155
- # `in-progress` (default), or `completed`
156
- # @param [String] unique_name Only show Rooms with the provided Name.
157
- # @param [Time] date_created_after Only show Rooms that started on or after this
162
+ # @param [room.RoomStatus] status Read only the rooms with this status. Can be:
163
+ # `in-progress` (default) or `completed`
164
+ # @param [String] unique_name Read only rooms with the this `unique_name`.
165
+ # @param [Time] date_created_after Read only rooms that started on or after this
158
166
  # date, given as `YYYY-MM-DD`.
159
- # @param [Time] date_created_before Only show Rooms that started before this date,
167
+ # @param [Time] date_created_before Read only rooms that started before this date,
160
168
  # given as `YYYY-MM-DD`.
161
169
  # @param [String] page_token PageToken provided by the API
162
170
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -233,7 +241,7 @@ module Twilio
233
241
  ##
234
242
  # Initialize the RoomContext
235
243
  # @param [Version] version Version that contains the resource
236
- # @param [String] sid The Room Sid or name that uniquely identifies this resource.
244
+ # @param [String] sid The SID of the Room resource to fetch.
237
245
  # @return [RoomContext] RoomContext
238
246
  def initialize(version, sid)
239
247
  super(version)
@@ -264,7 +272,8 @@ module Twilio
264
272
 
265
273
  ##
266
274
  # Update the RoomInstance
267
- # @param [room.RoomStatus] status Set to `completed` to end the Room.
275
+ # @param [room.RoomStatus] status The new status of the resource. Set to
276
+ # `completed` to end the room.
268
277
  # @return [RoomInstance] Updated RoomInstance
269
278
  def update(status: nil)
270
279
  data = Twilio::Values.of({'Status' => status, })
@@ -334,7 +343,7 @@ module Twilio
334
343
  # Initialize the RoomInstance
335
344
  # @param [Version] version Version that contains the resource
336
345
  # @param [Hash] payload payload that contains response from Twilio
337
- # @param [String] sid The Room Sid or name that uniquely identifies this resource.
346
+ # @param [String] sid The SID of the Room resource to fetch.
338
347
  # @return [RoomInstance] RoomInstance
339
348
  def initialize(version, payload, sid: nil)
340
349
  super(version)
@@ -378,109 +387,109 @@ module Twilio
378
387
  end
379
388
 
380
389
  ##
381
- # @return [String] A system-generated 34-character string that uniquely identifies this resource.
390
+ # @return [String] The unique string that identifies the resource
382
391
  def sid
383
392
  @properties['sid']
384
393
  end
385
394
 
386
395
  ##
387
- # @return [room.RoomStatus] A string representing the status of the Room.
396
+ # @return [room.RoomStatus] The status of the room
388
397
  def status
389
398
  @properties['status']
390
399
  end
391
400
 
392
401
  ##
393
- # @return [Time] The date that this resource was created, given as a UTC ISO 8601 Timestamp.
402
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
394
403
  def date_created
395
404
  @properties['date_created']
396
405
  end
397
406
 
398
407
  ##
399
- # @return [Time] The date that this resource was last updated, given as a UTC ISO 8601 Timestamp.
408
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
400
409
  def date_updated
401
410
  @properties['date_updated']
402
411
  end
403
412
 
404
413
  ##
405
- # @return [String] The unique ID of the Account associated with this Room.
414
+ # @return [String] The SID of the Account that created the resource
406
415
  def account_sid
407
416
  @properties['account_sid']
408
417
  end
409
418
 
410
419
  ##
411
- # @return [Boolean] Enable Twilio's Network Traversal TURN service.
420
+ # @return [Boolean] Enable Twilio's Network Traversal TURN service
412
421
  def enable_turn
413
422
  @properties['enable_turn']
414
423
  end
415
424
 
416
425
  ##
417
- # @return [String] A developer-supplied Name of the Room.
426
+ # @return [String] An application-defined string that uniquely identifies the resource
418
427
  def unique_name
419
428
  @properties['unique_name']
420
429
  end
421
430
 
422
431
  ##
423
- # @return [String] A URL that Twilio sends asynchronous webhook requests to on every Room event.
432
+ # @return [String] The URL to send status information to your application
424
433
  def status_callback
425
434
  @properties['status_callback']
426
435
  end
427
436
 
428
437
  ##
429
- # @return [String] HTTP method Twilio should use when requesting the above URL.
438
+ # @return [String] The HTTP method we use to call status_callback
430
439
  def status_callback_method
431
440
  @properties['status_callback_method']
432
441
  end
433
442
 
434
443
  ##
435
- # @return [Time] The end time of the Room, given as a UTC ISO 8601 Timestamp.
444
+ # @return [Time] The UTC end time of the room in UTC ISO 8601 format
436
445
  def end_time
437
446
  @properties['end_time']
438
447
  end
439
448
 
440
449
  ##
441
- # @return [String] The duration of the Room in seconds.
450
+ # @return [String] The duration of the room in seconds
442
451
  def duration
443
452
  @properties['duration']
444
453
  end
445
454
 
446
455
  ##
447
- # @return [room.RoomType] Type of Room, either peer-to-peer, group-small or group.
456
+ # @return [room.RoomType] The type of room
448
457
  def type
449
458
  @properties['type']
450
459
  end
451
460
 
452
461
  ##
453
- # @return [String] Maximum number of concurrent Participants allowed in the Room.
462
+ # @return [String] The maximum number of concurrent Participants allowed in the room
454
463
  def max_participants
455
464
  @properties['max_participants']
456
465
  end
457
466
 
458
467
  ##
459
- # @return [Boolean] Start recording when Participants connect.
468
+ # @return [Boolean] Whether to start recording when Participants connect
460
469
  def record_participants_on_connect
461
470
  @properties['record_participants_on_connect']
462
471
  end
463
472
 
464
473
  ##
465
- # @return [room.VideoCodec] The video_codecs
474
+ # @return [room.VideoCodec] An array of the video codecs that are supported when publishing a track in the room
466
475
  def video_codecs
467
476
  @properties['video_codecs']
468
477
  end
469
478
 
470
479
  ##
471
- # @return [String] Region for the media server in Group Rooms.
480
+ # @return [String] The region for the media server in Group Rooms
472
481
  def media_region
473
482
  @properties['media_region']
474
483
  end
475
484
 
476
485
  ##
477
- # @return [String] The absolute URL for this resource.
486
+ # @return [String] The absolute URL of the resource
478
487
  def url
479
488
  @properties['url']
480
489
  end
481
490
 
482
491
  ##
483
- # @return [String] The links
492
+ # @return [String] The URLs of related resources
484
493
  def links
485
494
  @properties['links']
486
495
  end
@@ -494,7 +503,8 @@ module Twilio
494
503
 
495
504
  ##
496
505
  # Update the RoomInstance
497
- # @param [room.RoomStatus] status Set to `completed` to end the Room.
506
+ # @param [room.RoomStatus] status The new status of the resource. Set to
507
+ # `completed` to end the room.
498
508
  # @return [RoomInstance] Updated RoomInstance
499
509
  def update(status: nil)
500
510
  context.update(status: status, )
@@ -15,7 +15,8 @@ module Twilio
15
15
  ##
16
16
  # Initialize the RoomRecordingList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] room_sid The room_sid
18
+ # @param [String] room_sid The SID of the Room resource the recording is
19
+ # associated with.
19
20
  # @return [RoomRecordingList] RoomRecordingList
20
21
  def initialize(version, room_sid: nil)
21
22
  super(version)
@@ -29,10 +30,13 @@ module Twilio
29
30
  # Lists RoomRecordingInstance records from the API as a list.
30
31
  # Unlike stream(), this operation is eager and will load `limit` records into
31
32
  # memory before returning.
32
- # @param [room_recording.Status] status The status
33
- # @param [String] source_sid The source_sid
34
- # @param [Time] date_created_after The date_created_after
35
- # @param [Time] date_created_before The date_created_before
33
+ # @param [room_recording.Status] status Read only the recordings with this status.
34
+ # Can be: `processing`, `completed`, or `deleted`.
35
+ # @param [String] source_sid Read only the recordings that have this `source_sid`.
36
+ # @param [Time] date_created_after Read only recordings that started on or after
37
+ # this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
38
+ # @param [Time] date_created_before Read only Recordings that started before this
39
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
36
40
  # @param [Integer] limit Upper limit for the number of records to return. stream()
37
41
  # guarantees to never return more than limit. Default is no limit
38
42
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -55,10 +59,13 @@ module Twilio
55
59
  # Streams RoomRecordingInstance records from the API as an Enumerable.
56
60
  # This operation lazily loads records as efficiently as possible until the limit
57
61
  # is reached.
58
- # @param [room_recording.Status] status The status
59
- # @param [String] source_sid The source_sid
60
- # @param [Time] date_created_after The date_created_after
61
- # @param [Time] date_created_before The date_created_before
62
+ # @param [room_recording.Status] status Read only the recordings with this status.
63
+ # Can be: `processing`, `completed`, or `deleted`.
64
+ # @param [String] source_sid Read only the recordings that have this `source_sid`.
65
+ # @param [Time] date_created_after Read only recordings that started on or after
66
+ # this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
67
+ # @param [Time] date_created_before Read only Recordings that started before this
68
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
62
69
  # @param [Integer] limit Upper limit for the number of records to return. stream()
63
70
  # guarantees to never return more than limit. Default is no limit.
64
71
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -97,10 +104,13 @@ module Twilio
97
104
  ##
98
105
  # Retrieve a single page of RoomRecordingInstance records from the API.
99
106
  # Request is executed immediately.
100
- # @param [room_recording.Status] status The status
101
- # @param [String] source_sid The source_sid
102
- # @param [Time] date_created_after The date_created_after
103
- # @param [Time] date_created_before The date_created_before
107
+ # @param [room_recording.Status] status Read only the recordings with this status.
108
+ # Can be: `processing`, `completed`, or `deleted`.
109
+ # @param [String] source_sid Read only the recordings that have this `source_sid`.
110
+ # @param [Time] date_created_after Read only recordings that started on or after
111
+ # this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
112
+ # @param [Time] date_created_before Read only Recordings that started before this
113
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
104
114
  # @param [String] page_token PageToken provided by the API
105
115
  # @param [Integer] page_number Page Number, this value is simply for client state
106
116
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -176,8 +186,9 @@ module Twilio
176
186
  ##
177
187
  # Initialize the RoomRecordingContext
178
188
  # @param [Version] version Version that contains the resource
179
- # @param [String] room_sid The room_sid
180
- # @param [String] sid The sid
189
+ # @param [String] room_sid The SID of the Room resource with the recording to
190
+ # fetch.
191
+ # @param [String] sid The SID of the RoomRecording resource to fetch.
181
192
  # @return [RoomRecordingContext] RoomRecordingContext
182
193
  def initialize(version, room_sid, sid)
183
194
  super(version)
@@ -229,8 +240,9 @@ module Twilio
229
240
  # Initialize the RoomRecordingInstance
230
241
  # @param [Version] version Version that contains the resource
231
242
  # @param [Hash] payload payload that contains response from Twilio
232
- # @param [String] room_sid The room_sid
233
- # @param [String] sid The sid
243
+ # @param [String] room_sid The SID of the Room resource the recording is
244
+ # associated with.
245
+ # @param [String] sid The SID of the RoomRecording resource to fetch.
234
246
  # @return [RoomRecordingInstance] RoomRecordingInstance
235
247
  def initialize(version, payload, room_sid: nil, sid: nil)
236
248
  super(version)
@@ -272,97 +284,97 @@ module Twilio
272
284
  end
273
285
 
274
286
  ##
275
- # @return [String] The account_sid
287
+ # @return [String] The SID of the Account that created the resource
276
288
  def account_sid
277
289
  @properties['account_sid']
278
290
  end
279
291
 
280
292
  ##
281
- # @return [room_recording.Status] The status
293
+ # @return [room_recording.Status] The status of the recording
282
294
  def status
283
295
  @properties['status']
284
296
  end
285
297
 
286
298
  ##
287
- # @return [Time] The date_created
299
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
288
300
  def date_created
289
301
  @properties['date_created']
290
302
  end
291
303
 
292
304
  ##
293
- # @return [String] The sid
305
+ # @return [String] The unique string that identifies the resource
294
306
  def sid
295
307
  @properties['sid']
296
308
  end
297
309
 
298
310
  ##
299
- # @return [String] The source_sid
311
+ # @return [String] The SID of the recording source
300
312
  def source_sid
301
313
  @properties['source_sid']
302
314
  end
303
315
 
304
316
  ##
305
- # @return [String] The size
317
+ # @return [String] The size of the recorded track in bytes
306
318
  def size
307
319
  @properties['size']
308
320
  end
309
321
 
310
322
  ##
311
- # @return [String] The url
323
+ # @return [String] The absolute URL of the resource
312
324
  def url
313
325
  @properties['url']
314
326
  end
315
327
 
316
328
  ##
317
- # @return [room_recording.Type] The type
329
+ # @return [room_recording.Type] The recording's media type
318
330
  def type
319
331
  @properties['type']
320
332
  end
321
333
 
322
334
  ##
323
- # @return [String] The duration
335
+ # @return [String] The duration of the recording in seconds
324
336
  def duration
325
337
  @properties['duration']
326
338
  end
327
339
 
328
340
  ##
329
- # @return [room_recording.Format] The container_format
341
+ # @return [room_recording.Format] The file format for the recording
330
342
  def container_format
331
343
  @properties['container_format']
332
344
  end
333
345
 
334
346
  ##
335
- # @return [room_recording.Codec] The codec
347
+ # @return [room_recording.Codec] The codec used for the recording
336
348
  def codec
337
349
  @properties['codec']
338
350
  end
339
351
 
340
352
  ##
341
- # @return [Hash] The grouping_sids
353
+ # @return [Hash] A list of SIDs related to the Recording
342
354
  def grouping_sids
343
355
  @properties['grouping_sids']
344
356
  end
345
357
 
346
358
  ##
347
- # @return [String] The track_name
359
+ # @return [String] The name that was given to the source track of the recording
348
360
  def track_name
349
361
  @properties['track_name']
350
362
  end
351
363
 
352
364
  ##
353
- # @return [String] The offset
365
+ # @return [String] The number of milliseconds between a point in time that is common to all rooms in a group and when the source room of the recording started
354
366
  def offset
355
367
  @properties['offset']
356
368
  end
357
369
 
358
370
  ##
359
- # @return [String] The room_sid
371
+ # @return [String] The SID of the Room resource the recording is associated with
360
372
  def room_sid
361
373
  @properties['room_sid']
362
374
  end
363
375
 
364
376
  ##
365
- # @return [String] The links
377
+ # @return [String] The URLs of related resources
366
378
  def links
367
379
  @properties['links']
368
380
  end