tencentcloud-sdk-python 3.0.1221__py2.py3-none-any.whl → 3.0.1223__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ams/v20201229/models.py +24 -0
- tencentcloud/asr/v20190614/asr_client.py +96 -0
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +618 -0
- tencentcloud/batch/v20170312/models.py +1 -1
- tencentcloud/bi/v20220105/models.py +13 -0
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +188 -0
- tencentcloud/cdwdoris/v20211228/models.py +69 -2
- tencentcloud/cfg/v20210820/models.py +168 -0
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +70 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +1 -1
- tencentcloud/ckafka/v20190819/models.py +47 -1
- tencentcloud/clb/v20180317/models.py +67 -2
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/cvm/v20170312/models.py +7 -5
- tencentcloud/cwp/v20180228/models.py +1 -12
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +46 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +354 -6
- tencentcloud/dasb/v20191018/models.py +25 -0
- tencentcloud/dbbrain/v20210527/models.py +2 -2
- tencentcloud/dc/v20180410/dc_client.py +3 -4
- tencentcloud/dc/v20180410/models.py +78 -18
- tencentcloud/dcdb/v20180411/dcdb_client.py +23 -0
- tencentcloud/dcdb/v20180411/models.py +82 -0
- tencentcloud/emr/v20190103/emr_client.py +24 -0
- tencentcloud/emr/v20190103/models.py +82 -0
- tencentcloud/es/v20180416/es_client.py +23 -0
- tencentcloud/es/v20180416/models.py +94 -0
- tencentcloud/essbasic/v20210526/models.py +20 -12
- tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +52 -0
- tencentcloud/hunyuan/v20230901/models.py +361 -1
- tencentcloud/ims/v20201229/ims_client.py +2 -2
- tencentcloud/iss/v20230517/models.py +28 -0
- tencentcloud/lke/v20231130/models.py +224 -2
- tencentcloud/mariadb/v20170312/errorcodes.py +3 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
- tencentcloud/mariadb/v20170312/models.py +82 -0
- tencentcloud/oceanus/v20190422/models.py +13 -0
- tencentcloud/ocr/v20181119/models.py +1 -2
- tencentcloud/ocr/v20181119/ocr_client.py +8 -2
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/scf/v20180416/models.py +7 -8
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/sms/v20190711/errorcodes.py +3 -0
- tencentcloud/sms/v20190711/models.py +21 -22
- tencentcloud/sms/v20190711/sms_client.py +28 -60
- tencentcloud/tdmq/v20200217/models.py +117 -0
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +12 -0
- tencentcloud/tmt/v20180321/models.py +1 -1
- tencentcloud/trocket/v20230308/models.py +52 -0
- tencentcloud/vclm/v20240523/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +34 -0
- tencentcloud/wedata/v20210820/models.py +265 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1221.dist-info → tencentcloud_sdk_python-3.0.1223.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1221.dist-info → tencentcloud_sdk_python-3.0.1223.dist-info}/RECORD +69 -64
- {tencentcloud_sdk_python-3.0.1221.dist-info → tencentcloud_sdk_python-3.0.1223.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1221.dist-info → tencentcloud_sdk_python-3.0.1223.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1221.dist-info → tencentcloud_sdk_python-3.0.1223.dist-info}/top_level.txt +0 -0
File without changes
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import json
|
17
|
+
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
20
|
+
from tencentcloud.controlcenter.v20230110 import models
|
21
|
+
|
22
|
+
|
23
|
+
class ControlcenterClient(AbstractClient):
|
24
|
+
_apiVersion = '2023-01-10'
|
25
|
+
_endpoint = 'controlcenter.tencentcloudapi.com'
|
26
|
+
_service = 'controlcenter'
|
27
|
+
|
28
|
+
|
29
|
+
def BatchApplyAccountBaselines(self, request):
|
30
|
+
"""批量对存量账号应用基线
|
31
|
+
|
32
|
+
:param request: Request instance for BatchApplyAccountBaselines.
|
33
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.BatchApplyAccountBaselinesRequest`
|
34
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.BatchApplyAccountBaselinesResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("BatchApplyAccountBaselines", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.BatchApplyAccountBaselinesResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
|
17
|
+
# 账号工厂必选基线项未配置
|
18
|
+
FAILEDOPERATION_AFREQUIREDITEMNOTSELECT = 'FailedOperation.AFRequiredItemNotSelect'
|
19
|
+
|
20
|
+
# 账号工厂批量应用基线的账号数量超过限制
|
21
|
+
FAILEDOPERATION_ACCOUNTFACTORYMEMBERUINNUMEXCEED = 'FailedOperation.AccountFactoryMemberUinNumExceed'
|
22
|
+
|
23
|
+
# 用户正在部署账号基线中,无法重复部署
|
24
|
+
FAILEDOPERATION_ACCOUNTFACTORYTASKISDEPLOYING = 'FailedOperation.AccountFactoryTaskIsDeploying'
|
25
|
+
|
26
|
+
# Control Center服务未开通
|
27
|
+
FAILEDOPERATION_CONTROLCENTERNOTOPEN = 'FailedOperation.ControlCenterNotOpen'
|
28
|
+
|
29
|
+
# 数据库操作异常
|
30
|
+
FAILEDOPERATION_DBOPERATIONERROR = 'FailedOperation.DBOperationError'
|
31
|
+
|
32
|
+
# 依赖的功能项未部署
|
33
|
+
FAILEDOPERATION_DEPENDONITEMNOTDEPLOY = 'FailedOperation.DependOnItemNotDeploy'
|
34
|
+
|
35
|
+
# 远程调用失败
|
36
|
+
FAILEDOPERATION_REMOTECALLERROR = 'FailedOperation.RemoteCallError'
|
37
|
+
|
38
|
+
# 用户基线配置数据不存在
|
39
|
+
RESOURCENOTFOUND_ACCOUNTFACTORYBASELINENOTEXIST = 'ResourceNotFound.AccountFactoryBaselineNotExist'
|
40
|
+
|
41
|
+
# 用户所部署的基线项未配置
|
42
|
+
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTCONFIG = 'ResourceNotFound.AccountFactoryItemNotConfig'
|
43
|
+
|
44
|
+
# 账号工厂基线不存在
|
45
|
+
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTEXIST = 'ResourceNotFound.AccountFactoryItemNotExist'
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import warnings
|
17
|
+
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
+
|
20
|
+
|
21
|
+
class BaselineConfigItem(AbstractModel):
|
22
|
+
"""账号工厂基线配置项
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _Identifier: 账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
:type Identifier: str
|
31
|
+
:param _Configuration: 账号工厂基线项配置,不同基线项配置参数不同。
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
33
|
+
:type Configuration: str
|
34
|
+
"""
|
35
|
+
self._Identifier = None
|
36
|
+
self._Configuration = None
|
37
|
+
|
38
|
+
@property
|
39
|
+
def Identifier(self):
|
40
|
+
return self._Identifier
|
41
|
+
|
42
|
+
@Identifier.setter
|
43
|
+
def Identifier(self, Identifier):
|
44
|
+
self._Identifier = Identifier
|
45
|
+
|
46
|
+
@property
|
47
|
+
def Configuration(self):
|
48
|
+
return self._Configuration
|
49
|
+
|
50
|
+
@Configuration.setter
|
51
|
+
def Configuration(self, Configuration):
|
52
|
+
self._Configuration = Configuration
|
53
|
+
|
54
|
+
|
55
|
+
def _deserialize(self, params):
|
56
|
+
self._Identifier = params.get("Identifier")
|
57
|
+
self._Configuration = params.get("Configuration")
|
58
|
+
memeber_set = set(params.keys())
|
59
|
+
for name, value in vars(self).items():
|
60
|
+
property_name = name[1:]
|
61
|
+
if property_name in memeber_set:
|
62
|
+
memeber_set.remove(property_name)
|
63
|
+
if len(memeber_set) > 0:
|
64
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
class BatchApplyAccountBaselinesRequest(AbstractModel):
|
69
|
+
"""BatchApplyAccountBaselines请求参数结构体
|
70
|
+
|
71
|
+
"""
|
72
|
+
|
73
|
+
def __init__(self):
|
74
|
+
r"""
|
75
|
+
:param _MemberUinList: 成员账号uin,也是被应用基线的账号uin。
|
76
|
+
:type MemberUinList: list of int
|
77
|
+
:param _BaselineConfigItems: 基线项配置信息列表。
|
78
|
+
:type BaselineConfigItems: list of BaselineConfigItem
|
79
|
+
"""
|
80
|
+
self._MemberUinList = None
|
81
|
+
self._BaselineConfigItems = None
|
82
|
+
|
83
|
+
@property
|
84
|
+
def MemberUinList(self):
|
85
|
+
return self._MemberUinList
|
86
|
+
|
87
|
+
@MemberUinList.setter
|
88
|
+
def MemberUinList(self, MemberUinList):
|
89
|
+
self._MemberUinList = MemberUinList
|
90
|
+
|
91
|
+
@property
|
92
|
+
def BaselineConfigItems(self):
|
93
|
+
return self._BaselineConfigItems
|
94
|
+
|
95
|
+
@BaselineConfigItems.setter
|
96
|
+
def BaselineConfigItems(self, BaselineConfigItems):
|
97
|
+
self._BaselineConfigItems = BaselineConfigItems
|
98
|
+
|
99
|
+
|
100
|
+
def _deserialize(self, params):
|
101
|
+
self._MemberUinList = params.get("MemberUinList")
|
102
|
+
if params.get("BaselineConfigItems") is not None:
|
103
|
+
self._BaselineConfigItems = []
|
104
|
+
for item in params.get("BaselineConfigItems"):
|
105
|
+
obj = BaselineConfigItem()
|
106
|
+
obj._deserialize(item)
|
107
|
+
self._BaselineConfigItems.append(obj)
|
108
|
+
memeber_set = set(params.keys())
|
109
|
+
for name, value in vars(self).items():
|
110
|
+
property_name = name[1:]
|
111
|
+
if property_name in memeber_set:
|
112
|
+
memeber_set.remove(property_name)
|
113
|
+
if len(memeber_set) > 0:
|
114
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
class BatchApplyAccountBaselinesResponse(AbstractModel):
|
119
|
+
"""BatchApplyAccountBaselines返回参数结构体
|
120
|
+
|
121
|
+
"""
|
122
|
+
|
123
|
+
def __init__(self):
|
124
|
+
r"""
|
125
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
126
|
+
:type RequestId: str
|
127
|
+
"""
|
128
|
+
self._RequestId = None
|
129
|
+
|
130
|
+
@property
|
131
|
+
def RequestId(self):
|
132
|
+
return self._RequestId
|
133
|
+
|
134
|
+
@RequestId.setter
|
135
|
+
def RequestId(self, RequestId):
|
136
|
+
self._RequestId = RequestId
|
137
|
+
|
138
|
+
|
139
|
+
def _deserialize(self, params):
|
140
|
+
self._RequestId = params.get("RequestId")
|
@@ -1212,7 +1212,7 @@ class CreateDisasterRecoverGroupRequest(AbstractModel):
|
|
1212
1212
|
r"""
|
1213
1213
|
:param _Name: 分散置放群组名称,长度1-60个字符,支持中、英文。
|
1214
1214
|
:type Name: str
|
1215
|
-
:param _Type: 分散置放群组类型,取值范围:<br><li>HOST
|
1215
|
+
:param _Type: 分散置放群组类型,取值范围:<br><li>HOST:物理机</li><li>SW:交换机</li><li>RACK:机架</li>
|
1216
1216
|
:type Type: str
|
1217
1217
|
:param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性。
|
1218
1218
|
:type ClientToken: str
|
@@ -1269,7 +1269,7 @@ class CreateDisasterRecoverGroupResponse(AbstractModel):
|
|
1269
1269
|
r"""
|
1270
1270
|
:param _DisasterRecoverGroupId: 分散置放群组ID列表。
|
1271
1271
|
:type DisasterRecoverGroupId: str
|
1272
|
-
:param _Type: 分散置放群组类型,取值范围:<br><li>HOST
|
1272
|
+
:param _Type: 分散置放群组类型,取值范围:<br><li>HOST:物理机</li><li>SW:交换机</li><li>RACK:机架</li>
|
1273
1273
|
:type Type: str
|
1274
1274
|
:param _Name: 分散置放群组名称,长度1-60个字符,支持中、英文。
|
1275
1275
|
:type Name: str
|
@@ -6745,7 +6745,10 @@ class DisasterRecoverGroup(AbstractModel):
|
|
6745
6745
|
:type DisasterRecoverGroupId: str
|
6746
6746
|
:param _Name: 分散置放群组名称,长度1-60个字符。
|
6747
6747
|
:type Name: str
|
6748
|
-
:param _Type: 分散置放群组类型,取值范围:<br
|
6748
|
+
:param _Type: 分散置放群组类型,取值范围:<br>
|
6749
|
+
<li>HOST:物理机<br></li>
|
6750
|
+
<li>SW:交换机<br></li>
|
6751
|
+
<li>RACK:机架</li>
|
6749
6752
|
:type Type: str
|
6750
6753
|
:param _CvmQuotaTotal: 分散置放群组内最大容纳云服务器数量。
|
6751
6754
|
:type CvmQuotaTotal: int
|
@@ -18170,7 +18173,7 @@ class VirtualPrivateCloud(AbstractModel):
|
|
18170
18173
|
:type VpcId: str
|
18171
18174
|
:param _SubnetId: 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/api/215/15784) ,从接口返回中的`unSubnetId`字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。
|
18172
18175
|
:type SubnetId: str
|
18173
|
-
:param _AsVpcGateway: 是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<
|
18176
|
+
:param _AsVpcGateway: 是否用作公网网关。公网网关只有在实例拥有公网IP以及处于私有网络下时才能正常使用。取值范围:<li>true:表示用作公网网关</li><li>false:表示不作为公网网关</li>默认取值:false。
|
18174
18177
|
:type AsVpcGateway: bool
|
18175
18178
|
:param _PrivateIpAddresses: 私有网络子网 IP 数组,在创建实例、修改实例vpc属性操作中可使用此参数。当前仅批量创建多台实例时支持传入相同子网的多个 IP。
|
18176
18179
|
:type PrivateIpAddresses: list of str
|
@@ -18297,7 +18300,6 @@ class ZoneInfo(AbstractModel):
|
|
18297
18300
|
<li> na-siliconvalley-2 </li>
|
18298
18301
|
<li> eu-frankfurt-1 </li>
|
18299
18302
|
<li> eu-frankfurt-2 </li>
|
18300
|
-
<li> na-toronto-1 </li>
|
18301
18303
|
<li> na-ashburn-1 </li>
|
18302
18304
|
<li> na-ashburn-2 </li>
|
18303
18305
|
<li> ap-nanjing-1 </li>
|
@@ -34466,18 +34466,7 @@ class DescribeHostLoginListRequest(AbstractModel):
|
|
34466
34466
|
:type Limit: int
|
34467
34467
|
:param _Offset: 偏移量,默认为0。
|
34468
34468
|
:type Offset: int
|
34469
|
-
:param _Filters:
|
34470
|
-
<li>Quuid - String - 是否必填:否 - 云服务器uuid</li>
|
34471
|
-
<li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li>
|
34472
|
-
<li>MachineName - String - 是否必填:否 - 主机别名</li>
|
34473
|
-
<li>Ip - String - 是否必填:否 - 主机ip</li>
|
34474
|
-
<li>InstanceID - String - 是否必填:否 - 主机实例ID</li>
|
34475
|
-
<li>SrcIp - String - 是否必填:否 - 来源ip筛选</li>
|
34476
|
-
<li>UserName - String - 是否必填:否 - 用户名筛选</li>
|
34477
|
-
<li>Status - int - 是否必填:否 - 状态筛选1:正常登录;5:已加白,14:已处理,15:已忽略</li>
|
34478
|
-
<li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li>
|
34479
|
-
<li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li>
|
34480
|
-
<li>RiskLevel - int - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
|
34469
|
+
:param _Filters: 过滤条件。<li>Quuid - String - 是否必填:否 - 云服务器uuid</li><li>Uuid - String - 是否必填:否 - 主机安全唯一Uuid</li><li>MachineName - String - 是否必填:否 - 主机别名</li><li>Ip - String - 是否必填:否 - 主机ip</li><li>InstanceID - String - 是否必填:否 - 主机实例ID</li><li>SrcIp - String - 是否必填:否 - 来源ip筛选</li><li>UserName - String - 是否必填:否 - 用户名筛选</li><li>Status - string - 是否必填:否 - 状态筛选1:正常登录;5:已加白,14:已处理,15:已忽略</li><li>LoginTimeBegin - String - 是否必填:否 - 按照修改时间段筛选,开始时间</li><li>LoginTimeEnd - String - 是否必填:否 - 按照修改时间段筛选,结束时间</li><li>RiskLevel - string - 是否必填:否 - 状态筛选0:高危;1:可疑</li>
|
34481
34470
|
:type Filters: list of Filter
|
34482
34471
|
:param _Order: 排序方式:根据请求次数排序:asc-升序/desc-降序
|
34483
34472
|
:type Order: str
|
@@ -1753,6 +1753,29 @@ class CynosdbClient(AbstractClient):
|
|
1753
1753
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1754
1754
|
|
1755
1755
|
|
1756
|
+
def DescribeServerlessStrategy(self, request):
|
1757
|
+
"""查询serverless策略
|
1758
|
+
|
1759
|
+
:param request: Request instance for DescribeServerlessStrategy.
|
1760
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeServerlessStrategyRequest`
|
1761
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeServerlessStrategyResponse`
|
1762
|
+
|
1763
|
+
"""
|
1764
|
+
try:
|
1765
|
+
params = request._serialize()
|
1766
|
+
headers = request.headers
|
1767
|
+
body = self.call("DescribeServerlessStrategy", params, headers=headers)
|
1768
|
+
response = json.loads(body)
|
1769
|
+
model = models.DescribeServerlessStrategyResponse()
|
1770
|
+
model._deserialize(response["Response"])
|
1771
|
+
return model
|
1772
|
+
except Exception as e:
|
1773
|
+
if isinstance(e, TencentCloudSDKException):
|
1774
|
+
raise
|
1775
|
+
else:
|
1776
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1777
|
+
|
1778
|
+
|
1756
1779
|
def DescribeSupportProxyVersion(self, request):
|
1757
1780
|
"""查询支持的数据库代理版本
|
1758
1781
|
|
@@ -2650,6 +2673,29 @@ class CynosdbClient(AbstractClient):
|
|
2650
2673
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2651
2674
|
|
2652
2675
|
|
2676
|
+
def ModifyServerlessStrategy(self, request):
|
2677
|
+
"""修改serverless策略
|
2678
|
+
|
2679
|
+
:param request: Request instance for ModifyServerlessStrategy.
|
2680
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.ModifyServerlessStrategyRequest`
|
2681
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.ModifyServerlessStrategyResponse`
|
2682
|
+
|
2683
|
+
"""
|
2684
|
+
try:
|
2685
|
+
params = request._serialize()
|
2686
|
+
headers = request.headers
|
2687
|
+
body = self.call("ModifyServerlessStrategy", params, headers=headers)
|
2688
|
+
response = json.loads(body)
|
2689
|
+
model = models.ModifyServerlessStrategyResponse()
|
2690
|
+
model._deserialize(response["Response"])
|
2691
|
+
return model
|
2692
|
+
except Exception as e:
|
2693
|
+
if isinstance(e, TencentCloudSDKException):
|
2694
|
+
raise
|
2695
|
+
else:
|
2696
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2697
|
+
|
2698
|
+
|
2653
2699
|
def ModifyVipVport(self, request):
|
2654
2700
|
"""修改实例组ip,端口
|
2655
2701
|
|
@@ -83,6 +83,9 @@ FAILEDOPERATION_QUERYSPECBYSPECCODEERROR = 'FailedOperation.QuerySpecBySpecCodeE
|
|
83
83
|
# 资源包退款失败
|
84
84
|
FAILEDOPERATION_REFUNDSOURCEPACKAGEERROR = 'FailedOperation.RefundSourcePackageError'
|
85
85
|
|
86
|
+
# 修改策略失败。
|
87
|
+
FAILEDOPERATION_SERVERLESSSETSTRATEGYERROR = 'FailedOperation.ServerlessSetStrategyError'
|
88
|
+
|
86
89
|
# 创建并支付订单失败,请稍后重试。如果持续不成功,请联系客服进行处理。
|
87
90
|
FAILEDOPERATION_TRADECREATEORDERERROR = 'FailedOperation.TradeCreateOrderError'
|
88
91
|
|