tencentcloud-sdk-python-cat 3.0.1363__tar.gz → 3.0.1365__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.
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/setup.py +1 -1
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/cat/v20180409/cat_client.py +23 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/cat/v20180409/models.py +199 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud_sdk_python_cat.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cat-3.0.1365/tencentcloud_sdk_python_cat.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cat-3.0.1363/tencentcloud_sdk_python_cat.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/README.rst +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/cat/__init__.py +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/cat/v20180409/__init__.py +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud/cat/v20180409/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud_sdk_python_cat.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud_sdk_python_cat.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cat-3.0.1363 → tencentcloud-sdk-python-cat-3.0.1365}/tencentcloud_sdk_python_cat.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cat',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1365"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cat SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -118,6 +118,29 @@ class CatClient(AbstractClient):
|
|
|
118
118
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
def DescribeNodeGroups(self, request):
|
|
122
|
+
"""获取拨测点组(可用性拨测点组、高级拨测点组、我的拨测点组)
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for DescribeNodeGroups.
|
|
125
|
+
:type request: :class:`tencentcloud.cat.v20180409.models.DescribeNodeGroupsRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.cat.v20180409.models.DescribeNodeGroupsResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("DescribeNodeGroups", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.DescribeNodeGroupsResponse()
|
|
135
|
+
model._deserialize(response["Response"])
|
|
136
|
+
return model
|
|
137
|
+
except Exception as e:
|
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
|
139
|
+
raise
|
|
140
|
+
else:
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
|
+
|
|
143
|
+
|
|
121
144
|
def DescribeNodes(self, request):
|
|
122
145
|
"""获取拨测节点
|
|
123
146
|
|
|
@@ -903,6 +903,205 @@ class DescribeInstantTasksResponse(AbstractModel):
|
|
|
903
903
|
self._RequestId = params.get("RequestId")
|
|
904
904
|
|
|
905
905
|
|
|
906
|
+
class DescribeNodeGroupsRequest(AbstractModel):
|
|
907
|
+
"""DescribeNodeGroups请求参数结构体
|
|
908
|
+
|
|
909
|
+
"""
|
|
910
|
+
|
|
911
|
+
def __init__(self):
|
|
912
|
+
r"""
|
|
913
|
+
:param _NodeType: 节点类型。0: 全部 1: IDC 2: LastMile 3: Mobile,不填默认为0
|
|
914
|
+
:type NodeType: list of int
|
|
915
|
+
:param _TaskCategory: 节点分类。0: 全部 1: PC 2:Mobile,不填默认为0。PC分类包括IDC和LM节点类型,Mobile分类包括Mobile节点类型。与NodeType参数取交集。
|
|
916
|
+
:type TaskCategory: int
|
|
917
|
+
:param _IPType: IP类型。0: 全部 1: IPv4 2: IPv6,不填默认为0
|
|
918
|
+
:type IPType: int
|
|
919
|
+
:param _Name: 拨测点描述关键词。
|
|
920
|
+
:type Name: str
|
|
921
|
+
:param _RegionID: 地域ID。0: 精选拨测点 1: 国内 2: 港澳台 3: 亚太 4: 欧洲与美洲 5: 非洲与大洋洲,不填默认为0
|
|
922
|
+
:type RegionID: int
|
|
923
|
+
:param _DistrictID: 省份或国家ID。0表示全部,不填默认为0
|
|
924
|
+
:type DistrictID: int
|
|
925
|
+
:param _NetServiceID: 运营商ID。0: 全部 1: 中国电信 2: 中国联通 3: 中国移动 99: 其他,不填默认为0
|
|
926
|
+
:type NetServiceID: int
|
|
927
|
+
:param _NodeGroupType: 节点组类型。0: 高级拨测点组 1: 可用性节点 2: 我的拨测点组,不填默认为0
|
|
928
|
+
:type NodeGroupType: int
|
|
929
|
+
:param _TaskType: 任务类型,如1、2、3、4、5、6、7;1-页面性能、2-文件上传、3-文件下载、4-端口性能、5-网络质量、6-音视频体验、7-域名whois,不填默认为0,不对任务类型做过滤
|
|
930
|
+
:type TaskType: int
|
|
931
|
+
:param _ProbeType: 测试类型,包含定时测试与即时测试。0-定时拨测,其它表示即时拨测。
|
|
932
|
+
:type ProbeType: int
|
|
933
|
+
"""
|
|
934
|
+
self._NodeType = None
|
|
935
|
+
self._TaskCategory = None
|
|
936
|
+
self._IPType = None
|
|
937
|
+
self._Name = None
|
|
938
|
+
self._RegionID = None
|
|
939
|
+
self._DistrictID = None
|
|
940
|
+
self._NetServiceID = None
|
|
941
|
+
self._NodeGroupType = None
|
|
942
|
+
self._TaskType = None
|
|
943
|
+
self._ProbeType = None
|
|
944
|
+
|
|
945
|
+
@property
|
|
946
|
+
def NodeType(self):
|
|
947
|
+
"""节点类型。0: 全部 1: IDC 2: LastMile 3: Mobile,不填默认为0
|
|
948
|
+
:rtype: list of int
|
|
949
|
+
"""
|
|
950
|
+
return self._NodeType
|
|
951
|
+
|
|
952
|
+
@NodeType.setter
|
|
953
|
+
def NodeType(self, NodeType):
|
|
954
|
+
self._NodeType = NodeType
|
|
955
|
+
|
|
956
|
+
@property
|
|
957
|
+
def TaskCategory(self):
|
|
958
|
+
"""节点分类。0: 全部 1: PC 2:Mobile,不填默认为0。PC分类包括IDC和LM节点类型,Mobile分类包括Mobile节点类型。与NodeType参数取交集。
|
|
959
|
+
:rtype: int
|
|
960
|
+
"""
|
|
961
|
+
return self._TaskCategory
|
|
962
|
+
|
|
963
|
+
@TaskCategory.setter
|
|
964
|
+
def TaskCategory(self, TaskCategory):
|
|
965
|
+
self._TaskCategory = TaskCategory
|
|
966
|
+
|
|
967
|
+
@property
|
|
968
|
+
def IPType(self):
|
|
969
|
+
"""IP类型。0: 全部 1: IPv4 2: IPv6,不填默认为0
|
|
970
|
+
:rtype: int
|
|
971
|
+
"""
|
|
972
|
+
return self._IPType
|
|
973
|
+
|
|
974
|
+
@IPType.setter
|
|
975
|
+
def IPType(self, IPType):
|
|
976
|
+
self._IPType = IPType
|
|
977
|
+
|
|
978
|
+
@property
|
|
979
|
+
def Name(self):
|
|
980
|
+
"""拨测点描述关键词。
|
|
981
|
+
:rtype: str
|
|
982
|
+
"""
|
|
983
|
+
return self._Name
|
|
984
|
+
|
|
985
|
+
@Name.setter
|
|
986
|
+
def Name(self, Name):
|
|
987
|
+
self._Name = Name
|
|
988
|
+
|
|
989
|
+
@property
|
|
990
|
+
def RegionID(self):
|
|
991
|
+
"""地域ID。0: 精选拨测点 1: 国内 2: 港澳台 3: 亚太 4: 欧洲与美洲 5: 非洲与大洋洲,不填默认为0
|
|
992
|
+
:rtype: int
|
|
993
|
+
"""
|
|
994
|
+
return self._RegionID
|
|
995
|
+
|
|
996
|
+
@RegionID.setter
|
|
997
|
+
def RegionID(self, RegionID):
|
|
998
|
+
self._RegionID = RegionID
|
|
999
|
+
|
|
1000
|
+
@property
|
|
1001
|
+
def DistrictID(self):
|
|
1002
|
+
"""省份或国家ID。0表示全部,不填默认为0
|
|
1003
|
+
:rtype: int
|
|
1004
|
+
"""
|
|
1005
|
+
return self._DistrictID
|
|
1006
|
+
|
|
1007
|
+
@DistrictID.setter
|
|
1008
|
+
def DistrictID(self, DistrictID):
|
|
1009
|
+
self._DistrictID = DistrictID
|
|
1010
|
+
|
|
1011
|
+
@property
|
|
1012
|
+
def NetServiceID(self):
|
|
1013
|
+
"""运营商ID。0: 全部 1: 中国电信 2: 中国联通 3: 中国移动 99: 其他,不填默认为0
|
|
1014
|
+
:rtype: int
|
|
1015
|
+
"""
|
|
1016
|
+
return self._NetServiceID
|
|
1017
|
+
|
|
1018
|
+
@NetServiceID.setter
|
|
1019
|
+
def NetServiceID(self, NetServiceID):
|
|
1020
|
+
self._NetServiceID = NetServiceID
|
|
1021
|
+
|
|
1022
|
+
@property
|
|
1023
|
+
def NodeGroupType(self):
|
|
1024
|
+
"""节点组类型。0: 高级拨测点组 1: 可用性节点 2: 我的拨测点组,不填默认为0
|
|
1025
|
+
:rtype: int
|
|
1026
|
+
"""
|
|
1027
|
+
return self._NodeGroupType
|
|
1028
|
+
|
|
1029
|
+
@NodeGroupType.setter
|
|
1030
|
+
def NodeGroupType(self, NodeGroupType):
|
|
1031
|
+
self._NodeGroupType = NodeGroupType
|
|
1032
|
+
|
|
1033
|
+
@property
|
|
1034
|
+
def TaskType(self):
|
|
1035
|
+
"""任务类型,如1、2、3、4、5、6、7;1-页面性能、2-文件上传、3-文件下载、4-端口性能、5-网络质量、6-音视频体验、7-域名whois,不填默认为0,不对任务类型做过滤
|
|
1036
|
+
:rtype: int
|
|
1037
|
+
"""
|
|
1038
|
+
return self._TaskType
|
|
1039
|
+
|
|
1040
|
+
@TaskType.setter
|
|
1041
|
+
def TaskType(self, TaskType):
|
|
1042
|
+
self._TaskType = TaskType
|
|
1043
|
+
|
|
1044
|
+
@property
|
|
1045
|
+
def ProbeType(self):
|
|
1046
|
+
"""测试类型,包含定时测试与即时测试。0-定时拨测,其它表示即时拨测。
|
|
1047
|
+
:rtype: int
|
|
1048
|
+
"""
|
|
1049
|
+
return self._ProbeType
|
|
1050
|
+
|
|
1051
|
+
@ProbeType.setter
|
|
1052
|
+
def ProbeType(self, ProbeType):
|
|
1053
|
+
self._ProbeType = ProbeType
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
def _deserialize(self, params):
|
|
1057
|
+
self._NodeType = params.get("NodeType")
|
|
1058
|
+
self._TaskCategory = params.get("TaskCategory")
|
|
1059
|
+
self._IPType = params.get("IPType")
|
|
1060
|
+
self._Name = params.get("Name")
|
|
1061
|
+
self._RegionID = params.get("RegionID")
|
|
1062
|
+
self._DistrictID = params.get("DistrictID")
|
|
1063
|
+
self._NetServiceID = params.get("NetServiceID")
|
|
1064
|
+
self._NodeGroupType = params.get("NodeGroupType")
|
|
1065
|
+
self._TaskType = params.get("TaskType")
|
|
1066
|
+
self._ProbeType = params.get("ProbeType")
|
|
1067
|
+
memeber_set = set(params.keys())
|
|
1068
|
+
for name, value in vars(self).items():
|
|
1069
|
+
property_name = name[1:]
|
|
1070
|
+
if property_name in memeber_set:
|
|
1071
|
+
memeber_set.remove(property_name)
|
|
1072
|
+
if len(memeber_set) > 0:
|
|
1073
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
class DescribeNodeGroupsResponse(AbstractModel):
|
|
1078
|
+
"""DescribeNodeGroups返回参数结构体
|
|
1079
|
+
|
|
1080
|
+
"""
|
|
1081
|
+
|
|
1082
|
+
def __init__(self):
|
|
1083
|
+
r"""
|
|
1084
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1085
|
+
:type RequestId: str
|
|
1086
|
+
"""
|
|
1087
|
+
self._RequestId = None
|
|
1088
|
+
|
|
1089
|
+
@property
|
|
1090
|
+
def RequestId(self):
|
|
1091
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1092
|
+
:rtype: str
|
|
1093
|
+
"""
|
|
1094
|
+
return self._RequestId
|
|
1095
|
+
|
|
1096
|
+
@RequestId.setter
|
|
1097
|
+
def RequestId(self, RequestId):
|
|
1098
|
+
self._RequestId = RequestId
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
def _deserialize(self, params):
|
|
1102
|
+
self._RequestId = params.get("RequestId")
|
|
1103
|
+
|
|
1104
|
+
|
|
906
1105
|
class DescribeNodesRequest(AbstractModel):
|
|
907
1106
|
"""DescribeNodes请求参数结构体
|
|
908
1107
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1365
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1363
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|