def DescribeClusterInstances(self, request): """查询集群下节点实例信息 :param request: 调用DescribeClusterInstances所需参数的结构体。 :type request: :class:`tencentcloud.tke.v20180525.models.DescribeClusterInstancesRequest` :rtype: :class:`tencentcloud.tke.v20180525.models.DescribeClusterInstancesResponse` """ try: params = request._serialize() body = self.call("DescribeClusterInstances", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeClusterInstancesResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeClusterInstances(self, request): """This API is used to query information of one or more instances in a cluster. :param request: Request instance for DescribeClusterInstances. :type request: :class:`tencentcloud.tke.v20180525.models.DescribeClusterInstancesRequest` :rtype: :class:`tencentcloud.tke.v20180525.models.DescribeClusterInstancesResponse` """ try: params = request._serialize() body = self.call("DescribeClusterInstances", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeClusterInstancesResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)