lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.667 vs lib/v20220901/client.rb in tencentcloud-sdk-teo-3.0.668
- old
+ new
@@ -1619,9 +1619,35 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 在 CNAME 接入模式下,您需要对站点或者域名的归属权进行验证,可以通过本接口触发验证。若站点通过归属权验证后,后续添加域名无需再验证。详情参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789)。
+
+ # 在 NS 接入模式下,您也可以通过本接口来查询 NS 服务器是否切换成功,详情参考 [修改 DNS 服务器](https://cloud.tencent.com/document/product/1552/90452)。
+
+ # @param request: Request instance for VerifyOwnership.
+ # @type request: :class:`Tencentcloud::teo::V20220901::VerifyOwnershipRequest`
+ # @rtype: :class:`Tencentcloud::teo::V20220901::VerifyOwnershipResponse`
+ def VerifyOwnership(request)
+ body = send_request('VerifyOwnership', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = VerifyOwnershipResponse.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
+
end
end
end
end
\ No newline at end of file