lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.49.0 vs lib/twilio-ruby/rest/video/v1/room.rb in twilio-ruby-5.50.0
- old
+ new
@@ -53,21 +53,24 @@
# ***This feature is not available in `peer-to-peer` rooms***
# @param [String] media_region The region for the media server in Group Rooms.
# Can be: one of the {available Media
# Regions}[https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers].
# ***This feature is not available in `peer-to-peer` rooms.***
+ # @param [Hash] recording_rules A collection of Recording Rules that describe how
+ # to include or exclude matching tracks for recording
# @return [RoomInstance] Created RoomInstance
- 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)
+ 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, recording_rules: :unset)
data = Twilio::Values.of({
'EnableTurn' => enable_turn,
'Type' => type,
'UniqueName' => unique_name,
'StatusCallback' => status_callback,
'StatusCallbackMethod' => status_callback_method,
'MaxParticipants' => max_participants,
'RecordParticipantsOnConnect' => record_participants_on_connect,
'VideoCodecs' => Twilio.serialize_list(video_codecs) { |e| e },
'MediaRegion' => media_region,
+ 'RecordingRules' => Twilio.serialize_object(recording_rules),
})
payload = @version.create('POST', @uri, data: data)
RoomInstance.new(@version, payload, )
\ No newline at end of file