tencentcloud-sdk-python-tcbr 3.1.155__tar.gz → 3.1.207__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_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/v20220217/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/v20220217/models.py +263 -0
  6. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/v20220217/tcbr_client.py +46 -0
  7. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/v20220217/tcbr_client_async.py +36 -0
  8. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud_sdk_python_tcbr.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tcbr-3.1.207/tencentcloud_sdk_python_tcbr.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tcbr-3.1.155/tencentcloud_sdk_python_tcbr.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud/tcbr/v20220217/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud_sdk_python_tcbr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/tencentcloud_sdk_python_tcbr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcbr-3.1.155 → tencentcloud_sdk_python_tcbr-3.1.207}/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.155
3
+ Version: 3.1.207
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.155
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.207
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.155,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.207,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcbr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.155'
17
+ __version__ = '3.1.207'
@@ -26,6 +26,9 @@ INTERNALERROR = 'InternalError'
26
26
  # 参数错误。
27
27
  INVALIDPARAMETER = 'InvalidParameter'
28
28
 
29
+ # 参数取值错误。
30
+ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
31
+
29
32
  # 超过配额限制。
30
33
  LIMITEXCEEDED = 'LimitExceeded'
31
34
 
@@ -3880,6 +3880,175 @@ class HpaPolicy(AbstractModel):
3880
3880
 
3881
3881
 
3882
3882
 
3883
+ class InitializeCloudRunResourceRequest(AbstractModel):
3884
+ r"""InitializeCloudRunResource请求参数结构体
3885
+
3886
+ """
3887
+
3888
+ def __init__(self):
3889
+ r"""
3890
+ :param _EnvType: <p>tcbr,run,weda,baas</p>
3891
+ :type EnvType: str
3892
+ :param _EnvId: <p>环境ID 云开发平台必填</p>
3893
+ :type EnvId: str
3894
+ :param _VpcId: <p>私有网络Id</p>
3895
+ :type VpcId: str
3896
+ :param _SubNetIds: <p>子网列表</p>
3897
+ :type SubNetIds: list of str
3898
+ :param _Source: <p>来源:wechat | cloud | weda</p>
3899
+ :type Source: str
3900
+ :param _Channel: <p>渠道:wechat | cloud | weda</p>
3901
+ :type Channel: str
3902
+ """
3903
+ self._EnvType = None
3904
+ self._EnvId = None
3905
+ self._VpcId = None
3906
+ self._SubNetIds = None
3907
+ self._Source = None
3908
+ self._Channel = None
3909
+
3910
+ @property
3911
+ def EnvType(self):
3912
+ r"""<p>tcbr,run,weda,baas</p>
3913
+ :rtype: str
3914
+ """
3915
+ return self._EnvType
3916
+
3917
+ @EnvType.setter
3918
+ def EnvType(self, EnvType):
3919
+ self._EnvType = EnvType
3920
+
3921
+ @property
3922
+ def EnvId(self):
3923
+ r"""<p>环境ID 云开发平台必填</p>
3924
+ :rtype: str
3925
+ """
3926
+ return self._EnvId
3927
+
3928
+ @EnvId.setter
3929
+ def EnvId(self, EnvId):
3930
+ self._EnvId = EnvId
3931
+
3932
+ @property
3933
+ def VpcId(self):
3934
+ r"""<p>私有网络Id</p>
3935
+ :rtype: str
3936
+ """
3937
+ return self._VpcId
3938
+
3939
+ @VpcId.setter
3940
+ def VpcId(self, VpcId):
3941
+ self._VpcId = VpcId
3942
+
3943
+ @property
3944
+ def SubNetIds(self):
3945
+ r"""<p>子网列表</p>
3946
+ :rtype: list of str
3947
+ """
3948
+ return self._SubNetIds
3949
+
3950
+ @SubNetIds.setter
3951
+ def SubNetIds(self, SubNetIds):
3952
+ self._SubNetIds = SubNetIds
3953
+
3954
+ @property
3955
+ def Source(self):
3956
+ r"""<p>来源:wechat | cloud | weda</p>
3957
+ :rtype: str
3958
+ """
3959
+ return self._Source
3960
+
3961
+ @Source.setter
3962
+ def Source(self, Source):
3963
+ self._Source = Source
3964
+
3965
+ @property
3966
+ def Channel(self):
3967
+ r"""<p>渠道:wechat | cloud | weda</p>
3968
+ :rtype: str
3969
+ """
3970
+ return self._Channel
3971
+
3972
+ @Channel.setter
3973
+ def Channel(self, Channel):
3974
+ self._Channel = Channel
3975
+
3976
+
3977
+ def _deserialize(self, params):
3978
+ self._EnvType = params.get("EnvType")
3979
+ self._EnvId = params.get("EnvId")
3980
+ self._VpcId = params.get("VpcId")
3981
+ self._SubNetIds = params.get("SubNetIds")
3982
+ self._Source = params.get("Source")
3983
+ self._Channel = params.get("Channel")
3984
+ memeber_set = set(params.keys())
3985
+ for name, value in vars(self).items():
3986
+ property_name = name[1:]
3987
+ if property_name in memeber_set:
3988
+ memeber_set.remove(property_name)
3989
+ if len(memeber_set) > 0:
3990
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3991
+
3992
+
3993
+
3994
+ class InitializeCloudRunResourceResponse(AbstractModel):
3995
+ r"""InitializeCloudRunResource返回参数结构体
3996
+
3997
+ """
3998
+
3999
+ def __init__(self):
4000
+ r"""
4001
+ :param _EnvId: <p>环境Id</p>
4002
+ :type EnvId: str
4003
+ :param _TranId: <p>后付费订单号</p>
4004
+ :type TranId: str
4005
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4006
+ :type RequestId: str
4007
+ """
4008
+ self._EnvId = None
4009
+ self._TranId = None
4010
+ self._RequestId = None
4011
+
4012
+ @property
4013
+ def EnvId(self):
4014
+ r"""<p>环境Id</p>
4015
+ :rtype: str
4016
+ """
4017
+ return self._EnvId
4018
+
4019
+ @EnvId.setter
4020
+ def EnvId(self, EnvId):
4021
+ self._EnvId = EnvId
4022
+
4023
+ @property
4024
+ def TranId(self):
4025
+ r"""<p>后付费订单号</p>
4026
+ :rtype: str
4027
+ """
4028
+ return self._TranId
4029
+
4030
+ @TranId.setter
4031
+ def TranId(self, TranId):
4032
+ self._TranId = TranId
4033
+
4034
+ @property
4035
+ def RequestId(self):
4036
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4037
+ :rtype: str
4038
+ """
4039
+ return self._RequestId
4040
+
4041
+ @RequestId.setter
4042
+ def RequestId(self, RequestId):
4043
+ self._RequestId = RequestId
4044
+
4045
+
4046
+ def _deserialize(self, params):
4047
+ self._EnvId = params.get("EnvId")
4048
+ self._TranId = params.get("TranId")
4049
+ self._RequestId = params.get("RequestId")
4050
+
4051
+
3883
4052
  class LogObject(AbstractModel):
3884
4053
  r"""CLS日志单条信息
3885
4054
 
@@ -4191,6 +4360,100 @@ class LogServiceInfo(AbstractModel):
4191
4360
 
4192
4361
 
4193
4362
 
4363
+ class ModifyStableIPStatusRequest(AbstractModel):
4364
+ r"""ModifyStableIPStatus请求参数结构体
4365
+
4366
+ """
4367
+
4368
+ def __init__(self):
4369
+ r"""
4370
+ :param _EnvId: 环境ID
4371
+ :type EnvId: str
4372
+ :param _Status: ON: 开启固定 IP;OFF: 关闭固定 IP
4373
+ :type Status: str
4374
+ """
4375
+ self._EnvId = None
4376
+ self._Status = None
4377
+
4378
+ @property
4379
+ def EnvId(self):
4380
+ r"""环境ID
4381
+ :rtype: str
4382
+ """
4383
+ return self._EnvId
4384
+
4385
+ @EnvId.setter
4386
+ def EnvId(self, EnvId):
4387
+ self._EnvId = EnvId
4388
+
4389
+ @property
4390
+ def Status(self):
4391
+ r"""ON: 开启固定 IP;OFF: 关闭固定 IP
4392
+ :rtype: str
4393
+ """
4394
+ return self._Status
4395
+
4396
+ @Status.setter
4397
+ def Status(self, Status):
4398
+ self._Status = Status
4399
+
4400
+
4401
+ def _deserialize(self, params):
4402
+ self._EnvId = params.get("EnvId")
4403
+ self._Status = params.get("Status")
4404
+ memeber_set = set(params.keys())
4405
+ for name, value in vars(self).items():
4406
+ property_name = name[1:]
4407
+ if property_name in memeber_set:
4408
+ memeber_set.remove(property_name)
4409
+ if len(memeber_set) > 0:
4410
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4411
+
4412
+
4413
+
4414
+ class ModifyStableIPStatusResponse(AbstractModel):
4415
+ r"""ModifyStableIPStatus返回参数结构体
4416
+
4417
+ """
4418
+
4419
+ def __init__(self):
4420
+ r"""
4421
+ :param _TaskId: 任务 ID
4422
+ :type TaskId: int
4423
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4424
+ :type RequestId: str
4425
+ """
4426
+ self._TaskId = None
4427
+ self._RequestId = None
4428
+
4429
+ @property
4430
+ def TaskId(self):
4431
+ r"""任务 ID
4432
+ :rtype: int
4433
+ """
4434
+ return self._TaskId
4435
+
4436
+ @TaskId.setter
4437
+ def TaskId(self, TaskId):
4438
+ self._TaskId = TaskId
4439
+
4440
+ @property
4441
+ def RequestId(self):
4442
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4443
+ :rtype: str
4444
+ """
4445
+ return self._RequestId
4446
+
4447
+ @RequestId.setter
4448
+ def RequestId(self, RequestId):
4449
+ self._RequestId = RequestId
4450
+
4451
+
4452
+ def _deserialize(self, params):
4453
+ self._TaskId = params.get("TaskId")
4454
+ self._RequestId = params.get("RequestId")
4455
+
4456
+
4194
4457
  class ObjectKV(AbstractModel):
4195
4458
  r"""通用Key Value
4196
4459
 
@@ -348,6 +348,52 @@ class TcbrClient(AbstractClient):
348
348
  raise TencentCloudSDKException(type(e).__name__, str(e))
349
349
 
350
350
 
351
+ def InitializeCloudRunResource(self, request):
352
+ r"""创建云托管环境,并开通资源。
353
+
354
+ :param request: Request instance for InitializeCloudRunResource.
355
+ :type request: :class:`tencentcloud.tcbr.v20220217.models.InitializeCloudRunResourceRequest`
356
+ :rtype: :class:`tencentcloud.tcbr.v20220217.models.InitializeCloudRunResourceResponse`
357
+
358
+ """
359
+ try:
360
+ params = request._serialize()
361
+ headers = request.headers
362
+ body = self.call("InitializeCloudRunResource", params, headers=headers)
363
+ response = json.loads(body)
364
+ model = models.InitializeCloudRunResourceResponse()
365
+ model._deserialize(response["Response"])
366
+ return model
367
+ except Exception as e:
368
+ if isinstance(e, TencentCloudSDKException):
369
+ raise
370
+ else:
371
+ raise TencentCloudSDKException(type(e).__name__, str(e))
372
+
373
+
374
+ def ModifyStableIPStatus(self, request):
375
+ r"""本接口 ModifyStableIPStatus 用于修改固定 IP 状态
376
+
377
+ :param request: Request instance for ModifyStableIPStatus.
378
+ :type request: :class:`tencentcloud.tcbr.v20220217.models.ModifyStableIPStatusRequest`
379
+ :rtype: :class:`tencentcloud.tcbr.v20220217.models.ModifyStableIPStatusResponse`
380
+
381
+ """
382
+ try:
383
+ params = request._serialize()
384
+ headers = request.headers
385
+ body = self.call("ModifyStableIPStatus", params, headers=headers)
386
+ response = json.loads(body)
387
+ model = models.ModifyStableIPStatusResponse()
388
+ model._deserialize(response["Response"])
389
+ return model
390
+ except Exception as e:
391
+ if isinstance(e, TencentCloudSDKException):
392
+ raise
393
+ else:
394
+ raise TencentCloudSDKException(type(e).__name__, str(e))
395
+
396
+
351
397
  def OperateServerManage(self, request):
352
398
  r"""操作发布单
353
399
 
@@ -277,6 +277,42 @@ class TcbrClient(AbstractClient):
277
277
 
278
278
  return await self.call_and_deserialize(**kwargs)
279
279
 
280
+ async def InitializeCloudRunResource(
281
+ self,
282
+ request: models.InitializeCloudRunResourceRequest,
283
+ opts: Dict = None,
284
+ ) -> models.InitializeCloudRunResourceResponse:
285
+ """
286
+ 创建云托管环境,并开通资源。
287
+ """
288
+
289
+ kwargs = {}
290
+ kwargs["action"] = "InitializeCloudRunResource"
291
+ kwargs["params"] = request._serialize()
292
+ kwargs["resp_cls"] = models.InitializeCloudRunResourceResponse
293
+ kwargs["headers"] = request.headers
294
+ kwargs["opts"] = opts or {}
295
+
296
+ return await self.call_and_deserialize(**kwargs)
297
+
298
+ async def ModifyStableIPStatus(
299
+ self,
300
+ request: models.ModifyStableIPStatusRequest,
301
+ opts: Dict = None,
302
+ ) -> models.ModifyStableIPStatusResponse:
303
+ """
304
+ 本接口 ModifyStableIPStatus 用于修改固定 IP 状态
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "ModifyStableIPStatus"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.ModifyStableIPStatusResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
280
316
  async def OperateServerManage(
281
317
  self,
282
318
  request: models.OperateServerManageRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcbr
3
- Version: 3.1.155
3
+ Version: 3.1.207
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.155
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.207
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.207
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.155