tencentcloud-sdk-teo 3.0.1161 → 3.0.1163

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 702ddf8b099ce200be5fd067a0697ae180920ab8
4
- data.tar.gz: e0b3f4b5b2287da071561a89098ac069b52d22d0
3
+ metadata.gz: b75acf36f16e5e6ceaa027d487863e0158f1f3b6
4
+ data.tar.gz: b477a1b05a2fb1535d25d89f9c41f4246e0751bd
5
5
  SHA512:
6
- metadata.gz: cffbaf4882614e678d2c1545059fa010debcac2fe88b01292700ffad75b9014b47e84caab725450715283beb2dc0936269e515132c6b48ed3bba23b35e526dcd
7
- data.tar.gz: 394e21b81cb16bb24ddc0f3b1bec3a81d7582b3e852e81baacec535be7a4b17db9a8534447c6573446d3046efb485f75ea1bdeb4c55882cc5f7bbe135b4ec732
6
+ metadata.gz: 61a86efc5f7ce4e2074ba8189aa9cdfe51239b862b88594b6b9181958834f1ce1eef178561c10d22c550edf4c00cc07b72ce1f6fc19a9dd3accdce82f6fdb109
7
+ data.tar.gz: 4453ae5926ec76d5e6a1a2bfa6e6e6642f4b026ff4d8758c180fdac9195a1d081e4c578c19426c89f6b07e45fa09c171dc322a8ad4d07ca94a681a73e93e369e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1161
1
+ 3.0.1163
@@ -29,6 +29,40 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 申请免费证书时,如果您需要通过使用 DNS 委派验证或者文件验证进行申请,您可以调用该接口来进行发起证书申请并根据申请方式来获取对应的验证内容。调用接口的顺序如下:
33
+ # 第一步:调用 ApplyFreeCertificate,指定申请免费证书的校验方式,获取验证内容;
34
+ # 第二步:为相应域名按照验证内容配置;
35
+ # 第三步:调用CheckFreeCertificateVerification 验证,验证通过后即完成免费证书申请;
36
+ # 第四步:调用ModifyHostsCertificate,下发域名证书为使用 EdgeOne 免费证书配置。
37
+
38
+ # 申请方式的介绍可参考文档:[免费证书申请说明](https://cloud.tencent.com/document/product/1552/90437)
39
+ # 说明:
40
+ # - 仅 CNAME 接入模式可调用该接口来指定免费证书申请方式。NS/DNSPod 托管接入模式都是使用自动验证来申请免费证书,无需调用该接口。
41
+ # - 如果您需要切换免费证书验证方式,您可以重新调用本接口通过修改 VerificationMethod 字段来进行变更。
42
+ # - 同个域名只能申请一本免费证书,在调用本接口后,后台会触发申请免费证书相关任务,您需要在2 天内,完成域名验证信息的相关配置,然后完成证书验证。
43
+
44
+ # @param request: Request instance for ApplyFreeCertificate.
45
+ # @type request: :class:`Tencentcloud::teo::V20220901::ApplyFreeCertificateRequest`
46
+ # @rtype: :class:`Tencentcloud::teo::V20220901::ApplyFreeCertificateResponse`
47
+ def ApplyFreeCertificate(request)
48
+ body = send_request('ApplyFreeCertificate', request.serialize)
49
+ response = JSON.parse(body)
50
+ if response['Response'].key?('Error') == false
51
+ model = ApplyFreeCertificateResponse.new
52
+ model.deserialize(response['Response'])
53
+ model
54
+ else
55
+ code = response['Response']['Error']['Code']
56
+ message = response['Response']['Error']['Message']
57
+ reqid = response['Response']['RequestId']
58
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
59
+ end
60
+ rescue TencentCloud::Common::TencentCloudSDKException => e
61
+ raise e
62
+ rescue StandardError => e
63
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
64
+ end
65
+
32
66
  # 操作安全策略模板,支持将域名绑定或换绑到指定的策略模板,或者从指定的策略模板解绑。
33
67
 
34
68
  # @param request: Request instance for BindSecurityTemplateToEntity.
@@ -125,6 +159,31 @@ module TencentCloud
125
159
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
160
  end
127
161
 
162
+ # 该接口用于验证免费证书并获取免费证书申请结果。如果验证通过,可通过该接口查询到对应域名申请的免费证书信息,如果申请失败,该接口将返回对应的验证失败信息。
163
+ # 在触发[申请免费证书接口](https://cloud.tencent.com/document/product/1552/90437)后,您可以通过本接口检查免费证书申请结果。在免费证书申请成功后, 还需要通过[配置域名证书](https://tcloud4api.woa.com/document/product/1657/80723?!preview)接口配置,才能将免费证书部署至加速域上。
164
+
165
+ # @param request: Request instance for CheckFreeCertificateVerification.
166
+ # @type request: :class:`Tencentcloud::teo::V20220901::CheckFreeCertificateVerificationRequest`
167
+ # @rtype: :class:`Tencentcloud::teo::V20220901::CheckFreeCertificateVerificationResponse`
168
+ def CheckFreeCertificateVerification(request)
169
+ body = send_request('CheckFreeCertificateVerification', request.serialize)
170
+ response = JSON.parse(body)
171
+ if response['Response'].key?('Error') == false
172
+ model = CheckFreeCertificateVerificationResponse.new
173
+ model.deserialize(response['Response'])
174
+ model
175
+ else
176
+ code = response['Response']['Error']['Code']
177
+ message = response['Response']['Error']['Message']
178
+ reqid = response['Response']['RequestId']
179
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
180
+ end
181
+ rescue TencentCloud::Common::TencentCloudSDKException => e
182
+ raise e
183
+ rescue StandardError => e
184
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
185
+ end
186
+
128
187
  # 本接口用于多通道安全加速网关回源 IP 网段发生变更时,确认已将最新回源 IP 网段更新至源站防火墙。
129
188
 
130
189
  # @param request: Request instance for ConfirmMultiPathGatewayOriginACL.
@@ -1146,6 +1146,63 @@ module TencentCloud
1146
1146
  end
1147
1147
  end
1148
1148
 
1149
+ # ApplyFreeCertificate请求参数结构体
1150
+ class ApplyFreeCertificateRequest < TencentCloud::Common::AbstractModel
1151
+ # @param ZoneId: 站点ID。
1152
+ # @type ZoneId: String
1153
+ # @param Domain: 申请免费证书的目标域名。
1154
+ # @type Domain: String
1155
+ # @param VerificationMethod: 申请免费证书时验证方式,详细验证方式说明参考[免费证书申请方式说明文档](https://cloud.tencent.com/document/product/1552/90437) ,相关取值有:
1156
+ # <li>http_challenge:HTTP 访问文件验证方式,通过 HTTP 访问域名指定 URL 获取文件信息以完成免费证书申请验证;</li>
1157
+ # <li>dns_challenge:DNS 委派验证方式,通过添加指定的主机记录解析指向 EdgeOne 以完成免费证书申请验证。</li>
1158
+ # 注意:在触发本接口后,你需要根据返回的验证信息,完成验证内容配置。配置完成后,还需要通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口进行验证,验证通过后,即可申请成功。在免费证书申请成功后,你可以调用<a href = 'https://cloud.tencent.com/document/product/1552/80764'>配置域名证书</a>接口为当前域名部署免费证书。
1159
+ # @type VerificationMethod: String
1160
+
1161
+ attr_accessor :ZoneId, :Domain, :VerificationMethod
1162
+
1163
+ def initialize(zoneid=nil, domain=nil, verificationmethod=nil)
1164
+ @ZoneId = zoneid
1165
+ @Domain = domain
1166
+ @VerificationMethod = verificationmethod
1167
+ end
1168
+
1169
+ def deserialize(params)
1170
+ @ZoneId = params['ZoneId']
1171
+ @Domain = params['Domain']
1172
+ @VerificationMethod = params['VerificationMethod']
1173
+ end
1174
+ end
1175
+
1176
+ # ApplyFreeCertificate返回参数结构体
1177
+ class ApplyFreeCertificateResponse < TencentCloud::Common::AbstractModel
1178
+ # @param DnsVerification: 当 VerificationMethod 为 dns_challenge 时,域名申请免费证书的相关验证信息。
1179
+ # @type DnsVerification: :class:`Tencentcloud::Teo.v20220901.models.DnsVerification`
1180
+ # @param FileVerification: 当 VerificationMethod 为 http_challenge 时,域名申请免费证书的相关验证信息。
1181
+ # @type FileVerification: :class:`Tencentcloud::Teo.v20220901.models.FileVerification`
1182
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1183
+ # @type RequestId: String
1184
+
1185
+ attr_accessor :DnsVerification, :FileVerification, :RequestId
1186
+
1187
+ def initialize(dnsverification=nil, fileverification=nil, requestid=nil)
1188
+ @DnsVerification = dnsverification
1189
+ @FileVerification = fileverification
1190
+ @RequestId = requestid
1191
+ end
1192
+
1193
+ def deserialize(params)
1194
+ unless params['DnsVerification'].nil?
1195
+ @DnsVerification = DnsVerification.new
1196
+ @DnsVerification.deserialize(params['DnsVerification'])
1197
+ end
1198
+ unless params['FileVerification'].nil?
1199
+ @FileVerification = FileVerification.new
1200
+ @FileVerification.deserialize(params['FileVerification'])
1201
+ end
1202
+ @RequestId = params['RequestId']
1203
+ end
1204
+ end
1205
+
1149
1206
  # 站点归属信息
1150
1207
  class AscriptionInfo < TencentCloud::Common::AbstractModel
1151
1208
  # @param Subdomain: 主机记录。
@@ -2840,6 +2897,55 @@ module TencentCloud
2840
2897
  end
2841
2898
  end
2842
2899
 
2900
+ # CheckFreeCertificateVerification请求参数结构体
2901
+ class CheckFreeCertificateVerificationRequest < TencentCloud::Common::AbstractModel
2902
+ # @param ZoneId: 站点 ID。
2903
+ # @type ZoneId: String
2904
+ # @param Domain: 加速域名,该域名为[申请免费证书](https://tcloud4api.woa.com/document/product/1657/927654?!preview&!document=1)时使用的域名。
2905
+ # @type Domain: String
2906
+
2907
+ attr_accessor :ZoneId, :Domain
2908
+
2909
+ def initialize(zoneid=nil, domain=nil)
2910
+ @ZoneId = zoneid
2911
+ @Domain = domain
2912
+ end
2913
+
2914
+ def deserialize(params)
2915
+ @ZoneId = params['ZoneId']
2916
+ @Domain = params['Domain']
2917
+ end
2918
+ end
2919
+
2920
+ # CheckFreeCertificateVerification返回参数结构体
2921
+ class CheckFreeCertificateVerificationResponse < TencentCloud::Common::AbstractModel
2922
+ # @param CommonName: 免费证书申请成功时,该证书颁发给的域名。
2923
+ # 注意:一个域名只允许申请一本免费证书, 如果已经有泛域名申请了免费证书的情况下,其子域名会匹配使用该泛域名证书。
2924
+ # @type CommonName: String
2925
+ # @param SignatureAlgorithm: 免费证书申请成功时,该证书使用的签名算法,当前仅支持 RSA 2048。
2926
+ # @type SignatureAlgorithm: String
2927
+ # @param ExpireTime: 免费证书申请成功时,该证书的过期时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
2928
+ # @type ExpireTime: String
2929
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2930
+ # @type RequestId: String
2931
+
2932
+ attr_accessor :CommonName, :SignatureAlgorithm, :ExpireTime, :RequestId
2933
+
2934
+ def initialize(commonname=nil, signaturealgorithm=nil, expiretime=nil, requestid=nil)
2935
+ @CommonName = commonname
2936
+ @SignatureAlgorithm = signaturealgorithm
2937
+ @ExpireTime = expiretime
2938
+ @RequestId = requestid
2939
+ end
2940
+
2941
+ def deserialize(params)
2942
+ @CommonName = params['CommonName']
2943
+ @SignatureAlgorithm = params['SignatureAlgorithm']
2944
+ @ExpireTime = params['ExpireTime']
2945
+ @RequestId = params['RequestId']
2946
+ end
2947
+ end
2948
+
2843
2949
  # 各个健康检查区域下源站的健康状态。
2844
2950
  class CheckRegionHealthStatus < TencentCloud::Common::AbstractModel
2845
2951
  # @param Region: 健康检查区域,ISO-3166-1 两位字母代码。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1161
4
+ version: 3.0.1163
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-04 00:00:00.000000000 Z
11
+ date: 2025-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common