tencentcloud-sdk-python-tcb 3.1.145__tar.gz → 3.1.151__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 (17) hide show
  1. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/v20180608/models.py +332 -0
  5. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/v20180608/tcb_client.py +38 -0
  6. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/v20180608/tcb_client_async.py +33 -0
  7. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcb-3.1.151/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tcb-3.1.145/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.145 → tencentcloud_sdk_python_tcb-3.1.151}/tencentcloud_sdk_python_tcb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.145
3
+ Version: 3.1.151
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tcb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.145,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.151,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.145'
17
+ __version__ = '3.1.151'
@@ -25880,6 +25880,338 @@ class VerificationConfig(AbstractModel):
25880
25880
 
25881
25881
 
25882
25882
 
25883
+ class VerifyHTTPServiceRouteCheckItem(AbstractModel):
25884
+ r"""VerifyHTTPServiceRoute单项前置校验结果
25885
+
25886
+ """
25887
+
25888
+ def __init__(self):
25889
+ r"""
25890
+ :param _Status: <p>检查状态</p><p>枚举值:</p><ul><li>PASS: 通过</li><li>SKIPPED: 跳过(无需校验,视为通过)</li><li>FAIL: 失败</li></ul><p>默认值:SKIPPED</p>
25891
+ :type Status: str
25892
+ :param _Code: <p>前置校验子项失败原因枚举,仅在 Status=FAIL 时有值,供前端根据 Code 精确渲染提示与操作指引</p><p>枚举值:</p><ul><li>INTERNAL_CHECK_ERROR: 预检过程中依赖服务/内部资源异常</li><li>OWNERSHIP_DNS_LOOKUP_FAILED: DNS解析失败</li><li>OWNERSHIP_VERIFY_FAILED: DNS记录内容与预期dns记录值不匹配</li><li>CERT_VERIFY_FAILED: 证书校验失败:不匹配当前域名 / 已过期 / 不属于当前 uin 等</li><li>QUOTA_EXCEEDED: 域名或路径数量超出配额限制</li><li>ROUTE_CONFLICT: 存在同域名下已被占用的路径,前端应提示用户修改路径</li><li>DOMAIN_IN_USE: 域名已被其他环境占用,无法在当前环境接入</li><li>NON_INTERNAL_ACCOUNT: 使用了内部域名但当前账号不是内部账号</li><li>DOMAIN_IN_BLACKLIST: 域名被列入黑名单,禁止接入</li><li>CDN_RESOURCE_PROCESSING: CDN 资源正处于变更中,需稍后重试</li><li>CDN_RESOURCE_OFFLINE: CDN 资源已下线,需重新上线后才能绑定</li><li>EO_OWNERSHIP_VERIFY_FAILED: EdgeOne 侧归属权未通过,响应体中 OwnershipVerification 会给出,EdgeOne要求配置的 DNS/文件 verification 指引</li><li>EO_DOMAIN_NOT_ICP: EdgeOne 检测到域名未备案</li><li>EO_DOMAIN_IN_USE: EdgeOne 检测到域名已被其他账号接入 EdgeOne</li></ul>
25893
+ :type Code: str
25894
+ :param _Message: <p>详细描述;Skipped 时给出跳过原因;Pass 时可为空</p>
25895
+ :type Message: str
25896
+ :param _OwnershipVerification: <p>域名归属权验证指引信息,仅在所有权校验未通过时有值</p>
25897
+ :type OwnershipVerification: :class:`tencentcloud.tcb.v20180608.models.OwnershipVerificationInfo`
25898
+ """
25899
+ self._Status = None
25900
+ self._Code = None
25901
+ self._Message = None
25902
+ self._OwnershipVerification = None
25903
+
25904
+ @property
25905
+ def Status(self):
25906
+ r"""<p>检查状态</p><p>枚举值:</p><ul><li>PASS: 通过</li><li>SKIPPED: 跳过(无需校验,视为通过)</li><li>FAIL: 失败</li></ul><p>默认值:SKIPPED</p>
25907
+ :rtype: str
25908
+ """
25909
+ return self._Status
25910
+
25911
+ @Status.setter
25912
+ def Status(self, Status):
25913
+ self._Status = Status
25914
+
25915
+ @property
25916
+ def Code(self):
25917
+ r"""<p>前置校验子项失败原因枚举,仅在 Status=FAIL 时有值,供前端根据 Code 精确渲染提示与操作指引</p><p>枚举值:</p><ul><li>INTERNAL_CHECK_ERROR: 预检过程中依赖服务/内部资源异常</li><li>OWNERSHIP_DNS_LOOKUP_FAILED: DNS解析失败</li><li>OWNERSHIP_VERIFY_FAILED: DNS记录内容与预期dns记录值不匹配</li><li>CERT_VERIFY_FAILED: 证书校验失败:不匹配当前域名 / 已过期 / 不属于当前 uin 等</li><li>QUOTA_EXCEEDED: 域名或路径数量超出配额限制</li><li>ROUTE_CONFLICT: 存在同域名下已被占用的路径,前端应提示用户修改路径</li><li>DOMAIN_IN_USE: 域名已被其他环境占用,无法在当前环境接入</li><li>NON_INTERNAL_ACCOUNT: 使用了内部域名但当前账号不是内部账号</li><li>DOMAIN_IN_BLACKLIST: 域名被列入黑名单,禁止接入</li><li>CDN_RESOURCE_PROCESSING: CDN 资源正处于变更中,需稍后重试</li><li>CDN_RESOURCE_OFFLINE: CDN 资源已下线,需重新上线后才能绑定</li><li>EO_OWNERSHIP_VERIFY_FAILED: EdgeOne 侧归属权未通过,响应体中 OwnershipVerification 会给出,EdgeOne要求配置的 DNS/文件 verification 指引</li><li>EO_DOMAIN_NOT_ICP: EdgeOne 检测到域名未备案</li><li>EO_DOMAIN_IN_USE: EdgeOne 检测到域名已被其他账号接入 EdgeOne</li></ul>
25918
+ :rtype: str
25919
+ """
25920
+ return self._Code
25921
+
25922
+ @Code.setter
25923
+ def Code(self, Code):
25924
+ self._Code = Code
25925
+
25926
+ @property
25927
+ def Message(self):
25928
+ r"""<p>详细描述;Skipped 时给出跳过原因;Pass 时可为空</p>
25929
+ :rtype: str
25930
+ """
25931
+ return self._Message
25932
+
25933
+ @Message.setter
25934
+ def Message(self, Message):
25935
+ self._Message = Message
25936
+
25937
+ @property
25938
+ def OwnershipVerification(self):
25939
+ r"""<p>域名归属权验证指引信息,仅在所有权校验未通过时有值</p>
25940
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.OwnershipVerificationInfo`
25941
+ """
25942
+ return self._OwnershipVerification
25943
+
25944
+ @OwnershipVerification.setter
25945
+ def OwnershipVerification(self, OwnershipVerification):
25946
+ self._OwnershipVerification = OwnershipVerification
25947
+
25948
+
25949
+ def _deserialize(self, params):
25950
+ self._Status = params.get("Status")
25951
+ self._Code = params.get("Code")
25952
+ self._Message = params.get("Message")
25953
+ if params.get("OwnershipVerification") is not None:
25954
+ self._OwnershipVerification = OwnershipVerificationInfo()
25955
+ self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
25956
+ memeber_set = set(params.keys())
25957
+ for name, value in vars(self).items():
25958
+ property_name = name[1:]
25959
+ if property_name in memeber_set:
25960
+ memeber_set.remove(property_name)
25961
+ if len(memeber_set) > 0:
25962
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
25963
+
25964
+
25965
+
25966
+ class VerifyHTTPServiceRouteRequest(AbstractModel):
25967
+ r"""VerifyHTTPServiceRoute请求参数结构体
25968
+
25969
+ """
25970
+
25971
+ def __init__(self):
25972
+ r"""
25973
+ :param _EnvId: <p>环境ID</p>
25974
+ :type EnvId: str
25975
+ :param _Domain: <p>域名路由信息</p>
25976
+ :type Domain: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceDomainParam`
25977
+ """
25978
+ self._EnvId = None
25979
+ self._Domain = None
25980
+
25981
+ @property
25982
+ def EnvId(self):
25983
+ r"""<p>环境ID</p>
25984
+ :rtype: str
25985
+ """
25986
+ return self._EnvId
25987
+
25988
+ @EnvId.setter
25989
+ def EnvId(self, EnvId):
25990
+ self._EnvId = EnvId
25991
+
25992
+ @property
25993
+ def Domain(self):
25994
+ r"""<p>域名路由信息</p>
25995
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceDomainParam`
25996
+ """
25997
+ return self._Domain
25998
+
25999
+ @Domain.setter
26000
+ def Domain(self, Domain):
26001
+ self._Domain = Domain
26002
+
26003
+
26004
+ def _deserialize(self, params):
26005
+ self._EnvId = params.get("EnvId")
26006
+ if params.get("Domain") is not None:
26007
+ self._Domain = HTTPServiceDomainParam()
26008
+ self._Domain._deserialize(params.get("Domain"))
26009
+ memeber_set = set(params.keys())
26010
+ for name, value in vars(self).items():
26011
+ property_name = name[1:]
26012
+ if property_name in memeber_set:
26013
+ memeber_set.remove(property_name)
26014
+ if len(memeber_set) > 0:
26015
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26016
+
26017
+
26018
+
26019
+ class VerifyHTTPServiceRouteResponse(AbstractModel):
26020
+ r"""VerifyHTTPServiceRoute返回参数结构体
26021
+
26022
+ """
26023
+
26024
+ def __init__(self):
26025
+ r"""
26026
+ :param _Passed: <p>前置校验总开关。所有启用的检查项均为 PASS 或 SKIPPED 时为 true,任一检查项为 FAIL 时为 false。当为 false 时,前端应根据各 CheckItem 的 Code 精确渲染错误提示和操作指引;当为 true 时可继续调用 CreateHTTPServiceRoute 完成创建。 示例值:false</p>
26027
+ :type Passed: bool
26028
+ :param _Ownership: <p>域名归属权校验结果</p>
26029
+ :type Ownership: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26030
+ :param _Cert: <p>证书校验结果;CertId 为空时 Status=SKIPPED</p>
26031
+ :type Cert: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26032
+ :param _Quota: <p>域名/路径数量配额校验结果</p>
26033
+ :type Quota: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26034
+ :param _RouteConflict: <p>同域名下路由路径冲突校验结果</p>
26035
+ :type RouteConflict: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26036
+ :param _DomainConflict: <p>域名被其他环境占用校验结果</p>
26037
+ :type DomainConflict: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26038
+ :param _InternalAccount: <p>内部域名且非内部账号校验结果</p>
26039
+ :type InternalAccount: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26040
+ :param _Blacklist: <p>域名黑名单校验结果</p>
26041
+ :type Blacklist: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26042
+ :param _CDNResource: <p>AccessType=CDN 时 CDN 资源存在性 / 状态校验结果(含 ICP 未备案的提示)</p>
26043
+ :type CDNResource: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26044
+ :param _EO: <p>AccessType=EO 时的 EdgeOne 预检结果(域名冲突/备案/归属权)</p>
26045
+ :type EO: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26046
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26047
+ :type RequestId: str
26048
+ """
26049
+ self._Passed = None
26050
+ self._Ownership = None
26051
+ self._Cert = None
26052
+ self._Quota = None
26053
+ self._RouteConflict = None
26054
+ self._DomainConflict = None
26055
+ self._InternalAccount = None
26056
+ self._Blacklist = None
26057
+ self._CDNResource = None
26058
+ self._EO = None
26059
+ self._RequestId = None
26060
+
26061
+ @property
26062
+ def Passed(self):
26063
+ r"""<p>前置校验总开关。所有启用的检查项均为 PASS 或 SKIPPED 时为 true,任一检查项为 FAIL 时为 false。当为 false 时,前端应根据各 CheckItem 的 Code 精确渲染错误提示和操作指引;当为 true 时可继续调用 CreateHTTPServiceRoute 完成创建。 示例值:false</p>
26064
+ :rtype: bool
26065
+ """
26066
+ return self._Passed
26067
+
26068
+ @Passed.setter
26069
+ def Passed(self, Passed):
26070
+ self._Passed = Passed
26071
+
26072
+ @property
26073
+ def Ownership(self):
26074
+ r"""<p>域名归属权校验结果</p>
26075
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26076
+ """
26077
+ return self._Ownership
26078
+
26079
+ @Ownership.setter
26080
+ def Ownership(self, Ownership):
26081
+ self._Ownership = Ownership
26082
+
26083
+ @property
26084
+ def Cert(self):
26085
+ r"""<p>证书校验结果;CertId 为空时 Status=SKIPPED</p>
26086
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26087
+ """
26088
+ return self._Cert
26089
+
26090
+ @Cert.setter
26091
+ def Cert(self, Cert):
26092
+ self._Cert = Cert
26093
+
26094
+ @property
26095
+ def Quota(self):
26096
+ r"""<p>域名/路径数量配额校验结果</p>
26097
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26098
+ """
26099
+ return self._Quota
26100
+
26101
+ @Quota.setter
26102
+ def Quota(self, Quota):
26103
+ self._Quota = Quota
26104
+
26105
+ @property
26106
+ def RouteConflict(self):
26107
+ r"""<p>同域名下路由路径冲突校验结果</p>
26108
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26109
+ """
26110
+ return self._RouteConflict
26111
+
26112
+ @RouteConflict.setter
26113
+ def RouteConflict(self, RouteConflict):
26114
+ self._RouteConflict = RouteConflict
26115
+
26116
+ @property
26117
+ def DomainConflict(self):
26118
+ r"""<p>域名被其他环境占用校验结果</p>
26119
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26120
+ """
26121
+ return self._DomainConflict
26122
+
26123
+ @DomainConflict.setter
26124
+ def DomainConflict(self, DomainConflict):
26125
+ self._DomainConflict = DomainConflict
26126
+
26127
+ @property
26128
+ def InternalAccount(self):
26129
+ r"""<p>内部域名且非内部账号校验结果</p>
26130
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26131
+ """
26132
+ return self._InternalAccount
26133
+
26134
+ @InternalAccount.setter
26135
+ def InternalAccount(self, InternalAccount):
26136
+ self._InternalAccount = InternalAccount
26137
+
26138
+ @property
26139
+ def Blacklist(self):
26140
+ r"""<p>域名黑名单校验结果</p>
26141
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26142
+ """
26143
+ return self._Blacklist
26144
+
26145
+ @Blacklist.setter
26146
+ def Blacklist(self, Blacklist):
26147
+ self._Blacklist = Blacklist
26148
+
26149
+ @property
26150
+ def CDNResource(self):
26151
+ r"""<p>AccessType=CDN 时 CDN 资源存在性 / 状态校验结果(含 ICP 未备案的提示)</p>
26152
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26153
+ """
26154
+ return self._CDNResource
26155
+
26156
+ @CDNResource.setter
26157
+ def CDNResource(self, CDNResource):
26158
+ self._CDNResource = CDNResource
26159
+
26160
+ @property
26161
+ def EO(self):
26162
+ r"""<p>AccessType=EO 时的 EdgeOne 预检结果(域名冲突/备案/归属权)</p>
26163
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteCheckItem`
26164
+ """
26165
+ return self._EO
26166
+
26167
+ @EO.setter
26168
+ def EO(self, EO):
26169
+ self._EO = EO
26170
+
26171
+ @property
26172
+ def RequestId(self):
26173
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26174
+ :rtype: str
26175
+ """
26176
+ return self._RequestId
26177
+
26178
+ @RequestId.setter
26179
+ def RequestId(self, RequestId):
26180
+ self._RequestId = RequestId
26181
+
26182
+
26183
+ def _deserialize(self, params):
26184
+ self._Passed = params.get("Passed")
26185
+ if params.get("Ownership") is not None:
26186
+ self._Ownership = VerifyHTTPServiceRouteCheckItem()
26187
+ self._Ownership._deserialize(params.get("Ownership"))
26188
+ if params.get("Cert") is not None:
26189
+ self._Cert = VerifyHTTPServiceRouteCheckItem()
26190
+ self._Cert._deserialize(params.get("Cert"))
26191
+ if params.get("Quota") is not None:
26192
+ self._Quota = VerifyHTTPServiceRouteCheckItem()
26193
+ self._Quota._deserialize(params.get("Quota"))
26194
+ if params.get("RouteConflict") is not None:
26195
+ self._RouteConflict = VerifyHTTPServiceRouteCheckItem()
26196
+ self._RouteConflict._deserialize(params.get("RouteConflict"))
26197
+ if params.get("DomainConflict") is not None:
26198
+ self._DomainConflict = VerifyHTTPServiceRouteCheckItem()
26199
+ self._DomainConflict._deserialize(params.get("DomainConflict"))
26200
+ if params.get("InternalAccount") is not None:
26201
+ self._InternalAccount = VerifyHTTPServiceRouteCheckItem()
26202
+ self._InternalAccount._deserialize(params.get("InternalAccount"))
26203
+ if params.get("Blacklist") is not None:
26204
+ self._Blacklist = VerifyHTTPServiceRouteCheckItem()
26205
+ self._Blacklist._deserialize(params.get("Blacklist"))
26206
+ if params.get("CDNResource") is not None:
26207
+ self._CDNResource = VerifyHTTPServiceRouteCheckItem()
26208
+ self._CDNResource._deserialize(params.get("CDNResource"))
26209
+ if params.get("EO") is not None:
26210
+ self._EO = VerifyHTTPServiceRouteCheckItem()
26211
+ self._EO._deserialize(params.get("EO"))
26212
+ self._RequestId = params.get("RequestId")
26213
+
26214
+
25883
26215
  class VmInstance(AbstractModel):
25884
26216
  r"""云主机实例
25885
26217
 
@@ -2469,6 +2469,44 @@ class TcbClient(AbstractClient):
2469
2469
  model = models.UpdateTableResponse()
2470
2470
  model._deserialize(response["Response"])
2471
2471
  return model
2472
+ except Exception as e:
2473
+ if isinstance(e, TencentCloudSDKException):
2474
+ raise
2475
+ else:
2476
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2477
+
2478
+
2479
+ def VerifyHTTPServiceRoute(self, request):
2480
+ r"""覆盖的校验项包括:
2481
+ 1. Ownership:域名所有权(TXT/CNAME 记录);
2482
+ 2. Cert:证书与域名匹配(CertId 为空时跳过);
2483
+ 3. Quota:环境下域名/路径数量配额;
2484
+ 4. RouteConflict:同域名下路由路径冲突;
2485
+ 5. DomainConflict:域名被其他环境占用;
2486
+ 6. InternalAccount:内部域名且非内部账号;
2487
+ 7. Blacklist:域名黑名单;
2488
+ 8. CDNResource:AccessType=CDN 时 CDN 资源存在性 / 状态(含 ICP 未备案提示);
2489
+ 9. EO:AccessType=EO 时 EdgeOne 侧域名冲突 / 备案 / 归属权预检。
2490
+
2491
+ 使用方式:
2492
+ - 调用本接口前置校验,若 Passed=true 表示所有启用检查项均通过,可继续调用 CreateHTTPServiceRoute 正式创建;
2493
+ - 若 Passed=false,前端应根据各 CheckItem 的 Code 精确渲染对应的错误提示与用户操作指引(如 DNS 归属权配置、ICP 备案指引等),用户修正参数后可重复调用本接口,直到通过后再进行创建。
2494
+
2495
+ 注意:本接口为只读 dry-run 操作,不落库、不创建任何资源,仅返回各项检查的详细结果。本接口通过不代表 CreateHTTPServiceRoute 必然成功(例如证书运行时状态、并发抢占等仍需创建时最终判定),但本接口不通过则 CreateHTTPServiceRoute 必然不通过。
2496
+
2497
+ :param request: Request instance for VerifyHTTPServiceRoute.
2498
+ :type request: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteRequest`
2499
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.VerifyHTTPServiceRouteResponse`
2500
+
2501
+ """
2502
+ try:
2503
+ params = request._serialize()
2504
+ headers = request.headers
2505
+ body = self.call("VerifyHTTPServiceRoute", params, headers=headers)
2506
+ response = json.loads(body)
2507
+ model = models.VerifyHTTPServiceRouteResponse()
2508
+ model._deserialize(response["Response"])
2509
+ return model
2472
2510
  except Exception as e:
2473
2511
  if isinstance(e, TencentCloudSDKException):
2474
2512
  raise
@@ -1973,4 +1973,37 @@ class TcbClient(AbstractClient):
1973
1973
  kwargs["headers"] = request.headers
1974
1974
  kwargs["opts"] = opts or {}
1975
1975
 
1976
+ return await self.call_and_deserialize(**kwargs)
1977
+
1978
+ async def VerifyHTTPServiceRoute(
1979
+ self,
1980
+ request: models.VerifyHTTPServiceRouteRequest,
1981
+ opts: Dict = None,
1982
+ ) -> models.VerifyHTTPServiceRouteResponse:
1983
+ """
1984
+ 覆盖的校验项包括:
1985
+ 1. Ownership:域名所有权(TXT/CNAME 记录);
1986
+ 2. Cert:证书与域名匹配(CertId 为空时跳过);
1987
+ 3. Quota:环境下域名/路径数量配额;
1988
+ 4. RouteConflict:同域名下路由路径冲突;
1989
+ 5. DomainConflict:域名被其他环境占用;
1990
+ 6. InternalAccount:内部域名且非内部账号;
1991
+ 7. Blacklist:域名黑名单;
1992
+ 8. CDNResource:AccessType=CDN 时 CDN 资源存在性 / 状态(含 ICP 未备案提示);
1993
+ 9. EO:AccessType=EO 时 EdgeOne 侧域名冲突 / 备案 / 归属权预检。
1994
+
1995
+ 使用方式:
1996
+ - 调用本接口前置校验,若 Passed=true 表示所有启用检查项均通过,可继续调用 CreateHTTPServiceRoute 正式创建;
1997
+ - 若 Passed=false,前端应根据各 CheckItem 的 Code 精确渲染对应的错误提示与用户操作指引(如 DNS 归属权配置、ICP 备案指引等),用户修正参数后可重复调用本接口,直到通过后再进行创建。
1998
+
1999
+ 注意:本接口为只读 dry-run 操作,不落库、不创建任何资源,仅返回各项检查的详细结果。本接口通过不代表 CreateHTTPServiceRoute 必然成功(例如证书运行时状态、并发抢占等仍需创建时最终判定),但本接口不通过则 CreateHTTPServiceRoute 必然不通过。
2000
+ """
2001
+
2002
+ kwargs = {}
2003
+ kwargs["action"] = "VerifyHTTPServiceRoute"
2004
+ kwargs["params"] = request._serialize()
2005
+ kwargs["resp_cls"] = models.VerifyHTTPServiceRouteResponse
2006
+ kwargs["headers"] = request.headers
2007
+ kwargs["opts"] = opts or {}
2008
+
1976
2009
  return await self.call_and_deserialize(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.145
3
+ Version: 3.1.151
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.151
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.145