def ListAliases(self, request): """返回一个函数下的全部别名,可以根据特定函数版本过滤。 :param request: Request instance for ListAliases. :type request: :class:`tencentcloud.scf.v20180416.models.ListAliasesRequest` :rtype: :class:`tencentcloud.scf.v20180416.models.ListAliasesResponse` """ try: params = request._serialize() body = self.call("ListAliases", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ListAliasesResponse() 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 ListAliases(self, request): """This API is used to return the list of all aliases under a function. You can filter them by the specific function version. :param request: Request instance for ListAliases. :type request: :class:`tencentcloud.scf.v20180416.models.ListAliasesRequest` :rtype: :class:`tencentcloud.scf.v20180416.models.ListAliasesResponse` """ try: params = request._serialize() body = self.call("ListAliases", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ListAliasesResponse() 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)