tencentcloud-sdk-python-tcb 3.1.196__tar.gz → 3.1.200__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.196 → tencentcloud_sdk_python_tcb-3.1.200}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/v20180608/errorcodes.py +24 -0
  5. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/v20180608/models.py +81 -2
  6. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/v20180608/tcb_client.py +24 -0
  7. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/v20180608/tcb_client_async.py +19 -0
  8. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tcb-3.1.200/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tcb-3.1.196/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.196 → tencentcloud_sdk_python_tcb-3.1.200}/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.196
3
+ Version: 3.1.200
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.196
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.200
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.196,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.200,<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.196'
17
+ __version__ = '3.1.200'
@@ -53,6 +53,21 @@ FAILEDOPERATION_DATABASESQLSYNTAXERROR = 'FailedOperation.DatabaseSqlSyntaxError
53
53
  # 函数不在可删除的稳态
54
54
  FAILEDOPERATION_DELETEFUNCTION = 'FailedOperation.DeleteFunction'
55
55
 
56
+ # 开通 PG Document 插件时,实例缺少依赖的插件
57
+ FAILEDOPERATION_DOCUMENTDEPENDENCYFILESMISSING = 'FailedOperation.DocumentDependencyFilesMissing'
58
+
59
+ # 开通 PG Document 插件时,实例缺少 pgdoc 或 pgdoc_core 等核心参数
60
+ FAILEDOPERATION_DOCUMENTEXTENSIONFILESMISSING = 'FailedOperation.DocumentExtensionFilesMissing'
61
+
62
+ # 开通 PG Document 插件时,由于核心插件或依赖插件被黑名单禁用(通常属于安全风险)
63
+ FAILEDOPERATION_DOCUMENTEXTENSIONUNAVAILABLE = 'FailedOperation.DocumentExtensionUnavailable'
64
+
65
+ # 开通 PG Document 插件时与已有的 Flexdb 数据库能力冲突
66
+ FAILEDOPERATION_DOCUMENTFLEXDBCOEXISTENCE = 'FailedOperation.DocumentFlexdbCoexistence'
67
+
68
+ # 开通 PG Document 插件时,缺少核心类库
69
+ FAILEDOPERATION_DOCUMENTLIBRARYUNAVAILABLE = 'FailedOperation.DocumentLibraryUnavailable'
70
+
56
71
  # FailedOperation.DuplicatedData
57
72
  FAILEDOPERATION_DUPLICATEDDATA = 'FailedOperation.DuplicatedData'
58
73
 
@@ -98,6 +113,9 @@ FAILEDOPERATION_PGRESULTTOOLARGE = 'FailedOperation.PGResultTooLarge'
98
113
  # 套餐包不支持
99
114
  FAILEDOPERATION_PACKAGEUNSUPPORTED = 'FailedOperation.PackageUnsupported'
100
115
 
116
+ # 操作失败,后台依赖平台错误。
117
+ FAILEDOPERATION_PLATFORMERROR = 'FailedOperation.PlatformError'
118
+
101
119
  # 查询异常
102
120
  FAILEDOPERATION_QUERYERROR = 'FailedOperation.QueryError'
103
121
 
@@ -254,6 +272,12 @@ OPERATIONDENIED_HTTPSERVICEDOMAINPROCESSING = 'OperationDenied.HTTPServiceDomain
254
272
  # 非内部账号禁止操作
255
273
  OPERATIONDENIED_NONINTERNALACCOUNT = 'OperationDenied.NonInternalAccount'
256
274
 
275
+ # 操作被拒绝,资源已存在。
276
+ OPERATIONDENIED_RESOURCEALREADYEXISTS = 'OperationDenied.ResourceAlreadyExists'
277
+
278
+ # 当前操作被禁止,资源被依赖
279
+ OPERATIONDENIED_RESOURCEDEPENDED = 'OperationDenied.ResourceDepended'
280
+
257
281
  # 操作失败:资源被冻结。
258
282
  OPERATIONDENIED_RESOURCEFROZEN = 'OperationDenied.ResourceFrozen'
259
283
 
@@ -6249,7 +6249,7 @@ class CreatePlatformEnvRequest(AbstractModel):
6249
6249
 
6250
6250
  def __init__(self):
6251
6251
  r"""
6252
- :param _Alias: <p>环境别名</p>
6252
+ :param _Alias: <p>环境别名</p><p>入参限制:可选字符: 小写字母(a~z)、数字、减号(-) </p><ul><li>不能以 减号(-) 开头或结尾 </li><li>不能有连个连续的 减号(-) </li><li>长度不超过20位</li></ul>
6253
6253
  :type Alias: str
6254
6254
  :param _PlatformId: <p>套餐池标识</p>
6255
6255
  :type PlatformId: str
@@ -6262,7 +6262,7 @@ class CreatePlatformEnvRequest(AbstractModel):
6262
6262
 
6263
6263
  @property
6264
6264
  def Alias(self):
6265
- r"""<p>环境别名</p>
6265
+ r"""<p>环境别名</p><p>入参限制:可选字符: 小写字母(a~z)、数字、减号(-) </p><ul><li>不能以 减号(-) 开头或结尾 </li><li>不能有连个连续的 减号(-) </li><li>长度不超过20位</li></ul>
6266
6266
  :rtype: str
6267
6267
  """
6268
6268
  return self._Alias
@@ -17199,6 +17199,85 @@ class EmailTemplateConfig(AbstractModel):
17199
17199
 
17200
17200
 
17201
17201
 
17202
+ class EnablePGDocumentExtRequest(AbstractModel):
17203
+ r"""EnablePGDocumentExt请求参数结构体
17204
+
17205
+ """
17206
+
17207
+ def __init__(self):
17208
+ r"""
17209
+ :param _EnvId: <p>环境 id,租户级标识信息,开通环境时产生,全局唯一</p><p>参数格式:用户自定义小写英文命名 + 随机雪花字符</p>
17210
+ :type EnvId: str
17211
+ """
17212
+ self._EnvId = None
17213
+
17214
+ @property
17215
+ def EnvId(self):
17216
+ r"""<p>环境 id,租户级标识信息,开通环境时产生,全局唯一</p><p>参数格式:用户自定义小写英文命名 + 随机雪花字符</p>
17217
+ :rtype: str
17218
+ """
17219
+ return self._EnvId
17220
+
17221
+ @EnvId.setter
17222
+ def EnvId(self, EnvId):
17223
+ self._EnvId = EnvId
17224
+
17225
+
17226
+ def _deserialize(self, params):
17227
+ self._EnvId = params.get("EnvId")
17228
+ memeber_set = set(params.keys())
17229
+ for name, value in vars(self).items():
17230
+ property_name = name[1:]
17231
+ if property_name in memeber_set:
17232
+ memeber_set.remove(property_name)
17233
+ if len(memeber_set) > 0:
17234
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17235
+
17236
+
17237
+
17238
+ class EnablePGDocumentExtResponse(AbstractModel):
17239
+ r"""EnablePGDocumentExt返回参数结构体
17240
+
17241
+ """
17242
+
17243
+ def __init__(self):
17244
+ r"""
17245
+ :param _Enabled: <p>是否开启成功标记</p><p>枚举值:</p><ul><li>true: 开启成功</li><li>false: 开启失败</li></ul>
17246
+ :type Enabled: bool
17247
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17248
+ :type RequestId: str
17249
+ """
17250
+ self._Enabled = None
17251
+ self._RequestId = None
17252
+
17253
+ @property
17254
+ def Enabled(self):
17255
+ r"""<p>是否开启成功标记</p><p>枚举值:</p><ul><li>true: 开启成功</li><li>false: 开启失败</li></ul>
17256
+ :rtype: bool
17257
+ """
17258
+ return self._Enabled
17259
+
17260
+ @Enabled.setter
17261
+ def Enabled(self, Enabled):
17262
+ self._Enabled = Enabled
17263
+
17264
+ @property
17265
+ def RequestId(self):
17266
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17267
+ :rtype: str
17268
+ """
17269
+ return self._RequestId
17270
+
17271
+ @RequestId.setter
17272
+ def RequestId(self, RequestId):
17273
+ self._RequestId = RequestId
17274
+
17275
+
17276
+ def _deserialize(self, params):
17277
+ self._Enabled = params.get("Enabled")
17278
+ self._RequestId = params.get("RequestId")
17279
+
17280
+
17202
17281
  class EnvBillingInfoItem(AbstractModel):
17203
17282
  r"""环境计费信息
17204
17283
 
@@ -2121,6 +2121,30 @@ class TcbClient(AbstractClient):
2121
2121
  raise TencentCloudSDKException(type(e).__name__, str(e))
2122
2122
 
2123
2123
 
2124
+ def EnablePGDocumentExt(self, request):
2125
+ r"""当前环境下开启 Postgresql 数据库文档插件能力,开启后会在指定 EnvId 的 PostgreSQL 实例下自动生成 pgdoc schema 以提供文档能力,不会额外产生费用,可以云开发控制或云 API 开启使用。
2126
+ 当前支持地域已环境开通时所在地域为准。
2127
+
2128
+ :param request: Request instance for EnablePGDocumentExt.
2129
+ :type request: :class:`tencentcloud.tcb.v20180608.models.EnablePGDocumentExtRequest`
2130
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.EnablePGDocumentExtResponse`
2131
+
2132
+ """
2133
+ try:
2134
+ params = request._serialize()
2135
+ headers = request.headers
2136
+ body = self.call("EnablePGDocumentExt", params, headers=headers)
2137
+ response = json.loads(body)
2138
+ model = models.EnablePGDocumentExtResponse()
2139
+ model._deserialize(response["Response"])
2140
+ return model
2141
+ except Exception as e:
2142
+ if isinstance(e, TencentCloudSDKException):
2143
+ raise
2144
+ else:
2145
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2146
+
2147
+
2124
2148
  def ExecutePGSql(self, request):
2125
2149
  r"""在Postgres数据库上执行SQL
2126
2150
 
@@ -1695,6 +1695,25 @@ class TcbClient(AbstractClient):
1695
1695
 
1696
1696
  return await self.call_and_deserialize(**kwargs)
1697
1697
 
1698
+ async def EnablePGDocumentExt(
1699
+ self,
1700
+ request: models.EnablePGDocumentExtRequest,
1701
+ opts: Dict = None,
1702
+ ) -> models.EnablePGDocumentExtResponse:
1703
+ """
1704
+ 当前环境下开启 Postgresql 数据库文档插件能力,开启后会在指定 EnvId 的 PostgreSQL 实例下自动生成 pgdoc schema 以提供文档能力,不会额外产生费用,可以云开发控制或云 API 开启使用。
1705
+ 当前支持地域已环境开通时所在地域为准。
1706
+ """
1707
+
1708
+ kwargs = {}
1709
+ kwargs["action"] = "EnablePGDocumentExt"
1710
+ kwargs["params"] = request._serialize()
1711
+ kwargs["resp_cls"] = models.EnablePGDocumentExtResponse
1712
+ kwargs["headers"] = request.headers
1713
+ kwargs["opts"] = opts or {}
1714
+
1715
+ return await self.call_and_deserialize(**kwargs)
1716
+
1698
1717
  async def ExecutePGSql(
1699
1718
  self,
1700
1719
  request: models.ExecutePGSqlRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.196
3
+ Version: 3.1.200
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.196
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.200
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.200
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.196