lib/v20200710/client.rb in tencentcloud-sdk-mmps-1.0.342 vs lib/v20200710/client.rb in tencentcloud-sdk-mmps-1.0.343

- old
+ new

@@ -171,9 +171,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询指定小程序版本的翼扬诊断安全得分 + + # @param request: Request instance for DescribeFlySecMiniAppScanReportList. + # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanReportListRequest` + # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanReportListResponse` + def DescribeFlySecMiniAppScanReportList(request) + body = send_request('DescribeFlySecMiniAppScanReportList', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeFlySecMiniAppScanReportListResponse.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 + # 获取翼扬安全诊断任务列表 # @param request: Request instance for DescribeFlySecMiniAppScanTaskList. # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskListRequest` # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskListResponse` \ No newline at end of file