tencentcloud-sdk-python 3.0.975__py2.py3-none-any.whl → 3.0.977__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cbs/v20170312/cbs_client.py +2 -2
- tencentcloud/ccc/v20200210/ccc_client.py +1 -1
- tencentcloud/ccc/v20200210/models.py +67 -1
- tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- tencentcloud/cdwch/v20200915/models.py +75 -0
- tencentcloud/cfw/v20190904/cfw_client.py +644 -0
- tencentcloud/cfw/v20190904/models.py +11557 -5960
- tencentcloud/domain/v20180808/errorcodes.py +1 -1
- tencentcloud/eb/v20210416/eb_client.py +92 -0
- tencentcloud/eb/v20210416/models.py +407 -0
- tencentcloud/ess/v20201111/ess_client.py +57 -22
- tencentcloud/ess/v20201111/models.py +419 -231
- tencentcloud/facefusion/v20181201/facefusion_client.py +3 -1
- tencentcloud/iai/v20180301/iai_client.py +0 -1
- tencentcloud/iai/v20180301/models.py +4 -12
- tencentcloud/iai/v20200303/models.py +5 -13
- tencentcloud/mrs/v20200910/models.py +68 -0
- tencentcloud/sqlserver/v20180328/models.py +315 -0
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
- tencentcloud/tcr/v20190924/models.py +17 -3
- tencentcloud/tcr/v20190924/tcr_client.py +1 -1
- tencentcloud/thpc/v20230321/models.py +33 -0
- tencentcloud/trocket/v20230308/errorcodes.py +9 -0
- tencentcloud/trocket/v20230308/models.py +985 -6
- tencentcloud/trocket/v20230308/trocket_client.py +92 -0
- tencentcloud/trtc/v20190722/models.py +1 -1
- tencentcloud/waf/v20180125/models.py +176 -180
- tencentcloud/waf/v20180125/waf_client.py +46 -46
- {tencentcloud_sdk_python-3.0.975.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.975.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/RECORD +34 -34
- {tencentcloud_sdk_python-3.0.975.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.975.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.975.dist-info → tencentcloud_sdk_python-3.0.977.dist-info}/top_level.txt +0 -0
|
@@ -1038,6 +1038,29 @@ class SqlserverClient(AbstractClient):
|
|
|
1038
1038
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1039
1039
|
|
|
1040
1040
|
|
|
1041
|
+
def DescribeHASwitchLog(self, request):
|
|
1042
|
+
"""本接口(DescribeHASwitchLog)用于手动主备切换。
|
|
1043
|
+
|
|
1044
|
+
:param request: Request instance for DescribeHASwitchLog.
|
|
1045
|
+
:type request: :class:`tencentcloud.sqlserver.v20180328.models.DescribeHASwitchLogRequest`
|
|
1046
|
+
:rtype: :class:`tencentcloud.sqlserver.v20180328.models.DescribeHASwitchLogResponse`
|
|
1047
|
+
|
|
1048
|
+
"""
|
|
1049
|
+
try:
|
|
1050
|
+
params = request._serialize()
|
|
1051
|
+
headers = request.headers
|
|
1052
|
+
body = self.call("DescribeHASwitchLog", params, headers=headers)
|
|
1053
|
+
response = json.loads(body)
|
|
1054
|
+
model = models.DescribeHASwitchLogResponse()
|
|
1055
|
+
model._deserialize(response["Response"])
|
|
1056
|
+
return model
|
|
1057
|
+
except Exception as e:
|
|
1058
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1059
|
+
raise
|
|
1060
|
+
else:
|
|
1061
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1062
|
+
|
|
1063
|
+
|
|
1041
1064
|
def DescribeIncrementalMigration(self, request):
|
|
1042
1065
|
"""本接口(DescribeIncrementalMigration)用于查询增量备份导入任务。
|
|
1043
1066
|
|
|
@@ -2559,6 +2582,29 @@ class SqlserverClient(AbstractClient):
|
|
|
2559
2582
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2560
2583
|
|
|
2561
2584
|
|
|
2585
|
+
def SwitchCloudInstanceHA(self, request):
|
|
2586
|
+
"""本接口(SwitchCloudInstanceHA)用于手动主备切换。
|
|
2587
|
+
|
|
2588
|
+
:param request: Request instance for SwitchCloudInstanceHA.
|
|
2589
|
+
:type request: :class:`tencentcloud.sqlserver.v20180328.models.SwitchCloudInstanceHARequest`
|
|
2590
|
+
:rtype: :class:`tencentcloud.sqlserver.v20180328.models.SwitchCloudInstanceHAResponse`
|
|
2591
|
+
|
|
2592
|
+
"""
|
|
2593
|
+
try:
|
|
2594
|
+
params = request._serialize()
|
|
2595
|
+
headers = request.headers
|
|
2596
|
+
body = self.call("SwitchCloudInstanceHA", params, headers=headers)
|
|
2597
|
+
response = json.loads(body)
|
|
2598
|
+
model = models.SwitchCloudInstanceHAResponse()
|
|
2599
|
+
model._deserialize(response["Response"])
|
|
2600
|
+
return model
|
|
2601
|
+
except Exception as e:
|
|
2602
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2603
|
+
raise
|
|
2604
|
+
else:
|
|
2605
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2606
|
+
|
|
2607
|
+
|
|
2562
2608
|
def TerminateDBInstance(self, request):
|
|
2563
2609
|
"""本接口(TerminateDBInstance)用于主动隔离实例,使得实例进入回收站。
|
|
2564
2610
|
|
|
@@ -8493,7 +8493,7 @@ class DescribeServiceAccountsRequest(AbstractModel):
|
|
|
8493
8493
|
:type RegistryId: str
|
|
8494
8494
|
:param _All: 列出所有服务级账号
|
|
8495
8495
|
:type All: bool
|
|
8496
|
-
:param _EmbedPermission:
|
|
8496
|
+
:param _EmbedPermission: 是否填充权限信息
|
|
8497
8497
|
:type EmbedPermission: bool
|
|
8498
8498
|
:param _Filters: 过滤条件
|
|
8499
8499
|
:type Filters: list of Filter
|
|
@@ -8590,7 +8590,7 @@ class DescribeServiceAccountsResponse(AbstractModel):
|
|
|
8590
8590
|
:param _ServiceAccounts: 服务级账号列表
|
|
8591
8591
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8592
8592
|
:type ServiceAccounts: list of ServiceAccount
|
|
8593
|
-
:param _TotalCount:
|
|
8593
|
+
:param _TotalCount: 服务级账户数量
|
|
8594
8594
|
:type TotalCount: int
|
|
8595
8595
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8596
8596
|
:type RequestId: str
|
|
@@ -12453,7 +12453,7 @@ class Permission(AbstractModel):
|
|
|
12453
12453
|
:param _Resource: 资源路径,目前仅支持Namespace
|
|
12454
12454
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12455
12455
|
:type Resource: str
|
|
12456
|
-
:param _Actions: 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
|
|
12456
|
+
:param _Actions: 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository、tcr:CreateRepository、tcr:CreateHelmChart、tcr:DescribeHelmCharts
|
|
12457
12457
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12458
12458
|
:type Actions: list of str
|
|
12459
12459
|
"""
|
|
@@ -12648,6 +12648,8 @@ class Registry(AbstractModel):
|
|
|
12648
12648
|
:param _RenewFlag: 预付费续费标识,0表示手动续费,1表示自动续费,2不续费并且不通知
|
|
12649
12649
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12650
12650
|
:type RenewFlag: int
|
|
12651
|
+
:param _DeletionProtection: 是否开启实例删除保护,false表示不开启
|
|
12652
|
+
:type DeletionProtection: bool
|
|
12651
12653
|
"""
|
|
12652
12654
|
self._RegistryId = None
|
|
12653
12655
|
self._RegistryName = None
|
|
@@ -12664,6 +12666,7 @@ class Registry(AbstractModel):
|
|
|
12664
12666
|
self._ExpiredAt = None
|
|
12665
12667
|
self._PayMod = None
|
|
12666
12668
|
self._RenewFlag = None
|
|
12669
|
+
self._DeletionProtection = None
|
|
12667
12670
|
|
|
12668
12671
|
@property
|
|
12669
12672
|
def RegistryId(self):
|
|
@@ -12785,6 +12788,14 @@ class Registry(AbstractModel):
|
|
|
12785
12788
|
def RenewFlag(self, RenewFlag):
|
|
12786
12789
|
self._RenewFlag = RenewFlag
|
|
12787
12790
|
|
|
12791
|
+
@property
|
|
12792
|
+
def DeletionProtection(self):
|
|
12793
|
+
return self._DeletionProtection
|
|
12794
|
+
|
|
12795
|
+
@DeletionProtection.setter
|
|
12796
|
+
def DeletionProtection(self, DeletionProtection):
|
|
12797
|
+
self._DeletionProtection = DeletionProtection
|
|
12798
|
+
|
|
12788
12799
|
|
|
12789
12800
|
def _deserialize(self, params):
|
|
12790
12801
|
self._RegistryId = params.get("RegistryId")
|
|
@@ -12804,6 +12815,7 @@ class Registry(AbstractModel):
|
|
|
12804
12815
|
self._ExpiredAt = params.get("ExpiredAt")
|
|
12805
12816
|
self._PayMod = params.get("PayMod")
|
|
12806
12817
|
self._RenewFlag = params.get("RenewFlag")
|
|
12818
|
+
self._DeletionProtection = params.get("DeletionProtection")
|
|
12807
12819
|
memeber_set = set(params.keys())
|
|
12808
12820
|
for name, value in vars(self).items():
|
|
12809
12821
|
property_name = name[1:]
|
|
@@ -14491,8 +14503,10 @@ class Tag(AbstractModel):
|
|
|
14491
14503
|
def __init__(self):
|
|
14492
14504
|
r"""
|
|
14493
14505
|
:param _Key: 云标签的key
|
|
14506
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14494
14507
|
:type Key: str
|
|
14495
14508
|
:param _Value: 云标签的值
|
|
14509
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14496
14510
|
:type Value: str
|
|
14497
14511
|
"""
|
|
14498
14512
|
self._Key = None
|
|
@@ -464,7 +464,7 @@ class TcrClient(AbstractClient):
|
|
|
464
464
|
|
|
465
465
|
|
|
466
466
|
def CreateServiceAccount(self, request):
|
|
467
|
-
"""
|
|
467
|
+
"""创建服务级账户
|
|
468
468
|
|
|
469
469
|
:param request: Request instance for CreateServiceAccount.
|
|
470
470
|
:type request: :class:`tencentcloud.tcr.v20190924.models.CreateServiceAccountRequest`
|
|
@@ -3892,6 +3892,12 @@ class QueueConfig(AbstractModel):
|
|
|
3892
3892
|
:type ScaleOutNodeThreshold: int
|
|
3893
3893
|
:param _MaxNodesPerCycle: 每轮扩容最大节点个数。默认值:100。取值范围:1~100。
|
|
3894
3894
|
:type MaxNodesPerCycle: int
|
|
3895
|
+
:param _ScaleUpMemRatio: 扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br/>
|
|
3896
|
+
针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
|
|
3897
|
+
|
|
3898
|
+
- 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
|
|
3899
|
+
- 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
|
|
3900
|
+
:type ScaleUpMemRatio: int
|
|
3895
3901
|
"""
|
|
3896
3902
|
self._QueueName = None
|
|
3897
3903
|
self._MinSize = None
|
|
@@ -3907,6 +3913,7 @@ class QueueConfig(AbstractModel):
|
|
|
3907
3913
|
self._ScaleOutRatio = None
|
|
3908
3914
|
self._ScaleOutNodeThreshold = None
|
|
3909
3915
|
self._MaxNodesPerCycle = None
|
|
3916
|
+
self._ScaleUpMemRatio = None
|
|
3910
3917
|
|
|
3911
3918
|
@property
|
|
3912
3919
|
def QueueName(self):
|
|
@@ -4020,6 +4027,14 @@ class QueueConfig(AbstractModel):
|
|
|
4020
4027
|
def MaxNodesPerCycle(self, MaxNodesPerCycle):
|
|
4021
4028
|
self._MaxNodesPerCycle = MaxNodesPerCycle
|
|
4022
4029
|
|
|
4030
|
+
@property
|
|
4031
|
+
def ScaleUpMemRatio(self):
|
|
4032
|
+
return self._ScaleUpMemRatio
|
|
4033
|
+
|
|
4034
|
+
@ScaleUpMemRatio.setter
|
|
4035
|
+
def ScaleUpMemRatio(self, ScaleUpMemRatio):
|
|
4036
|
+
self._ScaleUpMemRatio = ScaleUpMemRatio
|
|
4037
|
+
|
|
4023
4038
|
|
|
4024
4039
|
def _deserialize(self, params):
|
|
4025
4040
|
self._QueueName = params.get("QueueName")
|
|
@@ -4050,6 +4065,7 @@ class QueueConfig(AbstractModel):
|
|
|
4050
4065
|
self._ScaleOutRatio = params.get("ScaleOutRatio")
|
|
4051
4066
|
self._ScaleOutNodeThreshold = params.get("ScaleOutNodeThreshold")
|
|
4052
4067
|
self._MaxNodesPerCycle = params.get("MaxNodesPerCycle")
|
|
4068
|
+
self._ScaleUpMemRatio = params.get("ScaleUpMemRatio")
|
|
4053
4069
|
memeber_set = set(params.keys())
|
|
4054
4070
|
for name, value in vars(self).items():
|
|
4055
4071
|
property_name = name[1:]
|
|
@@ -4094,6 +4110,13 @@ class QueueConfigOverview(AbstractModel):
|
|
|
4094
4110
|
:param _MaxNodesPerCycle: 每轮扩容最大节点个数。
|
|
4095
4111
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4096
4112
|
:type MaxNodesPerCycle: int
|
|
4113
|
+
:param _ScaleUpMemRatio: 扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br/>
|
|
4114
|
+
针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
|
|
4115
|
+
|
|
4116
|
+
- 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
|
|
4117
|
+
- 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
|
|
4118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4119
|
+
:type ScaleUpMemRatio: int
|
|
4097
4120
|
"""
|
|
4098
4121
|
self._QueueName = None
|
|
4099
4122
|
self._MinSize = None
|
|
@@ -4105,6 +4128,7 @@ class QueueConfigOverview(AbstractModel):
|
|
|
4105
4128
|
self._ScaleOutRatio = None
|
|
4106
4129
|
self._ScaleOutNodeThreshold = None
|
|
4107
4130
|
self._MaxNodesPerCycle = None
|
|
4131
|
+
self._ScaleUpMemRatio = None
|
|
4108
4132
|
|
|
4109
4133
|
@property
|
|
4110
4134
|
def QueueName(self):
|
|
@@ -4186,6 +4210,14 @@ class QueueConfigOverview(AbstractModel):
|
|
|
4186
4210
|
def MaxNodesPerCycle(self, MaxNodesPerCycle):
|
|
4187
4211
|
self._MaxNodesPerCycle = MaxNodesPerCycle
|
|
4188
4212
|
|
|
4213
|
+
@property
|
|
4214
|
+
def ScaleUpMemRatio(self):
|
|
4215
|
+
return self._ScaleUpMemRatio
|
|
4216
|
+
|
|
4217
|
+
@ScaleUpMemRatio.setter
|
|
4218
|
+
def ScaleUpMemRatio(self, ScaleUpMemRatio):
|
|
4219
|
+
self._ScaleUpMemRatio = ScaleUpMemRatio
|
|
4220
|
+
|
|
4189
4221
|
|
|
4190
4222
|
def _deserialize(self, params):
|
|
4191
4223
|
self._QueueName = params.get("QueueName")
|
|
@@ -4203,6 +4235,7 @@ class QueueConfigOverview(AbstractModel):
|
|
|
4203
4235
|
self._ScaleOutRatio = params.get("ScaleOutRatio")
|
|
4204
4236
|
self._ScaleOutNodeThreshold = params.get("ScaleOutNodeThreshold")
|
|
4205
4237
|
self._MaxNodesPerCycle = params.get("MaxNodesPerCycle")
|
|
4238
|
+
self._ScaleUpMemRatio = params.get("ScaleUpMemRatio")
|
|
4206
4239
|
memeber_set = set(params.keys())
|
|
4207
4240
|
for name, value in vars(self).items():
|
|
4208
4241
|
property_name = name[1:]
|
|
@@ -17,5 +17,14 @@
|
|
|
17
17
|
# 操作失败。
|
|
18
18
|
FAILEDOPERATION = 'FailedOperation'
|
|
19
19
|
|
|
20
|
+
# 实例未就绪,请稍后重试。
|
|
21
|
+
FAILEDOPERATION_INSTANCENOTREADY = 'FailedOperation.InstanceNotReady'
|
|
22
|
+
|
|
23
|
+
# 资源被占用。
|
|
24
|
+
RESOURCEINUSE = 'ResourceInUse'
|
|
25
|
+
|
|
20
26
|
# 实例不存在。
|
|
21
27
|
RESOURCENOTFOUND_INSTANCE = 'ResourceNotFound.Instance'
|
|
28
|
+
|
|
29
|
+
# 资源不可用。
|
|
30
|
+
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|