tencentcloud-sdk-python 3.0.1214__py2.py3-none-any.whl → 3.0.1222__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 (85) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/antiddos/v20200309/models.py +13 -1
  3. tencentcloud/batch/v20170312/models.py +2 -2
  4. tencentcloud/ccc/v20200210/models.py +30 -12
  5. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  6. tencentcloud/cdb/v20170320/models.py +278 -0
  7. tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +188 -165
  8. tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
  9. tencentcloud/cdwdoris/v20211228/models.py +1944 -2188
  10. tencentcloud/cfg/v20210820/models.py +1 -1
  11. tencentcloud/clb/v20180317/models.py +94 -2
  12. tencentcloud/cls/v20201016/models.py +15 -2
  13. tencentcloud/controlcenter/__init__.py +0 -0
  14. tencentcloud/controlcenter/v20230110/__init__.py +0 -0
  15. tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
  16. tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
  17. tencentcloud/controlcenter/v20230110/models.py +140 -0
  18. tencentcloud/csip/v20221121/models.py +385 -0
  19. tencentcloud/cvm/v20170312/models.py +8 -6
  20. tencentcloud/cwp/v20180228/models.py +85 -12
  21. tencentcloud/cynosdb/v20190107/cynosdb_client.py +46 -0
  22. tencentcloud/cynosdb/v20190107/models.py +315 -9
  23. tencentcloud/dasb/v20191018/models.py +13 -0
  24. tencentcloud/dcdb/v20180411/models.py +36 -0
  25. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  26. tencentcloud/dsgc/v20190723/models.py +139 -0
  27. tencentcloud/emr/v20190103/models.py +12 -0
  28. tencentcloud/es/v20180416/models.py +50 -0
  29. tencentcloud/ess/v20201111/ess_client.py +1 -1
  30. tencentcloud/ess/v20201111/models.py +13 -3
  31. tencentcloud/essbasic/v20210526/essbasic_client.py +2 -2
  32. tencentcloud/essbasic/v20210526/models.py +16 -4
  33. tencentcloud/facefusion/v20220927/errorcodes.py +15 -6
  34. tencentcloud/facefusion/v20220927/models.py +13 -4
  35. tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  36. tencentcloud/faceid/v20180301/models.py +38 -0
  37. tencentcloud/hunyuan/v20230901/errorcodes.py +21 -0
  38. tencentcloud/hunyuan/v20230901/hunyuan_client.py +52 -0
  39. tencentcloud/hunyuan/v20230901/models.py +364 -2
  40. tencentcloud/iotexplorer/v20190423/models.py +1 -1
  41. tencentcloud/lcic/v20220817/lcic_client.py +23 -0
  42. tencentcloud/lcic/v20220817/models.py +261 -0
  43. tencentcloud/lke/v20231130/models.py +2 -2
  44. tencentcloud/mna/v20210119/models.py +26 -0
  45. tencentcloud/mongodb/v20190725/models.py +13 -5
  46. tencentcloud/monitor/v20180724/models.py +13 -0
  47. tencentcloud/mps/v20190612/models.py +183 -13
  48. tencentcloud/ocr/v20181119/models.py +14 -0
  49. tencentcloud/organization/v20210331/errorcodes.py +6 -0
  50. tencentcloud/organization/v20210331/models.py +87 -17
  51. tencentcloud/organization/v20210331/organization_client.py +25 -2
  52. tencentcloud/redis/v20180412/models.py +20 -18
  53. tencentcloud/rum/v20210622/models.py +12 -0
  54. tencentcloud/scf/v20180416/models.py +44 -7
  55. tencentcloud/ses/v20201002/models.py +177 -0
  56. tencentcloud/sms/v20210111/errorcodes.py +3 -0
  57. tencentcloud/ssl/v20191205/errorcodes.py +3 -0
  58. tencentcloud/ssl/v20191205/models.py +13 -0
  59. tencentcloud/ssl/v20191205/ssl_client.py +1 -1
  60. tencentcloud/tag/v20180813/models.py +33 -33
  61. tencentcloud/tdmq/v20200217/models.py +13 -0
  62. tencentcloud/tms/v20201229/errorcodes.py +0 -6
  63. tencentcloud/tms/v20201229/models.py +0 -70
  64. tencentcloud/tms/v20201229/tms_client.py +0 -23
  65. tencentcloud/tmt/v20180321/errorcodes.py +3 -0
  66. tencentcloud/tmt/v20180321/models.py +8 -8
  67. tencentcloud/tmt/v20180321/tmt_client.py +1 -1
  68. tencentcloud/trtc/v20190722/models.py +212 -0
  69. tencentcloud/trtc/v20190722/trtc_client.py +48 -35
  70. tencentcloud/tse/v20201207/models.py +88 -0
  71. tencentcloud/tts/v20190823/models.py +2 -2
  72. tencentcloud/vclm/v20240523/errorcodes.py +8 -2
  73. tencentcloud/vclm/v20240523/models.py +12 -0
  74. tencentcloud/vod/v20180717/errorcodes.py +6 -0
  75. tencentcloud/vod/v20180717/models.py +536 -5
  76. tencentcloud/vod/v20180717/vod_client.py +71 -2
  77. tencentcloud/vpc/v20170312/models.py +194 -2
  78. tencentcloud/wedata/v20210820/errorcodes.py +6 -0
  79. tencentcloud/wedata/v20210820/models.py +2626 -352
  80. tencentcloud/wedata/v20210820/wedata_client.py +138 -0
  81. {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/METADATA +1 -1
  82. {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/RECORD +85 -80
  83. {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/LICENSE +0 -0
  84. {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/WHEEL +0 -0
  85. {tencentcloud_sdk_python-3.0.1214.dist-info → tencentcloud_sdk_python-3.0.1222.dist-info}/top_level.txt +0 -0
@@ -312,7 +312,7 @@ class ActionLibraryListResult(AbstractModel):
312
312
  :type RelationActionId: int
313
313
  :param _ActionCommand: 操作命令
314
314
  :type ActionCommand: str
315
- :param _ActionCommandType: 动作类型( 0 -- tat 1 -- 云API)
315
+ :param _ActionCommandType: 动作类型(0 -- tat 1 -- 云API)
316
316
  :type ActionCommandType: int
317
317
  :param _ActionContent: 自定义动作的参数,json string
318
318
  :type ActionContent: str
@@ -3060,7 +3060,7 @@ class CreateListenerRequest(AbstractModel):
3060
3060
  :type MaxConn: int
3061
3061
  :param _MaxCps: 监听器最大新增连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。
3062
3062
  :type MaxCps: int
3063
- :param _IdleConnectTimeout: 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。默认值:900,取值范围:共享型实例和独占型实例支持:300900,性能容量型实例支持:300~2000。如需设置超过2000s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s
3063
+ :param _IdleConnectTimeout: 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300-900,性能容量型实例支持:300-2000。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
3064
3064
  :type IdleConnectTimeout: int
3065
3065
  :param _SnatEnable: 是否开启SNAT。
3066
3066
  :type SnatEnable: bool
@@ -10744,7 +10744,7 @@ OPEN:公网属性, INTERNAL:内网属性。
10744
10744
  :param _SnatIps: 开启SnatPro负载均衡后,SnatIp列表。
10745
10745
  注意:此字段可能返回 null,表示取不到有效值。
10746
10746
  :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>
10747
+ :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
10748
  注意:此字段可能返回 null,表示取不到有效值。
10749
10749
  :type SlaType: str
10750
10750
  :param _IsBlock: vip是否被封堵
@@ -10786,6 +10786,9 @@ OPEN:公网属性, INTERNAL:内网属性。
10786
10786
  :param _Egress: 网络出口
10787
10787
  注意:此字段可能返回 null,表示取不到有效值。
10788
10788
  :type Egress: str
10789
+ :param _Exclusive: 实例类型是否为独占型。1:独占型实例。0:非独占型实例。
10790
+ 注意:此字段可能返回 null,表示取不到有效值。
10791
+ :type Exclusive: int
10789
10792
  """
10790
10793
  self._LoadBalancerId = None
10791
10794
  self._LoadBalancerName = None
@@ -10842,6 +10845,7 @@ OPEN:公网属性, INTERNAL:内网属性。
10842
10845
  self._AttributeFlags = None
10843
10846
  self._LoadBalancerDomain = None
10844
10847
  self._Egress = None
10848
+ self._Exclusive = None
10845
10849
 
10846
10850
  @property
10847
10851
  def LoadBalancerId(self):
@@ -11287,6 +11291,14 @@ OPEN:公网属性, INTERNAL:内网属性。
11287
11291
  def Egress(self, Egress):
11288
11292
  self._Egress = Egress
11289
11293
 
11294
+ @property
11295
+ def Exclusive(self):
11296
+ return self._Exclusive
11297
+
11298
+ @Exclusive.setter
11299
+ def Exclusive(self, Exclusive):
11300
+ self._Exclusive = Exclusive
11301
+
11290
11302
 
11291
11303
  def _deserialize(self, params):
11292
11304
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -11371,6 +11383,7 @@ OPEN:公网属性, INTERNAL:内网属性。
11371
11383
  self._AttributeFlags = params.get("AttributeFlags")
11372
11384
  self._LoadBalancerDomain = params.get("LoadBalancerDomain")
11373
11385
  self._Egress = params.get("Egress")
11386
+ self._Exclusive = params.get("Exclusive")
11374
11387
  memeber_set = set(params.keys())
11375
11388
  for name, value in vars(self).items():
11376
11389
  property_name = name[1:]
@@ -13446,6 +13459,8 @@ class ModifyRuleRequest(AbstractModel):
13446
13459
  :type TrpcCallee: str
13447
13460
  :param _TrpcFunc: TRPC调用服务接口,ForwardType为TRPC时必填。目前暂未对外开放。
13448
13461
  :type TrpcFunc: str
13462
+ :param _OAuth: OAuth配置信息。
13463
+ :type OAuth: :class:`tencentcloud.clb.v20180317.models.OAuth`
13449
13464
  """
13450
13465
  self._LoadBalancerId = None
13451
13466
  self._ListenerId = None
@@ -13457,6 +13472,7 @@ class ModifyRuleRequest(AbstractModel):
13457
13472
  self._ForwardType = None
13458
13473
  self._TrpcCallee = None
13459
13474
  self._TrpcFunc = None
13475
+ self._OAuth = None
13460
13476
 
13461
13477
  @property
13462
13478
  def LoadBalancerId(self):
@@ -13538,6 +13554,14 @@ class ModifyRuleRequest(AbstractModel):
13538
13554
  def TrpcFunc(self, TrpcFunc):
13539
13555
  self._TrpcFunc = TrpcFunc
13540
13556
 
13557
+ @property
13558
+ def OAuth(self):
13559
+ return self._OAuth
13560
+
13561
+ @OAuth.setter
13562
+ def OAuth(self, OAuth):
13563
+ self._OAuth = OAuth
13564
+
13541
13565
 
13542
13566
  def _deserialize(self, params):
13543
13567
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -13552,6 +13576,9 @@ class ModifyRuleRequest(AbstractModel):
13552
13576
  self._ForwardType = params.get("ForwardType")
13553
13577
  self._TrpcCallee = params.get("TrpcCallee")
13554
13578
  self._TrpcFunc = params.get("TrpcFunc")
13579
+ if params.get("OAuth") is not None:
13580
+ self._OAuth = OAuth()
13581
+ self._OAuth._deserialize(params.get("OAuth"))
13555
13582
  memeber_set = set(params.keys())
13556
13583
  for name, value in vars(self).items():
13557
13584
  property_name = name[1:]
@@ -14139,6 +14166,56 @@ class MultiCertInfo(AbstractModel):
14139
14166
 
14140
14167
 
14141
14168
 
14169
+ class OAuth(AbstractModel):
14170
+ """OAuth配置信息。
14171
+
14172
+ """
14173
+
14174
+ def __init__(self):
14175
+ r"""
14176
+ :param _OAuthEnable: 开启或关闭鉴权。
14177
+ True: 开启;
14178
+ False: 关闭
14179
+ 注意:此字段可能返回 null,表示取不到有效值。
14180
+ :type OAuthEnable: bool
14181
+ :param _OAuthFailureStatus: IAP全部故障后,拒绝请求还是放行。BYPASS:通过,
14182
+ REJECT: 拒绝
14183
+ 注意:此字段可能返回 null,表示取不到有效值。
14184
+ :type OAuthFailureStatus: str
14185
+ """
14186
+ self._OAuthEnable = None
14187
+ self._OAuthFailureStatus = None
14188
+
14189
+ @property
14190
+ def OAuthEnable(self):
14191
+ return self._OAuthEnable
14192
+
14193
+ @OAuthEnable.setter
14194
+ def OAuthEnable(self, OAuthEnable):
14195
+ self._OAuthEnable = OAuthEnable
14196
+
14197
+ @property
14198
+ def OAuthFailureStatus(self):
14199
+ return self._OAuthFailureStatus
14200
+
14201
+ @OAuthFailureStatus.setter
14202
+ def OAuthFailureStatus(self, OAuthFailureStatus):
14203
+ self._OAuthFailureStatus = OAuthFailureStatus
14204
+
14205
+
14206
+ def _deserialize(self, params):
14207
+ self._OAuthEnable = params.get("OAuthEnable")
14208
+ self._OAuthFailureStatus = params.get("OAuthFailureStatus")
14209
+ memeber_set = set(params.keys())
14210
+ for name, value in vars(self).items():
14211
+ property_name = name[1:]
14212
+ if property_name in memeber_set:
14213
+ memeber_set.remove(property_name)
14214
+ if len(memeber_set) > 0:
14215
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14216
+
14217
+
14218
+
14142
14219
  class Price(AbstractModel):
14143
14220
  """表示负载均衡的价格
14144
14221
 
@@ -15564,6 +15641,9 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15564
15641
  :param _TargetGroupList: 绑定的目标组列表
15565
15642
  注意:此字段可能返回 null,表示取不到有效值。
15566
15643
  :type TargetGroupList: list of BasicTargetGroupInfo
15644
+ :param _OAuth: OAuth配置状态信息。
15645
+ 注意:此字段可能返回 null,表示取不到有效值。
15646
+ :type OAuth: :class:`tencentcloud.clb.v20180317.models.OAuth`
15567
15647
  """
15568
15648
  self._LocationId = None
15569
15649
  self._Domain = None
@@ -15588,6 +15668,7 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15588
15668
  self._QuicStatus = None
15589
15669
  self._Domains = None
15590
15670
  self._TargetGroupList = None
15671
+ self._OAuth = None
15591
15672
 
15592
15673
  @property
15593
15674
  def LocationId(self):
@@ -15773,6 +15854,14 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15773
15854
  def TargetGroupList(self, TargetGroupList):
15774
15855
  self._TargetGroupList = TargetGroupList
15775
15856
 
15857
+ @property
15858
+ def OAuth(self):
15859
+ return self._OAuth
15860
+
15861
+ @OAuth.setter
15862
+ def OAuth(self, OAuth):
15863
+ self._OAuth = OAuth
15864
+
15776
15865
 
15777
15866
  def _deserialize(self, params):
15778
15867
  self._LocationId = params.get("LocationId")
@@ -15811,6 +15900,9 @@ WRR、LEAST_CONN、IP_HASH分别表示按权重轮询、最小连接数、IP Has
15811
15900
  obj = BasicTargetGroupInfo()
15812
15901
  obj._deserialize(item)
15813
15902
  self._TargetGroupList.append(obj)
15903
+ if params.get("OAuth") is not None:
15904
+ self._OAuth = OAuth()
15905
+ self._OAuth._deserialize(params.get("OAuth"))
15814
15906
  memeber_set = set(params.keys())
15815
15907
  for name, value in vars(self).items():
15816
15908
  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
@@ -5385,6 +5385,8 @@ class CreateDataTransformRequest(AbstractModel):
5385
5385
  :type EnableFlag: int
5386
5386
  :param _PreviewLogStatistics: 用于预览加工结果的测试数据
5387
5387
  :type PreviewLogStatistics: list of PreviewLogStatistic
5388
+ :param _DataTransformType: 数据加工类型。0:标准加工任务; 1:前置加工任务。前置加工任务将采集的日志处理完成后,再写入日志主题。
5389
+ :type DataTransformType: int
5388
5390
  """
5389
5391
  self._FuncType = None
5390
5392
  self._SrcTopicId = None
@@ -5394,6 +5396,7 @@ class CreateDataTransformRequest(AbstractModel):
5394
5396
  self._DstResources = None
5395
5397
  self._EnableFlag = None
5396
5398
  self._PreviewLogStatistics = None
5399
+ self._DataTransformType = None
5397
5400
 
5398
5401
  @property
5399
5402
  def FuncType(self):
@@ -5459,6 +5462,14 @@ class CreateDataTransformRequest(AbstractModel):
5459
5462
  def PreviewLogStatistics(self, PreviewLogStatistics):
5460
5463
  self._PreviewLogStatistics = PreviewLogStatistics
5461
5464
 
5465
+ @property
5466
+ def DataTransformType(self):
5467
+ return self._DataTransformType
5468
+
5469
+ @DataTransformType.setter
5470
+ def DataTransformType(self, DataTransformType):
5471
+ self._DataTransformType = DataTransformType
5472
+
5462
5473
 
5463
5474
  def _deserialize(self, params):
5464
5475
  self._FuncType = params.get("FuncType")
@@ -5479,6 +5490,7 @@ class CreateDataTransformRequest(AbstractModel):
5479
5490
  obj = PreviewLogStatistic()
5480
5491
  obj._deserialize(item)
5481
5492
  self._PreviewLogStatistics.append(obj)
5493
+ self._DataTransformType = params.get("DataTransformType")
5482
5494
  memeber_set = set(params.keys())
5483
5495
  for name, value in vars(self).items():
5484
5496
  property_name = name[1:]
@@ -18677,10 +18689,11 @@ class MonitorTime(AbstractModel):
18677
18689
 
18678
18690
  def __init__(self):
18679
18691
  r"""
18680
- :param _Type: 执行周期, 可选值:`Period`、`Fixed`。
18692
+ :param _Type: 执行周期, 可选值:`Period`、`Fixed`、`Cron`。
18681
18693
 
18682
18694
  - Period:固定频率
18683
18695
  - Fixed:固定时间
18696
+ - Cron:Cron表达式
18684
18697
  :type Type: str
18685
18698
  :param _Time: 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
18686
18699
  当type为`Period`,`Fixed`时,time字段生效。
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")