代码修改后的版本,全部提交
This commit is contained in:
50
TencentCloud/Wss/V20180426/Models/DeleteCertRequest.cs
Normal file
50
TencentCloud/Wss/V20180426/Models/DeleteCertRequest.cs
Normal 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteCertRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 证书 ID,即通过 GetList 拿到的证书列表的 ID 字段。
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,应填 ssl。
|
||||
/// </summary>
|
||||
[JsonProperty("ModuleType")]
|
||||
public string ModuleType{ 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 + "Id", this.Id);
|
||||
this.SetParamSimple(map, prefix + "ModuleType", this.ModuleType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Wss/V20180426/Models/DeleteCertResponse.cs
Normal file
43
TencentCloud/Wss/V20180426/Models/DeleteCertResponse.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteCertResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <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 + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
92
TencentCloud/Wss/V20180426/Models/DescribeCertListRequest.cs
Normal file
92
TencentCloud/Wss/V20180426/Models/DescribeCertListRequest.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeCertListRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,应填 ssl。
|
||||
/// </summary>
|
||||
[JsonProperty("ModuleType")]
|
||||
public string ModuleType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页数,默认第一页。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public ulong? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每页条数,默认每页20条。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public ulong? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 搜索关键字。
|
||||
/// </summary>
|
||||
[JsonProperty("SearchKey")]
|
||||
public string SearchKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书类型(目前支持:CA=客户端证书,SVR=服务器证书)。
|
||||
/// </summary>
|
||||
[JsonProperty("CertType")]
|
||||
public string CertType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书ID。
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否同时获取证书内容。
|
||||
/// </summary>
|
||||
[JsonProperty("WithCert")]
|
||||
public string WithCert{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 如传,则只返回可以给该域名使用的证书。
|
||||
/// </summary>
|
||||
[JsonProperty("AltDomain")]
|
||||
public string AltDomain{ 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 + "ModuleType", this.ModuleType);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "SearchKey", this.SearchKey);
|
||||
this.SetParamSimple(map, prefix + "CertType", this.CertType);
|
||||
this.SetParamSimple(map, prefix + "Id", this.Id);
|
||||
this.SetParamSimple(map, prefix + "WithCert", this.WithCert);
|
||||
this.SetParamSimple(map, prefix + "AltDomain", this.AltDomain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeCertListResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 总数量。
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public ulong? TotalCount{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 列表。
|
||||
/// </summary>
|
||||
[JsonProperty("CertificateSet")]
|
||||
public SSLCertificate[] CertificateSet{ 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 + "TotalCount", this.TotalCount);
|
||||
this.SetParamArrayObj(map, prefix + "CertificateSet.", this.CertificateSet);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
244
TencentCloud/Wss/V20180426/Models/SSLCertificate.cs
Normal file
244
TencentCloud/Wss/V20180426/Models/SSLCertificate.cs
Normal file
@@ -0,0 +1,244 @@
|
||||
/*
|
||||
* 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SSLCertificate : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 所属账户
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("OwnerUin")]
|
||||
public string OwnerUin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public string ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书来源:trustasia = 亚洲诚信, upload = 用户上传
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("From")]
|
||||
public string From{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书类型
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Type")]
|
||||
public string Type{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书类型(目前支持:CA = 客户端证书,SVR = 服务器证书)
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertType")]
|
||||
public string CertType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书办法者名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ProductZhName")]
|
||||
public string ProductZhName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主域名
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 别名
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Alias")]
|
||||
public string Alias{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态值 0:审核中,1:已通过,2:审核失败,3:已过期,4:已添加云解析记录,5:OV/EV 证书,待提交资料,6:订单取消中,7:已取消,8:已提交资料, 待上传确认函
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public ulong? Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 漏洞扫描状态:INACTIVE = 未开启,ACTIVE = 已开启
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("VulnerabilityStatus")]
|
||||
public string VulnerabilityStatus{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态信息
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("StatusMsg")]
|
||||
public string StatusMsg{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 验证类型
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("VerifyType")]
|
||||
public string VerifyType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书生效时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertBeginTime")]
|
||||
public string CertBeginTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书过期时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertEndTime")]
|
||||
public string CertEndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书过期时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ValidityPeriod")]
|
||||
public string ValidityPeriod{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("InsertTime")]
|
||||
public string InsertTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目信息,ProjectId:项目ID,OwnerUin:项目所属的 uin(默认项目为0),Name:项目名称,CreatorUin:创建项目的 uin,CreateTime:项目创建时间,Info:项目说明
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectInfo")]
|
||||
public SSLProjectInfo ProjectInfo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书ID
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书包含的多个域名(包含主域名)
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("SubjectAltName")]
|
||||
public string[] SubjectAltName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书类型名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("TypeName")]
|
||||
public string TypeName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("StatusName")]
|
||||
public string StatusName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为 VIP 客户
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IsVip")]
|
||||
public bool? IsVip{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否我 DV 版证书
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IsDv")]
|
||||
public bool? IsDv{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为泛域名证书
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IsWildcard")]
|
||||
public bool? IsWildcard{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用了漏洞扫描功能
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IsVulnerability")]
|
||||
public bool? IsVulnerability{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Cert")]
|
||||
public string Cert{ 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 + "OwnerUin", this.OwnerUin);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamSimple(map, prefix + "From", this.From);
|
||||
this.SetParamSimple(map, prefix + "Type", this.Type);
|
||||
this.SetParamSimple(map, prefix + "CertType", this.CertType);
|
||||
this.SetParamSimple(map, prefix + "ProductZhName", this.ProductZhName);
|
||||
this.SetParamSimple(map, prefix + "Domain", this.Domain);
|
||||
this.SetParamSimple(map, prefix + "Alias", this.Alias);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
this.SetParamSimple(map, prefix + "VulnerabilityStatus", this.VulnerabilityStatus);
|
||||
this.SetParamSimple(map, prefix + "StatusMsg", this.StatusMsg);
|
||||
this.SetParamSimple(map, prefix + "VerifyType", this.VerifyType);
|
||||
this.SetParamSimple(map, prefix + "CertBeginTime", this.CertBeginTime);
|
||||
this.SetParamSimple(map, prefix + "CertEndTime", this.CertEndTime);
|
||||
this.SetParamSimple(map, prefix + "ValidityPeriod", this.ValidityPeriod);
|
||||
this.SetParamSimple(map, prefix + "InsertTime", this.InsertTime);
|
||||
this.SetParamObj(map, prefix + "ProjectInfo.", this.ProjectInfo);
|
||||
this.SetParamSimple(map, prefix + "Id", this.Id);
|
||||
this.SetParamArraySimple(map, prefix + "SubjectAltName.", this.SubjectAltName);
|
||||
this.SetParamSimple(map, prefix + "TypeName", this.TypeName);
|
||||
this.SetParamSimple(map, prefix + "StatusName", this.StatusName);
|
||||
this.SetParamSimple(map, prefix + "IsVip", this.IsVip);
|
||||
this.SetParamSimple(map, prefix + "IsDv", this.IsDv);
|
||||
this.SetParamSimple(map, prefix + "IsWildcard", this.IsWildcard);
|
||||
this.SetParamSimple(map, prefix + "IsVulnerability", this.IsVulnerability);
|
||||
this.SetParamSimple(map, prefix + "Cert", this.Cert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
84
TencentCloud/Wss/V20180426/Models/SSLProjectInfo.cs
Normal file
84
TencentCloud/Wss/V20180426/Models/SSLProjectInfo.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class SSLProjectInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public string ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目所属的 uin(默认项目为0)
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("OwnerUin")]
|
||||
public long? OwnerUin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目名称
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建项目的 uin
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CreatorUin")]
|
||||
public long? CreatorUin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目创建时间
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目说明
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Info")]
|
||||
public string Info{ 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 + "ProjectId", this.ProjectId);
|
||||
this.SetParamSimple(map, prefix + "OwnerUin", this.OwnerUin);
|
||||
this.SetParamSimple(map, prefix + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "CreatorUin", this.CreatorUin);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "Info", this.Info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Wss/V20180426/Models/UploadCertRequest.cs
Normal file
78
TencentCloud/Wss/V20180426/Models/UploadCertRequest.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class UploadCertRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 证书内容。
|
||||
/// </summary>
|
||||
[JsonProperty("Cert")]
|
||||
public string Cert{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书类型(目前支持:CA 为客户端证书,SVR 为服务器证书)。
|
||||
/// </summary>
|
||||
[JsonProperty("CertType")]
|
||||
public string CertType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID,详见用户指南的 [项目与标签](https://cloud.tencent.com/document/product/598/32738)。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public string ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模块名称,应填 ssl。
|
||||
/// </summary>
|
||||
[JsonProperty("ModuleType")]
|
||||
public string ModuleType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书私钥,certType=SVR 时必填。
|
||||
/// </summary>
|
||||
[JsonProperty("Key")]
|
||||
public string Key{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书备注。
|
||||
/// </summary>
|
||||
[JsonProperty("Alias")]
|
||||
public string Alias{ 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 + "Cert", this.Cert);
|
||||
this.SetParamSimple(map, prefix + "CertType", this.CertType);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamSimple(map, prefix + "ModuleType", this.ModuleType);
|
||||
this.SetParamSimple(map, prefix + "Key", this.Key);
|
||||
this.SetParamSimple(map, prefix + "Alias", this.Alias);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Wss/V20180426/Models/UploadCertResponse.cs
Normal file
50
TencentCloud/Wss/V20180426/Models/UploadCertResponse.cs
Normal 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.Wss.V20180426.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class UploadCertResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 证书ID。
|
||||
/// </summary>
|
||||
[JsonProperty("Id")]
|
||||
public string Id{ 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 + "Id", this.Id);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
176
TencentCloud/Wss/V20180426/WssClient.cs
Normal file
176
TencentCloud/Wss/V20180426/WssClient.cs
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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.Wss.V20180426
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Wss.V20180426.Models;
|
||||
|
||||
public class WssClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "wss.tencentcloudapi.com";
|
||||
private const string version = "2018-04-26";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public WssClient(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 WssClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DeleteCert)用于删除证书。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteCertRequest"/></param>
|
||||
/// <returns><see cref="DeleteCertResponse"/></returns>
|
||||
public async Task<DeleteCertResponse> DeleteCert(DeleteCertRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeleteCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DeleteCert)用于删除证书。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteCertRequest"/></param>
|
||||
/// <returns><see cref="DeleteCertResponse"/></returns>
|
||||
public DeleteCertResponse DeleteCertSync(DeleteCertRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeleteCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeCertList)用于获取证书列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeCertListRequest"/></param>
|
||||
/// <returns><see cref="DescribeCertListResponse"/></returns>
|
||||
public async Task<DescribeCertListResponse> DescribeCertList(DescribeCertListRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeCertListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeCertList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeCertListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeCertList)用于获取证书列表。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeCertListRequest"/></param>
|
||||
/// <returns><see cref="DescribeCertListResponse"/></returns>
|
||||
public DescribeCertListResponse DescribeCertListSync(DescribeCertListRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeCertListResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeCertList");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeCertListResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(UploadCert)用于上传证书。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="UploadCertRequest"/></param>
|
||||
/// <returns><see cref="UploadCertResponse"/></returns>
|
||||
public async Task<UploadCertResponse> UploadCert(UploadCertRequest req)
|
||||
{
|
||||
JsonResponseModel<UploadCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "UploadCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UploadCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(UploadCert)用于上传证书。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="UploadCertRequest"/></param>
|
||||
/// <returns><see cref="UploadCertResponse"/></returns>
|
||||
public UploadCertResponse UploadCertSync(UploadCertRequest req)
|
||||
{
|
||||
JsonResponseModel<UploadCertResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "UploadCert");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UploadCertResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user