lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.888 vs lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.889

- old
+ new

@@ -1531,9 +1531,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 更新输入在线媒体流任务的StreamUrl + + # @param request: Request instance for UpdateStreamIngest. + # @type request: :class:`Tencentcloud::trtc::V20190722::UpdateStreamIngestRequest` + # @rtype: :class:`Tencentcloud::trtc::V20190722::UpdateStreamIngestResponse` + def UpdateStreamIngest(request) + body = send_request('UpdateStreamIngest', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = UpdateStreamIngestResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + end end end end \ No newline at end of file