tencentcloud-sdk-python-cfg 3.0.1266__tar.gz → 3.0.1281__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.1281}/PKG-INFO +3 -3
  2. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/setup.cfg +0 -1
  3. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/setup.py +1 -1
  4. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/__init__.py +1 -1
  5. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/cfg/v20210820/cfg_client.py +23 -0
  6. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/cfg/v20210820/models.py +225 -0
  7. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud_sdk_python_cfg.egg-info/PKG-INFO +3 -3
  8. tencentcloud-sdk-python-cfg-3.0.1281/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.1281}/README.rst +0 -0
  11. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/cfg/__init__.py +0 -0
  12. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/cfg/v20210820/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud/cfg/v20210820/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/tencentcloud_sdk_python_cfg.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-cfg-3.0.1266 → tencentcloud-sdk-python-cfg-3.0.1281}/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.1281}/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.1281
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.1281"],
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.1281'
@@ -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:]
@@ -5059,6 +5218,72 @@ class TaskGroupConfig(AbstractModel):
5059
5218
 
5060
5219
 
5061
5220
 
5221
+ class TaskGroupForAction(AbstractModel):
5222
+ """演练动作组简易配置
5223
+
5224
+ """
5225
+
5226
+ def __init__(self):
5227
+ r"""
5228
+ :param _TaskActionId: 动作ID
5229
+ :type TaskActionId: int
5230
+ :param _TaskActionGeneralConfiguration: {"ActionTimeout":1800}
5231
+ :type TaskActionGeneralConfiguration: str
5232
+ :param _TaskActionCustomConfiguration: {"ip": "0.0.0.0"}
5233
+ :type TaskActionCustomConfiguration: str
5234
+ """
5235
+ self._TaskActionId = None
5236
+ self._TaskActionGeneralConfiguration = None
5237
+ self._TaskActionCustomConfiguration = None
5238
+
5239
+ @property
5240
+ def TaskActionId(self):
5241
+ """动作ID
5242
+ :rtype: int
5243
+ """
5244
+ return self._TaskActionId
5245
+
5246
+ @TaskActionId.setter
5247
+ def TaskActionId(self, TaskActionId):
5248
+ self._TaskActionId = TaskActionId
5249
+
5250
+ @property
5251
+ def TaskActionGeneralConfiguration(self):
5252
+ """{"ActionTimeout":1800}
5253
+ :rtype: str
5254
+ """
5255
+ return self._TaskActionGeneralConfiguration
5256
+
5257
+ @TaskActionGeneralConfiguration.setter
5258
+ def TaskActionGeneralConfiguration(self, TaskActionGeneralConfiguration):
5259
+ self._TaskActionGeneralConfiguration = TaskActionGeneralConfiguration
5260
+
5261
+ @property
5262
+ def TaskActionCustomConfiguration(self):
5263
+ """{"ip": "0.0.0.0"}
5264
+ :rtype: str
5265
+ """
5266
+ return self._TaskActionCustomConfiguration
5267
+
5268
+ @TaskActionCustomConfiguration.setter
5269
+ def TaskActionCustomConfiguration(self, TaskActionCustomConfiguration):
5270
+ self._TaskActionCustomConfiguration = TaskActionCustomConfiguration
5271
+
5272
+
5273
+ def _deserialize(self, params):
5274
+ self._TaskActionId = params.get("TaskActionId")
5275
+ self._TaskActionGeneralConfiguration = params.get("TaskActionGeneralConfiguration")
5276
+ self._TaskActionCustomConfiguration = params.get("TaskActionCustomConfiguration")
5277
+ memeber_set = set(params.keys())
5278
+ for name, value in vars(self).items():
5279
+ property_name = name[1:]
5280
+ if property_name in memeber_set:
5281
+ memeber_set.remove(property_name)
5282
+ if len(memeber_set) > 0:
5283
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5284
+
5285
+
5286
+
5062
5287
  class TaskGroupInstance(AbstractModel):
5063
5288
  """任务分组动作实例
5064
5289
 
@@ -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.1281
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.1281
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1266