tencentcloud-sdk-python-tcb 3.1.127__tar.gz → 3.1.129__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.127 → tencentcloud_sdk_python_tcb-3.1.129}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/setup.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/v20180608/models.py +0 -211
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/v20180608/tcb_client.py +0 -23
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/v20180608/tcb_client_async.py +0 -18
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcb-3.1.129/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcb-3.1.127/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/README.rst +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/v20180608/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.127 → tencentcloud_sdk_python_tcb-3.1.129}/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.129
|
|
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.129
|
|
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.129,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcb SDK for Python',
|
|
@@ -19419,14 +19419,11 @@ class PostgreSQLInfo(AbstractModel):
|
|
|
19419
19419
|
:type Status: int
|
|
19420
19420
|
:param _Region: <p>地域</p>
|
|
19421
19421
|
:type Region: str
|
|
19422
|
-
:param _Version: <p>数据库引擎版本</p>
|
|
19423
|
-
:type Version: str
|
|
19424
19422
|
"""
|
|
19425
19423
|
self._Name = None
|
|
19426
19424
|
self._InstanceName = None
|
|
19427
19425
|
self._Status = None
|
|
19428
19426
|
self._Region = None
|
|
19429
|
-
self._Version = None
|
|
19430
19427
|
|
|
19431
19428
|
@property
|
|
19432
19429
|
def Name(self):
|
|
@@ -19472,24 +19469,12 @@ class PostgreSQLInfo(AbstractModel):
|
|
|
19472
19469
|
def Region(self, Region):
|
|
19473
19470
|
self._Region = Region
|
|
19474
19471
|
|
|
19475
|
-
@property
|
|
19476
|
-
def Version(self):
|
|
19477
|
-
r"""<p>数据库引擎版本</p>
|
|
19478
|
-
:rtype: str
|
|
19479
|
-
"""
|
|
19480
|
-
return self._Version
|
|
19481
|
-
|
|
19482
|
-
@Version.setter
|
|
19483
|
-
def Version(self, Version):
|
|
19484
|
-
self._Version = Version
|
|
19485
|
-
|
|
19486
19472
|
|
|
19487
19473
|
def _deserialize(self, params):
|
|
19488
19474
|
self._Name = params.get("Name")
|
|
19489
19475
|
self._InstanceName = params.get("InstanceName")
|
|
19490
19476
|
self._Status = params.get("Status")
|
|
19491
19477
|
self._Region = params.get("Region")
|
|
19492
|
-
self._Version = params.get("Version")
|
|
19493
19478
|
memeber_set = set(params.keys())
|
|
19494
19479
|
for name, value in vars(self).items():
|
|
19495
19480
|
property_name = name[1:]
|
|
@@ -21094,202 +21079,6 @@ class ResourcePermission(AbstractModel):
|
|
|
21094
21079
|
|
|
21095
21080
|
|
|
21096
21081
|
|
|
21097
|
-
class RollbackPGUserMigrationsRequest(AbstractModel):
|
|
21098
|
-
r"""RollbackPGUserMigrations请求参数结构体
|
|
21099
|
-
|
|
21100
|
-
"""
|
|
21101
|
-
|
|
21102
|
-
def __init__(self):
|
|
21103
|
-
r"""
|
|
21104
|
-
:param _EnvId: <p>云开发环境ID</p>
|
|
21105
|
-
:type EnvId: str
|
|
21106
|
-
:param _LastN: <p>要回滚的条数</p><p>按照逆序回滚最近N条migration</p>
|
|
21107
|
-
:type LastN: int
|
|
21108
|
-
:param _LockTimeoutMs: <p>等待获取数据库锁的最长时间</p><p>单位:毫秒</p><p>默认值:5000</p>
|
|
21109
|
-
:type LockTimeoutMs: int
|
|
21110
|
-
:param _StatementTimeoutMs: <p>单条 SQL 执行最长时间,超过后由 PostgreSQL 取消该语句</p><p>单位:毫秒</p><p>默认值:300000</p>
|
|
21111
|
-
:type StatementTimeoutMs: int
|
|
21112
|
-
:param _Source: <p>标记API调用来源</p>
|
|
21113
|
-
:type Source: str
|
|
21114
|
-
"""
|
|
21115
|
-
self._EnvId = None
|
|
21116
|
-
self._LastN = None
|
|
21117
|
-
self._LockTimeoutMs = None
|
|
21118
|
-
self._StatementTimeoutMs = None
|
|
21119
|
-
self._Source = None
|
|
21120
|
-
|
|
21121
|
-
@property
|
|
21122
|
-
def EnvId(self):
|
|
21123
|
-
r"""<p>云开发环境ID</p>
|
|
21124
|
-
:rtype: str
|
|
21125
|
-
"""
|
|
21126
|
-
return self._EnvId
|
|
21127
|
-
|
|
21128
|
-
@EnvId.setter
|
|
21129
|
-
def EnvId(self, EnvId):
|
|
21130
|
-
self._EnvId = EnvId
|
|
21131
|
-
|
|
21132
|
-
@property
|
|
21133
|
-
def LastN(self):
|
|
21134
|
-
r"""<p>要回滚的条数</p><p>按照逆序回滚最近N条migration</p>
|
|
21135
|
-
:rtype: int
|
|
21136
|
-
"""
|
|
21137
|
-
return self._LastN
|
|
21138
|
-
|
|
21139
|
-
@LastN.setter
|
|
21140
|
-
def LastN(self, LastN):
|
|
21141
|
-
self._LastN = LastN
|
|
21142
|
-
|
|
21143
|
-
@property
|
|
21144
|
-
def LockTimeoutMs(self):
|
|
21145
|
-
r"""<p>等待获取数据库锁的最长时间</p><p>单位:毫秒</p><p>默认值:5000</p>
|
|
21146
|
-
:rtype: int
|
|
21147
|
-
"""
|
|
21148
|
-
return self._LockTimeoutMs
|
|
21149
|
-
|
|
21150
|
-
@LockTimeoutMs.setter
|
|
21151
|
-
def LockTimeoutMs(self, LockTimeoutMs):
|
|
21152
|
-
self._LockTimeoutMs = LockTimeoutMs
|
|
21153
|
-
|
|
21154
|
-
@property
|
|
21155
|
-
def StatementTimeoutMs(self):
|
|
21156
|
-
r"""<p>单条 SQL 执行最长时间,超过后由 PostgreSQL 取消该语句</p><p>单位:毫秒</p><p>默认值:300000</p>
|
|
21157
|
-
:rtype: int
|
|
21158
|
-
"""
|
|
21159
|
-
return self._StatementTimeoutMs
|
|
21160
|
-
|
|
21161
|
-
@StatementTimeoutMs.setter
|
|
21162
|
-
def StatementTimeoutMs(self, StatementTimeoutMs):
|
|
21163
|
-
self._StatementTimeoutMs = StatementTimeoutMs
|
|
21164
|
-
|
|
21165
|
-
@property
|
|
21166
|
-
def Source(self):
|
|
21167
|
-
r"""<p>标记API调用来源</p>
|
|
21168
|
-
:rtype: str
|
|
21169
|
-
"""
|
|
21170
|
-
return self._Source
|
|
21171
|
-
|
|
21172
|
-
@Source.setter
|
|
21173
|
-
def Source(self, Source):
|
|
21174
|
-
self._Source = Source
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
def _deserialize(self, params):
|
|
21178
|
-
self._EnvId = params.get("EnvId")
|
|
21179
|
-
self._LastN = params.get("LastN")
|
|
21180
|
-
self._LockTimeoutMs = params.get("LockTimeoutMs")
|
|
21181
|
-
self._StatementTimeoutMs = params.get("StatementTimeoutMs")
|
|
21182
|
-
self._Source = params.get("Source")
|
|
21183
|
-
memeber_set = set(params.keys())
|
|
21184
|
-
for name, value in vars(self).items():
|
|
21185
|
-
property_name = name[1:]
|
|
21186
|
-
if property_name in memeber_set:
|
|
21187
|
-
memeber_set.remove(property_name)
|
|
21188
|
-
if len(memeber_set) > 0:
|
|
21189
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
class RollbackPGUserMigrationsResponse(AbstractModel):
|
|
21194
|
-
r"""RollbackPGUserMigrations返回参数结构体
|
|
21195
|
-
|
|
21196
|
-
"""
|
|
21197
|
-
|
|
21198
|
-
def __init__(self):
|
|
21199
|
-
r"""
|
|
21200
|
-
:param _TaskId: <p>任务ID</p><p>可通过DescribeTaskResult 接口查询进度</p>
|
|
21201
|
-
:type TaskId: str
|
|
21202
|
-
:param _RolledBack: <p>已成功回滚并删除 history 的 migration</p>
|
|
21203
|
-
:type RolledBack: list of MigrationSummary
|
|
21204
|
-
:param _SkippedRollbackSql: <p>未提供 Rollback SQL、视为成功并删除 history 的 migration</p>
|
|
21205
|
-
:type SkippedRollbackSql: list of MigrationSummary
|
|
21206
|
-
:param _Failed: <p>执行 Rollback SQL 失败的 migration,可为空</p>
|
|
21207
|
-
:type Failed: :class:`tencentcloud.tcb.v20180608.models.MigrationSummary`
|
|
21208
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21209
|
-
:type RequestId: str
|
|
21210
|
-
"""
|
|
21211
|
-
self._TaskId = None
|
|
21212
|
-
self._RolledBack = None
|
|
21213
|
-
self._SkippedRollbackSql = None
|
|
21214
|
-
self._Failed = None
|
|
21215
|
-
self._RequestId = None
|
|
21216
|
-
|
|
21217
|
-
@property
|
|
21218
|
-
def TaskId(self):
|
|
21219
|
-
r"""<p>任务ID</p><p>可通过DescribeTaskResult 接口查询进度</p>
|
|
21220
|
-
:rtype: str
|
|
21221
|
-
"""
|
|
21222
|
-
return self._TaskId
|
|
21223
|
-
|
|
21224
|
-
@TaskId.setter
|
|
21225
|
-
def TaskId(self, TaskId):
|
|
21226
|
-
self._TaskId = TaskId
|
|
21227
|
-
|
|
21228
|
-
@property
|
|
21229
|
-
def RolledBack(self):
|
|
21230
|
-
r"""<p>已成功回滚并删除 history 的 migration</p>
|
|
21231
|
-
:rtype: list of MigrationSummary
|
|
21232
|
-
"""
|
|
21233
|
-
return self._RolledBack
|
|
21234
|
-
|
|
21235
|
-
@RolledBack.setter
|
|
21236
|
-
def RolledBack(self, RolledBack):
|
|
21237
|
-
self._RolledBack = RolledBack
|
|
21238
|
-
|
|
21239
|
-
@property
|
|
21240
|
-
def SkippedRollbackSql(self):
|
|
21241
|
-
r"""<p>未提供 Rollback SQL、视为成功并删除 history 的 migration</p>
|
|
21242
|
-
:rtype: list of MigrationSummary
|
|
21243
|
-
"""
|
|
21244
|
-
return self._SkippedRollbackSql
|
|
21245
|
-
|
|
21246
|
-
@SkippedRollbackSql.setter
|
|
21247
|
-
def SkippedRollbackSql(self, SkippedRollbackSql):
|
|
21248
|
-
self._SkippedRollbackSql = SkippedRollbackSql
|
|
21249
|
-
|
|
21250
|
-
@property
|
|
21251
|
-
def Failed(self):
|
|
21252
|
-
r"""<p>执行 Rollback SQL 失败的 migration,可为空</p>
|
|
21253
|
-
:rtype: :class:`tencentcloud.tcb.v20180608.models.MigrationSummary`
|
|
21254
|
-
"""
|
|
21255
|
-
return self._Failed
|
|
21256
|
-
|
|
21257
|
-
@Failed.setter
|
|
21258
|
-
def Failed(self, Failed):
|
|
21259
|
-
self._Failed = Failed
|
|
21260
|
-
|
|
21261
|
-
@property
|
|
21262
|
-
def RequestId(self):
|
|
21263
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21264
|
-
:rtype: str
|
|
21265
|
-
"""
|
|
21266
|
-
return self._RequestId
|
|
21267
|
-
|
|
21268
|
-
@RequestId.setter
|
|
21269
|
-
def RequestId(self, RequestId):
|
|
21270
|
-
self._RequestId = RequestId
|
|
21271
|
-
|
|
21272
|
-
|
|
21273
|
-
def _deserialize(self, params):
|
|
21274
|
-
self._TaskId = params.get("TaskId")
|
|
21275
|
-
if params.get("RolledBack") is not None:
|
|
21276
|
-
self._RolledBack = []
|
|
21277
|
-
for item in params.get("RolledBack"):
|
|
21278
|
-
obj = MigrationSummary()
|
|
21279
|
-
obj._deserialize(item)
|
|
21280
|
-
self._RolledBack.append(obj)
|
|
21281
|
-
if params.get("SkippedRollbackSql") is not None:
|
|
21282
|
-
self._SkippedRollbackSql = []
|
|
21283
|
-
for item in params.get("SkippedRollbackSql"):
|
|
21284
|
-
obj = MigrationSummary()
|
|
21285
|
-
obj._deserialize(item)
|
|
21286
|
-
self._SkippedRollbackSql.append(obj)
|
|
21287
|
-
if params.get("Failed") is not None:
|
|
21288
|
-
self._Failed = MigrationSummary()
|
|
21289
|
-
self._Failed._deserialize(params.get("Failed"))
|
|
21290
|
-
self._RequestId = params.get("RequestId")
|
|
21291
|
-
|
|
21292
|
-
|
|
21293
21082
|
class RunCommandsRequest(AbstractModel):
|
|
21294
21083
|
r"""RunCommands请求参数结构体
|
|
21295
21084
|
|
|
@@ -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.129
|
|
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.129
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.129
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.127
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|