lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.479 vs lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.480

- old
+ new

@@ -1251,10 +1251,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口(DescribeDistributionL4AccessData)用于查询四层连接时长的时序数据。 + + # @param request: Request instance for DescribeDistributionL4AccessData. + # @type request: :class:`Tencentcloud::teo::V20220901::DescribeDistributionL4AccessDataRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDistributionL4AccessDataResponse` + def DescribeDistributionL4AccessData(request) + body = send_request('DescribeDistributionL4AccessData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeDistributionL4AccessDataResponse.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 + # 获取DNS请求数统计曲线 # @param request: Request instance for DescribeDnsData. # @type request: :class:`Tencentcloud::teo::V20220901::DescribeDnsDataRequest` # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeDnsDataResponse` @@ -1861,9 +1885,33 @@ def DescribeSpeedTestingQuota(request) body = send_request('DescribeSpeedTestingQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSpeedTestingQuotaResponse.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 + + # 本接口(DescribeTimingL4AccessData)用于查询四层连接数的时序数据列表。 + + # @param request: Request instance for DescribeTimingL4AccessData. + # @type request: :class:`Tencentcloud::teo::V20220901::DescribeTimingL4AccessDataRequest` + # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeTimingL4AccessDataResponse` + def DescribeTimingL4AccessData(request) + body = send_request('DescribeTimingL4AccessData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTimingL4AccessDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file