1 Star 17 Fork 2

tencentcloud/tencentcloud-sdk-python

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
dnspod_client.py 67.87 KB
Copy Edit Raw Blame History
tencentcloud authored 2024-09-11 04:16 . release 3.0.1229
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760
# -*- coding: utf8 -*-
# Copyright (c) 2017-2021 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.
import json
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
from tencentcloud.common.abstract_client import AbstractClient
from tencentcloud.dnspod.v20210323 import models
class DnspodClient(AbstractClient):
_apiVersion = '2021-03-23'
_endpoint = 'dnspod.tencentcloudapi.com'
_service = 'dnspod'
def CheckRecordSnapshotRollback(self, request):
"""回滚前检查单条记录
:param request: Request instance for CheckRecordSnapshotRollback.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CheckRecordSnapshotRollbackRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CheckRecordSnapshotRollbackResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CheckRecordSnapshotRollback", params, headers=headers)
response = json.loads(body)
model = models.CheckRecordSnapshotRollbackResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CheckSnapshotRollback(self, request):
"""快照回滚前检查
:param request: Request instance for CheckSnapshotRollback.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CheckSnapshotRollbackRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CheckSnapshotRollbackResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CheckSnapshotRollback", params, headers=headers)
response = json.loads(body)
model = models.CheckSnapshotRollbackResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDeal(self, request):
"""DNSPod商品下单
:param request: Request instance for CreateDeal.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDealRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDealResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDeal", params, headers=headers)
response = json.loads(body)
model = models.CreateDealResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDomain(self, request):
"""添加域名
:param request: Request instance for CreateDomain.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDomain", params, headers=headers)
response = json.loads(body)
model = models.CreateDomainResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDomainAlias(self, request):
"""创建域名别名
:param request: Request instance for CreateDomainAlias.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainAliasRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainAliasResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDomainAlias", params, headers=headers)
response = json.loads(body)
model = models.CreateDomainAliasResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDomainBatch(self, request):
"""批量添加域名
:param request: Request instance for CreateDomainBatch.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainBatchRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainBatchResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDomainBatch", params, headers=headers)
response = json.loads(body)
model = models.CreateDomainBatchResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDomainCustomLine(self, request):
"""创建域名的自定义线路
:param request: Request instance for CreateDomainCustomLine.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainCustomLineRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainCustomLineResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDomainCustomLine", params, headers=headers)
response = json.loads(body)
model = models.CreateDomainCustomLineResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDomainGroup(self, request):
"""创建域名分组
:param request: Request instance for CreateDomainGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateDomainGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDomainGroup", params, headers=headers)
response = json.loads(body)
model = models.CreateDomainGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateRecord(self, request):
"""添加记录
备注:新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试
:param request: Request instance for CreateRecord.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateRecord", params, headers=headers)
response = json.loads(body)
model = models.CreateRecordResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateRecordBatch(self, request):
"""批量添加记录
:param request: Request instance for CreateRecordBatch.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordBatchRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordBatchResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateRecordBatch", params, headers=headers)
response = json.loads(body)
model = models.CreateRecordBatchResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateRecordGroup(self, request):
"""添加记录分组
:param request: Request instance for CreateRecordGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateRecordGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateRecordGroup", params, headers=headers)
response = json.loads(body)
model = models.CreateRecordGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateSnapshot(self, request):
"""创建快照
:param request: Request instance for CreateSnapshot.
:type request: :class:`tencentcloud.dnspod.v20210323.models.CreateSnapshotRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.CreateSnapshotResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateSnapshot", params, headers=headers)
response = json.loads(body)
model = models.CreateSnapshotResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteDomain(self, request):
"""删除域名
:param request: Request instance for DeleteDomain.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteDomain", params, headers=headers)
response = json.loads(body)
model = models.DeleteDomainResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteDomainAlias(self, request):
"""删除域名别名
:param request: Request instance for DeleteDomainAlias.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainAliasRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainAliasResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteDomainAlias", params, headers=headers)
response = json.loads(body)
model = models.DeleteDomainAliasResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteDomainBatch(self, request):
"""批量删除域名
:param request: Request instance for DeleteDomainBatch.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainBatchRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainBatchResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteDomainBatch", params, headers=headers)
response = json.loads(body)
model = models.DeleteDomainBatchResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteDomainCustomLine(self, request):
"""删除域名的自定义线路
:param request: Request instance for DeleteDomainCustomLine.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainCustomLineRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteDomainCustomLineResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteDomainCustomLine", params, headers=headers)
response = json.loads(body)
model = models.DeleteDomainCustomLineResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteRecord(self, request):
"""删除记录
:param request: Request instance for DeleteRecord.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteRecord", params, headers=headers)
response = json.loads(body)
model = models.DeleteRecordResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteRecordBatch(self, request):
"""批量删除解析记录
备注:因存储限制, 建议一次批量删除最多2000条
:param request: Request instance for DeleteRecordBatch.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordBatchRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordBatchResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteRecordBatch", params, headers=headers)
response = json.loads(body)
model = models.DeleteRecordBatchResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteRecordGroup(self, request):
"""删除记录分组
:param request: Request instance for DeleteRecordGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteRecordGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteRecordGroup", params, headers=headers)
response = json.loads(body)
model = models.DeleteRecordGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteShareDomain(self, request):
"""按账号删除域名共享
:param request: Request instance for DeleteShareDomain.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteShareDomainRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteShareDomainResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteShareDomain", params, headers=headers)
response = json.loads(body)
model = models.DeleteShareDomainResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DeleteSnapshot(self, request):
"""删除快照
:param request: Request instance for DeleteSnapshot.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DeleteSnapshotRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DeleteSnapshotResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DeleteSnapshot", params, headers=headers)
response = json.loads(body)
model = models.DeleteSnapshotResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeBatchTask(self, request):
"""获取任务详情
:param request: Request instance for DescribeBatchTask.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeBatchTaskRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeBatchTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeBatchTask", params, headers=headers)
response = json.loads(body)
model = models.DescribeBatchTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomain(self, request):
"""获取域名信息
:param request: Request instance for DescribeDomain.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomain", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainAliasList(self, request):
"""获取域名别名列表
:param request: Request instance for DescribeDomainAliasList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainAliasListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainAliasListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainAliasList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainAliasListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainAnalytics(self, request):
"""统计各个域名的解析量,帮助您了解流量情况、时间段分布。支持查看近 3 个月内的统计情况
:param request: Request instance for DescribeDomainAnalytics.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainAnalyticsRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainAnalyticsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainAnalytics", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainAnalyticsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainCustomLineList(self, request):
"""获取域名的自定义线路列表
:param request: Request instance for DescribeDomainCustomLineList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainCustomLineListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainCustomLineListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainCustomLineList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainCustomLineListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainFilterList(self, request):
"""获取域名筛选列表
备注:新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试
:param request: Request instance for DescribeDomainFilterList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainFilterListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainFilterListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainFilterList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainFilterListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainGroupList(self, request):
"""获取域名分组列表
:param request: Request instance for DescribeDomainGroupList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainGroupListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainGroupListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainGroupList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainGroupListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainList(self, request):
"""获取域名列表
:param request: Request instance for DescribeDomainList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainLogList(self, request):
"""获取域名日志
:param request: Request instance for DescribeDomainLogList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainLogListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainLogListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainLogList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainLogListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainPreview(self, request):
"""获取域名概览信息
:param request: Request instance for DescribeDomainPreview.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainPreviewRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainPreviewResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainPreview", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainPreviewResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainPurview(self, request):
"""获取域名权限
:param request: Request instance for DescribeDomainPurview.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainPurviewRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainPurviewResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainPurview", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainPurviewResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainShareInfo(self, request):
"""获取域名共享信息
:param request: Request instance for DescribeDomainShareInfo.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainShareInfoRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainShareInfoResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainShareInfo", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainShareInfoResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainShareUserList(self, request):
"""获取指定域名的已共享列表
:param request: Request instance for DescribeDomainShareUserList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainShareUserListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainShareUserListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainShareUserList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainShareUserListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDomainWhois(self, request):
"""获取域名Whois信息
:param request: Request instance for DescribeDomainWhois.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainWhoisRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeDomainWhoisResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDomainWhois", params, headers=headers)
response = json.loads(body)
model = models.DescribeDomainWhoisResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribePackageDetail(self, request):
"""获取各套餐配置详情
:param request: Request instance for DescribePackageDetail.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribePackageDetailRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribePackageDetailResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribePackageDetail", params, headers=headers)
response = json.loads(body)
model = models.DescribePackageDetailResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecord(self, request):
"""获取记录信息
:param request: Request instance for DescribeRecord.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecord", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordExistExceptDefaultNS(self, request):
"""判断是否有除系统默认的@-NS记录之外的记录存在
:param request: Request instance for DescribeRecordExistExceptDefaultNS.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordExistExceptDefaultNSRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordExistExceptDefaultNSResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordExistExceptDefaultNS", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordExistExceptDefaultNSResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordFilterList(self, request):
"""获取某个域名下的解析记录列表
备注:
1. 新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试
2. API获取的记录总条数会比控制台多2条,原因是: 为了防止用户误操作导致解析服务不可用,对2021-10-29 14:24:26之后添加的域名,在控制台都不显示这2条NS记录。
:param request: Request instance for DescribeRecordFilterList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordFilterListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordFilterListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordFilterList", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordFilterListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordGroupList(self, request):
"""查询解析记录分组列表
:param request: Request instance for DescribeRecordGroupList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordGroupListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordGroupListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordGroupList", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordGroupListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordLineCategoryList(self, request):
"""按分类返回线路列表
:param request: Request instance for DescribeRecordLineCategoryList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordLineCategoryListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordLineCategoryListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordLineCategoryList", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordLineCategoryListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordLineList(self, request):
"""获取等级允许的线路
:param request: Request instance for DescribeRecordLineList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordLineListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordLineListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordLineList", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordLineListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordList(self, request):
"""获取某个域名下的解析记录列表
备注:
1. 新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试
2. API获取的记录总条数会比控制台多2条,原因是: 为了防止用户误操作导致解析服务不可用,对2021-10-29 14:24:26之后添加的域名,在控制台都不显示这2条NS记录。
:param request: Request instance for DescribeRecordList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordList", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordSnapshotRollbackResult(self, request):
"""查询解析记录重新回滚的结果
:param request: Request instance for DescribeRecordSnapshotRollbackResult.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordSnapshotRollbackResultRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordSnapshotRollbackResultResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordSnapshotRollbackResult", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordSnapshotRollbackResultResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRecordType(self, request):
"""获取等级允许的记录类型
:param request: Request instance for DescribeRecordType.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordTypeRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeRecordTypeResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRecordType", params, headers=headers)
response = json.loads(body)
model = models.DescribeRecordTypeResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSnapshotConfig(self, request):
"""查询解析快照配置
:param request: Request instance for DescribeSnapshotConfig.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotConfigRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotConfigResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSnapshotConfig", params, headers=headers)
response = json.loads(body)
model = models.DescribeSnapshotConfigResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSnapshotList(self, request):
"""查询快照列表
:param request: Request instance for DescribeSnapshotList.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotListRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSnapshotList", params, headers=headers)
response = json.loads(body)
model = models.DescribeSnapshotListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSnapshotRollbackResult(self, request):
"""查询快照回滚结果
:param request: Request instance for DescribeSnapshotRollbackResult.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotRollbackResultRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotRollbackResultResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSnapshotRollbackResult", params, headers=headers)
response = json.loads(body)
model = models.DescribeSnapshotRollbackResultResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSnapshotRollbackTask(self, request):
"""查询最近一次回滚
:param request: Request instance for DescribeSnapshotRollbackTask.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotRollbackTaskRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeSnapshotRollbackTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSnapshotRollbackTask", params, headers=headers)
response = json.loads(body)
model = models.DescribeSnapshotRollbackTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSubdomainAnalytics(self, request):
"""统计子域名的解析量,帮助您了解流量情况、时间段分布。支持查看近 3 个月内的统计情况。仅付费套餐域名可用。
:param request: Request instance for DescribeSubdomainAnalytics.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeSubdomainAnalyticsRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeSubdomainAnalyticsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSubdomainAnalytics", params, headers=headers)
response = json.loads(body)
model = models.DescribeSubdomainAnalyticsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeUserDetail(self, request):
"""获取账户信息
:param request: Request instance for DescribeUserDetail.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeUserDetailRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeUserDetailResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeUserDetail", params, headers=headers)
response = json.loads(body)
model = models.DescribeUserDetailResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeVASStatistic(self, request):
"""获取域名增值服务用量
:param request: Request instance for DescribeVASStatistic.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DescribeVASStatisticRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DescribeVASStatisticResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeVASStatistic", params, headers=headers)
response = json.loads(body)
model = models.DescribeVASStatisticResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DownloadSnapshot(self, request):
"""下载快照
:param request: Request instance for DownloadSnapshot.
:type request: :class:`tencentcloud.dnspod.v20210323.models.DownloadSnapshotRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.DownloadSnapshotResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DownloadSnapshot", params, headers=headers)
response = json.loads(body)
model = models.DownloadSnapshotResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainCustomLine(self, request):
"""修改域名的自定义线路
:param request: Request instance for ModifyDomainCustomLine.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainCustomLineRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainCustomLineResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainCustomLine", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainCustomLineResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainLock(self, request):
"""锁定域名
:param request: Request instance for ModifyDomainLock.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainLockRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainLockResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainLock", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainLockResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainOwner(self, request):
"""域名过户
:param request: Request instance for ModifyDomainOwner.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainOwnerRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainOwnerResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainOwner", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainOwnerResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainRemark(self, request):
"""设置域名备注
:param request: Request instance for ModifyDomainRemark.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainRemarkRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainRemarkResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainRemark", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainRemarkResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainStatus(self, request):
"""修改域名状态
:param request: Request instance for ModifyDomainStatus.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainStatusRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainStatusResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainStatus", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainStatusResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainToGroup(self, request):
"""修改域名所属分组
:param request: Request instance for ModifyDomainToGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainToGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainToGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainToGroup", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainToGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDomainUnlock(self, request):
"""域名锁定解锁
:param request: Request instance for ModifyDomainUnlock.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainUnlockRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDomainUnlockResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDomainUnlock", params, headers=headers)
response = json.loads(body)
model = models.ModifyDomainUnlockResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyDynamicDNS(self, request):
"""更新动态 DNS 记录
:param request: Request instance for ModifyDynamicDNS.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyDynamicDNSRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyDynamicDNSResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyDynamicDNS", params, headers=headers)
response = json.loads(body)
model = models.ModifyDynamicDNSResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyPackageAutoRenew(self, request):
"""DNS 解析套餐自动续费设置
:param request: Request instance for ModifyPackageAutoRenew.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyPackageAutoRenewRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyPackageAutoRenewResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyPackageAutoRenew", params, headers=headers)
response = json.loads(body)
model = models.ModifyPackageAutoRenewResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecord(self, request):
"""修改记录
:param request: Request instance for ModifyRecord.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecord", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordBatch(self, request):
"""批量修改记录
:param request: Request instance for ModifyRecordBatch.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordBatchRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordBatchResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordBatch", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordBatchResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordFields(self, request):
"""修改记录可选字段
:param request: Request instance for ModifyRecordFields.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordFieldsRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordFieldsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordFields", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordFieldsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordGroup(self, request):
"""修改记录分组
:param request: Request instance for ModifyRecordGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordGroup", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordRemark(self, request):
"""设置记录备注
:param request: Request instance for ModifyRecordRemark.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordRemarkRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordRemarkResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordRemark", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordRemarkResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordStatus(self, request):
"""修改解析记录的状态
:param request: Request instance for ModifyRecordStatus.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordStatusRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordStatusResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordStatus", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordStatusResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyRecordToGroup(self, request):
"""将记录添加到分组
:param request: Request instance for ModifyRecordToGroup.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordToGroupRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyRecordToGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyRecordToGroup", params, headers=headers)
response = json.loads(body)
model = models.ModifyRecordToGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifySnapshotConfig(self, request):
"""修改快照配置
:param request: Request instance for ModifySnapshotConfig.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifySnapshotConfigRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifySnapshotConfigResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifySnapshotConfig", params, headers=headers)
response = json.loads(body)
model = models.ModifySnapshotConfigResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifySubdomainStatus(self, request):
"""暂停子域名的解析记录
:param request: Request instance for ModifySubdomainStatus.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifySubdomainStatusRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifySubdomainStatusResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifySubdomainStatus", params, headers=headers)
response = json.loads(body)
model = models.ModifySubdomainStatusResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyVasAutoRenewStatus(self, request):
"""增值服务自动续费设置
:param request: Request instance for ModifyVasAutoRenewStatus.
:type request: :class:`tencentcloud.dnspod.v20210323.models.ModifyVasAutoRenewStatusRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.ModifyVasAutoRenewStatusResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyVasAutoRenewStatus", params, headers=headers)
response = json.loads(body)
model = models.ModifyVasAutoRenewStatusResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def PayOrderWithBalance(self, request):
"""DNSPod商品余额支付
:param request: Request instance for PayOrderWithBalance.
:type request: :class:`tencentcloud.dnspod.v20210323.models.PayOrderWithBalanceRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.PayOrderWithBalanceResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("PayOrderWithBalance", params, headers=headers)
response = json.loads(body)
model = models.PayOrderWithBalanceResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def RollbackRecordSnapshot(self, request):
"""重新回滚指定解析记录快照
:param request: Request instance for RollbackRecordSnapshot.
:type request: :class:`tencentcloud.dnspod.v20210323.models.RollbackRecordSnapshotRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.RollbackRecordSnapshotResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("RollbackRecordSnapshot", params, headers=headers)
response = json.loads(body)
model = models.RollbackRecordSnapshotResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def RollbackSnapshot(self, request):
"""回滚快照
:param request: Request instance for RollbackSnapshot.
:type request: :class:`tencentcloud.dnspod.v20210323.models.RollbackSnapshotRequest`
:rtype: :class:`tencentcloud.dnspod.v20210323.models.RollbackSnapshotResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("RollbackSnapshot", params, headers=headers)
response = json.loads(body)
model = models.RollbackSnapshotResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-python.git
git@gitee.com:tencentcloud/tencentcloud-sdk-python.git
tencentcloud
tencentcloud-sdk-python
tencentcloud-sdk-python
master

Search