tencentcloud-sdk-python-tcb 3.1.195__tar.gz → 3.1.198__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.195 → tencentcloud_sdk_python_tcb-3.1.198}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/v20180608/errorcodes.py +27 -0
  5. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/v20180608/models.py +134 -2
  6. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/v20180608/tcb_client.py +24 -0
  7. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/v20180608/tcb_client_async.py +19 -0
  8. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tcb-3.1.198/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tcb-3.1.195/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.195 → tencentcloud_sdk_python_tcb-3.1.198}/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.195
3
+ Version: 3.1.198
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.195
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.198
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.195,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.198,<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.195'
17
+ __version__ = '3.1.198'
@@ -50,6 +50,24 @@ FAILEDOPERATION_DATABASESCHEMAERROR = 'FailedOperation.DatabaseSchemaError'
50
50
  # 数据库sql解析异常
51
51
  FAILEDOPERATION_DATABASESQLSYNTAXERROR = 'FailedOperation.DatabaseSqlSyntaxError'
52
52
 
53
+ # 函数不在可删除的稳态
54
+ FAILEDOPERATION_DELETEFUNCTION = 'FailedOperation.DeleteFunction'
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
+
53
71
  # FailedOperation.DuplicatedData
54
72
  FAILEDOPERATION_DUPLICATEDDATA = 'FailedOperation.DuplicatedData'
55
73
 
@@ -95,6 +113,9 @@ FAILEDOPERATION_PGRESULTTOOLARGE = 'FailedOperation.PGResultTooLarge'
95
113
  # 套餐包不支持
96
114
  FAILEDOPERATION_PACKAGEUNSUPPORTED = 'FailedOperation.PackageUnsupported'
97
115
 
116
+ # 操作失败,后台依赖平台错误。
117
+ FAILEDOPERATION_PLATFORMERROR = 'FailedOperation.PlatformError'
118
+
98
119
  # 查询异常
99
120
  FAILEDOPERATION_QUERYERROR = 'FailedOperation.QueryError'
100
121
 
@@ -251,6 +272,12 @@ OPERATIONDENIED_HTTPSERVICEDOMAINPROCESSING = 'OperationDenied.HTTPServiceDomain
251
272
  # 非内部账号禁止操作
252
273
  OPERATIONDENIED_NONINTERNALACCOUNT = 'OperationDenied.NonInternalAccount'
253
274
 
275
+ # 操作被拒绝,资源已存在。
276
+ OPERATIONDENIED_RESOURCEALREADYEXISTS = 'OperationDenied.ResourceAlreadyExists'
277
+
278
+ # 当前操作被禁止,资源被依赖
279
+ OPERATIONDENIED_RESOURCEDEPENDED = 'OperationDenied.ResourceDepended'
280
+
254
281
  # 操作失败:资源被冻结。
255
282
  OPERATIONDENIED_RESOURCEFROZEN = 'OperationDenied.ResourceFrozen'
256
283
 
@@ -1921,6 +1921,42 @@ class BuildContext(AbstractModel):
1921
1921
 
1922
1922
 
1923
1923
 
1924
+ class BuildRunner(AbstractModel):
1925
+ r"""构建运行配置
1926
+
1927
+ """
1928
+
1929
+ def __init__(self):
1930
+ r"""
1931
+ :param _Cpus: <p>构建服务所需 CPU 规格</p>
1932
+ :type Cpus: int
1933
+ """
1934
+ self._Cpus = None
1935
+
1936
+ @property
1937
+ def Cpus(self):
1938
+ r"""<p>构建服务所需 CPU 规格</p>
1939
+ :rtype: int
1940
+ """
1941
+ return self._Cpus
1942
+
1943
+ @Cpus.setter
1944
+ def Cpus(self, Cpus):
1945
+ self._Cpus = Cpus
1946
+
1947
+
1948
+ def _deserialize(self, params):
1949
+ self._Cpus = params.get("Cpus")
1950
+ memeber_set = set(params.keys())
1951
+ for name, value in vars(self).items():
1952
+ property_name = name[1:]
1953
+ if property_name in memeber_set:
1954
+ memeber_set.remove(property_name)
1955
+ if len(memeber_set) > 0:
1956
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1957
+
1958
+
1959
+
1924
1960
  class BuildSecret(AbstractModel):
1925
1961
  r"""构建密钥
1926
1962
 
@@ -4441,7 +4477,7 @@ class CreateCloudAppRequest(AbstractModel):
4441
4477
  :type EnvId: str
4442
4478
  :param _ServiceName: <p>服务名</p>
4443
4479
  :type ServiceName: str
4444
- :param _DeployType: <p>部署类型</p>
4480
+ :param _DeployType: <p>部署类型</p><p>枚举值:</p><ul><li>statis-hosting: 静态托管应用</li><li>custom: 自定义流水线</li></ul>
4445
4481
  :type DeployType: str
4446
4482
  :param _BuildType: <p>构建类型</p>
4447
4483
  :type BuildType: str
@@ -4475,6 +4511,8 @@ class CreateCloudAppRequest(AbstractModel):
4475
4511
  :type PreDeployCommand: str
4476
4512
  :param _PostDeployCommand: <p>后置执行命令</p>
4477
4513
  :type PostDeployCommand: str
4514
+ :param _Runner: <p>流水线运行配置</p>
4515
+ :type Runner: :class:`tencentcloud.tcb.v20180608.models.BuildRunner`
4478
4516
  """
4479
4517
  self._EnvId = None
4480
4518
  self._ServiceName = None
@@ -4495,6 +4533,7 @@ class CreateCloudAppRequest(AbstractModel):
4495
4533
  self._ClientToken = None
4496
4534
  self._PreDeployCommand = None
4497
4535
  self._PostDeployCommand = None
4536
+ self._Runner = None
4498
4537
 
4499
4538
  @property
4500
4539
  def EnvId(self):
@@ -4520,7 +4559,7 @@ class CreateCloudAppRequest(AbstractModel):
4520
4559
 
4521
4560
  @property
4522
4561
  def DeployType(self):
4523
- r"""<p>部署类型</p>
4562
+ r"""<p>部署类型</p><p>枚举值:</p><ul><li>statis-hosting: 静态托管应用</li><li>custom: 自定义流水线</li></ul>
4524
4563
  :rtype: str
4525
4564
  """
4526
4565
  return self._DeployType
@@ -4705,6 +4744,17 @@ class CreateCloudAppRequest(AbstractModel):
4705
4744
  def PostDeployCommand(self, PostDeployCommand):
4706
4745
  self._PostDeployCommand = PostDeployCommand
4707
4746
 
4747
+ @property
4748
+ def Runner(self):
4749
+ r"""<p>流水线运行配置</p>
4750
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.BuildRunner`
4751
+ """
4752
+ return self._Runner
4753
+
4754
+ @Runner.setter
4755
+ def Runner(self, Runner):
4756
+ self._Runner = Runner
4757
+
4708
4758
 
4709
4759
  def _deserialize(self, params):
4710
4760
  self._EnvId = params.get("EnvId")
@@ -4759,6 +4809,9 @@ class CreateCloudAppRequest(AbstractModel):
4759
4809
  self._ClientToken = params.get("ClientToken")
4760
4810
  self._PreDeployCommand = params.get("PreDeployCommand")
4761
4811
  self._PostDeployCommand = params.get("PostDeployCommand")
4812
+ if params.get("Runner") is not None:
4813
+ self._Runner = BuildRunner()
4814
+ self._Runner._deserialize(params.get("Runner"))
4762
4815
  memeber_set = set(params.keys())
4763
4816
  for name, value in vars(self).items():
4764
4817
  property_name = name[1:]
@@ -17146,6 +17199,85 @@ class EmailTemplateConfig(AbstractModel):
17146
17199
 
17147
17200
 
17148
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
+
17149
17281
  class EnvBillingInfoItem(AbstractModel):
17150
17282
  r"""环境计费信息
17151
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.195
3
+ Version: 3.1.198
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.195
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.198
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.198
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.195