tencentcloud-sdk-python 3.0.1323__py2.py3-none-any.whl → 3.0.1325__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/aiart/v20221229/models.py +2 -2
- tencentcloud/antiddos/v20200309/models.py +27 -10
- tencentcloud/apm/v20210622/apm_client.py +23 -0
- tencentcloud/apm/v20210622/models.py +255 -2
- tencentcloud/cbs/v20170312/cbs_client.py +101 -0
- tencentcloud/cbs/v20170312/errorcodes.py +3 -0
- tencentcloud/cbs/v20170312/models.py +735 -5
- tencentcloud/cdwdoris/v20211228/models.py +17 -2
- tencentcloud/cls/v20201016/models.py +15 -0
- tencentcloud/dc/v20180410/models.py +15 -0
- tencentcloud/dlc/v20210125/models.py +0 -24
- tencentcloud/dts/v20211206/models.py +2 -2
- tencentcloud/emr/v20190103/models.py +96 -0
- tencentcloud/gme/v20180711/models.py +0 -18
- tencentcloud/mna/v20210119/models.py +0 -58
- tencentcloud/ocr/v20181119/models.py +158 -0
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/scf/v20180416/models.py +2 -2
- tencentcloud/ses/v20201002/models.py +15 -0
- tencentcloud/svp/v20240125/models.py +0 -6
- tencentcloud/teo/v20220901/models.py +64 -0
- tencentcloud/trp/v20210515/models.py +0 -360
- tencentcloud/vpc/v20170312/models.py +234 -0
- tencentcloud/vpc/v20170312/vpc_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/RECORD +30 -35
- tencentcloud/aa/__init__.py +0 -0
- tencentcloud/aa/v20200224/__init__.py +0 -0
- tencentcloud/aa/v20200224/aa_client.py +0 -49
- tencentcloud/aa/v20200224/errorcodes.py +0 -78
- tencentcloud/aa/v20200224/models.py +0 -736
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -2971,7 +2971,7 @@ class SubmitGlamPicJobRequest(AbstractModel):
|
|
2971
2971
|
:param _Style: 美照生成风格。
|
2972
2972
|
仅对单人美照生效,单人可支持选择不同风格。需按照美照生成数量,在数组中逐一填入每张美照的风格名称。如果不传,默认取不重复的随机风格顺序。
|
2973
2973
|
多人美照只支持 balanced 一种风格,该参数不生效。
|
2974
|
-
可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>
|
2974
|
+
可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>textured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>
|
2975
2975
|
:type Style: list of str
|
2976
2976
|
:param _Similarity: 相似度系数,越高越像用户图。
|
2977
2977
|
取值范围[0, 1],默认为0.6。
|
@@ -3042,7 +3042,7 @@ x4:4倍超分
|
|
3042
3042
|
"""美照生成风格。
|
3043
3043
|
仅对单人美照生效,单人可支持选择不同风格。需按照美照生成数量,在数组中逐一填入每张美照的风格名称。如果不传,默认取不重复的随机风格顺序。
|
3044
3044
|
多人美照只支持 balanced 一种风格,该参数不生效。
|
3045
|
-
可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>
|
3045
|
+
可选风格:<ul><li>real:面部相似度更高。</li><li>balanced:平衡面部真实感和美观度。</li><li>textured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>
|
3046
3046
|
:rtype: list of str
|
3047
3047
|
"""
|
3048
3048
|
return self._Style
|
@@ -9373,7 +9373,7 @@ class DescribeCCLevelPolicyRequest(AbstractModel):
|
|
9373
9373
|
:type Ip: str
|
9374
9374
|
:param _Domain: 域名
|
9375
9375
|
:type Domain: str
|
9376
|
-
:param _Protocol: 协议,可取值
|
9376
|
+
:param _Protocol: 协议,可取值http、https、http/https
|
9377
9377
|
:type Protocol: str
|
9378
9378
|
"""
|
9379
9379
|
self._InstanceId = None
|
@@ -9416,7 +9416,7 @@ class DescribeCCLevelPolicyRequest(AbstractModel):
|
|
9416
9416
|
|
9417
9417
|
@property
|
9418
9418
|
def Protocol(self):
|
9419
|
-
"""协议,可取值
|
9419
|
+
"""协议,可取值http、https、http/https
|
9420
9420
|
:rtype: str
|
9421
9421
|
"""
|
9422
9422
|
return self._Protocol
|
@@ -11906,8 +11906,7 @@ class DescribeListBGPInstancesRequest(AbstractModel):
|
|
11906
11906
|
:type FilterAssetIpList: list of str
|
11907
11907
|
:param _FilterBasicPlusFlag: 是否包含基础防护增强版 0: 不包含 1: 包含
|
11908
11908
|
:type FilterBasicPlusFlag: int
|
11909
|
-
:param _FilterPlanCntFlag:
|
11910
|
-
|
11909
|
+
:param _FilterPlanCntFlag: 是否标准版2.0 0: 包含标准版2.0 0 1: 只查询标准版2.0 0 2: 不查标准版2.0
|
11911
11910
|
:type FilterPlanCntFlag: int
|
11912
11911
|
:param _FilterTransRegionFlag: 是否跨区域产品 0: 不包含跨区域产品 1: 中国大陆跨区域产品 2: 非中国大陆跨区域产品 3: 包含全部
|
11913
11912
|
:type FilterTransRegionFlag: int
|
@@ -12148,8 +12147,7 @@ class DescribeListBGPInstancesRequest(AbstractModel):
|
|
12148
12147
|
|
12149
12148
|
@property
|
12150
12149
|
def FilterPlanCntFlag(self):
|
12151
|
-
"""
|
12152
|
-
|
12150
|
+
"""是否标准版2.0 0: 包含标准版2.0 0 1: 只查询标准版2.0 0 2: 不查标准版2.0
|
12153
12151
|
:rtype: int
|
12154
12152
|
"""
|
12155
12153
|
return self._FilterPlanCntFlag
|
@@ -17704,7 +17702,7 @@ class ModifyCCLevelPolicyRequest(AbstractModel):
|
|
17704
17702
|
:type Ip: str
|
17705
17703
|
:param _Domain: 域名
|
17706
17704
|
:type Domain: str
|
17707
|
-
:param _Protocol: 协议,可取值
|
17705
|
+
:param _Protocol: 协议,可取值http、https、http/https
|
17708
17706
|
:type Protocol: str
|
17709
17707
|
:param _Level: CC防护等级,可取值loose表示宽松,strict表示严格,normal表示适中, emergency表示攻击紧急, sup_loose表示超级宽松,default表示默认策略(无频控配置下发),customized表示自定义策略
|
17710
17708
|
:type Level: str
|
@@ -17750,7 +17748,7 @@ class ModifyCCLevelPolicyRequest(AbstractModel):
|
|
17750
17748
|
|
17751
17749
|
@property
|
17752
17750
|
def Protocol(self):
|
17753
|
-
"""协议,可取值
|
17751
|
+
"""协议,可取值http、https、http/https
|
17754
17752
|
:rtype: str
|
17755
17753
|
"""
|
17756
17754
|
return self._Protocol
|
@@ -19386,8 +19384,12 @@ class NewL7RuleEntry(AbstractModel):
|
|
19386
19384
|
:type CCStatus: int
|
19387
19385
|
:param _CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
|
19388
19386
|
:type CCEnable: int
|
19389
|
-
:param _CCThreshold: HTTPS协议的CC
|
19387
|
+
:param _CCThreshold: HTTPS协议的CC防护阈值(已废弃)
|
19390
19388
|
:type CCThreshold: int
|
19389
|
+
:param _CCThresholdNew: HTTPS协议的CC防护阈值 -1:默认防御阈值
|
19390
|
+
0: 关闭
|
19391
|
+
大于0:自定义防护阈值
|
19392
|
+
:type CCThresholdNew: int
|
19391
19393
|
:param _CCLevel: HTTPS协议的CC防护等级
|
19392
19394
|
:type CCLevel: str
|
19393
19395
|
:param _ModifyTime: 修改时间
|
@@ -19425,6 +19427,7 @@ class NewL7RuleEntry(AbstractModel):
|
|
19425
19427
|
self._CCStatus = None
|
19426
19428
|
self._CCEnable = None
|
19427
19429
|
self._CCThreshold = None
|
19430
|
+
self._CCThresholdNew = None
|
19428
19431
|
self._CCLevel = None
|
19429
19432
|
self._ModifyTime = None
|
19430
19433
|
self._HttpsToHttpEnable = None
|
@@ -19644,7 +19647,7 @@ class NewL7RuleEntry(AbstractModel):
|
|
19644
19647
|
|
19645
19648
|
@property
|
19646
19649
|
def CCThreshold(self):
|
19647
|
-
"""HTTPS协议的CC
|
19650
|
+
"""HTTPS协议的CC防护阈值(已废弃)
|
19648
19651
|
:rtype: int
|
19649
19652
|
"""
|
19650
19653
|
return self._CCThreshold
|
@@ -19653,6 +19656,19 @@ class NewL7RuleEntry(AbstractModel):
|
|
19653
19656
|
def CCThreshold(self, CCThreshold):
|
19654
19657
|
self._CCThreshold = CCThreshold
|
19655
19658
|
|
19659
|
+
@property
|
19660
|
+
def CCThresholdNew(self):
|
19661
|
+
"""HTTPS协议的CC防护阈值 -1:默认防御阈值
|
19662
|
+
0: 关闭
|
19663
|
+
大于0:自定义防护阈值
|
19664
|
+
:rtype: int
|
19665
|
+
"""
|
19666
|
+
return self._CCThresholdNew
|
19667
|
+
|
19668
|
+
@CCThresholdNew.setter
|
19669
|
+
def CCThresholdNew(self, CCThresholdNew):
|
19670
|
+
self._CCThresholdNew = CCThresholdNew
|
19671
|
+
|
19656
19672
|
@property
|
19657
19673
|
def CCLevel(self):
|
19658
19674
|
"""HTTPS协议的CC防护等级
|
@@ -19759,6 +19775,7 @@ class NewL7RuleEntry(AbstractModel):
|
|
19759
19775
|
self._CCStatus = params.get("CCStatus")
|
19760
19776
|
self._CCEnable = params.get("CCEnable")
|
19761
19777
|
self._CCThreshold = params.get("CCThreshold")
|
19778
|
+
self._CCThresholdNew = params.get("CCThresholdNew")
|
19762
19779
|
self._CCLevel = params.get("CCLevel")
|
19763
19780
|
self._ModifyTime = params.get("ModifyTime")
|
19764
19781
|
self._HttpsToHttpEnable = params.get("HttpsToHttpEnable")
|
@@ -142,6 +142,29 @@ class ApmClient(AbstractClient):
|
|
142
142
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
143
143
|
|
144
144
|
|
145
|
+
def DescribeGeneralOTSpanList(self, request):
|
146
|
+
"""通用查询 OpenTelemetry 调用链列表
|
147
|
+
|
148
|
+
:param request: Request instance for DescribeGeneralOTSpanList.
|
149
|
+
:type request: :class:`tencentcloud.apm.v20210622.models.DescribeGeneralOTSpanListRequest`
|
150
|
+
:rtype: :class:`tencentcloud.apm.v20210622.models.DescribeGeneralOTSpanListResponse`
|
151
|
+
|
152
|
+
"""
|
153
|
+
try:
|
154
|
+
params = request._serialize()
|
155
|
+
headers = request.headers
|
156
|
+
body = self.call("DescribeGeneralOTSpanList", params, headers=headers)
|
157
|
+
response = json.loads(body)
|
158
|
+
model = models.DescribeGeneralOTSpanListResponse()
|
159
|
+
model._deserialize(response["Response"])
|
160
|
+
return model
|
161
|
+
except Exception as e:
|
162
|
+
if isinstance(e, TencentCloudSDKException):
|
163
|
+
raise
|
164
|
+
else:
|
165
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
166
|
+
|
167
|
+
|
145
168
|
def DescribeGeneralSpanList(self, request):
|
146
169
|
"""通用查询调用链列表
|
147
170
|
|
@@ -680,7 +680,8 @@ class ApmInstanceDetail(AbstractModel):
|
|
680
680
|
:type Name: str
|
681
681
|
:param _Description: 业务系统描述信息
|
682
682
|
:type Description: str
|
683
|
-
:param _Status:
|
683
|
+
:param _Status: 业务系统状态。{
|
684
|
+
1: 初始化中; 2: 运行中; 4: 限流}
|
684
685
|
:type Status: int
|
685
686
|
:param _Region: 业务系统所属地域
|
686
687
|
:type Region: str
|
@@ -746,6 +747,13 @@ class ApmInstanceDetail(AbstractModel):
|
|
746
747
|
:type IsInstrumentationVulnerabilityScan: int
|
747
748
|
:param _IsSqlInjectionAnalysis: 是否开启 SQL 注入分析(0=关, 1=开)
|
748
749
|
:type IsSqlInjectionAnalysis: int
|
750
|
+
:param _StopReason: 限流原因。{
|
751
|
+
1: 正式版限额;
|
752
|
+
2: 试用版限额;
|
753
|
+
4: 试用版到期;
|
754
|
+
8: 账号欠费
|
755
|
+
}
|
756
|
+
:type StopReason: int
|
749
757
|
"""
|
750
758
|
self._InstanceId = None
|
751
759
|
self._Name = None
|
@@ -783,6 +791,7 @@ class ApmInstanceDetail(AbstractModel):
|
|
783
791
|
self._DashboardTopicID = None
|
784
792
|
self._IsInstrumentationVulnerabilityScan = None
|
785
793
|
self._IsSqlInjectionAnalysis = None
|
794
|
+
self._StopReason = None
|
786
795
|
|
787
796
|
@property
|
788
797
|
def InstanceId(self):
|
@@ -819,7 +828,8 @@ class ApmInstanceDetail(AbstractModel):
|
|
819
828
|
|
820
829
|
@property
|
821
830
|
def Status(self):
|
822
|
-
"""
|
831
|
+
"""业务系统状态。{
|
832
|
+
1: 初始化中; 2: 运行中; 4: 限流}
|
823
833
|
:rtype: int
|
824
834
|
"""
|
825
835
|
return self._Status
|
@@ -1180,6 +1190,22 @@ class ApmInstanceDetail(AbstractModel):
|
|
1180
1190
|
def IsSqlInjectionAnalysis(self, IsSqlInjectionAnalysis):
|
1181
1191
|
self._IsSqlInjectionAnalysis = IsSqlInjectionAnalysis
|
1182
1192
|
|
1193
|
+
@property
|
1194
|
+
def StopReason(self):
|
1195
|
+
"""限流原因。{
|
1196
|
+
1: 正式版限额;
|
1197
|
+
2: 试用版限额;
|
1198
|
+
4: 试用版到期;
|
1199
|
+
8: 账号欠费
|
1200
|
+
}
|
1201
|
+
:rtype: int
|
1202
|
+
"""
|
1203
|
+
return self._StopReason
|
1204
|
+
|
1205
|
+
@StopReason.setter
|
1206
|
+
def StopReason(self, StopReason):
|
1207
|
+
self._StopReason = StopReason
|
1208
|
+
|
1183
1209
|
|
1184
1210
|
def _deserialize(self, params):
|
1185
1211
|
self._InstanceId = params.get("InstanceId")
|
@@ -1223,6 +1249,7 @@ class ApmInstanceDetail(AbstractModel):
|
|
1223
1249
|
self._DashboardTopicID = params.get("DashboardTopicID")
|
1224
1250
|
self._IsInstrumentationVulnerabilityScan = params.get("IsInstrumentationVulnerabilityScan")
|
1225
1251
|
self._IsSqlInjectionAnalysis = params.get("IsSqlInjectionAnalysis")
|
1252
|
+
self._StopReason = params.get("StopReason")
|
1226
1253
|
memeber_set = set(params.keys())
|
1227
1254
|
for name, value in vars(self).items():
|
1228
1255
|
property_name = name[1:]
|
@@ -2149,6 +2176,232 @@ class DescribeGeneralMetricDataResponse(AbstractModel):
|
|
2149
2176
|
self._RequestId = params.get("RequestId")
|
2150
2177
|
|
2151
2178
|
|
2179
|
+
class DescribeGeneralOTSpanListRequest(AbstractModel):
|
2180
|
+
"""DescribeGeneralOTSpanList请求参数结构体
|
2181
|
+
|
2182
|
+
"""
|
2183
|
+
|
2184
|
+
def __init__(self):
|
2185
|
+
r"""
|
2186
|
+
:param _InstanceId: 业务系统 ID
|
2187
|
+
:type InstanceId: str
|
2188
|
+
:param _StartTime: Span 查询开始时间戳(单位:秒)
|
2189
|
+
:type StartTime: int
|
2190
|
+
:param _EndTime: Span 查询结束时间戳(单位:秒)
|
2191
|
+
:type EndTime: int
|
2192
|
+
:param _Filters: 通用过滤参数
|
2193
|
+
:type Filters: list of Filter
|
2194
|
+
:param _OrderBy: 排序
|
2195
|
+
现支持的 Key 有:
|
2196
|
+
|
2197
|
+
- startTime(开始时间)
|
2198
|
+
- endTime(结束时间)
|
2199
|
+
- duration(响应时间)
|
2200
|
+
|
2201
|
+
现支持的 Value 有:
|
2202
|
+
|
2203
|
+
- desc(降序排序)
|
2204
|
+
- asc(升序排序)
|
2205
|
+
:type OrderBy: :class:`tencentcloud.apm.v20210622.models.OrderBy`
|
2206
|
+
:param _BusinessName: 业务自身服务名,控制台用户请填写taw
|
2207
|
+
:type BusinessName: str
|
2208
|
+
:param _Limit: 单页项目个数,默认为10000,合法取值范围为0~10000
|
2209
|
+
:type Limit: int
|
2210
|
+
:param _Offset: 分页
|
2211
|
+
:type Offset: int
|
2212
|
+
"""
|
2213
|
+
self._InstanceId = None
|
2214
|
+
self._StartTime = None
|
2215
|
+
self._EndTime = None
|
2216
|
+
self._Filters = None
|
2217
|
+
self._OrderBy = None
|
2218
|
+
self._BusinessName = None
|
2219
|
+
self._Limit = None
|
2220
|
+
self._Offset = None
|
2221
|
+
|
2222
|
+
@property
|
2223
|
+
def InstanceId(self):
|
2224
|
+
"""业务系统 ID
|
2225
|
+
:rtype: str
|
2226
|
+
"""
|
2227
|
+
return self._InstanceId
|
2228
|
+
|
2229
|
+
@InstanceId.setter
|
2230
|
+
def InstanceId(self, InstanceId):
|
2231
|
+
self._InstanceId = InstanceId
|
2232
|
+
|
2233
|
+
@property
|
2234
|
+
def StartTime(self):
|
2235
|
+
"""Span 查询开始时间戳(单位:秒)
|
2236
|
+
:rtype: int
|
2237
|
+
"""
|
2238
|
+
return self._StartTime
|
2239
|
+
|
2240
|
+
@StartTime.setter
|
2241
|
+
def StartTime(self, StartTime):
|
2242
|
+
self._StartTime = StartTime
|
2243
|
+
|
2244
|
+
@property
|
2245
|
+
def EndTime(self):
|
2246
|
+
"""Span 查询结束时间戳(单位:秒)
|
2247
|
+
:rtype: int
|
2248
|
+
"""
|
2249
|
+
return self._EndTime
|
2250
|
+
|
2251
|
+
@EndTime.setter
|
2252
|
+
def EndTime(self, EndTime):
|
2253
|
+
self._EndTime = EndTime
|
2254
|
+
|
2255
|
+
@property
|
2256
|
+
def Filters(self):
|
2257
|
+
"""通用过滤参数
|
2258
|
+
:rtype: list of Filter
|
2259
|
+
"""
|
2260
|
+
return self._Filters
|
2261
|
+
|
2262
|
+
@Filters.setter
|
2263
|
+
def Filters(self, Filters):
|
2264
|
+
self._Filters = Filters
|
2265
|
+
|
2266
|
+
@property
|
2267
|
+
def OrderBy(self):
|
2268
|
+
"""排序
|
2269
|
+
现支持的 Key 有:
|
2270
|
+
|
2271
|
+
- startTime(开始时间)
|
2272
|
+
- endTime(结束时间)
|
2273
|
+
- duration(响应时间)
|
2274
|
+
|
2275
|
+
现支持的 Value 有:
|
2276
|
+
|
2277
|
+
- desc(降序排序)
|
2278
|
+
- asc(升序排序)
|
2279
|
+
:rtype: :class:`tencentcloud.apm.v20210622.models.OrderBy`
|
2280
|
+
"""
|
2281
|
+
return self._OrderBy
|
2282
|
+
|
2283
|
+
@OrderBy.setter
|
2284
|
+
def OrderBy(self, OrderBy):
|
2285
|
+
self._OrderBy = OrderBy
|
2286
|
+
|
2287
|
+
@property
|
2288
|
+
def BusinessName(self):
|
2289
|
+
"""业务自身服务名,控制台用户请填写taw
|
2290
|
+
:rtype: str
|
2291
|
+
"""
|
2292
|
+
return self._BusinessName
|
2293
|
+
|
2294
|
+
@BusinessName.setter
|
2295
|
+
def BusinessName(self, BusinessName):
|
2296
|
+
self._BusinessName = BusinessName
|
2297
|
+
|
2298
|
+
@property
|
2299
|
+
def Limit(self):
|
2300
|
+
"""单页项目个数,默认为10000,合法取值范围为0~10000
|
2301
|
+
:rtype: int
|
2302
|
+
"""
|
2303
|
+
return self._Limit
|
2304
|
+
|
2305
|
+
@Limit.setter
|
2306
|
+
def Limit(self, Limit):
|
2307
|
+
self._Limit = Limit
|
2308
|
+
|
2309
|
+
@property
|
2310
|
+
def Offset(self):
|
2311
|
+
"""分页
|
2312
|
+
:rtype: int
|
2313
|
+
"""
|
2314
|
+
return self._Offset
|
2315
|
+
|
2316
|
+
@Offset.setter
|
2317
|
+
def Offset(self, Offset):
|
2318
|
+
self._Offset = Offset
|
2319
|
+
|
2320
|
+
|
2321
|
+
def _deserialize(self, params):
|
2322
|
+
self._InstanceId = params.get("InstanceId")
|
2323
|
+
self._StartTime = params.get("StartTime")
|
2324
|
+
self._EndTime = params.get("EndTime")
|
2325
|
+
if params.get("Filters") is not None:
|
2326
|
+
self._Filters = []
|
2327
|
+
for item in params.get("Filters"):
|
2328
|
+
obj = Filter()
|
2329
|
+
obj._deserialize(item)
|
2330
|
+
self._Filters.append(obj)
|
2331
|
+
if params.get("OrderBy") is not None:
|
2332
|
+
self._OrderBy = OrderBy()
|
2333
|
+
self._OrderBy._deserialize(params.get("OrderBy"))
|
2334
|
+
self._BusinessName = params.get("BusinessName")
|
2335
|
+
self._Limit = params.get("Limit")
|
2336
|
+
self._Offset = params.get("Offset")
|
2337
|
+
memeber_set = set(params.keys())
|
2338
|
+
for name, value in vars(self).items():
|
2339
|
+
property_name = name[1:]
|
2340
|
+
if property_name in memeber_set:
|
2341
|
+
memeber_set.remove(property_name)
|
2342
|
+
if len(memeber_set) > 0:
|
2343
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2344
|
+
|
2345
|
+
|
2346
|
+
|
2347
|
+
class DescribeGeneralOTSpanListResponse(AbstractModel):
|
2348
|
+
"""DescribeGeneralOTSpanList返回参数结构体
|
2349
|
+
|
2350
|
+
"""
|
2351
|
+
|
2352
|
+
def __init__(self):
|
2353
|
+
r"""
|
2354
|
+
:param _TotalCount: 总数量
|
2355
|
+
:type TotalCount: int
|
2356
|
+
:param _Spans: 装有查询结果 Spans 的 Trace 结构体。OpenTelemetry 标准 Trace 结构体哈希后的字符串,先将 Trace 利用 ptrace.JSONMarshaler 转换成 Json 字符串,再用 gzip 压缩,最后转换成 base64 标准的字符串。
|
2357
|
+
:type Spans: str
|
2358
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2359
|
+
:type RequestId: str
|
2360
|
+
"""
|
2361
|
+
self._TotalCount = None
|
2362
|
+
self._Spans = None
|
2363
|
+
self._RequestId = None
|
2364
|
+
|
2365
|
+
@property
|
2366
|
+
def TotalCount(self):
|
2367
|
+
"""总数量
|
2368
|
+
:rtype: int
|
2369
|
+
"""
|
2370
|
+
return self._TotalCount
|
2371
|
+
|
2372
|
+
@TotalCount.setter
|
2373
|
+
def TotalCount(self, TotalCount):
|
2374
|
+
self._TotalCount = TotalCount
|
2375
|
+
|
2376
|
+
@property
|
2377
|
+
def Spans(self):
|
2378
|
+
"""装有查询结果 Spans 的 Trace 结构体。OpenTelemetry 标准 Trace 结构体哈希后的字符串,先将 Trace 利用 ptrace.JSONMarshaler 转换成 Json 字符串,再用 gzip 压缩,最后转换成 base64 标准的字符串。
|
2379
|
+
:rtype: str
|
2380
|
+
"""
|
2381
|
+
return self._Spans
|
2382
|
+
|
2383
|
+
@Spans.setter
|
2384
|
+
def Spans(self, Spans):
|
2385
|
+
self._Spans = Spans
|
2386
|
+
|
2387
|
+
@property
|
2388
|
+
def RequestId(self):
|
2389
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2390
|
+
:rtype: str
|
2391
|
+
"""
|
2392
|
+
return self._RequestId
|
2393
|
+
|
2394
|
+
@RequestId.setter
|
2395
|
+
def RequestId(self, RequestId):
|
2396
|
+
self._RequestId = RequestId
|
2397
|
+
|
2398
|
+
|
2399
|
+
def _deserialize(self, params):
|
2400
|
+
self._TotalCount = params.get("TotalCount")
|
2401
|
+
self._Spans = params.get("Spans")
|
2402
|
+
self._RequestId = params.get("RequestId")
|
2403
|
+
|
2404
|
+
|
2152
2405
|
class DescribeGeneralSpanListRequest(AbstractModel):
|
2153
2406
|
"""DescribeGeneralSpanList请求参数结构体
|
2154
2407
|
|
@@ -80,6 +80,32 @@ class CbsClient(AbstractClient):
|
|
80
80
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
81
81
|
|
82
82
|
|
83
|
+
def ApplySnapshotGroup(self, request):
|
84
|
+
"""本接口(ApplySnapshotGroup)用于回滚快照组,将实例恢复到创建快照组时刻的状态。
|
85
|
+
* 1.可选择快照组全部或部分盘进行回滚;
|
86
|
+
* 2.如果回滚的盘中包含已挂载的盘,要求这些盘必须挂载在同一实例上,且要求该实例已关机才能回滚;
|
87
|
+
* 3.回滚为异步操作,接口返回成功不代表回滚成功,可通过调DescribeSnapshotGroups接口查询快照组的状态。
|
88
|
+
|
89
|
+
:param request: Request instance for ApplySnapshotGroup.
|
90
|
+
:type request: :class:`tencentcloud.cbs.v20170312.models.ApplySnapshotGroupRequest`
|
91
|
+
:rtype: :class:`tencentcloud.cbs.v20170312.models.ApplySnapshotGroupResponse`
|
92
|
+
|
93
|
+
"""
|
94
|
+
try:
|
95
|
+
params = request._serialize()
|
96
|
+
headers = request.headers
|
97
|
+
body = self.call("ApplySnapshotGroup", params, headers=headers)
|
98
|
+
response = json.loads(body)
|
99
|
+
model = models.ApplySnapshotGroupResponse()
|
100
|
+
model._deserialize(response["Response"])
|
101
|
+
return model
|
102
|
+
except Exception as e:
|
103
|
+
if isinstance(e, TencentCloudSDKException):
|
104
|
+
raise
|
105
|
+
else:
|
106
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
107
|
+
|
108
|
+
|
83
109
|
def AttachDisks(self, request):
|
84
110
|
"""本接口(AttachDisks)用于挂载云硬盘。
|
85
111
|
|
@@ -261,6 +287,31 @@ class CbsClient(AbstractClient):
|
|
261
287
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
262
288
|
|
263
289
|
|
290
|
+
def CreateSnapshotGroup(self, request):
|
291
|
+
"""本接口(CreateSnapshotGroup)用于创建快照组。
|
292
|
+
* 创建快照组的云硬盘列表必须挂载在同一实例上;
|
293
|
+
* 可选择挂载在实例上的全部或部分盘创建快照组。
|
294
|
+
|
295
|
+
:param request: Request instance for CreateSnapshotGroup.
|
296
|
+
:type request: :class:`tencentcloud.cbs.v20170312.models.CreateSnapshotGroupRequest`
|
297
|
+
:rtype: :class:`tencentcloud.cbs.v20170312.models.CreateSnapshotGroupResponse`
|
298
|
+
|
299
|
+
"""
|
300
|
+
try:
|
301
|
+
params = request._serialize()
|
302
|
+
headers = request.headers
|
303
|
+
body = self.call("CreateSnapshotGroup", params, headers=headers)
|
304
|
+
response = json.loads(body)
|
305
|
+
model = models.CreateSnapshotGroupResponse()
|
306
|
+
model._deserialize(response["Response"])
|
307
|
+
return model
|
308
|
+
except Exception as e:
|
309
|
+
if isinstance(e, TencentCloudSDKException):
|
310
|
+
raise
|
311
|
+
else:
|
312
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
313
|
+
|
314
|
+
|
264
315
|
def DeleteAutoSnapshotPolicies(self, request):
|
265
316
|
"""本接口(DeleteAutoSnapshotPolicies)用于删除定期快照策略。
|
266
317
|
|
@@ -309,6 +360,31 @@ class CbsClient(AbstractClient):
|
|
309
360
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
310
361
|
|
311
362
|
|
363
|
+
def DeleteSnapshotGroup(self, request):
|
364
|
+
"""本接口(DeleteSnapshotGroup)用于删除快照组,一次调用仅支持删除一个快照组。
|
365
|
+
* 默认会删除快照组内的所有快照;
|
366
|
+
* 如果快照组内的快照有关联镜像,则删除失败,所有快照均不会删除;如果需要同时删除快照绑定的镜像,可传入参数DeleteBindImages等于true。
|
367
|
+
|
368
|
+
:param request: Request instance for DeleteSnapshotGroup.
|
369
|
+
:type request: :class:`tencentcloud.cbs.v20170312.models.DeleteSnapshotGroupRequest`
|
370
|
+
:rtype: :class:`tencentcloud.cbs.v20170312.models.DeleteSnapshotGroupResponse`
|
371
|
+
|
372
|
+
"""
|
373
|
+
try:
|
374
|
+
params = request._serialize()
|
375
|
+
headers = request.headers
|
376
|
+
body = self.call("DeleteSnapshotGroup", params, headers=headers)
|
377
|
+
response = json.loads(body)
|
378
|
+
model = models.DeleteSnapshotGroupResponse()
|
379
|
+
model._deserialize(response["Response"])
|
380
|
+
return model
|
381
|
+
except Exception as e:
|
382
|
+
if isinstance(e, TencentCloudSDKException):
|
383
|
+
raise
|
384
|
+
else:
|
385
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
386
|
+
|
387
|
+
|
312
388
|
def DeleteSnapshots(self, request):
|
313
389
|
"""本接口(DeleteSnapshots)用于删除快照。
|
314
390
|
|
@@ -510,6 +586,31 @@ class CbsClient(AbstractClient):
|
|
510
586
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
511
587
|
|
512
588
|
|
589
|
+
def DescribeSnapshotGroups(self, request):
|
590
|
+
"""本接口(DescribeSnapshotGroups)用于查询快照组列表。
|
591
|
+
* 可以根据快照组ID、快照组状态、快照组关联的快照ID等来查询快照组列表,不同条件之间为与(AND)的关系,过滤信息详细请见过滤器`Filter`。
|
592
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的快照组列表。
|
593
|
+
|
594
|
+
:param request: Request instance for DescribeSnapshotGroups.
|
595
|
+
:type request: :class:`tencentcloud.cbs.v20170312.models.DescribeSnapshotGroupsRequest`
|
596
|
+
:rtype: :class:`tencentcloud.cbs.v20170312.models.DescribeSnapshotGroupsResponse`
|
597
|
+
|
598
|
+
"""
|
599
|
+
try:
|
600
|
+
params = request._serialize()
|
601
|
+
headers = request.headers
|
602
|
+
body = self.call("DescribeSnapshotGroups", params, headers=headers)
|
603
|
+
response = json.loads(body)
|
604
|
+
model = models.DescribeSnapshotGroupsResponse()
|
605
|
+
model._deserialize(response["Response"])
|
606
|
+
return model
|
607
|
+
except Exception as e:
|
608
|
+
if isinstance(e, TencentCloudSDKException):
|
609
|
+
raise
|
610
|
+
else:
|
611
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
612
|
+
|
613
|
+
|
513
614
|
def DescribeSnapshotOverview(self, request):
|
514
615
|
"""该接口用于查询用户快照使用概览,包括快照总容量、计费容量等信息。
|
515
616
|
|
@@ -215,6 +215,9 @@ UNSUPPORTEDOPERATION_INSTANCENOTSTOPPED = 'UnsupportedOperation.InstanceNotStopp
|
|
215
215
|
# 该快照已经共享,请先解除共享。
|
216
216
|
UNSUPPORTEDOPERATION_SNAPHASSHARED = 'UnsupportedOperation.SnapHasShared'
|
217
217
|
|
218
|
+
# 快照组关联快照的原云硬盘未挂载在同一实例上。
|
219
|
+
UNSUPPORTEDOPERATION_SNAPSHOTGROUPDISKATTACHMULTIINSTANCE = 'UnsupportedOperation.SnapshotGroupDiskAttachMultiInstance'
|
220
|
+
|
218
221
|
# 该快照创建了自定义快照,请先删除对应镜像。
|
219
222
|
UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = 'UnsupportedOperation.SnapshotHasBindedImage'
|
220
223
|
|