tencentcloud-sdk-python-tcb 3.1.123__tar.gz → 3.1.128__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.
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/setup.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/v20180608/models.py +30 -196
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/v20180608/tcb_client.py +0 -23
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/v20180608/tcb_client_async.py +0 -18
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcb-3.1.128/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcb-3.1.123/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/README.rst +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/v20180608/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.123 → tencentcloud_sdk_python_tcb-3.1.128}/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.
|
|
3
|
+
Version: 3.1.128
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.128
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.128,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcb SDK for Python',
|
|
@@ -636,9 +636,15 @@ class AllocateEnvRequest(AbstractModel):
|
|
|
636
636
|
:type AllocateId: str
|
|
637
637
|
:param _ExternalAppId: <p>客户平台的应用标识,如果没有则不传</p>
|
|
638
638
|
:type ExternalAppId: str
|
|
639
|
+
:param _ExternalTag: <p>自定义标签</p><p>参数格式:逗号分隔的 key=value 对,key/value 仅允许字母、数字、下划线。k1=v1,k2=v2</p>
|
|
640
|
+
:type ExternalTag: str
|
|
641
|
+
:param _RequireFunction: <p>是否需要云函数</p><p>默认值:false</p>
|
|
642
|
+
:type RequireFunction: bool
|
|
639
643
|
"""
|
|
640
644
|
self._AllocateId = None
|
|
641
645
|
self._ExternalAppId = None
|
|
646
|
+
self._ExternalTag = None
|
|
647
|
+
self._RequireFunction = None
|
|
642
648
|
|
|
643
649
|
@property
|
|
644
650
|
def AllocateId(self):
|
|
@@ -662,10 +668,34 @@ class AllocateEnvRequest(AbstractModel):
|
|
|
662
668
|
def ExternalAppId(self, ExternalAppId):
|
|
663
669
|
self._ExternalAppId = ExternalAppId
|
|
664
670
|
|
|
671
|
+
@property
|
|
672
|
+
def ExternalTag(self):
|
|
673
|
+
r"""<p>自定义标签</p><p>参数格式:逗号分隔的 key=value 对,key/value 仅允许字母、数字、下划线。k1=v1,k2=v2</p>
|
|
674
|
+
:rtype: str
|
|
675
|
+
"""
|
|
676
|
+
return self._ExternalTag
|
|
677
|
+
|
|
678
|
+
@ExternalTag.setter
|
|
679
|
+
def ExternalTag(self, ExternalTag):
|
|
680
|
+
self._ExternalTag = ExternalTag
|
|
681
|
+
|
|
682
|
+
@property
|
|
683
|
+
def RequireFunction(self):
|
|
684
|
+
r"""<p>是否需要云函数</p><p>默认值:false</p>
|
|
685
|
+
:rtype: bool
|
|
686
|
+
"""
|
|
687
|
+
return self._RequireFunction
|
|
688
|
+
|
|
689
|
+
@RequireFunction.setter
|
|
690
|
+
def RequireFunction(self, RequireFunction):
|
|
691
|
+
self._RequireFunction = RequireFunction
|
|
692
|
+
|
|
665
693
|
|
|
666
694
|
def _deserialize(self, params):
|
|
667
695
|
self._AllocateId = params.get("AllocateId")
|
|
668
696
|
self._ExternalAppId = params.get("ExternalAppId")
|
|
697
|
+
self._ExternalTag = params.get("ExternalTag")
|
|
698
|
+
self._RequireFunction = params.get("RequireFunction")
|
|
669
699
|
memeber_set = set(params.keys())
|
|
670
700
|
for name, value in vars(self).items():
|
|
671
701
|
property_name = name[1:]
|
|
@@ -21064,202 +21094,6 @@ class ResourcePermission(AbstractModel):
|
|
|
21064
21094
|
|
|
21065
21095
|
|
|
21066
21096
|
|
|
21067
|
-
class RollbackPGUserMigrationsRequest(AbstractModel):
|
|
21068
|
-
r"""RollbackPGUserMigrations请求参数结构体
|
|
21069
|
-
|
|
21070
|
-
"""
|
|
21071
|
-
|
|
21072
|
-
def __init__(self):
|
|
21073
|
-
r"""
|
|
21074
|
-
:param _EnvId: <p>云开发环境ID</p>
|
|
21075
|
-
:type EnvId: str
|
|
21076
|
-
:param _LastN: <p>要回滚的条数</p><p>按照逆序回滚最近N条migration</p>
|
|
21077
|
-
:type LastN: int
|
|
21078
|
-
:param _LockTimeoutMs: <p>等待获取数据库锁的最长时间</p><p>单位:毫秒</p><p>默认值:5000</p>
|
|
21079
|
-
:type LockTimeoutMs: int
|
|
21080
|
-
:param _StatementTimeoutMs: <p>单条 SQL 执行最长时间,超过后由 PostgreSQL 取消该语句</p><p>单位:毫秒</p><p>默认值:300000</p>
|
|
21081
|
-
:type StatementTimeoutMs: int
|
|
21082
|
-
:param _Source: <p>标记API调用来源</p>
|
|
21083
|
-
:type Source: str
|
|
21084
|
-
"""
|
|
21085
|
-
self._EnvId = None
|
|
21086
|
-
self._LastN = None
|
|
21087
|
-
self._LockTimeoutMs = None
|
|
21088
|
-
self._StatementTimeoutMs = None
|
|
21089
|
-
self._Source = None
|
|
21090
|
-
|
|
21091
|
-
@property
|
|
21092
|
-
def EnvId(self):
|
|
21093
|
-
r"""<p>云开发环境ID</p>
|
|
21094
|
-
:rtype: str
|
|
21095
|
-
"""
|
|
21096
|
-
return self._EnvId
|
|
21097
|
-
|
|
21098
|
-
@EnvId.setter
|
|
21099
|
-
def EnvId(self, EnvId):
|
|
21100
|
-
self._EnvId = EnvId
|
|
21101
|
-
|
|
21102
|
-
@property
|
|
21103
|
-
def LastN(self):
|
|
21104
|
-
r"""<p>要回滚的条数</p><p>按照逆序回滚最近N条migration</p>
|
|
21105
|
-
:rtype: int
|
|
21106
|
-
"""
|
|
21107
|
-
return self._LastN
|
|
21108
|
-
|
|
21109
|
-
@LastN.setter
|
|
21110
|
-
def LastN(self, LastN):
|
|
21111
|
-
self._LastN = LastN
|
|
21112
|
-
|
|
21113
|
-
@property
|
|
21114
|
-
def LockTimeoutMs(self):
|
|
21115
|
-
r"""<p>等待获取数据库锁的最长时间</p><p>单位:毫秒</p><p>默认值:5000</p>
|
|
21116
|
-
:rtype: int
|
|
21117
|
-
"""
|
|
21118
|
-
return self._LockTimeoutMs
|
|
21119
|
-
|
|
21120
|
-
@LockTimeoutMs.setter
|
|
21121
|
-
def LockTimeoutMs(self, LockTimeoutMs):
|
|
21122
|
-
self._LockTimeoutMs = LockTimeoutMs
|
|
21123
|
-
|
|
21124
|
-
@property
|
|
21125
|
-
def StatementTimeoutMs(self):
|
|
21126
|
-
r"""<p>单条 SQL 执行最长时间,超过后由 PostgreSQL 取消该语句</p><p>单位:毫秒</p><p>默认值:300000</p>
|
|
21127
|
-
:rtype: int
|
|
21128
|
-
"""
|
|
21129
|
-
return self._StatementTimeoutMs
|
|
21130
|
-
|
|
21131
|
-
@StatementTimeoutMs.setter
|
|
21132
|
-
def StatementTimeoutMs(self, StatementTimeoutMs):
|
|
21133
|
-
self._StatementTimeoutMs = StatementTimeoutMs
|
|
21134
|
-
|
|
21135
|
-
@property
|
|
21136
|
-
def Source(self):
|
|
21137
|
-
r"""<p>标记API调用来源</p>
|
|
21138
|
-
:rtype: str
|
|
21139
|
-
"""
|
|
21140
|
-
return self._Source
|
|
21141
|
-
|
|
21142
|
-
@Source.setter
|
|
21143
|
-
def Source(self, Source):
|
|
21144
|
-
self._Source = Source
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
def _deserialize(self, params):
|
|
21148
|
-
self._EnvId = params.get("EnvId")
|
|
21149
|
-
self._LastN = params.get("LastN")
|
|
21150
|
-
self._LockTimeoutMs = params.get("LockTimeoutMs")
|
|
21151
|
-
self._StatementTimeoutMs = params.get("StatementTimeoutMs")
|
|
21152
|
-
self._Source = params.get("Source")
|
|
21153
|
-
memeber_set = set(params.keys())
|
|
21154
|
-
for name, value in vars(self).items():
|
|
21155
|
-
property_name = name[1:]
|
|
21156
|
-
if property_name in memeber_set:
|
|
21157
|
-
memeber_set.remove(property_name)
|
|
21158
|
-
if len(memeber_set) > 0:
|
|
21159
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
class RollbackPGUserMigrationsResponse(AbstractModel):
|
|
21164
|
-
r"""RollbackPGUserMigrations返回参数结构体
|
|
21165
|
-
|
|
21166
|
-
"""
|
|
21167
|
-
|
|
21168
|
-
def __init__(self):
|
|
21169
|
-
r"""
|
|
21170
|
-
:param _TaskId: <p>任务ID</p><p>可通过DescribeTaskResult 接口查询进度</p>
|
|
21171
|
-
:type TaskId: str
|
|
21172
|
-
:param _RolledBack: <p>已成功回滚并删除 history 的 migration</p>
|
|
21173
|
-
:type RolledBack: list of MigrationSummary
|
|
21174
|
-
:param _SkippedRollbackSql: <p>未提供 Rollback SQL、视为成功并删除 history 的 migration</p>
|
|
21175
|
-
:type SkippedRollbackSql: list of MigrationSummary
|
|
21176
|
-
:param _Failed: <p>执行 Rollback SQL 失败的 migration,可为空</p>
|
|
21177
|
-
:type Failed: :class:`tencentcloud.tcb.v20180608.models.MigrationSummary`
|
|
21178
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21179
|
-
:type RequestId: str
|
|
21180
|
-
"""
|
|
21181
|
-
self._TaskId = None
|
|
21182
|
-
self._RolledBack = None
|
|
21183
|
-
self._SkippedRollbackSql = None
|
|
21184
|
-
self._Failed = None
|
|
21185
|
-
self._RequestId = None
|
|
21186
|
-
|
|
21187
|
-
@property
|
|
21188
|
-
def TaskId(self):
|
|
21189
|
-
r"""<p>任务ID</p><p>可通过DescribeTaskResult 接口查询进度</p>
|
|
21190
|
-
:rtype: str
|
|
21191
|
-
"""
|
|
21192
|
-
return self._TaskId
|
|
21193
|
-
|
|
21194
|
-
@TaskId.setter
|
|
21195
|
-
def TaskId(self, TaskId):
|
|
21196
|
-
self._TaskId = TaskId
|
|
21197
|
-
|
|
21198
|
-
@property
|
|
21199
|
-
def RolledBack(self):
|
|
21200
|
-
r"""<p>已成功回滚并删除 history 的 migration</p>
|
|
21201
|
-
:rtype: list of MigrationSummary
|
|
21202
|
-
"""
|
|
21203
|
-
return self._RolledBack
|
|
21204
|
-
|
|
21205
|
-
@RolledBack.setter
|
|
21206
|
-
def RolledBack(self, RolledBack):
|
|
21207
|
-
self._RolledBack = RolledBack
|
|
21208
|
-
|
|
21209
|
-
@property
|
|
21210
|
-
def SkippedRollbackSql(self):
|
|
21211
|
-
r"""<p>未提供 Rollback SQL、视为成功并删除 history 的 migration</p>
|
|
21212
|
-
:rtype: list of MigrationSummary
|
|
21213
|
-
"""
|
|
21214
|
-
return self._SkippedRollbackSql
|
|
21215
|
-
|
|
21216
|
-
@SkippedRollbackSql.setter
|
|
21217
|
-
def SkippedRollbackSql(self, SkippedRollbackSql):
|
|
21218
|
-
self._SkippedRollbackSql = SkippedRollbackSql
|
|
21219
|
-
|
|
21220
|
-
@property
|
|
21221
|
-
def Failed(self):
|
|
21222
|
-
r"""<p>执行 Rollback SQL 失败的 migration,可为空</p>
|
|
21223
|
-
:rtype: :class:`tencentcloud.tcb.v20180608.models.MigrationSummary`
|
|
21224
|
-
"""
|
|
21225
|
-
return self._Failed
|
|
21226
|
-
|
|
21227
|
-
@Failed.setter
|
|
21228
|
-
def Failed(self, Failed):
|
|
21229
|
-
self._Failed = Failed
|
|
21230
|
-
|
|
21231
|
-
@property
|
|
21232
|
-
def RequestId(self):
|
|
21233
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21234
|
-
:rtype: str
|
|
21235
|
-
"""
|
|
21236
|
-
return self._RequestId
|
|
21237
|
-
|
|
21238
|
-
@RequestId.setter
|
|
21239
|
-
def RequestId(self, RequestId):
|
|
21240
|
-
self._RequestId = RequestId
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
def _deserialize(self, params):
|
|
21244
|
-
self._TaskId = params.get("TaskId")
|
|
21245
|
-
if params.get("RolledBack") is not None:
|
|
21246
|
-
self._RolledBack = []
|
|
21247
|
-
for item in params.get("RolledBack"):
|
|
21248
|
-
obj = MigrationSummary()
|
|
21249
|
-
obj._deserialize(item)
|
|
21250
|
-
self._RolledBack.append(obj)
|
|
21251
|
-
if params.get("SkippedRollbackSql") is not None:
|
|
21252
|
-
self._SkippedRollbackSql = []
|
|
21253
|
-
for item in params.get("SkippedRollbackSql"):
|
|
21254
|
-
obj = MigrationSummary()
|
|
21255
|
-
obj._deserialize(item)
|
|
21256
|
-
self._SkippedRollbackSql.append(obj)
|
|
21257
|
-
if params.get("Failed") is not None:
|
|
21258
|
-
self._Failed = MigrationSummary()
|
|
21259
|
-
self._Failed._deserialize(params.get("Failed"))
|
|
21260
|
-
self._RequestId = params.get("RequestId")
|
|
21261
|
-
|
|
21262
|
-
|
|
21263
21097
|
class RunCommandsRequest(AbstractModel):
|
|
21264
21098
|
r"""RunCommands请求参数结构体
|
|
21265
21099
|
|
|
@@ -2154,29 +2154,6 @@ class TcbClient(AbstractClient):
|
|
|
2154
2154
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2155
2155
|
|
|
2156
2156
|
|
|
2157
|
-
def RollbackPGUserMigrations(self, request):
|
|
2158
|
-
r"""本接口(RollbackPGUserMigrations)用于按最近 N 条已应用 migration 倒序执行 rollback。
|
|
2159
|
-
|
|
2160
|
-
:param request: Request instance for RollbackPGUserMigrations.
|
|
2161
|
-
:type request: :class:`tencentcloud.tcb.v20180608.models.RollbackPGUserMigrationsRequest`
|
|
2162
|
-
:rtype: :class:`tencentcloud.tcb.v20180608.models.RollbackPGUserMigrationsResponse`
|
|
2163
|
-
|
|
2164
|
-
"""
|
|
2165
|
-
try:
|
|
2166
|
-
params = request._serialize()
|
|
2167
|
-
headers = request.headers
|
|
2168
|
-
body = self.call("RollbackPGUserMigrations", params, headers=headers)
|
|
2169
|
-
response = json.loads(body)
|
|
2170
|
-
model = models.RollbackPGUserMigrationsResponse()
|
|
2171
|
-
model._deserialize(response["Response"])
|
|
2172
|
-
return model
|
|
2173
|
-
except Exception as e:
|
|
2174
|
-
if isinstance(e, TencentCloudSDKException):
|
|
2175
|
-
raise
|
|
2176
|
-
else:
|
|
2177
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
2157
|
def RunCommands(self, request):
|
|
2181
2158
|
r"""本接口(RunCommands)用于执行文档型数据库命令。
|
|
2182
2159
|
|
|
@@ -1718,24 +1718,6 @@ class TcbClient(AbstractClient):
|
|
|
1718
1718
|
|
|
1719
1719
|
return await self.call_and_deserialize(**kwargs)
|
|
1720
1720
|
|
|
1721
|
-
async def RollbackPGUserMigrations(
|
|
1722
|
-
self,
|
|
1723
|
-
request: models.RollbackPGUserMigrationsRequest,
|
|
1724
|
-
opts: Dict = None,
|
|
1725
|
-
) -> models.RollbackPGUserMigrationsResponse:
|
|
1726
|
-
"""
|
|
1727
|
-
本接口(RollbackPGUserMigrations)用于按最近 N 条已应用 migration 倒序执行 rollback。
|
|
1728
|
-
"""
|
|
1729
|
-
|
|
1730
|
-
kwargs = {}
|
|
1731
|
-
kwargs["action"] = "RollbackPGUserMigrations"
|
|
1732
|
-
kwargs["params"] = request._serialize()
|
|
1733
|
-
kwargs["resp_cls"] = models.RollbackPGUserMigrationsResponse
|
|
1734
|
-
kwargs["headers"] = request.headers
|
|
1735
|
-
kwargs["opts"] = opts or {}
|
|
1736
|
-
|
|
1737
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1738
|
-
|
|
1739
1721
|
async def RunCommands(
|
|
1740
1722
|
self,
|
|
1741
1723
|
request: models.RunCommandsRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.128
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.128
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.128
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.123
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|