tencentcloud-sdk-python-tcbr 3.1.58__tar.gz → 3.1.79__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_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/setup.py +1 -1
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/v20220217/models.py +223 -20
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/v20220217/tcbr_client.py +46 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/v20220217/tcbr_client_async.py +36 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud_sdk_python_tcbr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcbr-3.1.79/tencentcloud_sdk_python_tcbr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcbr-3.1.58/tencentcloud_sdk_python_tcbr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/README.rst +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/__init__.py +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/v20220217/__init__.py +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud/tcbr/v20220217/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud_sdk_python_tcbr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud_sdk_python_tcbr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcbr-3.1.58 → tencentcloud_sdk_python_tcbr-3.1.79}/tencentcloud_sdk_python_tcbr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcbr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.79
|
|
4
4
|
Summary: Tencent Cloud Tcbr 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.79
|
|
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-tcbr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.79,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcbr SDK for Python',
|
|
@@ -5668,25 +5668,25 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5668
5668
|
|
|
5669
5669
|
def __init__(self):
|
|
5670
5670
|
r"""
|
|
5671
|
-
:param _ServerName:
|
|
5671
|
+
:param _ServerName: <p>服务名</p>
|
|
5672
5672
|
:type ServerName: str
|
|
5673
|
-
:param _DefaultDomainName:
|
|
5673
|
+
:param _DefaultDomainName: <p>默认服务域名</p>
|
|
5674
5674
|
:type DefaultDomainName: str
|
|
5675
|
-
:param _CustomDomainName:
|
|
5675
|
+
:param _CustomDomainName: <p>自定义域名</p>
|
|
5676
5676
|
:type CustomDomainName: str
|
|
5677
|
-
:param _Status:
|
|
5677
|
+
:param _Status: <p>服务状态:creating/create_failed/freezing/freeze_fail/froze/unfreezing/unfreeze_fail/normal/deleting/delete_failed/abnormal</p><p>枚举值:</p><ul><li>creating: 创建中</li><li>create_failed: 创建失败</li><li>freezing: 冻结中</li><li>freeze_fail: 冻结失败</li><li>froze: 已冻结</li><li>unfreezing: 解冻中</li><li>unfreeze_fail: 解冻失败</li><li>normal: 正常</li><li>deleting: 删除中</li><li>delete_failed: 删除失败</li><li>abnormal: 服务异常</li></ul>
|
|
5678
5678
|
:type Status: str
|
|
5679
|
-
:param _UpdateTime:
|
|
5679
|
+
:param _UpdateTime: <p>更新时间</p>
|
|
5680
5680
|
:type UpdateTime: str
|
|
5681
|
-
:param _AccessTypes:
|
|
5681
|
+
:param _AccessTypes: <p>公网访问类型</p>
|
|
5682
5682
|
:type AccessTypes: list of str
|
|
5683
|
-
:param _CustomDomainNames:
|
|
5683
|
+
:param _CustomDomainNames: <p>展示自定义域名</p>
|
|
5684
5684
|
:type CustomDomainNames: list of str
|
|
5685
|
-
:param _ServerType:
|
|
5685
|
+
:param _ServerType: <p>服务类型: function 云函数2.0;container 容器服务</p>
|
|
5686
5686
|
:type ServerType: str
|
|
5687
|
-
:param _TrafficType:
|
|
5687
|
+
:param _TrafficType: <p>流量类型,目前只有 FLOW</p>
|
|
5688
5688
|
:type TrafficType: str
|
|
5689
|
-
:param _CreateTime:
|
|
5689
|
+
:param _CreateTime: <p>创建时间</p>
|
|
5690
5690
|
:type CreateTime: str
|
|
5691
5691
|
"""
|
|
5692
5692
|
self._ServerName = None
|
|
@@ -5702,7 +5702,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5702
5702
|
|
|
5703
5703
|
@property
|
|
5704
5704
|
def ServerName(self):
|
|
5705
|
-
r"""
|
|
5705
|
+
r"""<p>服务名</p>
|
|
5706
5706
|
:rtype: str
|
|
5707
5707
|
"""
|
|
5708
5708
|
return self._ServerName
|
|
@@ -5713,7 +5713,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5713
5713
|
|
|
5714
5714
|
@property
|
|
5715
5715
|
def DefaultDomainName(self):
|
|
5716
|
-
r"""
|
|
5716
|
+
r"""<p>默认服务域名</p>
|
|
5717
5717
|
:rtype: str
|
|
5718
5718
|
"""
|
|
5719
5719
|
return self._DefaultDomainName
|
|
@@ -5724,7 +5724,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5724
5724
|
|
|
5725
5725
|
@property
|
|
5726
5726
|
def CustomDomainName(self):
|
|
5727
|
-
r"""
|
|
5727
|
+
r"""<p>自定义域名</p>
|
|
5728
5728
|
:rtype: str
|
|
5729
5729
|
"""
|
|
5730
5730
|
return self._CustomDomainName
|
|
@@ -5735,7 +5735,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5735
5735
|
|
|
5736
5736
|
@property
|
|
5737
5737
|
def Status(self):
|
|
5738
|
-
r"""
|
|
5738
|
+
r"""<p>服务状态:creating/create_failed/freezing/freeze_fail/froze/unfreezing/unfreeze_fail/normal/deleting/delete_failed/abnormal</p><p>枚举值:</p><ul><li>creating: 创建中</li><li>create_failed: 创建失败</li><li>freezing: 冻结中</li><li>freeze_fail: 冻结失败</li><li>froze: 已冻结</li><li>unfreezing: 解冻中</li><li>unfreeze_fail: 解冻失败</li><li>normal: 正常</li><li>deleting: 删除中</li><li>delete_failed: 删除失败</li><li>abnormal: 服务异常</li></ul>
|
|
5739
5739
|
:rtype: str
|
|
5740
5740
|
"""
|
|
5741
5741
|
return self._Status
|
|
@@ -5746,7 +5746,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5746
5746
|
|
|
5747
5747
|
@property
|
|
5748
5748
|
def UpdateTime(self):
|
|
5749
|
-
r"""
|
|
5749
|
+
r"""<p>更新时间</p>
|
|
5750
5750
|
:rtype: str
|
|
5751
5751
|
"""
|
|
5752
5752
|
return self._UpdateTime
|
|
@@ -5757,7 +5757,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5757
5757
|
|
|
5758
5758
|
@property
|
|
5759
5759
|
def AccessTypes(self):
|
|
5760
|
-
r"""
|
|
5760
|
+
r"""<p>公网访问类型</p>
|
|
5761
5761
|
:rtype: list of str
|
|
5762
5762
|
"""
|
|
5763
5763
|
return self._AccessTypes
|
|
@@ -5768,7 +5768,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5768
5768
|
|
|
5769
5769
|
@property
|
|
5770
5770
|
def CustomDomainNames(self):
|
|
5771
|
-
r"""
|
|
5771
|
+
r"""<p>展示自定义域名</p>
|
|
5772
5772
|
:rtype: list of str
|
|
5773
5773
|
"""
|
|
5774
5774
|
return self._CustomDomainNames
|
|
@@ -5779,7 +5779,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5779
5779
|
|
|
5780
5780
|
@property
|
|
5781
5781
|
def ServerType(self):
|
|
5782
|
-
r"""
|
|
5782
|
+
r"""<p>服务类型: function 云函数2.0;container 容器服务</p>
|
|
5783
5783
|
:rtype: str
|
|
5784
5784
|
"""
|
|
5785
5785
|
return self._ServerType
|
|
@@ -5790,7 +5790,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5790
5790
|
|
|
5791
5791
|
@property
|
|
5792
5792
|
def TrafficType(self):
|
|
5793
|
-
r"""
|
|
5793
|
+
r"""<p>流量类型,目前只有 FLOW</p>
|
|
5794
5794
|
:rtype: str
|
|
5795
5795
|
"""
|
|
5796
5796
|
return self._TrafficType
|
|
@@ -5801,7 +5801,7 @@ class ServerBaseInfo(AbstractModel):
|
|
|
5801
5801
|
|
|
5802
5802
|
@property
|
|
5803
5803
|
def CreateTime(self):
|
|
5804
|
-
r"""
|
|
5804
|
+
r"""<p>创建时间</p>
|
|
5805
5805
|
:rtype: str
|
|
5806
5806
|
"""
|
|
5807
5807
|
return self._CreateTime
|
|
@@ -6164,6 +6164,115 @@ class SimpleVersion(AbstractModel):
|
|
|
6164
6164
|
|
|
6165
6165
|
|
|
6166
6166
|
|
|
6167
|
+
class StartVersionInstanceRequest(AbstractModel):
|
|
6168
|
+
r"""StartVersionInstance请求参数结构体
|
|
6169
|
+
|
|
6170
|
+
"""
|
|
6171
|
+
|
|
6172
|
+
def __init__(self):
|
|
6173
|
+
r"""
|
|
6174
|
+
:param _EnvId: 环境Id
|
|
6175
|
+
:type EnvId: str
|
|
6176
|
+
:param _ServerName: 服务名
|
|
6177
|
+
:type ServerName: str
|
|
6178
|
+
:param _VersionName: 版本名
|
|
6179
|
+
:type VersionName: str
|
|
6180
|
+
"""
|
|
6181
|
+
self._EnvId = None
|
|
6182
|
+
self._ServerName = None
|
|
6183
|
+
self._VersionName = None
|
|
6184
|
+
|
|
6185
|
+
@property
|
|
6186
|
+
def EnvId(self):
|
|
6187
|
+
r"""环境Id
|
|
6188
|
+
:rtype: str
|
|
6189
|
+
"""
|
|
6190
|
+
return self._EnvId
|
|
6191
|
+
|
|
6192
|
+
@EnvId.setter
|
|
6193
|
+
def EnvId(self, EnvId):
|
|
6194
|
+
self._EnvId = EnvId
|
|
6195
|
+
|
|
6196
|
+
@property
|
|
6197
|
+
def ServerName(self):
|
|
6198
|
+
r"""服务名
|
|
6199
|
+
:rtype: str
|
|
6200
|
+
"""
|
|
6201
|
+
return self._ServerName
|
|
6202
|
+
|
|
6203
|
+
@ServerName.setter
|
|
6204
|
+
def ServerName(self, ServerName):
|
|
6205
|
+
self._ServerName = ServerName
|
|
6206
|
+
|
|
6207
|
+
@property
|
|
6208
|
+
def VersionName(self):
|
|
6209
|
+
r"""版本名
|
|
6210
|
+
:rtype: str
|
|
6211
|
+
"""
|
|
6212
|
+
return self._VersionName
|
|
6213
|
+
|
|
6214
|
+
@VersionName.setter
|
|
6215
|
+
def VersionName(self, VersionName):
|
|
6216
|
+
self._VersionName = VersionName
|
|
6217
|
+
|
|
6218
|
+
|
|
6219
|
+
def _deserialize(self, params):
|
|
6220
|
+
self._EnvId = params.get("EnvId")
|
|
6221
|
+
self._ServerName = params.get("ServerName")
|
|
6222
|
+
self._VersionName = params.get("VersionName")
|
|
6223
|
+
memeber_set = set(params.keys())
|
|
6224
|
+
for name, value in vars(self).items():
|
|
6225
|
+
property_name = name[1:]
|
|
6226
|
+
if property_name in memeber_set:
|
|
6227
|
+
memeber_set.remove(property_name)
|
|
6228
|
+
if len(memeber_set) > 0:
|
|
6229
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6230
|
+
|
|
6231
|
+
|
|
6232
|
+
|
|
6233
|
+
class StartVersionInstanceResponse(AbstractModel):
|
|
6234
|
+
r"""StartVersionInstance返回参数结构体
|
|
6235
|
+
|
|
6236
|
+
"""
|
|
6237
|
+
|
|
6238
|
+
def __init__(self):
|
|
6239
|
+
r"""
|
|
6240
|
+
:param _InstanceName: pod名
|
|
6241
|
+
:type InstanceName: str
|
|
6242
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6243
|
+
:type RequestId: str
|
|
6244
|
+
"""
|
|
6245
|
+
self._InstanceName = None
|
|
6246
|
+
self._RequestId = None
|
|
6247
|
+
|
|
6248
|
+
@property
|
|
6249
|
+
def InstanceName(self):
|
|
6250
|
+
r"""pod名
|
|
6251
|
+
:rtype: str
|
|
6252
|
+
"""
|
|
6253
|
+
return self._InstanceName
|
|
6254
|
+
|
|
6255
|
+
@InstanceName.setter
|
|
6256
|
+
def InstanceName(self, InstanceName):
|
|
6257
|
+
self._InstanceName = InstanceName
|
|
6258
|
+
|
|
6259
|
+
@property
|
|
6260
|
+
def RequestId(self):
|
|
6261
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6262
|
+
:rtype: str
|
|
6263
|
+
"""
|
|
6264
|
+
return self._RequestId
|
|
6265
|
+
|
|
6266
|
+
@RequestId.setter
|
|
6267
|
+
def RequestId(self, RequestId):
|
|
6268
|
+
self._RequestId = RequestId
|
|
6269
|
+
|
|
6270
|
+
|
|
6271
|
+
def _deserialize(self, params):
|
|
6272
|
+
self._InstanceName = params.get("InstanceName")
|
|
6273
|
+
self._RequestId = params.get("RequestId")
|
|
6274
|
+
|
|
6275
|
+
|
|
6167
6276
|
class StaticStorageInfo(AbstractModel):
|
|
6168
6277
|
r"""静态CDN资源信息
|
|
6169
6278
|
|
|
@@ -6260,6 +6369,100 @@ class StaticStorageInfo(AbstractModel):
|
|
|
6260
6369
|
|
|
6261
6370
|
|
|
6262
6371
|
|
|
6372
|
+
class StopVersionInstanceRequest(AbstractModel):
|
|
6373
|
+
r"""StopVersionInstance请求参数结构体
|
|
6374
|
+
|
|
6375
|
+
"""
|
|
6376
|
+
|
|
6377
|
+
def __init__(self):
|
|
6378
|
+
r"""
|
|
6379
|
+
:param _EnvId: 环境Id
|
|
6380
|
+
:type EnvId: str
|
|
6381
|
+
:param _ServerName: 服务名
|
|
6382
|
+
:type ServerName: str
|
|
6383
|
+
:param _InstanceName: 实例名
|
|
6384
|
+
:type InstanceName: str
|
|
6385
|
+
"""
|
|
6386
|
+
self._EnvId = None
|
|
6387
|
+
self._ServerName = None
|
|
6388
|
+
self._InstanceName = None
|
|
6389
|
+
|
|
6390
|
+
@property
|
|
6391
|
+
def EnvId(self):
|
|
6392
|
+
r"""环境Id
|
|
6393
|
+
:rtype: str
|
|
6394
|
+
"""
|
|
6395
|
+
return self._EnvId
|
|
6396
|
+
|
|
6397
|
+
@EnvId.setter
|
|
6398
|
+
def EnvId(self, EnvId):
|
|
6399
|
+
self._EnvId = EnvId
|
|
6400
|
+
|
|
6401
|
+
@property
|
|
6402
|
+
def ServerName(self):
|
|
6403
|
+
r"""服务名
|
|
6404
|
+
:rtype: str
|
|
6405
|
+
"""
|
|
6406
|
+
return self._ServerName
|
|
6407
|
+
|
|
6408
|
+
@ServerName.setter
|
|
6409
|
+
def ServerName(self, ServerName):
|
|
6410
|
+
self._ServerName = ServerName
|
|
6411
|
+
|
|
6412
|
+
@property
|
|
6413
|
+
def InstanceName(self):
|
|
6414
|
+
r"""实例名
|
|
6415
|
+
:rtype: str
|
|
6416
|
+
"""
|
|
6417
|
+
return self._InstanceName
|
|
6418
|
+
|
|
6419
|
+
@InstanceName.setter
|
|
6420
|
+
def InstanceName(self, InstanceName):
|
|
6421
|
+
self._InstanceName = InstanceName
|
|
6422
|
+
|
|
6423
|
+
|
|
6424
|
+
def _deserialize(self, params):
|
|
6425
|
+
self._EnvId = params.get("EnvId")
|
|
6426
|
+
self._ServerName = params.get("ServerName")
|
|
6427
|
+
self._InstanceName = params.get("InstanceName")
|
|
6428
|
+
memeber_set = set(params.keys())
|
|
6429
|
+
for name, value in vars(self).items():
|
|
6430
|
+
property_name = name[1:]
|
|
6431
|
+
if property_name in memeber_set:
|
|
6432
|
+
memeber_set.remove(property_name)
|
|
6433
|
+
if len(memeber_set) > 0:
|
|
6434
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6435
|
+
|
|
6436
|
+
|
|
6437
|
+
|
|
6438
|
+
class StopVersionInstanceResponse(AbstractModel):
|
|
6439
|
+
r"""StopVersionInstance返回参数结构体
|
|
6440
|
+
|
|
6441
|
+
"""
|
|
6442
|
+
|
|
6443
|
+
def __init__(self):
|
|
6444
|
+
r"""
|
|
6445
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6446
|
+
:type RequestId: str
|
|
6447
|
+
"""
|
|
6448
|
+
self._RequestId = None
|
|
6449
|
+
|
|
6450
|
+
@property
|
|
6451
|
+
def RequestId(self):
|
|
6452
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6453
|
+
:rtype: str
|
|
6454
|
+
"""
|
|
6455
|
+
return self._RequestId
|
|
6456
|
+
|
|
6457
|
+
@RequestId.setter
|
|
6458
|
+
def RequestId(self, RequestId):
|
|
6459
|
+
self._RequestId = RequestId
|
|
6460
|
+
|
|
6461
|
+
|
|
6462
|
+
def _deserialize(self, params):
|
|
6463
|
+
self._RequestId = params.get("RequestId")
|
|
6464
|
+
|
|
6465
|
+
|
|
6263
6466
|
class StorageInfo(AbstractModel):
|
|
6264
6467
|
r"""StorageInfo 资源信息
|
|
6265
6468
|
|
|
@@ -417,6 +417,52 @@ class TcbrClient(AbstractClient):
|
|
|
417
417
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
418
|
|
|
419
419
|
|
|
420
|
+
def StartVersionInstance(self, request):
|
|
421
|
+
r"""启动版本实例
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for StartVersionInstance.
|
|
424
|
+
:type request: :class:`tencentcloud.tcbr.v20220217.models.StartVersionInstanceRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.tcbr.v20220217.models.StartVersionInstanceResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("StartVersionInstance", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.StartVersionInstanceResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def StopVersionInstance(self, request):
|
|
444
|
+
r"""停止版本实例
|
|
445
|
+
|
|
446
|
+
:param request: Request instance for StopVersionInstance.
|
|
447
|
+
:type request: :class:`tencentcloud.tcbr.v20220217.models.StopVersionInstanceRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.tcbr.v20220217.models.StopVersionInstanceResponse`
|
|
449
|
+
|
|
450
|
+
"""
|
|
451
|
+
try:
|
|
452
|
+
params = request._serialize()
|
|
453
|
+
headers = request.headers
|
|
454
|
+
body = self.call("StopVersionInstance", params, headers=headers)
|
|
455
|
+
response = json.loads(body)
|
|
456
|
+
model = models.StopVersionInstanceResponse()
|
|
457
|
+
model._deserialize(response["Response"])
|
|
458
|
+
return model
|
|
459
|
+
except Exception as e:
|
|
460
|
+
if isinstance(e, TencentCloudSDKException):
|
|
461
|
+
raise
|
|
462
|
+
else:
|
|
463
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
464
|
+
|
|
465
|
+
|
|
420
466
|
def SubmitServerRollback(self, request):
|
|
421
467
|
r"""回滚版本
|
|
422
468
|
|
|
@@ -331,6 +331,42 @@ class TcbrClient(AbstractClient):
|
|
|
331
331
|
|
|
332
332
|
return await self.call_and_deserialize(**kwargs)
|
|
333
333
|
|
|
334
|
+
async def StartVersionInstance(
|
|
335
|
+
self,
|
|
336
|
+
request: models.StartVersionInstanceRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.StartVersionInstanceResponse:
|
|
339
|
+
"""
|
|
340
|
+
启动版本实例
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "StartVersionInstance"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.StartVersionInstanceResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
351
|
+
|
|
352
|
+
async def StopVersionInstance(
|
|
353
|
+
self,
|
|
354
|
+
request: models.StopVersionInstanceRequest,
|
|
355
|
+
opts: Dict = None,
|
|
356
|
+
) -> models.StopVersionInstanceResponse:
|
|
357
|
+
"""
|
|
358
|
+
停止版本实例
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
kwargs = {}
|
|
362
|
+
kwargs["action"] = "StopVersionInstance"
|
|
363
|
+
kwargs["params"] = request._serialize()
|
|
364
|
+
kwargs["resp_cls"] = models.StopVersionInstanceResponse
|
|
365
|
+
kwargs["headers"] = request.headers
|
|
366
|
+
kwargs["opts"] = opts or {}
|
|
367
|
+
|
|
368
|
+
return await self.call_and_deserialize(**kwargs)
|
|
369
|
+
|
|
334
370
|
async def SubmitServerRollback(
|
|
335
371
|
self,
|
|
336
372
|
request: models.SubmitServerRollbackRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcbr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.79
|
|
4
4
|
Summary: Tencent Cloud Tcbr 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.79
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.79
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.58
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|