def ListFunctions(self, request): """该接口根据传入的查询参数返回相关函数信息。 :param request: Request instance for ListFunctions. :type request: :class:`tencentcloud.scf.v20180416.models.ListFunctionsRequest` :rtype: :class:`tencentcloud.scf.v20180416.models.ListFunctionsResponse` """ try: params = request._serialize() body = self.call("ListFunctions", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ListFunctionsResponse() 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 ListFunctions(self, request): """This API is used to return relevant function information based on the input query parameters. :param request: Request instance for ListFunctions. :type request: :class:`tencentcloud.scf.v20180416.models.ListFunctionsRequest` :rtype: :class:`tencentcloud.scf.v20180416.models.ListFunctionsResponse` """ try: params = request._serialize() body = self.call("ListFunctions", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ListFunctionsResponse() 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)