tencentcloud-sdk-python 3.0.1442__py2.py3-none-any.whl → 3.0.1444__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.

Files changed (66) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +30 -50
  3. tencentcloud/ckafka/v20190819/models.py +23 -23
  4. tencentcloud/clb/v20180317/models.py +426 -30
  5. tencentcloud/cls/v20201016/cls_client.py +4 -4
  6. tencentcloud/cls/v20201016/errorcodes.py +3 -0
  7. tencentcloud/cls/v20201016/models.py +1089 -324
  8. tencentcloud/common/credential.py +20 -2
  9. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  10. tencentcloud/dnspod/v20210323/models.py +17 -2
  11. tencentcloud/es/v20180416/models.py +30 -0
  12. tencentcloud/ess/v20201111/ess_client.py +3 -1
  13. tencentcloud/ess/v20201111/models.py +2 -2
  14. tencentcloud/essbasic/v20210526/essbasic_client.py +3 -1
  15. tencentcloud/essbasic/v20210526/models.py +2 -2
  16. tencentcloud/iai/v20200303/models.py +19 -0
  17. tencentcloud/keewidb/v20220308/errorcodes.py +3 -0
  18. tencentcloud/keewidb/v20220308/models.py +2 -2
  19. tencentcloud/lcic/v20220817/errorcodes.py +15 -0
  20. tencentcloud/lcic/v20220817/models.py +67 -16
  21. tencentcloud/lighthouse/v20200324/errorcodes.py +27 -0
  22. tencentcloud/lighthouse/v20200324/lighthouse_client.py +53 -0
  23. tencentcloud/lighthouse/v20200324/models.py +534 -0
  24. tencentcloud/live/v20180801/models.py +2 -10
  25. tencentcloud/lke/v20231130/lke_client.py +0 -23
  26. tencentcloud/lke/v20231130/models.py +40 -128
  27. tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
  28. tencentcloud/mongodb/v20190725/models.py +4 -4
  29. tencentcloud/mps/v20190612/models.py +64 -0
  30. tencentcloud/ocr/v20181119/models.py +65 -16
  31. tencentcloud/organization/v20210331/models.py +24 -26
  32. tencentcloud/postgres/v20170312/errorcodes.py +0 -12
  33. tencentcloud/postgres/v20170312/models.py +191 -1527
  34. tencentcloud/postgres/v20170312/postgres_client.py +0 -75
  35. tencentcloud/ssl/v20191205/models.py +2 -2
  36. tencentcloud/sts/v20180813/sts_client.py +21 -7
  37. tencentcloud/tbaas/v20180416/errorcodes.py +6 -0
  38. tencentcloud/tcbr/v20220217/models.py +151 -0
  39. tencentcloud/tcss/v20201101/models.py +45 -0
  40. tencentcloud/teo/v20220901/models.py +18 -18
  41. tencentcloud/tke/v20180525/models.py +17 -2
  42. tencentcloud/tms/v20201229/errorcodes.py +3 -0
  43. tencentcloud/trabbit/v20230418/models.py +60 -0
  44. tencentcloud/trocket/v20230308/models.py +319 -0
  45. tencentcloud/trocket/v20230308/trocket_client.py +25 -0
  46. tencentcloud/trtc/v20190722/errorcodes.py +18 -0
  47. tencentcloud/trtc/v20190722/models.py +486 -2
  48. tencentcloud/trtc/v20190722/trtc_client.py +64 -0
  49. tencentcloud/tse/v20201207/models.py +30 -0
  50. tencentcloud/tsf/v20180326/errorcodes.py +41 -11
  51. tencentcloud/tsf/v20180326/models.py +1705 -1263
  52. tencentcloud/tsf/v20180326/tsf_client.py +18 -18
  53. tencentcloud/vod/v20180717/models.py +78 -10
  54. tencentcloud/vod/v20180717/vod_client.py +1 -0
  55. tencentcloud/vpc/v20170312/models.py +35 -0
  56. tencentcloud/vpc/v20170312/vpc_client.py +1 -1
  57. tencentcloud/waf/v20180125/errorcodes.py +6 -0
  58. tencentcloud/waf/v20180125/models.py +1926 -744
  59. tencentcloud/waf/v20180125/waf_client.py +161 -0
  60. tencentcloud/wedata/v20210820/models.py +204 -0
  61. tencentcloud/wsa/v20250508/models.py +42 -6
  62. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/METADATA +1 -1
  63. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/RECORD +66 -66
  64. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/LICENSE +0 -0
  65. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/WHEEL +0 -0
  66. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/top_level.txt +0 -0
@@ -327,31 +327,6 @@ class PostgresClient(AbstractClient):
327
327
  raise TencentCloudSDKException(type(e).__name__, str(e))
328
328
 
329
329
 
330
- def CreateServerlessDBInstance(self, request):
331
- """该产品形态需要下线,已完成客户实例全部下线、后端服务下线等
332
-
333
- 【接口下线中,请勿使用】本接口 (CreateServerlessDBInstance) 用于创建一个ServerlessDB实例,创建成功返回实例ID。
334
-
335
- :param request: Request instance for CreateServerlessDBInstance.
336
- :type request: :class:`tencentcloud.postgres.v20170312.models.CreateServerlessDBInstanceRequest`
337
- :rtype: :class:`tencentcloud.postgres.v20170312.models.CreateServerlessDBInstanceResponse`
338
-
339
- """
340
- try:
341
- params = request._serialize()
342
- headers = request.headers
343
- body = self.call("CreateServerlessDBInstance", params, headers=headers)
344
- response = json.loads(body)
345
- model = models.CreateServerlessDBInstanceResponse()
346
- model._deserialize(response["Response"])
347
- return model
348
- except Exception as e:
349
- if isinstance(e, TencentCloudSDKException):
350
- raise
351
- else:
352
- raise TencentCloudSDKException(type(e).__name__, str(e))
353
-
354
-
355
330
  def DeleteAccount(self, request):
356
331
  """此接口用于删除数据库账号,需要同时输入Oid与UserName,避免误删。注:该接口可重入,如果账号已经不存在,调用此接口进行删除时不会报错。
357
332
 
@@ -975,31 +950,6 @@ class PostgresClient(AbstractClient):
975
950
  raise TencentCloudSDKException(type(e).__name__, str(e))
976
951
 
977
952
 
978
- def DescribeDBSlowlogs(self, request):
979
- """早期接口不规范,已提供新接口 DescribeSlowQueryList 替换
980
-
981
- 本接口(DescribeDBSlowlogs)用于获取慢查询日志。本接口已于2021.09.01日废弃,后续此接口将不再返回任何数据,推荐使用接口[DescribeSlowQueryList](https://cloud.tencent.com/document/api/409/60540)替代。
982
-
983
- :param request: Request instance for DescribeDBSlowlogs.
984
- :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBSlowlogsRequest`
985
- :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBSlowlogsResponse`
986
-
987
- """
988
- try:
989
- params = request._serialize()
990
- headers = request.headers
991
- body = self.call("DescribeDBSlowlogs", params, headers=headers)
992
- response = json.loads(body)
993
- model = models.DescribeDBSlowlogsResponse()
994
- model._deserialize(response["Response"])
995
- return model
996
- except Exception as e:
997
- if isinstance(e, TencentCloudSDKException):
998
- raise
999
- else:
1000
- raise TencentCloudSDKException(type(e).__name__, str(e))
1001
-
1002
-
1003
953
  def DescribeDBVersions(self, request):
1004
954
  """本接口(DescribeDBVersions)用于查询支持的数据库版本。
1005
955
 
@@ -1368,31 +1318,6 @@ class PostgresClient(AbstractClient):
1368
1318
  raise TencentCloudSDKException(type(e).__name__, str(e))
1369
1319
 
1370
1320
 
1371
- def DescribeServerlessDBInstances(self, request):
1372
- """该产品形态需要下线,已完成客户实例全部下线、后端服务下线等
1373
-
1374
- 【接口下线中,请勿使用】用于查询一个或多个serverlessDB实例的详细信息
1375
-
1376
- :param request: Request instance for DescribeServerlessDBInstances.
1377
- :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeServerlessDBInstancesRequest`
1378
- :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeServerlessDBInstancesResponse`
1379
-
1380
- """
1381
- try:
1382
- params = request._serialize()
1383
- headers = request.headers
1384
- body = self.call("DescribeServerlessDBInstances", params, headers=headers)
1385
- response = json.loads(body)
1386
- model = models.DescribeServerlessDBInstancesResponse()
1387
- model._deserialize(response["Response"])
1388
- return model
1389
- except Exception as e:
1390
- if isinstance(e, TencentCloudSDKException):
1391
- raise
1392
- else:
1393
- raise TencentCloudSDKException(type(e).__name__, str(e))
1394
-
1395
-
1396
1321
  def DescribeSlowQueryAnalysis(self, request):
1397
1322
  """此接口(DescribeSlowQueryAnalysis)用于统计指定时间范围内的所有慢查询,根据SQL语句抽象参数后,进行聚合分析,并返回同类SQL列表。
1398
1323
 
@@ -10913,7 +10913,7 @@ class DescribeDownloadCertificateUrlRequest(AbstractModel):
10913
10913
  r"""
10914
10914
  :param _CertificateId: 证书ID
10915
10915
  :type CertificateId: str
10916
- :param _ServiceType: 必填选项,下载的服务类型: nginx tomcat apache iis jks other root
10916
+ :param _ServiceType: 下载的服务类型: nginx tomcat apache iis jks other root, 不传则默认下载nginx格式
10917
10917
  :type ServiceType: str
10918
10918
  """
10919
10919
  self._CertificateId = None
@@ -10932,7 +10932,7 @@ class DescribeDownloadCertificateUrlRequest(AbstractModel):
10932
10932
 
10933
10933
  @property
10934
10934
  def ServiceType(self):
10935
- """必填选项,下载的服务类型: nginx tomcat apache iis jks other root
10935
+ """下载的服务类型: nginx tomcat apache iis jks other root, 不传则默认下载nginx格式
10936
10936
  :rtype: str
10937
10937
  """
10938
10938
  return self._ServiceType
@@ -27,20 +27,34 @@ class StsClient(AbstractClient):
27
27
 
28
28
 
29
29
  def AssumeRole(self, request):
30
- """申请扮演角色临时访问凭证。
30
+ """**使用说明**
31
+
32
+ 1. 申请扮演某个角色的临时访问凭证,返回临时身份的token和能够扮演该角色的临时密钥;
33
+ 2. 角色策略组成
34
+ (1)角色载体:指定谁可以扮演该角色;
35
+ (2)角色权限:指定扮演角色后可以执行哪些操作,操作哪些资源。
36
+
37
+ 3. 角色可被扮演的条件
38
+ (1)给该用户绑定包含AssumeRole的策略;
39
+ (2)将该用户配置为角色载体的主体。
31
40
 
32
- 1、角色策略组成
41
+ 4. 此接口可以支持永久密钥或临时密钥调用。
33
42
 
34
- (1)角色信任策略:指定谁可以扮演该角色;
35
43
 
36
- (2)角色权限策略:指定扮演角色后可以执行哪些操作。
44
+ **典型场景**
45
+
46
+ 1. 跨账号授权:主账号A需要操作主账号B的资源。
47
+ 例如:A账号下有子用户a,B账号下有角色role b,a可以通过AssumeRole接口扮演b,以角色b身份登录账号B的控制台,并操作资源。
37
48
 
49
+ 2. 跨服务调用:云上的A服务需要访问或操作B服务的资源。
50
+ 例如:为A服务接入一个服务相关角色,用户授权创建角色和策略后,A服务即可调用AssumeRole获取用户的服务相关角色临时密钥,调用B服务接口并访问资源。
38
51
 
39
- 2、角色可扮演条件
40
52
 
41
- (1)给用户绑定允许调用AssumeRole的策略 ;
42
53
 
43
- (2)将用户添加为角色信任策略中的主体。
54
+ **最佳实践**
55
+ 1. 临时访问凭证在有效期内(Expiration)都可以使用,建议在有效期内重复使用,避免业务请求该接口频率达到上限被限频;
56
+ 2. 授予临时访问凭证权限的CAM策略,建议严格遵循最小权限原则;
57
+ 3. 建议不要使用主账号永久密钥,对该接口进行调用。
44
58
 
45
59
  :param request: Request instance for AssumeRole.
46
60
  :type request: :class:`tencentcloud.sts.v20180813.models.AssumeRoleRequest`
@@ -65,6 +65,12 @@ FAILEDOPERATION_CAYUNAPIAPPLYCERT = 'FailedOperation.CaYunApiApplyCert'
65
65
  # CFCA云API错误。
66
66
  FAILEDOPERATION_CAYUNAPICOMMON = 'FailedOperation.CaYunApiCommon'
67
67
 
68
+ # 合约调用失败
69
+ FAILEDOPERATION_CHAINMAKERCHAINCODEINVOKEFAILED = 'FailedOperation.ChainMakerChaincodeInvokeFailed'
70
+
71
+ # 合约查询失败
72
+ FAILEDOPERATION_CHAINMAKERCHAINCODEQUERYFAILED = 'FailedOperation.ChainMakerChaincodeQueryFailed'
73
+
68
74
  # Bcos不能编译已经部署的合约。
69
75
  FAILEDOPERATION_COMPILEDEPLOYEDCONTRACT = 'FailedOperation.CompileDeployedContract'
70
76
 
@@ -1498,6 +1498,8 @@ AccessTypes,EntryPoint,Cmd
1498
1498
  :type TimerScale: list of TimerScale
1499
1499
  :param _VpcConf: 配置内网访问时网络信息
1500
1500
  :type VpcConf: :class:`tencentcloud.tcbr.v20220217.models.VpcConf`
1501
+ :param _VolumesConf: 存储配置信息
1502
+ :type VolumesConf: list of VolumeConf
1501
1503
  """
1502
1504
  self._Key = None
1503
1505
  self._Value = None
@@ -1508,6 +1510,7 @@ AccessTypes,EntryPoint,Cmd
1508
1510
  self._PolicyDetails = None
1509
1511
  self._TimerScale = None
1510
1512
  self._VpcConf = None
1513
+ self._VolumesConf = None
1511
1514
 
1512
1515
  @property
1513
1516
  def Key(self):
@@ -1635,6 +1638,17 @@ AccessTypes,EntryPoint,Cmd
1635
1638
  def VpcConf(self, VpcConf):
1636
1639
  self._VpcConf = VpcConf
1637
1640
 
1641
+ @property
1642
+ def VolumesConf(self):
1643
+ """存储配置信息
1644
+ :rtype: list of VolumeConf
1645
+ """
1646
+ return self._VolumesConf
1647
+
1648
+ @VolumesConf.setter
1649
+ def VolumesConf(self, VolumesConf):
1650
+ self._VolumesConf = VolumesConf
1651
+
1638
1652
 
1639
1653
  def _deserialize(self, params):
1640
1654
  self._Key = params.get("Key")
@@ -1658,6 +1672,12 @@ AccessTypes,EntryPoint,Cmd
1658
1672
  if params.get("VpcConf") is not None:
1659
1673
  self._VpcConf = VpcConf()
1660
1674
  self._VpcConf._deserialize(params.get("VpcConf"))
1675
+ if params.get("VolumesConf") is not None:
1676
+ self._VolumesConf = []
1677
+ for item in params.get("VolumesConf"):
1678
+ obj = VolumeConf()
1679
+ obj._deserialize(item)
1680
+ self._VolumesConf.append(obj)
1661
1681
  memeber_set = set(params.keys())
1662
1682
  for name, value in vars(self).items():
1663
1683
  property_name = name[1:]
@@ -2939,6 +2959,8 @@ class ServerBaseConfig(AbstractModel):
2939
2959
  :type SessionAffinity: str
2940
2960
  :param _VpcConf: Vpc 配置参数
2941
2961
  :type VpcConf: :class:`tencentcloud.tcbr.v20220217.models.VpcConf`
2962
+ :param _VolumesConf: 存储配置信息
2963
+ :type VolumesConf: list of VolumeConf
2942
2964
  """
2943
2965
  self._EnvId = None
2944
2966
  self._ServerName = None
@@ -2969,6 +2991,7 @@ class ServerBaseConfig(AbstractModel):
2969
2991
  self._Cmd = None
2970
2992
  self._SessionAffinity = None
2971
2993
  self._VpcConf = None
2994
+ self._VolumesConf = None
2972
2995
 
2973
2996
  @property
2974
2997
  def EnvId(self):
@@ -3290,6 +3313,17 @@ class ServerBaseConfig(AbstractModel):
3290
3313
  def VpcConf(self, VpcConf):
3291
3314
  self._VpcConf = VpcConf
3292
3315
 
3316
+ @property
3317
+ def VolumesConf(self):
3318
+ """存储配置信息
3319
+ :rtype: list of VolumeConf
3320
+ """
3321
+ return self._VolumesConf
3322
+
3323
+ @VolumesConf.setter
3324
+ def VolumesConf(self, VolumesConf):
3325
+ self._VolumesConf = VolumesConf
3326
+
3293
3327
 
3294
3328
  def _deserialize(self, params):
3295
3329
  self._EnvId = params.get("EnvId")
@@ -3333,6 +3367,12 @@ class ServerBaseConfig(AbstractModel):
3333
3367
  if params.get("VpcConf") is not None:
3334
3368
  self._VpcConf = VpcConf()
3335
3369
  self._VpcConf._deserialize(params.get("VpcConf"))
3370
+ if params.get("VolumesConf") is not None:
3371
+ self._VolumesConf = []
3372
+ for item in params.get("VolumesConf"):
3373
+ obj = VolumeConf()
3374
+ obj._deserialize(item)
3375
+ self._VolumesConf.append(obj)
3336
3376
  memeber_set = set(params.keys())
3337
3377
  for name, value in vars(self).items():
3338
3378
  property_name = name[1:]
@@ -4514,6 +4554,117 @@ class VersionFlowInfo(AbstractModel):
4514
4554
 
4515
4555
 
4516
4556
 
4557
+ class VolumeConf(AbstractModel):
4558
+ """存储配置
4559
+
4560
+ """
4561
+
4562
+ def __init__(self):
4563
+ r"""
4564
+ :param _Type: 存储类型
4565
+ :type Type: str
4566
+ :param _BucketName: 对象存储桶名称
4567
+ :type BucketName: str
4568
+ :param _Endpoint: 存储连接地址
4569
+ :type Endpoint: str
4570
+ :param _KeyID: 存储连接用户密码
4571
+ :type KeyID: str
4572
+ :param _DstPath: 存储挂载目的目录
4573
+ :type DstPath: str
4574
+ :param _SrcPath: 存储挂载源目录
4575
+ :type SrcPath: str
4576
+ """
4577
+ self._Type = None
4578
+ self._BucketName = None
4579
+ self._Endpoint = None
4580
+ self._KeyID = None
4581
+ self._DstPath = None
4582
+ self._SrcPath = None
4583
+
4584
+ @property
4585
+ def Type(self):
4586
+ """存储类型
4587
+ :rtype: str
4588
+ """
4589
+ return self._Type
4590
+
4591
+ @Type.setter
4592
+ def Type(self, Type):
4593
+ self._Type = Type
4594
+
4595
+ @property
4596
+ def BucketName(self):
4597
+ """对象存储桶名称
4598
+ :rtype: str
4599
+ """
4600
+ return self._BucketName
4601
+
4602
+ @BucketName.setter
4603
+ def BucketName(self, BucketName):
4604
+ self._BucketName = BucketName
4605
+
4606
+ @property
4607
+ def Endpoint(self):
4608
+ """存储连接地址
4609
+ :rtype: str
4610
+ """
4611
+ return self._Endpoint
4612
+
4613
+ @Endpoint.setter
4614
+ def Endpoint(self, Endpoint):
4615
+ self._Endpoint = Endpoint
4616
+
4617
+ @property
4618
+ def KeyID(self):
4619
+ """存储连接用户密码
4620
+ :rtype: str
4621
+ """
4622
+ return self._KeyID
4623
+
4624
+ @KeyID.setter
4625
+ def KeyID(self, KeyID):
4626
+ self._KeyID = KeyID
4627
+
4628
+ @property
4629
+ def DstPath(self):
4630
+ """存储挂载目的目录
4631
+ :rtype: str
4632
+ """
4633
+ return self._DstPath
4634
+
4635
+ @DstPath.setter
4636
+ def DstPath(self, DstPath):
4637
+ self._DstPath = DstPath
4638
+
4639
+ @property
4640
+ def SrcPath(self):
4641
+ """存储挂载源目录
4642
+ :rtype: str
4643
+ """
4644
+ return self._SrcPath
4645
+
4646
+ @SrcPath.setter
4647
+ def SrcPath(self, SrcPath):
4648
+ self._SrcPath = SrcPath
4649
+
4650
+
4651
+ def _deserialize(self, params):
4652
+ self._Type = params.get("Type")
4653
+ self._BucketName = params.get("BucketName")
4654
+ self._Endpoint = params.get("Endpoint")
4655
+ self._KeyID = params.get("KeyID")
4656
+ self._DstPath = params.get("DstPath")
4657
+ self._SrcPath = params.get("SrcPath")
4658
+ memeber_set = set(params.keys())
4659
+ for name, value in vars(self).items():
4660
+ property_name = name[1:]
4661
+ if property_name in memeber_set:
4662
+ memeber_set.remove(property_name)
4663
+ if len(memeber_set) > 0:
4664
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4665
+
4666
+
4667
+
4517
4668
  class VpcConf(AbstractModel):
4518
4669
  """云托管服务 Vpc 配置
4519
4670
 
@@ -6506,6 +6506,8 @@ class ClusterInfoItem(AbstractModel):
6506
6506
  :type AccessedStatus: str
6507
6507
  :param _AccessedSubStatus: 接入失败原因
6508
6508
  :type AccessedSubStatus: str
6509
+ :param _AccessedErrorReason: 接入/卸载失败原因
6510
+ :type AccessedErrorReason: str
6509
6511
  :param _NodeCount: 节点总数
6510
6512
  :type NodeCount: int
6511
6513
  :param _OffLineNodeCount: 离线节点数
@@ -6549,6 +6551,7 @@ class ClusterInfoItem(AbstractModel):
6549
6551
  self._TaskCreateTime = None
6550
6552
  self._AccessedStatus = None
6551
6553
  self._AccessedSubStatus = None
6554
+ self._AccessedErrorReason = None
6552
6555
  self._NodeCount = None
6553
6556
  self._OffLineNodeCount = None
6554
6557
  self._UnInstallAgentNodeCount = None
@@ -6823,6 +6826,17 @@ class ClusterInfoItem(AbstractModel):
6823
6826
  def AccessedSubStatus(self, AccessedSubStatus):
6824
6827
  self._AccessedSubStatus = AccessedSubStatus
6825
6828
 
6829
+ @property
6830
+ def AccessedErrorReason(self):
6831
+ """接入/卸载失败原因
6832
+ :rtype: str
6833
+ """
6834
+ return self._AccessedErrorReason
6835
+
6836
+ @AccessedErrorReason.setter
6837
+ def AccessedErrorReason(self, AccessedErrorReason):
6838
+ self._AccessedErrorReason = AccessedErrorReason
6839
+
6826
6840
  @property
6827
6841
  def NodeCount(self):
6828
6842
  """节点总数
@@ -6948,6 +6962,7 @@ class ClusterInfoItem(AbstractModel):
6948
6962
  self._TaskCreateTime = params.get("TaskCreateTime")
6949
6963
  self._AccessedStatus = params.get("AccessedStatus")
6950
6964
  self._AccessedSubStatus = params.get("AccessedSubStatus")
6965
+ self._AccessedErrorReason = params.get("AccessedErrorReason")
6951
6966
  self._NodeCount = params.get("NodeCount")
6952
6967
  self._OffLineNodeCount = params.get("OffLineNodeCount")
6953
6968
  self._UnInstallAgentNodeCount = params.get("UnInstallAgentNodeCount")
@@ -22779,6 +22794,8 @@ class DescribeAssetHostDetailResponse(AbstractModel):
22779
22794
  :type ClusterName: str
22780
22795
  :param _ClusterAccessedStatus: 集群接入状态
22781
22796
  :type ClusterAccessedStatus: str
22797
+ :param _AssetSyncTime: 资产同步时间
22798
+ :type AssetSyncTime: str
22782
22799
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
22783
22800
  :type RequestId: str
22784
22801
  """
@@ -22811,6 +22828,7 @@ class DescribeAssetHostDetailResponse(AbstractModel):
22811
22828
  self._ClusterID = None
22812
22829
  self._ClusterName = None
22813
22830
  self._ClusterAccessedStatus = None
22831
+ self._AssetSyncTime = None
22814
22832
  self._RequestId = None
22815
22833
 
22816
22834
  @property
@@ -23132,6 +23150,17 @@ class DescribeAssetHostDetailResponse(AbstractModel):
23132
23150
  def ClusterAccessedStatus(self, ClusterAccessedStatus):
23133
23151
  self._ClusterAccessedStatus = ClusterAccessedStatus
23134
23152
 
23153
+ @property
23154
+ def AssetSyncTime(self):
23155
+ """资产同步时间
23156
+ :rtype: str
23157
+ """
23158
+ return self._AssetSyncTime
23159
+
23160
+ @AssetSyncTime.setter
23161
+ def AssetSyncTime(self, AssetSyncTime):
23162
+ self._AssetSyncTime = AssetSyncTime
23163
+
23135
23164
  @property
23136
23165
  def RequestId(self):
23137
23166
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -23181,6 +23210,7 @@ class DescribeAssetHostDetailResponse(AbstractModel):
23181
23210
  self._ClusterID = params.get("ClusterID")
23182
23211
  self._ClusterName = params.get("ClusterName")
23183
23212
  self._ClusterAccessedStatus = params.get("ClusterAccessedStatus")
23213
+ self._AssetSyncTime = params.get("AssetSyncTime")
23184
23214
  self._RequestId = params.get("RequestId")
23185
23215
 
23186
23216
 
@@ -30448,6 +30478,8 @@ class DescribeClusterDetailResponse(AbstractModel):
30448
30478
  :type MasterIps: str
30449
30479
  :param _OwnerName: 所有者名称
30450
30480
  :type OwnerName: str
30481
+ :param _CheckFailReason: 检查失败原因
30482
+ :type CheckFailReason: str
30451
30483
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
30452
30484
  :type RequestId: str
30453
30485
  """
@@ -30478,6 +30510,7 @@ class DescribeClusterDetailResponse(AbstractModel):
30478
30510
  self._IngressCount = None
30479
30511
  self._MasterIps = None
30480
30512
  self._OwnerName = None
30513
+ self._CheckFailReason = None
30481
30514
  self._RequestId = None
30482
30515
 
30483
30516
  @property
@@ -30777,6 +30810,17 @@ class DescribeClusterDetailResponse(AbstractModel):
30777
30810
  def OwnerName(self, OwnerName):
30778
30811
  self._OwnerName = OwnerName
30779
30812
 
30813
+ @property
30814
+ def CheckFailReason(self):
30815
+ """检查失败原因
30816
+ :rtype: str
30817
+ """
30818
+ return self._CheckFailReason
30819
+
30820
+ @CheckFailReason.setter
30821
+ def CheckFailReason(self, CheckFailReason):
30822
+ self._CheckFailReason = CheckFailReason
30823
+
30780
30824
  @property
30781
30825
  def RequestId(self):
30782
30826
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -30817,6 +30861,7 @@ class DescribeClusterDetailResponse(AbstractModel):
30817
30861
  self._IngressCount = params.get("IngressCount")
30818
30862
  self._MasterIps = params.get("MasterIps")
30819
30863
  self._OwnerName = params.get("OwnerName")
30864
+ self._CheckFailReason = params.get("CheckFailReason")
30820
30865
  self._RequestId = params.get("RequestId")
30821
30866
 
30822
30867
 
@@ -10399,21 +10399,21 @@ class CreateOriginGroupRequest(AbstractModel):
10399
10399
  r"""
10400
10400
  :param _ZoneId: 站点 ID
10401
10401
  :type ZoneId: str
10402
+ :param _Records: 源站记录信息,此参数必填。
10403
+ :type Records: list of OriginRecord
10402
10404
  :param _Name: 源站组名称,可输入1 - 200个字符,允许的字符为 a - z, A - Z, 0 - 9, _, - 。
10403
10405
  :type Name: str
10404
10406
  :param _Type: 源站组类型,此参数必填,取值有:
10405
10407
  <li>GENERAL:通用型源站组,仅支持添加 IP/域名 源站,可以被域名服务、规则引擎、四层代理、通用型负载均衡、HTTP 专用型负载均衡引用;</li>
10406
10408
  <li>HTTP: HTTP 专用型源站组,支持添加 IP/域名、对象存储源站作为源站,无法被四层代理引用,仅支持被添加加速域名、规则引擎-修改源站、HTTP 专用型负载均衡引用。</li>
10407
10409
  :type Type: str
10408
- :param _Records: 源站记录信息,此参数必填。
10409
- :type Records: list of OriginRecord
10410
10410
  :param _HostHeader: 回源 Host Header,仅 Type = HTTP 时传入生效,规则引擎修改 Host Header 配置优先级高于源站组的 Host Header。
10411
10411
  :type HostHeader: str
10412
10412
  """
10413
10413
  self._ZoneId = None
10414
+ self._Records = None
10414
10415
  self._Name = None
10415
10416
  self._Type = None
10416
- self._Records = None
10417
10417
  self._HostHeader = None
10418
10418
 
10419
10419
  @property
@@ -10427,6 +10427,17 @@ class CreateOriginGroupRequest(AbstractModel):
10427
10427
  def ZoneId(self, ZoneId):
10428
10428
  self._ZoneId = ZoneId
10429
10429
 
10430
+ @property
10431
+ def Records(self):
10432
+ """源站记录信息,此参数必填。
10433
+ :rtype: list of OriginRecord
10434
+ """
10435
+ return self._Records
10436
+
10437
+ @Records.setter
10438
+ def Records(self, Records):
10439
+ self._Records = Records
10440
+
10430
10441
  @property
10431
10442
  def Name(self):
10432
10443
  """源站组名称,可输入1 - 200个字符,允许的字符为 a - z, A - Z, 0 - 9, _, - 。
@@ -10451,17 +10462,6 @@ class CreateOriginGroupRequest(AbstractModel):
10451
10462
  def Type(self, Type):
10452
10463
  self._Type = Type
10453
10464
 
10454
- @property
10455
- def Records(self):
10456
- """源站记录信息,此参数必填。
10457
- :rtype: list of OriginRecord
10458
- """
10459
- return self._Records
10460
-
10461
- @Records.setter
10462
- def Records(self, Records):
10463
- self._Records = Records
10464
-
10465
10465
  @property
10466
10466
  def HostHeader(self):
10467
10467
  """回源 Host Header,仅 Type = HTTP 时传入生效,规则引擎修改 Host Header 配置优先级高于源站组的 Host Header。
@@ -10476,14 +10476,14 @@ class CreateOriginGroupRequest(AbstractModel):
10476
10476
 
10477
10477
  def _deserialize(self, params):
10478
10478
  self._ZoneId = params.get("ZoneId")
10479
- self._Name = params.get("Name")
10480
- self._Type = params.get("Type")
10481
10479
  if params.get("Records") is not None:
10482
10480
  self._Records = []
10483
10481
  for item in params.get("Records"):
10484
10482
  obj = OriginRecord()
10485
10483
  obj._deserialize(item)
10486
10484
  self._Records.append(obj)
10485
+ self._Name = params.get("Name")
10486
+ self._Type = params.get("Type")
10487
10487
  self._HostHeader = params.get("HostHeader")
10488
10488
  memeber_set = set(params.keys())
10489
10489
  for name, value in vars(self).items():
@@ -42952,7 +42952,7 @@ class OriginRecord(AbstractModel):
42952
42952
  :type Type: str
42953
42953
  :param _RecordId: 源站记录ID。
42954
42954
  :type RecordId: str
42955
- :param _Weight: 源站权重,取值为0-100, 不填表示不设置权重,由系统自由调度,填0表示权重为0, 流量将不会调度到此源站。
42955
+ :param _Weight: 【源站权重】:用于控制流量分配优先级的参数,取值范围:0-100(整数):<li>空值:不设置权重,系统按默认策略调度;</li><li>0 值:明确设置权重为0,流量将不会分配到该源站,注意事项:必须确保至少有一个源站的权重值大于0;</li><li>正常值:数值越大分配流量越多 ;</li>
42956
42956
  注意:此字段可能返回 null,表示取不到有效值。
42957
42957
  :type Weight: int
42958
42958
  :param _Private: 是否私有鉴权,当源站类型 RecordType=COS/AWS_S3 时生效,取值有:
@@ -43008,7 +43008,7 @@ class OriginRecord(AbstractModel):
43008
43008
 
43009
43009
  @property
43010
43010
  def Weight(self):
43011
- """源站权重,取值为0-100, 不填表示不设置权重,由系统自由调度,填0表示权重为0, 流量将不会调度到此源站。
43011
+ """【源站权重】:用于控制流量分配优先级的参数,取值范围:0-100(整数):<li>空值:不设置权重,系统按默认策略调度;</li><li>0 值:明确设置权重为0,流量将不会分配到该源站,注意事项:必须确保至少有一个源站的权重值大于0;</li><li>正常值:数值越大分配流量越多 ;</li>
43012
43012
  注意:此字段可能返回 null,表示取不到有效值。
43013
43013
  :rtype: int
43014
43014
  """
@@ -2300,6 +2300,8 @@ class ClusterAdvancedSettings(AbstractModel):
2300
2300
  :type CiliumMode: str
2301
2301
  :param _ContainerRuntime: 集群使用的runtime类型,包括"docker"和"containerd"两种类型,默认为"docker"
2302
2302
  :type ContainerRuntime: str
2303
+ :param _DataPlaneV2: 是否启用 DataPlaneV2(cilium替代kube-proxy)
2304
+ :type DataPlaneV2: bool
2303
2305
  :param _DeletionProtection: 是否启用集群删除保护
2304
2306
  :type DeletionProtection: bool
2305
2307
  :param _EnableCustomizedPodCIDR: 是否开节点podCIDR大小的自定义模式
@@ -2322,7 +2324,7 @@ ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
2322
2324
  1. 集群版本必须为1.14及以上;
2323
2325
  2. 系统镜像必须是: Tencent Linux 2.4;
2324
2326
  :type KubeProxyMode: str
2325
- :param _NetworkType: 集群网络类型(包括GR(全局路由)和VPC-CNI两种模式,默认为GR。
2327
+ :param _NetworkType: 集群网络类型。包括GR(全局路由)和VPC-CNI两种模式,默认为GR。
2326
2328
  :type NetworkType: str
2327
2329
  :param _NodeNameType: 集群中节点NodeName类型(包括 hostname,lan-ip两种形式,默认为lan-ip。如果开启了hostname模式,创建节点时需要设置HostName参数,并且InstanceName需要和HostName一致)
2328
2330
  :type NodeNameType: str
@@ -2340,6 +2342,7 @@ ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
2340
2342
  self._BasePodNumber = None
2341
2343
  self._CiliumMode = None
2342
2344
  self._ContainerRuntime = None
2345
+ self._DataPlaneV2 = None
2343
2346
  self._DeletionProtection = None
2344
2347
  self._EnableCustomizedPodCIDR = None
2345
2348
  self._EtcdOverrideConfigs = None
@@ -2431,6 +2434,17 @@ ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
2431
2434
  def ContainerRuntime(self, ContainerRuntime):
2432
2435
  self._ContainerRuntime = ContainerRuntime
2433
2436
 
2437
+ @property
2438
+ def DataPlaneV2(self):
2439
+ """是否启用 DataPlaneV2(cilium替代kube-proxy)
2440
+ :rtype: bool
2441
+ """
2442
+ return self._DataPlaneV2
2443
+
2444
+ @DataPlaneV2.setter
2445
+ def DataPlaneV2(self, DataPlaneV2):
2446
+ self._DataPlaneV2 = DataPlaneV2
2447
+
2434
2448
  @property
2435
2449
  def DeletionProtection(self):
2436
2450
  """是否启用集群删除保护
@@ -2527,7 +2541,7 @@ ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
2527
2541
 
2528
2542
  @property
2529
2543
  def NetworkType(self):
2530
- """集群网络类型(包括GR(全局路由)和VPC-CNI两种模式,默认为GR。
2544
+ """集群网络类型。包括GR(全局路由)和VPC-CNI两种模式,默认为GR。
2531
2545
  :rtype: str
2532
2546
  """
2533
2547
  return self._NetworkType
@@ -2589,6 +2603,7 @@ ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
2589
2603
  self._BasePodNumber = params.get("BasePodNumber")
2590
2604
  self._CiliumMode = params.get("CiliumMode")
2591
2605
  self._ContainerRuntime = params.get("ContainerRuntime")
2606
+ self._DataPlaneV2 = params.get("DataPlaneV2")
2592
2607
  self._DeletionProtection = params.get("DeletionProtection")
2593
2608
  self._EnableCustomizedPodCIDR = params.get("EnableCustomizedPodCIDR")
2594
2609
  if params.get("EtcdOverrideConfigs") is not None:
@@ -17,6 +17,9 @@
17
17
  # 请求超时。
18
18
  INTERNALERROR_ERRTEXTTIMEOUT = 'InternalError.ErrTextTimeOut'
19
19
 
20
+ # 查询异常:请求被限流
21
+ INTERNALERROR_QUERYREQLIMITED = 'InternalError.QueryReqLimited'
22
+
20
23
  # 错误的action。
21
24
  INVALIDPARAMETER_ERRACTION = 'InvalidParameter.ErrAction'
22
25