tencentcloud-sdk-python-cfg 3.0.1266__tar.gz → 3.0.1285__tar.gz

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 (16) hide show
  1. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/PKG-INFO +3 -3
  2. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/setup.cfg +0 -1
  3. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/setup.py +1 -1
  4. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/__init__.py +1 -1
  5. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/cfg/v20210820/cfg_client.py +23 -0
  6. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/cfg/v20210820/models.py +255 -0
  7. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud_sdk_python_cfg.egg-info/PKG-INFO +3 -3
  8. tencentcloud-sdk-python-cfg-3.0.1285/tencentcloud_sdk_python_cfg.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-cfg-3.0.1266/tencentcloud_sdk_python_cfg.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/README.rst +0 -0
  11. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/cfg/__init__.py +0 -0
  12. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/cfg/v20210820/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud/cfg/v20210820/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud_sdk_python_cfg.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud_sdk_python_cfg.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1285}/tencentcloud_sdk_python_cfg.egg-info/top_level.txt +0 -0
@@ -1,10 +1,10 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cfg
3
- Version: 3.0.1266
3
+ Version: 3.0.1285
4
4
  Summary: Tencent Cloud Cfg SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
7
- Author-email: tencentcloudapi@tencent.com
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
8
  License: Apache License 2.0
9
9
  Description: ============================
10
10
  Tencent Cloud SDK for Python
@@ -4,5 +4,4 @@ universal = 1
4
4
  [egg_info]
5
5
  tag_build =
6
6
  tag_date = 0
7
- tag_svn_revision = 0
8
7
 
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cfg',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1266"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1285"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Cfg SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1266'
17
+ __version__ = '3.0.1285'
@@ -49,6 +49,29 @@ class CfgClient(AbstractClient):
49
49
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
50
 
51
51
 
52
+ def CreateTaskFromMultiAction(self, request):
53
+ """以多个动作创建演练
54
+
55
+ :param request: Request instance for CreateTaskFromMultiAction.
56
+ :type request: :class:`tencentcloud.cfg.v20210820.models.CreateTaskFromMultiActionRequest`
57
+ :rtype: :class:`tencentcloud.cfg.v20210820.models.CreateTaskFromMultiActionResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("CreateTaskFromMultiAction", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.CreateTaskFromMultiActionResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
52
75
  def CreateTaskFromTemplate(self, request):
53
76
  """从经验库创建演练
54
77
 
@@ -956,6 +956,150 @@ class CreateTaskFromActionResponse(AbstractModel):
956
956
  self._RequestId = params.get("RequestId")
957
957
 
958
958
 
959
+ class CreateTaskFromMultiActionRequest(AbstractModel):
960
+ """CreateTaskFromMultiAction请求参数结构体
961
+
962
+ """
963
+
964
+ def __init__(self):
965
+ r"""
966
+ :param _TaskInstances: 参与演练的实例ID
967
+ :type TaskInstances: list of str
968
+ :param _TaskTitle: 演练名称,不填则默认取动作名称
969
+ :type TaskTitle: str
970
+ :param _TaskDescription: 演练描述,不填则默认取动作描述
971
+ :type TaskDescription: str
972
+ :param _TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认为60
973
+ :type TaskPauseDuration: int
974
+ :param _TaskAction: 演练动作组配置
975
+ :type TaskAction: list of TaskGroupForAction
976
+ """
977
+ self._TaskInstances = None
978
+ self._TaskTitle = None
979
+ self._TaskDescription = None
980
+ self._TaskPauseDuration = None
981
+ self._TaskAction = None
982
+
983
+ @property
984
+ def TaskInstances(self):
985
+ """参与演练的实例ID
986
+ :rtype: list of str
987
+ """
988
+ return self._TaskInstances
989
+
990
+ @TaskInstances.setter
991
+ def TaskInstances(self, TaskInstances):
992
+ self._TaskInstances = TaskInstances
993
+
994
+ @property
995
+ def TaskTitle(self):
996
+ """演练名称,不填则默认取动作名称
997
+ :rtype: str
998
+ """
999
+ return self._TaskTitle
1000
+
1001
+ @TaskTitle.setter
1002
+ def TaskTitle(self, TaskTitle):
1003
+ self._TaskTitle = TaskTitle
1004
+
1005
+ @property
1006
+ def TaskDescription(self):
1007
+ """演练描述,不填则默认取动作描述
1008
+ :rtype: str
1009
+ """
1010
+ return self._TaskDescription
1011
+
1012
+ @TaskDescription.setter
1013
+ def TaskDescription(self, TaskDescription):
1014
+ self._TaskDescription = TaskDescription
1015
+
1016
+ @property
1017
+ def TaskPauseDuration(self):
1018
+ """演练自动暂停时间,单位分钟, 不填则默认为60
1019
+ :rtype: int
1020
+ """
1021
+ return self._TaskPauseDuration
1022
+
1023
+ @TaskPauseDuration.setter
1024
+ def TaskPauseDuration(self, TaskPauseDuration):
1025
+ self._TaskPauseDuration = TaskPauseDuration
1026
+
1027
+ @property
1028
+ def TaskAction(self):
1029
+ """演练动作组配置
1030
+ :rtype: list of TaskGroupForAction
1031
+ """
1032
+ return self._TaskAction
1033
+
1034
+ @TaskAction.setter
1035
+ def TaskAction(self, TaskAction):
1036
+ self._TaskAction = TaskAction
1037
+
1038
+
1039
+ def _deserialize(self, params):
1040
+ self._TaskInstances = params.get("TaskInstances")
1041
+ self._TaskTitle = params.get("TaskTitle")
1042
+ self._TaskDescription = params.get("TaskDescription")
1043
+ self._TaskPauseDuration = params.get("TaskPauseDuration")
1044
+ if params.get("TaskAction") is not None:
1045
+ self._TaskAction = []
1046
+ for item in params.get("TaskAction"):
1047
+ obj = TaskGroupForAction()
1048
+ obj._deserialize(item)
1049
+ self._TaskAction.append(obj)
1050
+ memeber_set = set(params.keys())
1051
+ for name, value in vars(self).items():
1052
+ property_name = name[1:]
1053
+ if property_name in memeber_set:
1054
+ memeber_set.remove(property_name)
1055
+ if len(memeber_set) > 0:
1056
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1057
+
1058
+
1059
+
1060
+ class CreateTaskFromMultiActionResponse(AbstractModel):
1061
+ """CreateTaskFromMultiAction返回参数结构体
1062
+
1063
+ """
1064
+
1065
+ def __init__(self):
1066
+ r"""
1067
+ :param _TaskId: 创建成功的演练ID
1068
+ :type TaskId: int
1069
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1070
+ :type RequestId: str
1071
+ """
1072
+ self._TaskId = None
1073
+ self._RequestId = None
1074
+
1075
+ @property
1076
+ def TaskId(self):
1077
+ """创建成功的演练ID
1078
+ :rtype: int
1079
+ """
1080
+ return self._TaskId
1081
+
1082
+ @TaskId.setter
1083
+ def TaskId(self, TaskId):
1084
+ self._TaskId = TaskId
1085
+
1086
+ @property
1087
+ def RequestId(self):
1088
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1089
+ :rtype: str
1090
+ """
1091
+ return self._RequestId
1092
+
1093
+ @RequestId.setter
1094
+ def RequestId(self, RequestId):
1095
+ self._RequestId = RequestId
1096
+
1097
+
1098
+ def _deserialize(self, params):
1099
+ self._TaskId = params.get("TaskId")
1100
+ self._RequestId = params.get("RequestId")
1101
+
1102
+
959
1103
  class CreateTaskFromTemplateRequest(AbstractModel):
960
1104
  """CreateTaskFromTemplate请求参数结构体
961
1105
 
@@ -1753,6 +1897,8 @@ class DescribeTaskListRequest(AbstractModel):
1753
1897
  :type ApplicationName: list of str
1754
1898
  :param _TaskStatusList: 任务状态筛选--支持多选 任务状态(1001 -- 未开始 1002 -- 进行中 1003 -- 暂停中 1004 -- 任务结束)
1755
1899
  :type TaskStatusList: list of int non-negative
1900
+ :param _ArchId: 架构ID
1901
+ :type ArchId: str
1756
1902
  """
1757
1903
  self._Limit = None
1758
1904
  self._Offset = None
@@ -1768,6 +1914,7 @@ class DescribeTaskListRequest(AbstractModel):
1768
1914
  self._ApplicationId = None
1769
1915
  self._ApplicationName = None
1770
1916
  self._TaskStatusList = None
1917
+ self._ArchId = None
1771
1918
 
1772
1919
  @property
1773
1920
  def Limit(self):
@@ -1923,6 +2070,17 @@ class DescribeTaskListRequest(AbstractModel):
1923
2070
  def TaskStatusList(self, TaskStatusList):
1924
2071
  self._TaskStatusList = TaskStatusList
1925
2072
 
2073
+ @property
2074
+ def ArchId(self):
2075
+ """架构ID
2076
+ :rtype: str
2077
+ """
2078
+ return self._ArchId
2079
+
2080
+ @ArchId.setter
2081
+ def ArchId(self, ArchId):
2082
+ self._ArchId = ArchId
2083
+
1926
2084
 
1927
2085
  def _deserialize(self, params):
1928
2086
  self._Limit = params.get("Limit")
@@ -1949,6 +2107,7 @@ class DescribeTaskListRequest(AbstractModel):
1949
2107
  self._ApplicationId = params.get("ApplicationId")
1950
2108
  self._ApplicationName = params.get("ApplicationName")
1951
2109
  self._TaskStatusList = params.get("TaskStatusList")
2110
+ self._ArchId = params.get("ArchId")
1952
2111
  memeber_set = set(params.keys())
1953
2112
  for name, value in vars(self).items():
1954
2113
  property_name = name[1:]
@@ -2917,6 +3076,8 @@ class ObjectType(AbstractModel):
2917
3076
  :param _ObjectSupportType: 1:平台支持的对象 2:应用支持的部分对象
2918
3077
  注意:此字段可能返回 null,表示取不到有效值。
2919
3078
  :type ObjectSupportType: int
3079
+ :param _ArchLayer: 1.接入层 2.逻辑层 3. 数据层
3080
+ :type ArchLayer: int
2920
3081
  """
2921
3082
  self._ObjectTypeId = None
2922
3083
  self._ObjectTypeTitle = None
@@ -2926,6 +3087,7 @@ class ObjectType(AbstractModel):
2926
3087
  self._ObjectHasNewAction = None
2927
3088
  self._ObjectPlatformName = None
2928
3089
  self._ObjectSupportType = None
3090
+ self._ArchLayer = None
2929
3091
 
2930
3092
  @property
2931
3093
  def ObjectTypeId(self):
@@ -3019,6 +3181,17 @@ class ObjectType(AbstractModel):
3019
3181
  def ObjectSupportType(self, ObjectSupportType):
3020
3182
  self._ObjectSupportType = ObjectSupportType
3021
3183
 
3184
+ @property
3185
+ def ArchLayer(self):
3186
+ """1.接入层 2.逻辑层 3. 数据层
3187
+ :rtype: int
3188
+ """
3189
+ return self._ArchLayer
3190
+
3191
+ @ArchLayer.setter
3192
+ def ArchLayer(self, ArchLayer):
3193
+ self._ArchLayer = ArchLayer
3194
+
3022
3195
 
3023
3196
  def _deserialize(self, params):
3024
3197
  self._ObjectTypeId = params.get("ObjectTypeId")
@@ -3033,6 +3206,7 @@ class ObjectType(AbstractModel):
3033
3206
  self._ObjectHasNewAction = params.get("ObjectHasNewAction")
3034
3207
  self._ObjectPlatformName = params.get("ObjectPlatformName")
3035
3208
  self._ObjectSupportType = params.get("ObjectSupportType")
3209
+ self._ArchLayer = params.get("ArchLayer")
3036
3210
  memeber_set = set(params.keys())
3037
3211
  for name, value in vars(self).items():
3038
3212
  property_name = name[1:]
@@ -5059,6 +5233,72 @@ class TaskGroupConfig(AbstractModel):
5059
5233
 
5060
5234
 
5061
5235
 
5236
+ class TaskGroupForAction(AbstractModel):
5237
+ """演练动作组简易配置
5238
+
5239
+ """
5240
+
5241
+ def __init__(self):
5242
+ r"""
5243
+ :param _TaskActionId: 动作ID
5244
+ :type TaskActionId: int
5245
+ :param _TaskActionGeneralConfiguration: {"ActionTimeout":1800}
5246
+ :type TaskActionGeneralConfiguration: str
5247
+ :param _TaskActionCustomConfiguration: {"ip": "0.0.0.0"}
5248
+ :type TaskActionCustomConfiguration: str
5249
+ """
5250
+ self._TaskActionId = None
5251
+ self._TaskActionGeneralConfiguration = None
5252
+ self._TaskActionCustomConfiguration = None
5253
+
5254
+ @property
5255
+ def TaskActionId(self):
5256
+ """动作ID
5257
+ :rtype: int
5258
+ """
5259
+ return self._TaskActionId
5260
+
5261
+ @TaskActionId.setter
5262
+ def TaskActionId(self, TaskActionId):
5263
+ self._TaskActionId = TaskActionId
5264
+
5265
+ @property
5266
+ def TaskActionGeneralConfiguration(self):
5267
+ """{"ActionTimeout":1800}
5268
+ :rtype: str
5269
+ """
5270
+ return self._TaskActionGeneralConfiguration
5271
+
5272
+ @TaskActionGeneralConfiguration.setter
5273
+ def TaskActionGeneralConfiguration(self, TaskActionGeneralConfiguration):
5274
+ self._TaskActionGeneralConfiguration = TaskActionGeneralConfiguration
5275
+
5276
+ @property
5277
+ def TaskActionCustomConfiguration(self):
5278
+ """{"ip": "0.0.0.0"}
5279
+ :rtype: str
5280
+ """
5281
+ return self._TaskActionCustomConfiguration
5282
+
5283
+ @TaskActionCustomConfiguration.setter
5284
+ def TaskActionCustomConfiguration(self, TaskActionCustomConfiguration):
5285
+ self._TaskActionCustomConfiguration = TaskActionCustomConfiguration
5286
+
5287
+
5288
+ def _deserialize(self, params):
5289
+ self._TaskActionId = params.get("TaskActionId")
5290
+ self._TaskActionGeneralConfiguration = params.get("TaskActionGeneralConfiguration")
5291
+ self._TaskActionCustomConfiguration = params.get("TaskActionCustomConfiguration")
5292
+ memeber_set = set(params.keys())
5293
+ for name, value in vars(self).items():
5294
+ property_name = name[1:]
5295
+ if property_name in memeber_set:
5296
+ memeber_set.remove(property_name)
5297
+ if len(memeber_set) > 0:
5298
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5299
+
5300
+
5301
+
5062
5302
  class TaskGroupInstance(AbstractModel):
5063
5303
  """任务分组动作实例
5064
5304
 
@@ -6480,6 +6720,8 @@ class TemplateGroupAction(AbstractModel):
6480
6720
  :param _ActionRisk: 动作风险等级,1:低风险 2:中风险 3:高风险
6481
6721
  注意:此字段可能返回 null,表示取不到有效值。
6482
6722
  :type ActionRisk: str
6723
+ :param _FailurePerformance: 故障表现
6724
+ :type FailurePerformance: str
6483
6725
  """
6484
6726
  self._TemplateGroupActionId = None
6485
6727
  self._ActionId = None
@@ -6496,6 +6738,7 @@ class TemplateGroupAction(AbstractModel):
6496
6738
  self._ActionAttribute = None
6497
6739
  self._ActionType = None
6498
6740
  self._ActionRisk = None
6741
+ self._FailurePerformance = None
6499
6742
 
6500
6743
  @property
6501
6744
  def TemplateGroupActionId(self):
@@ -6671,6 +6914,17 @@ class TemplateGroupAction(AbstractModel):
6671
6914
  def ActionRisk(self, ActionRisk):
6672
6915
  self._ActionRisk = ActionRisk
6673
6916
 
6917
+ @property
6918
+ def FailurePerformance(self):
6919
+ """故障表现
6920
+ :rtype: str
6921
+ """
6922
+ return self._FailurePerformance
6923
+
6924
+ @FailurePerformance.setter
6925
+ def FailurePerformance(self, FailurePerformance):
6926
+ self._FailurePerformance = FailurePerformance
6927
+
6674
6928
 
6675
6929
  def _deserialize(self, params):
6676
6930
  self._TemplateGroupActionId = params.get("TemplateGroupActionId")
@@ -6688,6 +6942,7 @@ class TemplateGroupAction(AbstractModel):
6688
6942
  self._ActionAttribute = params.get("ActionAttribute")
6689
6943
  self._ActionType = params.get("ActionType")
6690
6944
  self._ActionRisk = params.get("ActionRisk")
6945
+ self._FailurePerformance = params.get("FailurePerformance")
6691
6946
  memeber_set = set(params.keys())
6692
6947
  for name, value in vars(self).items():
6693
6948
  property_name = name[1:]
@@ -1,10 +1,10 @@
1
- Metadata-Version: 1.1
1
+ Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cfg
3
- Version: 3.0.1266
3
+ Version: 3.0.1285
4
4
  Summary: Tencent Cloud Cfg SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
7
- Author-email: tencentcloudapi@tencent.com
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
8
  License: Apache License 2.0
9
9
  Description: ============================
10
10
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1285
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1266