tencentcloud-sdk-python-es 3.1.31__tar.gz → 3.1.40__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_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/setup.py +1 -1
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20180416/errorcodes.py +3 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20180416/es_client.py +23 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20180416/es_client_async.py +18 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20180416/models.py +860 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud_sdk_python_es.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_es-3.1.40/tencentcloud_sdk_python_es.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_es-3.1.31/tencentcloud_sdk_python_es.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/README.rst +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/setup.cfg +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20180416/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20250101/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20250101/errorcodes.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20250101/es_client.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20250101/es_client_async.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/v20250101/models.py +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud_sdk_python_es.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud_sdk_python_es.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud_sdk_python_es.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-es
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.40
|
|
4
4
|
Summary: Tencent Cloud Es SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.40
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-es',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.40,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Es SDK for Python',
|
|
@@ -581,6 +581,9 @@ UNSUPPORTEDOPERATION_BASICSECURITYTYPE = 'UnsupportedOperation.BasicSecurityType
|
|
|
581
581
|
# 不支持变配节点或磁盘的配置。
|
|
582
582
|
UNSUPPORTEDOPERATION_CHANGENODETYPE = 'UnsupportedOperation.ChangeNodeType'
|
|
583
583
|
|
|
584
|
+
# 集群开启了saml登录,不能直接从https调整到http协议
|
|
585
|
+
UNSUPPORTEDOPERATION_CLOSEHTTPSWITHSAML = 'UnsupportedOperation.CloseHttpsWithSaml'
|
|
586
|
+
|
|
584
587
|
# 不支持该操作,在集群中存在分配的分片。
|
|
585
588
|
UNSUPPORTEDOPERATION_CLUSTERSHARDNUM = 'UnsupportedOperation.ClusterShardNum'
|
|
586
589
|
|
|
@@ -95,6 +95,29 @@ class EsClient(AbstractClient):
|
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
def CreateCollector(self, request):
|
|
99
|
+
r"""用于创建Beats采集器
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for CreateCollector.
|
|
102
|
+
:type request: :class:`tencentcloud.es.v20180416.models.CreateCollectorRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.es.v20180416.models.CreateCollectorResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("CreateCollector", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.CreateCollectorResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
98
121
|
def CreateCosMigrateToServerlessInstance(self, request):
|
|
99
122
|
r"""cos迁移流程
|
|
100
123
|
|
|
@@ -79,6 +79,24 @@ class EsClient(AbstractClient):
|
|
|
79
79
|
|
|
80
80
|
return await self.call_and_deserialize(**kwargs)
|
|
81
81
|
|
|
82
|
+
async def CreateCollector(
|
|
83
|
+
self,
|
|
84
|
+
request: models.CreateCollectorRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.CreateCollectorResponse:
|
|
87
|
+
"""
|
|
88
|
+
用于创建Beats采集器
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "CreateCollector"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.CreateCollectorResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
82
100
|
async def CreateCosMigrateToServerlessInstance(
|
|
83
101
|
self,
|
|
84
102
|
request: models.CreateCosMigrateToServerlessInstanceRequest,
|
|
@@ -818,6 +818,533 @@ class ClusterView(AbstractModel):
|
|
|
818
818
|
|
|
819
819
|
|
|
820
820
|
|
|
821
|
+
class CollectorConfigInfo(AbstractModel):
|
|
822
|
+
r"""采集器配置项
|
|
823
|
+
|
|
824
|
+
"""
|
|
825
|
+
|
|
826
|
+
def __init__(self):
|
|
827
|
+
r"""
|
|
828
|
+
:param _FileName: 采集器的主配置文件名,如filebeat.yml,metricbeat.yml等
|
|
829
|
+
:type FileName: str
|
|
830
|
+
:param _FileContent: 采集器的主配置文件内容
|
|
831
|
+
:type FileContent: str
|
|
832
|
+
"""
|
|
833
|
+
self._FileName = None
|
|
834
|
+
self._FileContent = None
|
|
835
|
+
|
|
836
|
+
@property
|
|
837
|
+
def FileName(self):
|
|
838
|
+
r"""采集器的主配置文件名,如filebeat.yml,metricbeat.yml等
|
|
839
|
+
:rtype: str
|
|
840
|
+
"""
|
|
841
|
+
return self._FileName
|
|
842
|
+
|
|
843
|
+
@FileName.setter
|
|
844
|
+
def FileName(self, FileName):
|
|
845
|
+
self._FileName = FileName
|
|
846
|
+
|
|
847
|
+
@property
|
|
848
|
+
def FileContent(self):
|
|
849
|
+
r"""采集器的主配置文件内容
|
|
850
|
+
:rtype: str
|
|
851
|
+
"""
|
|
852
|
+
return self._FileContent
|
|
853
|
+
|
|
854
|
+
@FileContent.setter
|
|
855
|
+
def FileContent(self, FileContent):
|
|
856
|
+
self._FileContent = FileContent
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
def _deserialize(self, params):
|
|
860
|
+
self._FileName = params.get("FileName")
|
|
861
|
+
self._FileContent = params.get("FileContent")
|
|
862
|
+
memeber_set = set(params.keys())
|
|
863
|
+
for name, value in vars(self).items():
|
|
864
|
+
property_name = name[1:]
|
|
865
|
+
if property_name in memeber_set:
|
|
866
|
+
memeber_set.remove(property_name)
|
|
867
|
+
if len(memeber_set) > 0:
|
|
868
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
class CollectorOutputInstance(AbstractModel):
|
|
873
|
+
r"""采集器输出的实例信息
|
|
874
|
+
|
|
875
|
+
"""
|
|
876
|
+
|
|
877
|
+
def __init__(self):
|
|
878
|
+
r"""
|
|
879
|
+
:param _Type: 采集器输出的实例类型(支持elasticsearch、logstash)
|
|
880
|
+
:type Type: str
|
|
881
|
+
:param _InstanceId: 采集器输出的实例ID
|
|
882
|
+
:type InstanceId: str
|
|
883
|
+
:param _ESUserName: 采集器输出到的ES实例的用户名
|
|
884
|
+
:type ESUserName: str
|
|
885
|
+
:param _ESUserPasswd: 采集器输出到的ES实例的密码
|
|
886
|
+
:type ESUserPasswd: str
|
|
887
|
+
:param _EnableMonitoring: 采集器输出到ES实例时,是否开启监控(1为开启,0为不开启,默认为0)
|
|
888
|
+
:type EnableMonitoring: int
|
|
889
|
+
:param _EnableDashboard: 采集器输出到ES实例时,是否开启自动在kibana中生成Dashboard(1为开启,0为不开启,默认为0)
|
|
890
|
+
:type EnableDashboard: int
|
|
891
|
+
:param _KafkaEndpoint: Ckafka实例的vip
|
|
892
|
+
:type KafkaEndpoint: str
|
|
893
|
+
:param _KafkaTopic: Ckafka实例中的Topic
|
|
894
|
+
:type KafkaTopic: str
|
|
895
|
+
:param _KafkaVersion: Ckafka实例的版本号
|
|
896
|
+
:type KafkaVersion: str
|
|
897
|
+
:param _SesTopicId: topic id
|
|
898
|
+
:type SesTopicId: str
|
|
899
|
+
:param _SesTopicName: topic name
|
|
900
|
+
:type SesTopicName: str
|
|
901
|
+
:param _SesTopicAddress: topic address
|
|
902
|
+
:type SesTopicAddress: str
|
|
903
|
+
:param _SesTopicUserName: /
|
|
904
|
+
:type SesTopicUserName: str
|
|
905
|
+
:param _SesTopicPasswd: /
|
|
906
|
+
:type SesTopicPasswd: str
|
|
907
|
+
:param _LogstashListenPort: /
|
|
908
|
+
:type LogstashListenPort: int
|
|
909
|
+
"""
|
|
910
|
+
self._Type = None
|
|
911
|
+
self._InstanceId = None
|
|
912
|
+
self._ESUserName = None
|
|
913
|
+
self._ESUserPasswd = None
|
|
914
|
+
self._EnableMonitoring = None
|
|
915
|
+
self._EnableDashboard = None
|
|
916
|
+
self._KafkaEndpoint = None
|
|
917
|
+
self._KafkaTopic = None
|
|
918
|
+
self._KafkaVersion = None
|
|
919
|
+
self._SesTopicId = None
|
|
920
|
+
self._SesTopicName = None
|
|
921
|
+
self._SesTopicAddress = None
|
|
922
|
+
self._SesTopicUserName = None
|
|
923
|
+
self._SesTopicPasswd = None
|
|
924
|
+
self._LogstashListenPort = None
|
|
925
|
+
|
|
926
|
+
@property
|
|
927
|
+
def Type(self):
|
|
928
|
+
r"""采集器输出的实例类型(支持elasticsearch、logstash)
|
|
929
|
+
:rtype: str
|
|
930
|
+
"""
|
|
931
|
+
return self._Type
|
|
932
|
+
|
|
933
|
+
@Type.setter
|
|
934
|
+
def Type(self, Type):
|
|
935
|
+
self._Type = Type
|
|
936
|
+
|
|
937
|
+
@property
|
|
938
|
+
def InstanceId(self):
|
|
939
|
+
r"""采集器输出的实例ID
|
|
940
|
+
:rtype: str
|
|
941
|
+
"""
|
|
942
|
+
return self._InstanceId
|
|
943
|
+
|
|
944
|
+
@InstanceId.setter
|
|
945
|
+
def InstanceId(self, InstanceId):
|
|
946
|
+
self._InstanceId = InstanceId
|
|
947
|
+
|
|
948
|
+
@property
|
|
949
|
+
def ESUserName(self):
|
|
950
|
+
r"""采集器输出到的ES实例的用户名
|
|
951
|
+
:rtype: str
|
|
952
|
+
"""
|
|
953
|
+
return self._ESUserName
|
|
954
|
+
|
|
955
|
+
@ESUserName.setter
|
|
956
|
+
def ESUserName(self, ESUserName):
|
|
957
|
+
self._ESUserName = ESUserName
|
|
958
|
+
|
|
959
|
+
@property
|
|
960
|
+
def ESUserPasswd(self):
|
|
961
|
+
r"""采集器输出到的ES实例的密码
|
|
962
|
+
:rtype: str
|
|
963
|
+
"""
|
|
964
|
+
return self._ESUserPasswd
|
|
965
|
+
|
|
966
|
+
@ESUserPasswd.setter
|
|
967
|
+
def ESUserPasswd(self, ESUserPasswd):
|
|
968
|
+
self._ESUserPasswd = ESUserPasswd
|
|
969
|
+
|
|
970
|
+
@property
|
|
971
|
+
def EnableMonitoring(self):
|
|
972
|
+
r"""采集器输出到ES实例时,是否开启监控(1为开启,0为不开启,默认为0)
|
|
973
|
+
:rtype: int
|
|
974
|
+
"""
|
|
975
|
+
return self._EnableMonitoring
|
|
976
|
+
|
|
977
|
+
@EnableMonitoring.setter
|
|
978
|
+
def EnableMonitoring(self, EnableMonitoring):
|
|
979
|
+
self._EnableMonitoring = EnableMonitoring
|
|
980
|
+
|
|
981
|
+
@property
|
|
982
|
+
def EnableDashboard(self):
|
|
983
|
+
r"""采集器输出到ES实例时,是否开启自动在kibana中生成Dashboard(1为开启,0为不开启,默认为0)
|
|
984
|
+
:rtype: int
|
|
985
|
+
"""
|
|
986
|
+
return self._EnableDashboard
|
|
987
|
+
|
|
988
|
+
@EnableDashboard.setter
|
|
989
|
+
def EnableDashboard(self, EnableDashboard):
|
|
990
|
+
self._EnableDashboard = EnableDashboard
|
|
991
|
+
|
|
992
|
+
@property
|
|
993
|
+
def KafkaEndpoint(self):
|
|
994
|
+
r"""Ckafka实例的vip
|
|
995
|
+
:rtype: str
|
|
996
|
+
"""
|
|
997
|
+
return self._KafkaEndpoint
|
|
998
|
+
|
|
999
|
+
@KafkaEndpoint.setter
|
|
1000
|
+
def KafkaEndpoint(self, KafkaEndpoint):
|
|
1001
|
+
self._KafkaEndpoint = KafkaEndpoint
|
|
1002
|
+
|
|
1003
|
+
@property
|
|
1004
|
+
def KafkaTopic(self):
|
|
1005
|
+
r"""Ckafka实例中的Topic
|
|
1006
|
+
:rtype: str
|
|
1007
|
+
"""
|
|
1008
|
+
return self._KafkaTopic
|
|
1009
|
+
|
|
1010
|
+
@KafkaTopic.setter
|
|
1011
|
+
def KafkaTopic(self, KafkaTopic):
|
|
1012
|
+
self._KafkaTopic = KafkaTopic
|
|
1013
|
+
|
|
1014
|
+
@property
|
|
1015
|
+
def KafkaVersion(self):
|
|
1016
|
+
r"""Ckafka实例的版本号
|
|
1017
|
+
:rtype: str
|
|
1018
|
+
"""
|
|
1019
|
+
return self._KafkaVersion
|
|
1020
|
+
|
|
1021
|
+
@KafkaVersion.setter
|
|
1022
|
+
def KafkaVersion(self, KafkaVersion):
|
|
1023
|
+
self._KafkaVersion = KafkaVersion
|
|
1024
|
+
|
|
1025
|
+
@property
|
|
1026
|
+
def SesTopicId(self):
|
|
1027
|
+
r"""topic id
|
|
1028
|
+
:rtype: str
|
|
1029
|
+
"""
|
|
1030
|
+
return self._SesTopicId
|
|
1031
|
+
|
|
1032
|
+
@SesTopicId.setter
|
|
1033
|
+
def SesTopicId(self, SesTopicId):
|
|
1034
|
+
self._SesTopicId = SesTopicId
|
|
1035
|
+
|
|
1036
|
+
@property
|
|
1037
|
+
def SesTopicName(self):
|
|
1038
|
+
r"""topic name
|
|
1039
|
+
:rtype: str
|
|
1040
|
+
"""
|
|
1041
|
+
return self._SesTopicName
|
|
1042
|
+
|
|
1043
|
+
@SesTopicName.setter
|
|
1044
|
+
def SesTopicName(self, SesTopicName):
|
|
1045
|
+
self._SesTopicName = SesTopicName
|
|
1046
|
+
|
|
1047
|
+
@property
|
|
1048
|
+
def SesTopicAddress(self):
|
|
1049
|
+
r"""topic address
|
|
1050
|
+
:rtype: str
|
|
1051
|
+
"""
|
|
1052
|
+
return self._SesTopicAddress
|
|
1053
|
+
|
|
1054
|
+
@SesTopicAddress.setter
|
|
1055
|
+
def SesTopicAddress(self, SesTopicAddress):
|
|
1056
|
+
self._SesTopicAddress = SesTopicAddress
|
|
1057
|
+
|
|
1058
|
+
@property
|
|
1059
|
+
def SesTopicUserName(self):
|
|
1060
|
+
r"""/
|
|
1061
|
+
:rtype: str
|
|
1062
|
+
"""
|
|
1063
|
+
return self._SesTopicUserName
|
|
1064
|
+
|
|
1065
|
+
@SesTopicUserName.setter
|
|
1066
|
+
def SesTopicUserName(self, SesTopicUserName):
|
|
1067
|
+
self._SesTopicUserName = SesTopicUserName
|
|
1068
|
+
|
|
1069
|
+
@property
|
|
1070
|
+
def SesTopicPasswd(self):
|
|
1071
|
+
r"""/
|
|
1072
|
+
:rtype: str
|
|
1073
|
+
"""
|
|
1074
|
+
return self._SesTopicPasswd
|
|
1075
|
+
|
|
1076
|
+
@SesTopicPasswd.setter
|
|
1077
|
+
def SesTopicPasswd(self, SesTopicPasswd):
|
|
1078
|
+
self._SesTopicPasswd = SesTopicPasswd
|
|
1079
|
+
|
|
1080
|
+
@property
|
|
1081
|
+
def LogstashListenPort(self):
|
|
1082
|
+
r"""/
|
|
1083
|
+
:rtype: int
|
|
1084
|
+
"""
|
|
1085
|
+
return self._LogstashListenPort
|
|
1086
|
+
|
|
1087
|
+
@LogstashListenPort.setter
|
|
1088
|
+
def LogstashListenPort(self, LogstashListenPort):
|
|
1089
|
+
self._LogstashListenPort = LogstashListenPort
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
def _deserialize(self, params):
|
|
1093
|
+
self._Type = params.get("Type")
|
|
1094
|
+
self._InstanceId = params.get("InstanceId")
|
|
1095
|
+
self._ESUserName = params.get("ESUserName")
|
|
1096
|
+
self._ESUserPasswd = params.get("ESUserPasswd")
|
|
1097
|
+
self._EnableMonitoring = params.get("EnableMonitoring")
|
|
1098
|
+
self._EnableDashboard = params.get("EnableDashboard")
|
|
1099
|
+
self._KafkaEndpoint = params.get("KafkaEndpoint")
|
|
1100
|
+
self._KafkaTopic = params.get("KafkaTopic")
|
|
1101
|
+
self._KafkaVersion = params.get("KafkaVersion")
|
|
1102
|
+
self._SesTopicId = params.get("SesTopicId")
|
|
1103
|
+
self._SesTopicName = params.get("SesTopicName")
|
|
1104
|
+
self._SesTopicAddress = params.get("SesTopicAddress")
|
|
1105
|
+
self._SesTopicUserName = params.get("SesTopicUserName")
|
|
1106
|
+
self._SesTopicPasswd = params.get("SesTopicPasswd")
|
|
1107
|
+
self._LogstashListenPort = params.get("LogstashListenPort")
|
|
1108
|
+
memeber_set = set(params.keys())
|
|
1109
|
+
for name, value in vars(self).items():
|
|
1110
|
+
property_name = name[1:]
|
|
1111
|
+
if property_name in memeber_set:
|
|
1112
|
+
memeber_set.remove(property_name)
|
|
1113
|
+
if len(memeber_set) > 0:
|
|
1114
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
class CollectorTarget(AbstractModel):
|
|
1119
|
+
r"""容器日志采集配置
|
|
1120
|
+
|
|
1121
|
+
"""
|
|
1122
|
+
|
|
1123
|
+
def __init__(self):
|
|
1124
|
+
r"""
|
|
1125
|
+
:param _TargetName: 采集配置名称
|
|
1126
|
+
:type TargetName: str
|
|
1127
|
+
:param _Namespaces: 命名空间列表,包括Include包含和Exclude不包含选项,两者都为空时等同于全部命名空间(包含当前所有的以及未来创建的)。
|
|
1128
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1129
|
+
:type Namespaces: :class:`tencentcloud.es.v20180416.models.Namespaces`
|
|
1130
|
+
:param _PodLabels: Pod标签列表
|
|
1131
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1132
|
+
:type PodLabels: list of PodLabel
|
|
1133
|
+
:param _ContainerName: 容器名称,支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
1134
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1135
|
+
:type ContainerName: str
|
|
1136
|
+
:param _IndexPrefix: ES索引名称前缀,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称的前缀,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
|
|
1137
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1138
|
+
:type IndexPrefix: str
|
|
1139
|
+
:param _LogFilters: 日志内容过滤,以逗号分隔,支持大小写字母、数字、连接符-、下划线_以及逗号,最多支持50个字符
|
|
1140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1141
|
+
:type LogFilters: str
|
|
1142
|
+
:param _ConfigContent: 高级配置,可自定义采集规则,最多支持2048个字符
|
|
1143
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1144
|
+
:type ConfigContent: str
|
|
1145
|
+
:param _KafkaTopic: Ckafka实例的Topic
|
|
1146
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1147
|
+
:type KafkaTopic: str
|
|
1148
|
+
:param _IndexAlias: ES索引名称,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
|
|
1149
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1150
|
+
:type IndexAlias: str
|
|
1151
|
+
:param _InputType: /
|
|
1152
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1153
|
+
:type InputType: str
|
|
1154
|
+
:param _InputPath: 日志采集host路径
|
|
1155
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1156
|
+
:type InputPath: str
|
|
1157
|
+
:param _InputsTailFiles: inputs.tail_files
|
|
1158
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1159
|
+
:type InputsTailFiles: bool
|
|
1160
|
+
"""
|
|
1161
|
+
self._TargetName = None
|
|
1162
|
+
self._Namespaces = None
|
|
1163
|
+
self._PodLabels = None
|
|
1164
|
+
self._ContainerName = None
|
|
1165
|
+
self._IndexPrefix = None
|
|
1166
|
+
self._LogFilters = None
|
|
1167
|
+
self._ConfigContent = None
|
|
1168
|
+
self._KafkaTopic = None
|
|
1169
|
+
self._IndexAlias = None
|
|
1170
|
+
self._InputType = None
|
|
1171
|
+
self._InputPath = None
|
|
1172
|
+
self._InputsTailFiles = None
|
|
1173
|
+
|
|
1174
|
+
@property
|
|
1175
|
+
def TargetName(self):
|
|
1176
|
+
r"""采集配置名称
|
|
1177
|
+
:rtype: str
|
|
1178
|
+
"""
|
|
1179
|
+
return self._TargetName
|
|
1180
|
+
|
|
1181
|
+
@TargetName.setter
|
|
1182
|
+
def TargetName(self, TargetName):
|
|
1183
|
+
self._TargetName = TargetName
|
|
1184
|
+
|
|
1185
|
+
@property
|
|
1186
|
+
def Namespaces(self):
|
|
1187
|
+
r"""命名空间列表,包括Include包含和Exclude不包含选项,两者都为空时等同于全部命名空间(包含当前所有的以及未来创建的)。
|
|
1188
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1189
|
+
:rtype: :class:`tencentcloud.es.v20180416.models.Namespaces`
|
|
1190
|
+
"""
|
|
1191
|
+
return self._Namespaces
|
|
1192
|
+
|
|
1193
|
+
@Namespaces.setter
|
|
1194
|
+
def Namespaces(self, Namespaces):
|
|
1195
|
+
self._Namespaces = Namespaces
|
|
1196
|
+
|
|
1197
|
+
@property
|
|
1198
|
+
def PodLabels(self):
|
|
1199
|
+
r"""Pod标签列表
|
|
1200
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1201
|
+
:rtype: list of PodLabel
|
|
1202
|
+
"""
|
|
1203
|
+
return self._PodLabels
|
|
1204
|
+
|
|
1205
|
+
@PodLabels.setter
|
|
1206
|
+
def PodLabels(self, PodLabels):
|
|
1207
|
+
self._PodLabels = PodLabels
|
|
1208
|
+
|
|
1209
|
+
@property
|
|
1210
|
+
def ContainerName(self):
|
|
1211
|
+
r"""容器名称,支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
1212
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1213
|
+
:rtype: str
|
|
1214
|
+
"""
|
|
1215
|
+
return self._ContainerName
|
|
1216
|
+
|
|
1217
|
+
@ContainerName.setter
|
|
1218
|
+
def ContainerName(self, ContainerName):
|
|
1219
|
+
self._ContainerName = ContainerName
|
|
1220
|
+
|
|
1221
|
+
@property
|
|
1222
|
+
def IndexPrefix(self):
|
|
1223
|
+
r"""ES索引名称前缀,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称的前缀,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
|
|
1224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1225
|
+
:rtype: str
|
|
1226
|
+
"""
|
|
1227
|
+
return self._IndexPrefix
|
|
1228
|
+
|
|
1229
|
+
@IndexPrefix.setter
|
|
1230
|
+
def IndexPrefix(self, IndexPrefix):
|
|
1231
|
+
self._IndexPrefix = IndexPrefix
|
|
1232
|
+
|
|
1233
|
+
@property
|
|
1234
|
+
def LogFilters(self):
|
|
1235
|
+
r"""日志内容过滤,以逗号分隔,支持大小写字母、数字、连接符-、下划线_以及逗号,最多支持50个字符
|
|
1236
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1237
|
+
:rtype: str
|
|
1238
|
+
"""
|
|
1239
|
+
return self._LogFilters
|
|
1240
|
+
|
|
1241
|
+
@LogFilters.setter
|
|
1242
|
+
def LogFilters(self, LogFilters):
|
|
1243
|
+
self._LogFilters = LogFilters
|
|
1244
|
+
|
|
1245
|
+
@property
|
|
1246
|
+
def ConfigContent(self):
|
|
1247
|
+
r"""高级配置,可自定义采集规则,最多支持2048个字符
|
|
1248
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1249
|
+
:rtype: str
|
|
1250
|
+
"""
|
|
1251
|
+
return self._ConfigContent
|
|
1252
|
+
|
|
1253
|
+
@ConfigContent.setter
|
|
1254
|
+
def ConfigContent(self, ConfigContent):
|
|
1255
|
+
self._ConfigContent = ConfigContent
|
|
1256
|
+
|
|
1257
|
+
@property
|
|
1258
|
+
def KafkaTopic(self):
|
|
1259
|
+
r"""Ckafka实例的Topic
|
|
1260
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1261
|
+
:rtype: str
|
|
1262
|
+
"""
|
|
1263
|
+
return self._KafkaTopic
|
|
1264
|
+
|
|
1265
|
+
@KafkaTopic.setter
|
|
1266
|
+
def KafkaTopic(self, KafkaTopic):
|
|
1267
|
+
self._KafkaTopic = KafkaTopic
|
|
1268
|
+
|
|
1269
|
+
@property
|
|
1270
|
+
def IndexAlias(self):
|
|
1271
|
+
r"""ES索引名称,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
|
|
1272
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1273
|
+
:rtype: str
|
|
1274
|
+
"""
|
|
1275
|
+
return self._IndexAlias
|
|
1276
|
+
|
|
1277
|
+
@IndexAlias.setter
|
|
1278
|
+
def IndexAlias(self, IndexAlias):
|
|
1279
|
+
self._IndexAlias = IndexAlias
|
|
1280
|
+
|
|
1281
|
+
@property
|
|
1282
|
+
def InputType(self):
|
|
1283
|
+
r"""/
|
|
1284
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1285
|
+
:rtype: str
|
|
1286
|
+
"""
|
|
1287
|
+
return self._InputType
|
|
1288
|
+
|
|
1289
|
+
@InputType.setter
|
|
1290
|
+
def InputType(self, InputType):
|
|
1291
|
+
self._InputType = InputType
|
|
1292
|
+
|
|
1293
|
+
@property
|
|
1294
|
+
def InputPath(self):
|
|
1295
|
+
r"""日志采集host路径
|
|
1296
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1297
|
+
:rtype: str
|
|
1298
|
+
"""
|
|
1299
|
+
return self._InputPath
|
|
1300
|
+
|
|
1301
|
+
@InputPath.setter
|
|
1302
|
+
def InputPath(self, InputPath):
|
|
1303
|
+
self._InputPath = InputPath
|
|
1304
|
+
|
|
1305
|
+
@property
|
|
1306
|
+
def InputsTailFiles(self):
|
|
1307
|
+
r"""inputs.tail_files
|
|
1308
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1309
|
+
:rtype: bool
|
|
1310
|
+
"""
|
|
1311
|
+
return self._InputsTailFiles
|
|
1312
|
+
|
|
1313
|
+
@InputsTailFiles.setter
|
|
1314
|
+
def InputsTailFiles(self, InputsTailFiles):
|
|
1315
|
+
self._InputsTailFiles = InputsTailFiles
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
def _deserialize(self, params):
|
|
1319
|
+
self._TargetName = params.get("TargetName")
|
|
1320
|
+
if params.get("Namespaces") is not None:
|
|
1321
|
+
self._Namespaces = Namespaces()
|
|
1322
|
+
self._Namespaces._deserialize(params.get("Namespaces"))
|
|
1323
|
+
if params.get("PodLabels") is not None:
|
|
1324
|
+
self._PodLabels = []
|
|
1325
|
+
for item in params.get("PodLabels"):
|
|
1326
|
+
obj = PodLabel()
|
|
1327
|
+
obj._deserialize(item)
|
|
1328
|
+
self._PodLabels.append(obj)
|
|
1329
|
+
self._ContainerName = params.get("ContainerName")
|
|
1330
|
+
self._IndexPrefix = params.get("IndexPrefix")
|
|
1331
|
+
self._LogFilters = params.get("LogFilters")
|
|
1332
|
+
self._ConfigContent = params.get("ConfigContent")
|
|
1333
|
+
self._KafkaTopic = params.get("KafkaTopic")
|
|
1334
|
+
self._IndexAlias = params.get("IndexAlias")
|
|
1335
|
+
self._InputType = params.get("InputType")
|
|
1336
|
+
self._InputPath = params.get("InputPath")
|
|
1337
|
+
self._InputsTailFiles = params.get("InputsTailFiles")
|
|
1338
|
+
memeber_set = set(params.keys())
|
|
1339
|
+
for name, value in vars(self).items():
|
|
1340
|
+
property_name = name[1:]
|
|
1341
|
+
if property_name in memeber_set:
|
|
1342
|
+
memeber_set.remove(property_name)
|
|
1343
|
+
if len(memeber_set) > 0:
|
|
1344
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
821
1348
|
class CommonIndexInfo(AbstractModel):
|
|
822
1349
|
r"""普通索引信息列表
|
|
823
1350
|
|
|
@@ -1626,6 +2153,237 @@ class CreateClusterSnapshotResponse(AbstractModel):
|
|
|
1626
2153
|
self._RequestId = params.get("RequestId")
|
|
1627
2154
|
|
|
1628
2155
|
|
|
2156
|
+
class CreateCollectorRequest(AbstractModel):
|
|
2157
|
+
r"""CreateCollector请求参数结构体
|
|
2158
|
+
|
|
2159
|
+
"""
|
|
2160
|
+
|
|
2161
|
+
def __init__(self):
|
|
2162
|
+
r"""
|
|
2163
|
+
:param _CollectorName: 采集器名称(1-50 个英文、汉字、数字、连接线-或下划线_)
|
|
2164
|
+
:type CollectorName: str
|
|
2165
|
+
:param _CollectorVersion: 采集器版本(支持"6.8.15"、"7.10.2")
|
|
2166
|
+
:type CollectorVersion: str
|
|
2167
|
+
:param _CollectorType: 采集器类型(支持filebeat、metricbeat、heartbeat、auditbeat、packetbeat)
|
|
2168
|
+
:type CollectorType: str
|
|
2169
|
+
:param _OutputInstance: 采集器输出的ES实例信息
|
|
2170
|
+
:type OutputInstance: :class:`tencentcloud.es.v20180416.models.CollectorOutputInstance`
|
|
2171
|
+
:param _CollectorConfigs: 采集器配置
|
|
2172
|
+
:type CollectorConfigs: list of CollectorConfigInfo
|
|
2173
|
+
:param _CVMInstanceIds: 采集器下发的CVM实例ID列表
|
|
2174
|
+
:type CVMInstanceIds: list of str
|
|
2175
|
+
:param _TargetType: 采集目标类型,CVM或者TKE
|
|
2176
|
+
:type TargetType: str
|
|
2177
|
+
:param _ContainerClusterId: 容器集群ID,采集目标为TKE时必填
|
|
2178
|
+
:type ContainerClusterId: str
|
|
2179
|
+
:param _CollectorTargets: 采集器配置,采集目标为TKE时必填
|
|
2180
|
+
:type CollectorTargets: list of CollectorTarget
|
|
2181
|
+
:param _TagList: 标签信息
|
|
2182
|
+
:type TagList: list of TagInfo
|
|
2183
|
+
"""
|
|
2184
|
+
self._CollectorName = None
|
|
2185
|
+
self._CollectorVersion = None
|
|
2186
|
+
self._CollectorType = None
|
|
2187
|
+
self._OutputInstance = None
|
|
2188
|
+
self._CollectorConfigs = None
|
|
2189
|
+
self._CVMInstanceIds = None
|
|
2190
|
+
self._TargetType = None
|
|
2191
|
+
self._ContainerClusterId = None
|
|
2192
|
+
self._CollectorTargets = None
|
|
2193
|
+
self._TagList = None
|
|
2194
|
+
|
|
2195
|
+
@property
|
|
2196
|
+
def CollectorName(self):
|
|
2197
|
+
r"""采集器名称(1-50 个英文、汉字、数字、连接线-或下划线_)
|
|
2198
|
+
:rtype: str
|
|
2199
|
+
"""
|
|
2200
|
+
return self._CollectorName
|
|
2201
|
+
|
|
2202
|
+
@CollectorName.setter
|
|
2203
|
+
def CollectorName(self, CollectorName):
|
|
2204
|
+
self._CollectorName = CollectorName
|
|
2205
|
+
|
|
2206
|
+
@property
|
|
2207
|
+
def CollectorVersion(self):
|
|
2208
|
+
r"""采集器版本(支持"6.8.15"、"7.10.2")
|
|
2209
|
+
:rtype: str
|
|
2210
|
+
"""
|
|
2211
|
+
return self._CollectorVersion
|
|
2212
|
+
|
|
2213
|
+
@CollectorVersion.setter
|
|
2214
|
+
def CollectorVersion(self, CollectorVersion):
|
|
2215
|
+
self._CollectorVersion = CollectorVersion
|
|
2216
|
+
|
|
2217
|
+
@property
|
|
2218
|
+
def CollectorType(self):
|
|
2219
|
+
r"""采集器类型(支持filebeat、metricbeat、heartbeat、auditbeat、packetbeat)
|
|
2220
|
+
:rtype: str
|
|
2221
|
+
"""
|
|
2222
|
+
return self._CollectorType
|
|
2223
|
+
|
|
2224
|
+
@CollectorType.setter
|
|
2225
|
+
def CollectorType(self, CollectorType):
|
|
2226
|
+
self._CollectorType = CollectorType
|
|
2227
|
+
|
|
2228
|
+
@property
|
|
2229
|
+
def OutputInstance(self):
|
|
2230
|
+
r"""采集器输出的ES实例信息
|
|
2231
|
+
:rtype: :class:`tencentcloud.es.v20180416.models.CollectorOutputInstance`
|
|
2232
|
+
"""
|
|
2233
|
+
return self._OutputInstance
|
|
2234
|
+
|
|
2235
|
+
@OutputInstance.setter
|
|
2236
|
+
def OutputInstance(self, OutputInstance):
|
|
2237
|
+
self._OutputInstance = OutputInstance
|
|
2238
|
+
|
|
2239
|
+
@property
|
|
2240
|
+
def CollectorConfigs(self):
|
|
2241
|
+
r"""采集器配置
|
|
2242
|
+
:rtype: list of CollectorConfigInfo
|
|
2243
|
+
"""
|
|
2244
|
+
return self._CollectorConfigs
|
|
2245
|
+
|
|
2246
|
+
@CollectorConfigs.setter
|
|
2247
|
+
def CollectorConfigs(self, CollectorConfigs):
|
|
2248
|
+
self._CollectorConfigs = CollectorConfigs
|
|
2249
|
+
|
|
2250
|
+
@property
|
|
2251
|
+
def CVMInstanceIds(self):
|
|
2252
|
+
r"""采集器下发的CVM实例ID列表
|
|
2253
|
+
:rtype: list of str
|
|
2254
|
+
"""
|
|
2255
|
+
return self._CVMInstanceIds
|
|
2256
|
+
|
|
2257
|
+
@CVMInstanceIds.setter
|
|
2258
|
+
def CVMInstanceIds(self, CVMInstanceIds):
|
|
2259
|
+
self._CVMInstanceIds = CVMInstanceIds
|
|
2260
|
+
|
|
2261
|
+
@property
|
|
2262
|
+
def TargetType(self):
|
|
2263
|
+
r"""采集目标类型,CVM或者TKE
|
|
2264
|
+
:rtype: str
|
|
2265
|
+
"""
|
|
2266
|
+
return self._TargetType
|
|
2267
|
+
|
|
2268
|
+
@TargetType.setter
|
|
2269
|
+
def TargetType(self, TargetType):
|
|
2270
|
+
self._TargetType = TargetType
|
|
2271
|
+
|
|
2272
|
+
@property
|
|
2273
|
+
def ContainerClusterId(self):
|
|
2274
|
+
r"""容器集群ID,采集目标为TKE时必填
|
|
2275
|
+
:rtype: str
|
|
2276
|
+
"""
|
|
2277
|
+
return self._ContainerClusterId
|
|
2278
|
+
|
|
2279
|
+
@ContainerClusterId.setter
|
|
2280
|
+
def ContainerClusterId(self, ContainerClusterId):
|
|
2281
|
+
self._ContainerClusterId = ContainerClusterId
|
|
2282
|
+
|
|
2283
|
+
@property
|
|
2284
|
+
def CollectorTargets(self):
|
|
2285
|
+
r"""采集器配置,采集目标为TKE时必填
|
|
2286
|
+
:rtype: list of CollectorTarget
|
|
2287
|
+
"""
|
|
2288
|
+
return self._CollectorTargets
|
|
2289
|
+
|
|
2290
|
+
@CollectorTargets.setter
|
|
2291
|
+
def CollectorTargets(self, CollectorTargets):
|
|
2292
|
+
self._CollectorTargets = CollectorTargets
|
|
2293
|
+
|
|
2294
|
+
@property
|
|
2295
|
+
def TagList(self):
|
|
2296
|
+
r"""标签信息
|
|
2297
|
+
:rtype: list of TagInfo
|
|
2298
|
+
"""
|
|
2299
|
+
return self._TagList
|
|
2300
|
+
|
|
2301
|
+
@TagList.setter
|
|
2302
|
+
def TagList(self, TagList):
|
|
2303
|
+
self._TagList = TagList
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
def _deserialize(self, params):
|
|
2307
|
+
self._CollectorName = params.get("CollectorName")
|
|
2308
|
+
self._CollectorVersion = params.get("CollectorVersion")
|
|
2309
|
+
self._CollectorType = params.get("CollectorType")
|
|
2310
|
+
if params.get("OutputInstance") is not None:
|
|
2311
|
+
self._OutputInstance = CollectorOutputInstance()
|
|
2312
|
+
self._OutputInstance._deserialize(params.get("OutputInstance"))
|
|
2313
|
+
if params.get("CollectorConfigs") is not None:
|
|
2314
|
+
self._CollectorConfigs = []
|
|
2315
|
+
for item in params.get("CollectorConfigs"):
|
|
2316
|
+
obj = CollectorConfigInfo()
|
|
2317
|
+
obj._deserialize(item)
|
|
2318
|
+
self._CollectorConfigs.append(obj)
|
|
2319
|
+
self._CVMInstanceIds = params.get("CVMInstanceIds")
|
|
2320
|
+
self._TargetType = params.get("TargetType")
|
|
2321
|
+
self._ContainerClusterId = params.get("ContainerClusterId")
|
|
2322
|
+
if params.get("CollectorTargets") is not None:
|
|
2323
|
+
self._CollectorTargets = []
|
|
2324
|
+
for item in params.get("CollectorTargets"):
|
|
2325
|
+
obj = CollectorTarget()
|
|
2326
|
+
obj._deserialize(item)
|
|
2327
|
+
self._CollectorTargets.append(obj)
|
|
2328
|
+
if params.get("TagList") is not None:
|
|
2329
|
+
self._TagList = []
|
|
2330
|
+
for item in params.get("TagList"):
|
|
2331
|
+
obj = TagInfo()
|
|
2332
|
+
obj._deserialize(item)
|
|
2333
|
+
self._TagList.append(obj)
|
|
2334
|
+
memeber_set = set(params.keys())
|
|
2335
|
+
for name, value in vars(self).items():
|
|
2336
|
+
property_name = name[1:]
|
|
2337
|
+
if property_name in memeber_set:
|
|
2338
|
+
memeber_set.remove(property_name)
|
|
2339
|
+
if len(memeber_set) > 0:
|
|
2340
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
class CreateCollectorResponse(AbstractModel):
|
|
2345
|
+
r"""CreateCollector返回参数结构体
|
|
2346
|
+
|
|
2347
|
+
"""
|
|
2348
|
+
|
|
2349
|
+
def __init__(self):
|
|
2350
|
+
r"""
|
|
2351
|
+
:param _CollectorId: 采集器ID
|
|
2352
|
+
:type CollectorId: str
|
|
2353
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2354
|
+
:type RequestId: str
|
|
2355
|
+
"""
|
|
2356
|
+
self._CollectorId = None
|
|
2357
|
+
self._RequestId = None
|
|
2358
|
+
|
|
2359
|
+
@property
|
|
2360
|
+
def CollectorId(self):
|
|
2361
|
+
r"""采集器ID
|
|
2362
|
+
:rtype: str
|
|
2363
|
+
"""
|
|
2364
|
+
return self._CollectorId
|
|
2365
|
+
|
|
2366
|
+
@CollectorId.setter
|
|
2367
|
+
def CollectorId(self, CollectorId):
|
|
2368
|
+
self._CollectorId = CollectorId
|
|
2369
|
+
|
|
2370
|
+
@property
|
|
2371
|
+
def RequestId(self):
|
|
2372
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2373
|
+
:rtype: str
|
|
2374
|
+
"""
|
|
2375
|
+
return self._RequestId
|
|
2376
|
+
|
|
2377
|
+
@RequestId.setter
|
|
2378
|
+
def RequestId(self, RequestId):
|
|
2379
|
+
self._RequestId = RequestId
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
def _deserialize(self, params):
|
|
2383
|
+
self._CollectorId = params.get("CollectorId")
|
|
2384
|
+
self._RequestId = params.get("RequestId")
|
|
2385
|
+
|
|
2386
|
+
|
|
1629
2387
|
class CreateCosMigrateToServerlessInstanceRequest(AbstractModel):
|
|
1630
2388
|
r"""CreateCosMigrateToServerlessInstance请求参数结构体
|
|
1631
2389
|
|
|
@@ -16057,6 +16815,57 @@ class ModifyEsVipSecurityGroupResponse(AbstractModel):
|
|
|
16057
16815
|
self._RequestId = params.get("RequestId")
|
|
16058
16816
|
|
|
16059
16817
|
|
|
16818
|
+
class Namespaces(AbstractModel):
|
|
16819
|
+
r"""TKE命名空间
|
|
16820
|
+
|
|
16821
|
+
"""
|
|
16822
|
+
|
|
16823
|
+
def __init__(self):
|
|
16824
|
+
r"""
|
|
16825
|
+
:param _Include: 包含的命名空间的列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
16826
|
+
:type Include: list of str
|
|
16827
|
+
:param _Exclude: 不包含的命名空间列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
16828
|
+
:type Exclude: list of str
|
|
16829
|
+
"""
|
|
16830
|
+
self._Include = None
|
|
16831
|
+
self._Exclude = None
|
|
16832
|
+
|
|
16833
|
+
@property
|
|
16834
|
+
def Include(self):
|
|
16835
|
+
r"""包含的命名空间的列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
16836
|
+
:rtype: list of str
|
|
16837
|
+
"""
|
|
16838
|
+
return self._Include
|
|
16839
|
+
|
|
16840
|
+
@Include.setter
|
|
16841
|
+
def Include(self, Include):
|
|
16842
|
+
self._Include = Include
|
|
16843
|
+
|
|
16844
|
+
@property
|
|
16845
|
+
def Exclude(self):
|
|
16846
|
+
r"""不包含的命名空间列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
|
|
16847
|
+
:rtype: list of str
|
|
16848
|
+
"""
|
|
16849
|
+
return self._Exclude
|
|
16850
|
+
|
|
16851
|
+
@Exclude.setter
|
|
16852
|
+
def Exclude(self, Exclude):
|
|
16853
|
+
self._Exclude = Exclude
|
|
16854
|
+
|
|
16855
|
+
|
|
16856
|
+
def _deserialize(self, params):
|
|
16857
|
+
self._Include = params.get("Include")
|
|
16858
|
+
self._Exclude = params.get("Exclude")
|
|
16859
|
+
memeber_set = set(params.keys())
|
|
16860
|
+
for name, value in vars(self).items():
|
|
16861
|
+
property_name = name[1:]
|
|
16862
|
+
if property_name in memeber_set:
|
|
16863
|
+
memeber_set.remove(property_name)
|
|
16864
|
+
if len(memeber_set) > 0:
|
|
16865
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16866
|
+
|
|
16867
|
+
|
|
16868
|
+
|
|
16060
16869
|
class NodeInfo(AbstractModel):
|
|
16061
16870
|
r"""集群中一种节点类型(如热数据节点,冷数据节点,专用主节点等)的规格描述信息,包括节点类型,节点个数,节点规格,磁盘类型,磁盘大小等, Type不指定时默认为热数据节点;如果节点为master节点,则DiskType和DiskSize参数会被忽略(主节点无数据盘)
|
|
16062
16871
|
|
|
@@ -17267,6 +18076,57 @@ class OutboundPublicAcl(AbstractModel):
|
|
|
17267
18076
|
|
|
17268
18077
|
|
|
17269
18078
|
|
|
18079
|
+
class PodLabel(AbstractModel):
|
|
18080
|
+
r"""Pod标签
|
|
18081
|
+
|
|
18082
|
+
"""
|
|
18083
|
+
|
|
18084
|
+
def __init__(self):
|
|
18085
|
+
r"""
|
|
18086
|
+
:param _LabelKey: 标签键,支持大小写字母、数字、以及-_./,最多支持63个字符
|
|
18087
|
+
:type LabelKey: str
|
|
18088
|
+
:param _LabelValue: 标签值,支持大小写字母、数字、以及-_./,最多支持63个字符
|
|
18089
|
+
:type LabelValue: str
|
|
18090
|
+
"""
|
|
18091
|
+
self._LabelKey = None
|
|
18092
|
+
self._LabelValue = None
|
|
18093
|
+
|
|
18094
|
+
@property
|
|
18095
|
+
def LabelKey(self):
|
|
18096
|
+
r"""标签键,支持大小写字母、数字、以及-_./,最多支持63个字符
|
|
18097
|
+
:rtype: str
|
|
18098
|
+
"""
|
|
18099
|
+
return self._LabelKey
|
|
18100
|
+
|
|
18101
|
+
@LabelKey.setter
|
|
18102
|
+
def LabelKey(self, LabelKey):
|
|
18103
|
+
self._LabelKey = LabelKey
|
|
18104
|
+
|
|
18105
|
+
@property
|
|
18106
|
+
def LabelValue(self):
|
|
18107
|
+
r"""标签值,支持大小写字母、数字、以及-_./,最多支持63个字符
|
|
18108
|
+
:rtype: str
|
|
18109
|
+
"""
|
|
18110
|
+
return self._LabelValue
|
|
18111
|
+
|
|
18112
|
+
@LabelValue.setter
|
|
18113
|
+
def LabelValue(self, LabelValue):
|
|
18114
|
+
self._LabelValue = LabelValue
|
|
18115
|
+
|
|
18116
|
+
|
|
18117
|
+
def _deserialize(self, params):
|
|
18118
|
+
self._LabelKey = params.get("LabelKey")
|
|
18119
|
+
self._LabelValue = params.get("LabelValue")
|
|
18120
|
+
memeber_set = set(params.keys())
|
|
18121
|
+
for name, value in vars(self).items():
|
|
18122
|
+
property_name = name[1:]
|
|
18123
|
+
if property_name in memeber_set:
|
|
18124
|
+
memeber_set.remove(property_name)
|
|
18125
|
+
if len(memeber_set) > 0:
|
|
18126
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18127
|
+
|
|
18128
|
+
|
|
18129
|
+
|
|
17270
18130
|
class ProcessDetail(AbstractModel):
|
|
17271
18131
|
r"""任务进度详情
|
|
17272
18132
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-es
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.40
|
|
4
4
|
Summary: Tencent Cloud Es SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.40
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.40
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.31
|
|
File without changes
|
|
File without changes
|
{tencentcloud_sdk_python_es-3.1.31 → tencentcloud_sdk_python_es-3.1.40}/tencentcloud/es/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|