tencentcloud-sdk-python-domain 3.0.1135__tar.gz → 3.0.1141__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/setup.py +1 -1
  3. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/domain/v20180808/domain_client.py +23 -0
  5. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/domain/v20180808/errorcodes.py +3 -0
  6. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/domain/v20180808/models.py +100 -0
  7. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud_sdk_python_domain.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-domain-3.0.1141/tencentcloud_sdk_python_domain.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-domain-3.0.1135/tencentcloud_sdk_python_domain.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/README.rst +0 -0
  11. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/domain/__init__.py +0 -0
  13. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud/domain/v20180808/__init__.py +0 -0
  14. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud_sdk_python_domain.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud_sdk_python_domain.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-domain-3.0.1135 → tencentcloud-sdk-python-domain-3.0.1141}/tencentcloud_sdk_python_domain.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-domain
3
- Version: 3.0.1135
3
+ Version: 3.0.1141
4
4
  Summary: Tencent Cloud Domain SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-domain',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1135"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1141"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Domain SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1135'
17
+ __version__ = '3.0.1141'
@@ -739,6 +739,29 @@ class DomainClient(AbstractClient):
739
739
  raise TencentCloudSDKException(type(e).__name__, str(e))
740
740
 
741
741
 
742
+ def ModifyTemplate(self, request):
743
+ """修改模板信息
744
+
745
+ :param request: Request instance for ModifyTemplate.
746
+ :type request: :class:`tencentcloud.domain.v20180808.models.ModifyTemplateRequest`
747
+ :rtype: :class:`tencentcloud.domain.v20180808.models.ModifyTemplateResponse`
748
+
749
+ """
750
+ try:
751
+ params = request._serialize()
752
+ headers = request.headers
753
+ body = self.call("ModifyTemplate", params, headers=headers)
754
+ response = json.loads(body)
755
+ model = models.ModifyTemplateResponse()
756
+ model._deserialize(response["Response"])
757
+ return model
758
+ except Exception as e:
759
+ if isinstance(e, TencentCloudSDKException):
760
+ raise
761
+ else:
762
+ raise TencentCloudSDKException(type(e).__name__, str(e))
763
+
764
+
742
765
  def RenewDomainBatch(self, request):
743
766
  """本接口 ( RenewDomainBatch ) 用于批量续费域名 。
744
767
 
@@ -77,6 +77,9 @@ FAILEDOPERATION_SENDVERIFYCODEISLIMITED = 'FailedOperation.SendVerifyCodeIsLimit
77
77
  # 修改 DNS 失败,请输入正确的 DNS 服务器地址。
78
78
  FAILEDOPERATION_SETDOMAINDNSFAILED = 'FailedOperation.SetDomainDnsFailed'
79
79
 
80
+ # 实名审核中, 已实名认证的模板无法修改。
81
+ FAILEDOPERATION_TEMPLATECANNOTMODIFY = 'FailedOperation.TemplateCanNotModify'
82
+
80
83
  # 信息模板超过可用数量上限,建议删除已有模板后重试。
81
84
  FAILEDOPERATION_TEMPLATEMAXNUMFAILED = 'FailedOperation.TemplateMaxNumFailed'
82
85
 
@@ -4559,6 +4559,106 @@ class ModifyIntlCustomDnsHostResponse(AbstractModel):
4559
4559
  self._RequestId = params.get("RequestId")
4560
4560
 
4561
4561
 
4562
+ class ModifyTemplateRequest(AbstractModel):
4563
+ """ModifyTemplate请求参数结构体
4564
+
4565
+ """
4566
+
4567
+ def __init__(self):
4568
+ r"""
4569
+ :param _CertificateInfo: 证件信息
4570
+ :type CertificateInfo: :class:`tencentcloud.domain.v20180808.models.CertificateInfo`
4571
+ :param _ContactInfo: 联系人信息
4572
+ :type ContactInfo: :class:`tencentcloud.domain.v20180808.models.ContactInfo`
4573
+ :param _TemplateId: 模板ID
4574
+ :type TemplateId: str
4575
+ """
4576
+ self._CertificateInfo = None
4577
+ self._ContactInfo = None
4578
+ self._TemplateId = None
4579
+
4580
+ @property
4581
+ def CertificateInfo(self):
4582
+ return self._CertificateInfo
4583
+
4584
+ @CertificateInfo.setter
4585
+ def CertificateInfo(self, CertificateInfo):
4586
+ self._CertificateInfo = CertificateInfo
4587
+
4588
+ @property
4589
+ def ContactInfo(self):
4590
+ return self._ContactInfo
4591
+
4592
+ @ContactInfo.setter
4593
+ def ContactInfo(self, ContactInfo):
4594
+ self._ContactInfo = ContactInfo
4595
+
4596
+ @property
4597
+ def TemplateId(self):
4598
+ return self._TemplateId
4599
+
4600
+ @TemplateId.setter
4601
+ def TemplateId(self, TemplateId):
4602
+ self._TemplateId = TemplateId
4603
+
4604
+
4605
+ def _deserialize(self, params):
4606
+ if params.get("CertificateInfo") is not None:
4607
+ self._CertificateInfo = CertificateInfo()
4608
+ self._CertificateInfo._deserialize(params.get("CertificateInfo"))
4609
+ if params.get("ContactInfo") is not None:
4610
+ self._ContactInfo = ContactInfo()
4611
+ self._ContactInfo._deserialize(params.get("ContactInfo"))
4612
+ self._TemplateId = params.get("TemplateId")
4613
+ memeber_set = set(params.keys())
4614
+ for name, value in vars(self).items():
4615
+ property_name = name[1:]
4616
+ if property_name in memeber_set:
4617
+ memeber_set.remove(property_name)
4618
+ if len(memeber_set) > 0:
4619
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4620
+
4621
+
4622
+
4623
+ class ModifyTemplateResponse(AbstractModel):
4624
+ """ModifyTemplate返回参数结构体
4625
+
4626
+ """
4627
+
4628
+ def __init__(self):
4629
+ r"""
4630
+ :param _Template: 模板信息
4631
+ :type Template: :class:`tencentcloud.domain.v20180808.models.TemplateInfo`
4632
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4633
+ :type RequestId: str
4634
+ """
4635
+ self._Template = None
4636
+ self._RequestId = None
4637
+
4638
+ @property
4639
+ def Template(self):
4640
+ return self._Template
4641
+
4642
+ @Template.setter
4643
+ def Template(self, Template):
4644
+ self._Template = Template
4645
+
4646
+ @property
4647
+ def RequestId(self):
4648
+ return self._RequestId
4649
+
4650
+ @RequestId.setter
4651
+ def RequestId(self, RequestId):
4652
+ self._RequestId = RequestId
4653
+
4654
+
4655
+ def _deserialize(self, params):
4656
+ if params.get("Template") is not None:
4657
+ self._Template = TemplateInfo()
4658
+ self._Template._deserialize(params.get("Template"))
4659
+ self._RequestId = params.get("RequestId")
4660
+
4661
+
4562
4662
  class PhoneEmailData(AbstractModel):
4563
4663
  """手机号邮箱列表
4564
4664
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-domain
3
- Version: 3.0.1135
3
+ Version: 3.0.1141
4
4
  Summary: Tencent Cloud Domain SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1141
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1135