tencentcloud-sdk-python 3.0.1323__py2.py3-none-any.whl → 3.0.1324__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.
Files changed (29) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/models.py +2 -2
  3. tencentcloud/antiddos/v20200309/models.py +27 -10
  4. tencentcloud/apm/v20210622/models.py +29 -2
  5. tencentcloud/cbs/v20170312/cbs_client.py +101 -0
  6. tencentcloud/cbs/v20170312/errorcodes.py +3 -0
  7. tencentcloud/cbs/v20170312/models.py +735 -5
  8. tencentcloud/cdwdoris/v20211228/models.py +17 -2
  9. tencentcloud/cls/v20201016/models.py +15 -0
  10. tencentcloud/dlc/v20210125/models.py +0 -24
  11. tencentcloud/dts/v20211206/models.py +2 -2
  12. tencentcloud/gme/v20180711/models.py +0 -18
  13. tencentcloud/ocr/v20181119/models.py +158 -0
  14. tencentcloud/ses/v20201002/models.py +15 -0
  15. tencentcloud/svp/v20240125/models.py +0 -6
  16. tencentcloud/teo/v20220901/models.py +64 -0
  17. tencentcloud/trp/v20210515/models.py +0 -360
  18. tencentcloud/vpc/v20170312/models.py +234 -0
  19. tencentcloud/vpc/v20170312/vpc_client.py +46 -0
  20. {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1324.dist-info}/METADATA +1 -1
  21. {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1324.dist-info}/RECORD +24 -29
  22. tencentcloud/aa/__init__.py +0 -0
  23. tencentcloud/aa/v20200224/__init__.py +0 -0
  24. tencentcloud/aa/v20200224/aa_client.py +0 -49
  25. tencentcloud/aa/v20200224/errorcodes.py +0 -78
  26. tencentcloud/aa/v20200224/models.py +0 -736
  27. {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1324.dist-info}/LICENSE +0 -0
  28. {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1324.dist-info}/WHEEL +0 -0
  29. {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1324.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1323'
17
+ __version__ = '3.0.1324'
@@ -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>extured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>
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>extured:脸部皮肤更具真实感。</li><li>beautiful:脸部美观度更高。</li></ul>
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: 协议,可取值HTTP,HTTPS
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
- """协议,可取值HTTP,HTTPS
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: 是否商业模式优化-普惠版 0: 包含商业模式优化-普惠版 1: 只查询商业模式优化-普惠版
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
- """是否商业模式优化-普惠版 0: 包含商业模式优化-普惠版 1: 只查询商业模式优化-普惠版
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: 协议,可取值HTTP,HTTPS
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
- """协议,可取值HTTP,HTTPS
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")
@@ -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:]
@@ -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