代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Bri.V20190328
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Bri.V20190328.Models;
public class BriClient : AbstractClient{
private const string endpoint = "bri.tencentcloudapi.com";
private const string version = "2019-03-28";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public BriClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public BriClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 输入业务名 (bri_num, bri_dev, bri_ip, bri_apk, bri_url 五种之一) 及其 相应字段, 获取业务风险分数和标签。
///
/// 当业务名为bri_num时必须填PhoneNumber字段.
///
/// 当业务名为bri_dev时, 必须填Imei字段.
///
/// 当业务名为bri_ip时必须填IP字段.
///
/// 当业务名为bri_apk时必须填 (PackageName,CertMd5,FileSize) 三个字段 或者 FileMd5一个字段.
///
/// 当业务名为bri_url时必须填Url字段.
/// </summary>
/// <param name="req"><see cref="DescribeBRIRequest"/></param>
/// <returns><see cref="DescribeBRIResponse"/></returns>
public async Task<DescribeBRIResponse> DescribeBRI(DescribeBRIRequest req)
{
JsonResponseModel<DescribeBRIResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeBRI");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeBRIResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 输入业务名 (bri_num, bri_dev, bri_ip, bri_apk, bri_url 五种之一) 及其 相应字段, 获取业务风险分数和标签。
///
/// 当业务名为bri_num时必须填PhoneNumber字段.
///
/// 当业务名为bri_dev时, 必须填Imei字段.
///
/// 当业务名为bri_ip时必须填IP字段.
///
/// 当业务名为bri_apk时必须填 (PackageName,CertMd5,FileSize) 三个字段 或者 FileMd5一个字段.
///
/// 当业务名为bri_url时必须填Url字段.
/// </summary>
/// <param name="req"><see cref="DescribeBRIRequest"/></param>
/// <returns><see cref="DescribeBRIResponse"/></returns>
public DescribeBRIResponse DescribeBRISync(DescribeBRIRequest req)
{
JsonResponseModel<DescribeBRIResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeBRI");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeBRIResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Bri.V20190328.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BRIRequest : AbstractModel
{
/// <summary>
/// 业务名, 必须是以下五个业务名之一(bri_num,bri_dev,bri_ip_bri_apk,bri_url)
/// </summary>
[JsonProperty("Service")]
public string Service{ get; set; }
/// <summary>
/// Apk证书Md5 (业务名为bri_apk时必填除非已填FileMd5)
/// </summary>
[JsonProperty("CertMd5")]
public string CertMd5{ get; set; }
/// <summary>
/// Apk文件Md5 (业务名为bri_apk时必填除非已填PackageName,CertMd5,FileSize)
/// </summary>
[JsonProperty("FileMd5")]
public string FileMd5{ get; set; }
/// <summary>
/// Apk文件大小 (业务名为bri_apk时必填除非已填FileMd5)
/// </summary>
[JsonProperty("FileSize")]
public long? FileSize{ get; set; }
/// <summary>
/// 安卓设备的Imei (业务名为bri_dev时必填)
/// </summary>
[JsonProperty("Imei")]
public string Imei{ get; set; }
/// <summary>
/// 点分格式的IP (业务名为bri_ip时必填)
/// </summary>
[JsonProperty("Ip")]
public string Ip{ get; set; }
/// <summary>
/// Apk安装包名 (业务名为bri_apk时必填除非已填FileMd5)
/// </summary>
[JsonProperty("PackageName")]
public string PackageName{ get; set; }
/// <summary>
/// 电话号码 (业务名为bri_num时必填)
/// </summary>
[JsonProperty("PhoneNumber")]
public string PhoneNumber{ get; set; }
/// <summary>
/// 网址 (业务名为bri_url时必填)
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Service", this.Service);
this.SetParamSimple(map, prefix + "CertMd5", this.CertMd5);
this.SetParamSimple(map, prefix + "FileMd5", this.FileMd5);
this.SetParamSimple(map, prefix + "FileSize", this.FileSize);
this.SetParamSimple(map, prefix + "Imei", this.Imei);
this.SetParamSimple(map, prefix + "Ip", this.Ip);
this.SetParamSimple(map, prefix + "PackageName", this.PackageName);
this.SetParamSimple(map, prefix + "PhoneNumber", this.PhoneNumber);
this.SetParamSimple(map, prefix + "Url", this.Url);
}
}
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Bri.V20190328.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BRIResponse : AbstractModel
{
/// <summary>
/// 风险分值,取值[0,100], 分值越高风险越高
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 当Service为bri_num时,返回的风险标签有:
/// 1) 疑似垃圾流量 说明: 结合号码的历史数据表现,判断该号码历史用互联网业务作恶行为,其产生的互联网行为对于其他业务来说属于作弊或垃圾流量。
/// 2) 疑似新客户 说明: 通过号码互联网行为(社交,浏览等)是否异常判断为小号或接码平台帐号。
///
/// 当Service为bri_dev时,返回的风险标签有:
/// 1) 疑似真机假用户 说明: 根据设备的一些数据表现,我们判定为群控设备
/// 2) 疑似假机 说明: 根据设备的一些数据表现我们判定为模拟器或虚假设备ID
/// 3) 疑似真用户假行为 说明: 根据设备的用户使用情况,我们判定该用户存在使用脚本、外挂、病毒等作弊行为
///
/// 当Service为bri_ip时,返回的风险标签有:
/// 1) 疑似垃圾流量 说明:结合IP的历史数据表现判断该IP历史用互联网业务作恶行为其产生的互联网行为对于其他业务来说属于作弊或垃圾流量。
///
/// 当Service为bri_url时,返回的风险标签有:
/// 1) 社工欺诈 说明: URL为社工欺诈
/// 2) 信息诈骗 说明: URL为信息诈骗
/// 3) 虚假销售 说明: URL为虚假销售
/// 4) 恶意文件 说明: URL为恶意文件
/// 5) 博彩网站 说明: URL为博彩网站
/// 6) 色情网站 说明: URL为色情网站
///
/// 当Service为bri_apk时,返回的风险标签有:
/// 1) 安全 说明: APK为正规应用
/// 2) 一般 说明: APK为未发现问题的正常应用
/// 3) 风险 说明: APK为外挂或色情等风险应用
/// 4) 病毒 说明: APK为包含恶意代码的恶意软件吗,可能破坏系统或者其他app正常使用
/// </summary>
[JsonProperty("Tags")]
public string[] Tags{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamArraySimple(map, prefix + "Tags.", this.Tags);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Bri.V20190328.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBRIRequest : AbstractModel
{
/// <summary>
/// 业务风险情报请求体
/// </summary>
[JsonProperty("RequestData")]
public BRIRequest RequestData{ get; set; }
/// <summary>
/// 客户用于计费的资源ID
/// </summary>
[JsonProperty("ResourceId")]
public string ResourceId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "RequestData.", this.RequestData);
this.SetParamSimple(map, prefix + "ResourceId", this.ResourceId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Bri.V20190328.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeBRIResponse : AbstractModel
{
/// <summary>
/// 业务风险情报响应体
/// </summary>
[JsonProperty("ResponseData")]
public BRIResponse ResponseData{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "ResponseData.", this.ResponseData);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}