tencentcloud-sdk-python 3.0.1218__py2.py3-none-any.whl → 3.0.1225__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 (98) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ams/v20201229/models.py +24 -0
  3. tencentcloud/asr/v20190614/asr_client.py +96 -0
  4. tencentcloud/asr/v20190614/errorcodes.py +3 -0
  5. tencentcloud/asr/v20190614/models.py +618 -0
  6. tencentcloud/batch/v20170312/models.py +1 -1
  7. tencentcloud/bi/v20220105/models.py +25 -0
  8. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  9. tencentcloud/cdb/v20170320/models.py +280 -2
  10. tencentcloud/cdwdoris/v20211228/models.py +302 -2
  11. tencentcloud/cfg/v20210820/models.py +168 -0
  12. tencentcloud/cfw/v20190904/cfw_client.py +23 -0
  13. tencentcloud/cfw/v20190904/models.py +70 -0
  14. tencentcloud/ckafka/v20190819/ckafka_client.py +1 -1
  15. tencentcloud/ckafka/v20190819/models.py +47 -1
  16. tencentcloud/clb/v20180317/models.py +146 -2
  17. tencentcloud/cls/v20201016/models.py +1 -2
  18. tencentcloud/controlcenter/__init__.py +0 -0
  19. tencentcloud/controlcenter/v20230110/__init__.py +0 -0
  20. tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
  21. tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
  22. tencentcloud/controlcenter/v20230110/models.py +140 -0
  23. tencentcloud/csip/v20221121/models.py +385 -0
  24. tencentcloud/cvm/v20170312/models.py +7 -5
  25. tencentcloud/cwp/v20180228/models.py +1 -12
  26. tencentcloud/cynosdb/v20190107/cynosdb_client.py +69 -0
  27. tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
  28. tencentcloud/cynosdb/v20190107/models.py +575 -9
  29. tencentcloud/dasb/v20191018/models.py +25 -0
  30. tencentcloud/dbbrain/v20210527/models.py +2 -2
  31. tencentcloud/dc/v20180410/dc_client.py +3 -4
  32. tencentcloud/dc/v20180410/models.py +78 -18
  33. tencentcloud/dcdb/v20180411/dcdb_client.py +23 -0
  34. tencentcloud/dcdb/v20180411/models.py +82 -0
  35. tencentcloud/dlc/v20210125/models.py +31 -1
  36. tencentcloud/dsgc/v20190723/models.py +50 -0
  37. tencentcloud/ecc/v20181213/ecc_client.py +1 -2
  38. tencentcloud/emr/v20190103/emr_client.py +24 -0
  39. tencentcloud/emr/v20190103/models.py +82 -0
  40. tencentcloud/es/v20180416/es_client.py +23 -0
  41. tencentcloud/es/v20180416/models.py +144 -0
  42. tencentcloud/ess/v20201111/ess_client.py +4 -4
  43. tencentcloud/ess/v20201111/models.py +13 -3
  44. tencentcloud/essbasic/v20210526/essbasic_client.py +2 -2
  45. tencentcloud/essbasic/v20210526/models.py +33 -15
  46. tencentcloud/facefusion/v20220927/errorcodes.py +15 -6
  47. tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
  48. tencentcloud/hunyuan/v20230901/hunyuan_client.py +52 -0
  49. tencentcloud/hunyuan/v20230901/models.py +362 -2
  50. tencentcloud/ims/v20201229/ims_client.py +2 -2
  51. tencentcloud/iotexplorer/v20190423/models.py +1 -1
  52. tencentcloud/iss/v20230517/models.py +28 -0
  53. tencentcloud/lke/v20231130/models.py +225 -3
  54. tencentcloud/mariadb/v20170312/errorcodes.py +3 -0
  55. tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
  56. tencentcloud/mariadb/v20170312/models.py +82 -0
  57. tencentcloud/oceanus/v20190422/models.py +25 -0
  58. tencentcloud/ocr/v20181119/models.py +1 -2
  59. tencentcloud/ocr/v20181119/ocr_client.py +8 -2
  60. tencentcloud/organization/v20210331/errorcodes.py +6 -0
  61. tencentcloud/organization/v20210331/models.py +70 -0
  62. tencentcloud/organization/v20210331/organization_client.py +23 -0
  63. tencentcloud/postgres/v20170312/errorcodes.py +15 -0
  64. tencentcloud/redis/v20180412/models.py +2 -2
  65. tencentcloud/scf/v20180416/models.py +48 -12
  66. tencentcloud/ses/v20201002/models.py +177 -0
  67. tencentcloud/sms/v20190711/errorcodes.py +3 -0
  68. tencentcloud/sms/v20190711/models.py +21 -22
  69. tencentcloud/sms/v20190711/sms_client.py +28 -60
  70. tencentcloud/sms/v20210111/errorcodes.py +3 -0
  71. tencentcloud/ssl/v20191205/errorcodes.py +3 -0
  72. tencentcloud/ssl/v20191205/models.py +209 -0
  73. tencentcloud/ssl/v20191205/ssl_client.py +23 -0
  74. tencentcloud/tcr/v20190924/errorcodes.py +3 -0
  75. tencentcloud/tdmq/v20200217/models.py +130 -0
  76. tencentcloud/thpc/v20230321/models.py +1432 -82
  77. tencentcloud/thpc/v20230321/thpc_client.py +92 -0
  78. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  79. tencentcloud/tke/v20180525/models.py +12 -0
  80. tencentcloud/tms/v20201229/errorcodes.py +0 -6
  81. tencentcloud/tms/v20201229/models.py +0 -70
  82. tencentcloud/tms/v20201229/tms_client.py +0 -23
  83. tencentcloud/tmt/v20180321/errorcodes.py +3 -0
  84. tencentcloud/tmt/v20180321/models.py +3 -3
  85. tencentcloud/tmt/v20180321/tmt_client.py +1 -1
  86. tencentcloud/trocket/v20230308/models.py +52 -0
  87. tencentcloud/trtc/v20190722/models.py +2 -2
  88. tencentcloud/vclm/v20240523/errorcodes.py +3 -0
  89. tencentcloud/vpc/v20170312/models.py +34 -0
  90. tencentcloud/waf/v20180125/models.py +1 -1
  91. tencentcloud/wedata/v20210820/errorcodes.py +6 -0
  92. tencentcloud/wedata/v20210820/models.py +2905 -366
  93. tencentcloud/wedata/v20210820/wedata_client.py +161 -0
  94. {tencentcloud_sdk_python-3.0.1218.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/METADATA +1 -1
  95. {tencentcloud_sdk_python-3.0.1218.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/RECORD +98 -93
  96. {tencentcloud_sdk_python-3.0.1218.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/LICENSE +0 -0
  97. {tencentcloud_sdk_python-3.0.1218.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/WHEEL +0 -0
  98. {tencentcloud_sdk_python-3.0.1218.dist-info → tencentcloud_sdk_python-3.0.1225.dist-info}/top_level.txt +0 -0
@@ -3064,6 +3064,8 @@ class CreateListenerRequest(AbstractModel):
3064
3064
  :type IdleConnectTimeout: int
3065
3065
  :param _SnatEnable: 是否开启SNAT。
3066
3066
  :type SnatEnable: bool
3067
+ :param _FullEndPorts: 全端口段监听器的结束端口
3068
+ :type FullEndPorts: list of int
3067
3069
  """
3068
3070
  self._LoadBalancerId = None
3069
3071
  self._Ports = None
@@ -3084,6 +3086,7 @@ class CreateListenerRequest(AbstractModel):
3084
3086
  self._MaxCps = None
3085
3087
  self._IdleConnectTimeout = None
3086
3088
  self._SnatEnable = None
3089
+ self._FullEndPorts = None
3087
3090
 
3088
3091
  @property
3089
3092
  def LoadBalancerId(self):
@@ -3237,6 +3240,14 @@ class CreateListenerRequest(AbstractModel):
3237
3240
  def SnatEnable(self, SnatEnable):
3238
3241
  self._SnatEnable = SnatEnable
3239
3242
 
3243
+ @property
3244
+ def FullEndPorts(self):
3245
+ return self._FullEndPorts
3246
+
3247
+ @FullEndPorts.setter
3248
+ def FullEndPorts(self, FullEndPorts):
3249
+ self._FullEndPorts = FullEndPorts
3250
+
3240
3251
 
3241
3252
  def _deserialize(self, params):
3242
3253
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -3264,6 +3275,7 @@ class CreateListenerRequest(AbstractModel):
3264
3275
  self._MaxCps = params.get("MaxCps")
3265
3276
  self._IdleConnectTimeout = params.get("IdleConnectTimeout")
3266
3277
  self._SnatEnable = params.get("SnatEnable")
3278
+ self._FullEndPorts = params.get("FullEndPorts")
3267
3279
  memeber_set = set(params.keys())
3268
3280
  for name, value in vars(self).items():
3269
3281
  property_name = name[1:]
@@ -10744,7 +10756,7 @@ OPEN:公网属性, INTERNAL:内网属性。
10744
10756
  :param _SnatIps: 开启SnatPro负载均衡后,SnatIp列表。
10745
10757
  注意:此字段可能返回 null,表示取不到有效值。
10746
10758
  :type SnatIps: list of SnatIp
10747
- :param _SlaType: 性能容量型规格。<ul><li> clb.c2.medium:标准型规格 </li><li> clb.c3.small:高阶型1规格 </li><li> clb.c3.medium:高阶型2规格 </li><li> clb.c4.small:超强型1规格 </li><li> clb.c4.medium:超强型2规格 </li><li> clb.c4.large:超强型3规格 </li><li> clb.c4.xlarge:超强型4规格 </li><li>null:共享型实例</li></ul>
10759
+ :param _SlaType: 性能容量型规格。<ul><li> clb.c1.small:简约型规格 </li><li> clb.c2.medium:标准型规格 </li><li> clb.c3.small:高阶型1规格 </li><li> clb.c3.medium:高阶型2规格 </li><li> clb.c4.small:超强型1规格 </li><li> clb.c4.medium:超强型2规格 </li><li> clb.c4.large:超强型3规格 </li><li> clb.c4.xlarge:超强型4规格 </li><li>"":非性能容量型实例</li></ul>
10748
10760
  注意:此字段可能返回 null,表示取不到有效值。
10749
10761
  :type SlaType: str
10750
10762
  :param _IsBlock: vip是否被封堵
@@ -10786,6 +10798,9 @@ OPEN:公网属性, INTERNAL:内网属性。
10786
10798
  :param _Egress: 网络出口
10787
10799
  注意:此字段可能返回 null,表示取不到有效值。
10788
10800
  :type Egress: str
10801
+ :param _Exclusive: 实例类型是否为独占型。1:独占型实例。0:非独占型实例。
10802
+ 注意:此字段可能返回 null,表示取不到有效值。
10803
+ :type Exclusive: int
10789
10804
  """
10790
10805
  self._LoadBalancerId = None
10791
10806
  self._LoadBalancerName = None
@@ -10842,6 +10857,7 @@ OPEN:公网属性, INTERNAL:内网属性。
10842
10857
  self._AttributeFlags = None
10843
10858
  self._LoadBalancerDomain = None
10844
10859
  self._Egress = None
10860
+ self._Exclusive = None
10845
10861
 
10846
10862
  @property
10847
10863
  def LoadBalancerId(self):
@@ -11287,6 +11303,14 @@ OPEN:公网属性, INTERNAL:内网属性。
11287
11303
  def Egress(self, Egress):
11288
11304
  self._Egress = Egress
11289
11305
 
11306
+ @property
11307
+ def Exclusive(self):
11308
+ return self._Exclusive
11309
+
11310
+ @Exclusive.setter
11311
+ def Exclusive(self, Exclusive):
11312
+ self._Exclusive = Exclusive
11313
+
11290
11314
 
11291
11315
  def _deserialize(self, params):
11292
11316
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -11371,6 +11395,7 @@ OPEN:公网属性, INTERNAL:内网属性。
11371
11395
  self._AttributeFlags = params.get("AttributeFlags")
11372
11396
  self._LoadBalancerDomain = params.get("LoadBalancerDomain")
11373
11397
  self._Egress = params.get("Egress")
11398
+ self._Exclusive = params.get("Exclusive")
11374
11399
  memeber_set = set(params.keys())
11375
11400
  for name, value in vars(self).items():
11376
11401
  property_name = name[1:]
@@ -11393,7 +11418,7 @@ class LoadBalancerDetail(AbstractModel):
11393
11418
  :param _LoadBalancerName: 负载均衡实例的名称。
11394
11419
  :type LoadBalancerName: str
11395
11420
  :param _LoadBalancerType: 负载均衡实例的网络类型:
11396
- Public:公网属性, Private:内网属性。
11421
+ OPEN:公网属性,INTERNAL:内网属性。
11397
11422
  注意:此字段可能返回 null,表示取不到有效值。
11398
11423
  :type LoadBalancerType: str
11399
11424
  :param _Status: 负载均衡实例的状态,包括
@@ -11505,6 +11530,16 @@ Public:公网属性, Private:内网属性。
11505
11530
  :param _Egress: 网络出口
11506
11531
  注意:此字段可能返回 null,表示取不到有效值。
11507
11532
  :type Egress: str
11533
+ :param _AttributeFlags: 负载均衡的属性
11534
+ 注意:此字段可能返回 null,表示取不到有效值。
11535
+ :type AttributeFlags: list of str
11536
+ :param _SlaType: 负载均衡实例的规格类型信息<ul><li> clb.c1.small:简约型规格 </li><li>clb.c2.medium:标准型规格 </li><li> clb.c3.small:高阶型1规格 </li><li> clb.c3.medium:高阶型2规格 </li><li> clb.c4.small:超强型1规格 </li><li> clb.c4.medium:超强型2规格 </li><li> clb.c4.large:超强型3规格 </li><li> clb.c4.xlarge:超强型4规格 </li><li>"":非性能容量型实例</li></ul>
11537
+
11538
+ 注意:此字段可能返回 null,表示取不到有效值。
11539
+ :type SlaType: str
11540
+ :param _Exclusive: 0:表示非独占型实例,1:表示独占型态实例。
11541
+ 注意:此字段可能返回 null,表示取不到有效值。
11542
+ :type Exclusive: int
11508
11543
  """
11509
11544
  self._LoadBalancerId = None
11510
11545
  self._LoadBalancerName = None
@@ -11545,6 +11580,9 @@ Public:公网属性, Private:内网属性。
11545
11580
  self._SniSwitch = None
11546
11581
  self._LoadBalancerDomain = None
11547
11582
  self._Egress = None
11583
+ self._AttributeFlags = None
11584
+ self._SlaType = None
11585
+ self._Exclusive = None
11548
11586
 
11549
11587
  @property
11550
11588
  def LoadBalancerId(self):
@@ -11858,6 +11896,30 @@ Public:公网属性, Private:内网属性。
11858
11896
  def Egress(self, Egress):
11859
11897
  self._Egress = Egress
11860
11898
 
11899
+ @property
11900
+ def AttributeFlags(self):
11901
+ return self._AttributeFlags
11902
+
11903
+ @AttributeFlags.setter
11904
+ def AttributeFlags(self, AttributeFlags):
11905
+ self._AttributeFlags = AttributeFlags
11906
+
11907
+ @property
11908
+ def SlaType(self):
11909
+ return self._SlaType
11910
+
11911
+ @SlaType.setter
11912
+ def SlaType(self, SlaType):
11913
+ self._SlaType = SlaType
11914
+
11915
+ @property
11916
+ def Exclusive(self):
11917
+ return self._Exclusive
11918
+
11919
+ @Exclusive.setter
11920
+ def Exclusive(self, Exclusive):
11921
+ self._Exclusive = Exclusive
11922
+
11861
11923
 
11862
11924
  def _deserialize(self, params):
11863
11925
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -11910,6 +11972,9 @@ Public:公网属性, Private:内网属性。
11910
11972
  self._SniSwitch = params.get("SniSwitch")
11911
11973
  self._LoadBalancerDomain = params.get("LoadBalancerDomain")
11912
11974
  self._Egress = params.get("Egress")
11975
+ self._AttributeFlags = params.get("AttributeFlags")
11976
+ self._SlaType = params.get("SlaType")
11977
+ self._Exclusive = params.get("Exclusive")
11913
11978
  memeber_set = set(params.keys())
11914
11979
  for name, value in vars(self).items():
11915
11980
  property_name = name[1:]
@@ -13446,6 +13511,8 @@ class ModifyRuleRequest(AbstractModel):
13446
13511
  :type TrpcCallee: str
13447
13512
  :param _TrpcFunc: TRPC调用服务接口,ForwardType为TRPC时必填。目前暂未对外开放。
13448
13513
  :type TrpcFunc: str
13514
+ :param _OAuth: OAuth配置信息。
13515
+ :type OAuth: :class:`tencentcloud.clb.v20180317.models.OAuth`
13449
13516
  """
13450
13517
  self._LoadBalancerId = None
13451
13518
  self._ListenerId = None
@@ -13457,6 +13524,7 @@ class ModifyRuleRequest(AbstractModel):
13457
13524
  self._ForwardType = None
13458
13525
  self._TrpcCallee = None
13459
13526
  self._TrpcFunc = None
13527
+ self._OAuth = None
13460
13528
 
13461
13529
  @property
13462
13530
  def LoadBalancerId(self):
@@ -13538,6 +13606,14 @@ class ModifyRuleRequest(AbstractModel):
13538
13606
  def TrpcFunc(self, TrpcFunc):
13539
13607
  self._TrpcFunc = TrpcFunc
13540
13608
 
13609
+ @property
13610
+ def OAuth(self):
13611
+ return self._OAuth
13612
+
13613
+ @OAuth.setter
13614
+ def OAuth(self, OAuth):
13615
+ self._OAuth = OAuth
13616
+
13541
13617
 
13542
13618
  def _deserialize(self, params):
13543
13619
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -13552,6 +13628,9 @@ class ModifyRuleRequest(AbstractModel):
13552
13628
  self._ForwardType = params.get("ForwardType")
13553
13629
  self._TrpcCallee = params.get("TrpcCallee")
13554
13630
  self._TrpcFunc = params.get("TrpcFunc")
13631
+ if params.get("OAuth") is not None:
13632
+ self._OAuth = OAuth()
13633
+ self._OAuth._deserialize(params.get("OAuth"))
13555
13634
  memeber_set = set(params.keys())
13556
13635
  for name, value in vars(self).items():
13557
13636
  property_name = name[1:]
@@ -14139,6 +14218,56 @@ class MultiCertInfo(AbstractModel):
14139
14218
 
14140
14219
 
14141
14220
 
14221
+ class OAuth(AbstractModel):
14222
+ """OAuth配置信息。
14223
+
14224
+ """
14225
+
14226
+ def __init__(self):
14227
+ r"""
14228
+ :param _OAuthEnable: 开启或关闭鉴权。
14229
+ True: 开启;
14230
+ False: 关闭
14231
+ 注意:此字段可能返回 null,表示取不到有效值。
14232
+ :type OAuthEnable: bool
14233
+ :param _OAuthFailureStatus: IAP全部故障后,拒绝请求还是放行。BYPASS:通过,
14234
+ REJECT: 拒绝
14235
+ 注意:此字段可能返回 null,表示取不到有效值。
14236
+ :type OAuthFailureStatus: str
14237
+ """
14238
+ self._OAuthEnable = None
14239
+ self._OAuthFailureStatus = None
14240
+
14241
+ @property
14242
+ def OAuthEnable(self):
14243
+ return self._OAuthEnable
14244
+
14245
+ @OAuthEnable.setter
14246
+ def OAuthEnable(self, OAuthEnable):
14247
+ self._OAuthEnable = OAuthEnable
14248
+
14249
+ @property
14250
+ def OAuthFailureStatus(self):
14251
+ return self._OAuthFailureStatus
14252
+
14253
+ @OAuthFailureStatus.setter
14254
+ def OAuthFailureStatus(self, OAuthFailureStatus):
14255
+ self._OAuthFailureStatus = OAuthFailureStatus
14256
+
14257
+
14258
+ def _deserialize(self, params):
14259
+ self._OAuthEnable = params.get("OAuthEnable")
14260
+ self._OAuthFailureStatus = params.get("OAuthFailureStatus")
14261
+ memeber_set = set(params.keys())
14262
+ for name, value in vars(self).items():
14263
+ property_name = name[1:]
14264
+ if property_name in memeber_set:
14265
+ memeber_set.remove(property_name)
14266
+ if len(memeber_set) > 0:
14267
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14268
+
14269
+
14270
+
14142
14271
  class Price(AbstractModel):
14143
14272
  """表示负载均衡的价格
14144
14273
 
@@ -15564,6 +15693,9 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15564
15693
  :param _TargetGroupList: 绑定的目标组列表
15565
15694
  注意:此字段可能返回 null,表示取不到有效值。
15566
15695
  :type TargetGroupList: list of BasicTargetGroupInfo
15696
+ :param _OAuth: OAuth配置状态信息。
15697
+ 注意:此字段可能返回 null,表示取不到有效值。
15698
+ :type OAuth: :class:`tencentcloud.clb.v20180317.models.OAuth`
15567
15699
  """
15568
15700
  self._LocationId = None
15569
15701
  self._Domain = None
@@ -15588,6 +15720,7 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15588
15720
  self._QuicStatus = None
15589
15721
  self._Domains = None
15590
15722
  self._TargetGroupList = None
15723
+ self._OAuth = None
15591
15724
 
15592
15725
  @property
15593
15726
  def LocationId(self):
@@ -15773,6 +15906,14 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15773
15906
  def TargetGroupList(self, TargetGroupList):
15774
15907
  self._TargetGroupList = TargetGroupList
15775
15908
 
15909
+ @property
15910
+ def OAuth(self):
15911
+ return self._OAuth
15912
+
15913
+ @OAuth.setter
15914
+ def OAuth(self, OAuth):
15915
+ self._OAuth = OAuth
15916
+
15776
15917
 
15777
15918
  def _deserialize(self, params):
15778
15919
  self._LocationId = params.get("LocationId")
@@ -15811,6 +15952,9 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15811
15952
  obj = BasicTargetGroupInfo()
15812
15953
  obj._deserialize(item)
15813
15954
  self._TargetGroupList.append(obj)
15955
+ if params.get("OAuth") is not None:
15956
+ self._OAuth = OAuth()
15957
+ self._OAuth._deserialize(params.get("OAuth"))
15814
15958
  memeber_set = set(params.keys())
15815
15959
  for name, value in vars(self).items():
15816
15960
  property_name = name[1:]
@@ -2746,7 +2746,7 @@ class ConsoleSharingConfig(AbstractModel):
2746
2746
  :type Type: int
2747
2747
  :param _DurationMilliseconds: 分享链接有效期,单位:毫秒,最长支持30天
2748
2748
  :type DurationMilliseconds: int
2749
- :param _Resources: 允许访问的资源列表
2749
+ :param _Resources: 允许访问的资源列表,目前仅支持一个Resource
2750
2750
  :type Resources: list of str
2751
2751
  :param _Domain: 分享链接域名,可选范围
2752
2752
  - 公网匿名分享:填写clsshare.com
@@ -21975,7 +21975,6 @@ id,地域,简称信息如下:
21975
21975
  - 1, 广州,ap-guangzhou
21976
21976
  - 4, 上海,ap-shanghai
21977
21977
  - 5, 中国香港,ap-hongkong
21978
- - 6, 多伦多,na-toronto
21979
21978
  - 7, 上海金融,ap-shanghai-fsi
21980
21979
  - 8, 北京,ap-beijing
21981
21980
  - 9, 新加坡,ap-singapore
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")