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

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,136 @@
/*
* 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.Domain.V20180808
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Domain.V20180808.Models;
public class DomainClient : AbstractClient{
private const string endpoint = "domain.tencentcloudapi.com";
private const string version = "2018-08-08";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public DomainClient(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 DomainClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 检查域名是否可以注册
/// </summary>
/// <param name="req"><see cref="CheckDomainRequest"/></param>
/// <returns><see cref="CheckDomainResponse"/></returns>
public async Task<CheckDomainResponse> CheckDomain(CheckDomainRequest req)
{
JsonResponseModel<CheckDomainResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CheckDomain");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CheckDomainResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 检查域名是否可以注册
/// </summary>
/// <param name="req"><see cref="CheckDomainRequest"/></param>
/// <returns><see cref="CheckDomainResponse"/></returns>
public CheckDomainResponse CheckDomainSync(CheckDomainRequest req)
{
JsonResponseModel<CheckDomainResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CheckDomain");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CheckDomainResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 按照域名后缀获取对应的价格列表
/// </summary>
/// <param name="req"><see cref="DescribeDomainPriceListRequest"/></param>
/// <returns><see cref="DescribeDomainPriceListResponse"/></returns>
public async Task<DescribeDomainPriceListResponse> DescribeDomainPriceList(DescribeDomainPriceListRequest req)
{
JsonResponseModel<DescribeDomainPriceListResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeDomainPriceList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainPriceListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 按照域名后缀获取对应的价格列表
/// </summary>
/// <param name="req"><see cref="DescribeDomainPriceListRequest"/></param>
/// <returns><see cref="DescribeDomainPriceListResponse"/></returns>
public DescribeDomainPriceListResponse DescribeDomainPriceListSync(DescribeDomainPriceListRequest req)
{
JsonResponseModel<DescribeDomainPriceListResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeDomainPriceList");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainPriceListResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

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.Domain.V20180808.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CheckDomainRequest : AbstractModel
{
/// <summary>
/// 所查询域名名称
/// </summary>
[JsonProperty("DomainName")]
public string DomainName{ get; set; }
/// <summary>
/// 年限
/// </summary>
[JsonProperty("Period")]
public string Period{ 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 + "DomainName", this.DomainName);
this.SetParamSimple(map, prefix + "Period", this.Period);
}
}
}

View File

@@ -0,0 +1,131 @@
/*
* 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.Domain.V20180808.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CheckDomainResponse : AbstractModel
{
/// <summary>
/// 所查询域名名称
/// </summary>
[JsonProperty("DomainName")]
public string DomainName{ get; set; }
/// <summary>
/// 是否能够注册
/// </summary>
[JsonProperty("Available")]
public bool? Available{ get; set; }
/// <summary>
/// 不能注册原因
/// </summary>
[JsonProperty("Reason")]
public string Reason{ get; set; }
/// <summary>
/// 是否是溢价词
/// </summary>
[JsonProperty("Premium")]
public bool? Premium{ get; set; }
/// <summary>
/// 域名价格
/// </summary>
[JsonProperty("Price")]
public ulong? Price{ get; set; }
/// <summary>
/// 是否是敏感词
/// </summary>
[JsonProperty("BlackWord")]
public bool? BlackWord{ get; set; }
/// <summary>
/// 溢价词描述
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Describe")]
public string Describe{ get; set; }
/// <summary>
/// 溢价词的续费价格
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FeeRenew")]
public ulong? FeeRenew{ get; set; }
/// <summary>
/// 域名真实价格
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RealPrice")]
public ulong? RealPrice{ get; set; }
/// <summary>
/// 溢价词的转入价格
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FeeTransfer")]
public ulong? FeeTransfer{ get; set; }
/// <summary>
/// 溢价词的赎回价格
/// </summary>
[JsonProperty("FeeRestore")]
public ulong? FeeRestore{ get; set; }
/// <summary>
/// 检测年限
/// </summary>
[JsonProperty("Period")]
public ulong? Period{ 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.SetParamSimple(map, prefix + "DomainName", this.DomainName);
this.SetParamSimple(map, prefix + "Available", this.Available);
this.SetParamSimple(map, prefix + "Reason", this.Reason);
this.SetParamSimple(map, prefix + "Premium", this.Premium);
this.SetParamSimple(map, prefix + "Price", this.Price);
this.SetParamSimple(map, prefix + "BlackWord", this.BlackWord);
this.SetParamSimple(map, prefix + "Describe", this.Describe);
this.SetParamSimple(map, prefix + "FeeRenew", this.FeeRenew);
this.SetParamSimple(map, prefix + "RealPrice", this.RealPrice);
this.SetParamSimple(map, prefix + "FeeTransfer", this.FeeTransfer);
this.SetParamSimple(map, prefix + "FeeRestore", this.FeeRestore);
this.SetParamSimple(map, prefix + "Period", this.Period);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Domain.V20180808.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDomainPriceListRequest : AbstractModel
{
/// <summary>
/// 查询价格的后缀列表。默认则为全部后缀
/// </summary>
[JsonProperty("TldList")]
public string[] TldList{ get; set; }
/// <summary>
/// 查询购买的年份,默认会列出所有年份的价格
/// </summary>
[JsonProperty("Year")]
public long?[] Year{ get; set; }
/// <summary>
/// 域名的购买类型new 新购renew 续费redem 赎回tran 转入
/// </summary>
[JsonProperty("Operation")]
public string[] Operation{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "TldList.", this.TldList);
this.SetParamArraySimple(map, prefix + "Year.", this.Year);
this.SetParamArraySimple(map, prefix + "Operation.", this.Operation);
}
}
}

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.Domain.V20180808.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDomainPriceListResponse : AbstractModel
{
/// <summary>
/// 域名价格列表
/// </summary>
[JsonProperty("PriceList")]
public PriceInfo[] PriceList{ 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.SetParamArrayObj(map, prefix + "PriceList.", this.PriceList);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Domain.V20180808.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PriceInfo : AbstractModel
{
/// <summary>
/// 域名后缀,例如.com
/// </summary>
[JsonProperty("Tld")]
public string Tld{ get; set; }
/// <summary>
/// 购买年限,范围[1-10]
/// </summary>
[JsonProperty("Year")]
public ulong? Year{ get; set; }
/// <summary>
/// 域名原价
/// </summary>
[JsonProperty("Price")]
public ulong? Price{ get; set; }
/// <summary>
/// 域名现价
/// </summary>
[JsonProperty("RealPrice")]
public ulong? RealPrice{ get; set; }
/// <summary>
/// 商品的购买类型,新购,续费,赎回,转入,续费并转入
/// </summary>
[JsonProperty("Operation")]
public string Operation{ 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 + "Tld", this.Tld);
this.SetParamSimple(map, prefix + "Year", this.Year);
this.SetParamSimple(map, prefix + "Price", this.Price);
this.SetParamSimple(map, prefix + "RealPrice", this.RealPrice);
this.SetParamSimple(map, prefix + "Operation", this.Operation);
}
}
}