All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient Maven / Gradle / Ivy

package com.huaweicloud.sdk.functiongraph.v2;

import com.huaweicloud.sdk.core.ClientBuilder;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.invoker.SyncInvoker;
import com.huaweicloud.sdk.functiongraph.v2.model.*;

public class FunctionGraphClient {

    protected HcClient hcClient;

    public FunctionGraphClient(HcClient hcClient) {
        this.hcClient = hcClient;
    }

    public static ClientBuilder newBuilder() {
        return new ClientBuilder<>(FunctionGraphClient::new);
    }

    /** 异步执行函数。 异步执行函数。
     *
     * @param AsyncInvokeFunctionRequest 请求对象
     * @return AsyncInvokeFunctionResponse */
    public AsyncInvokeFunctionResponse asyncInvokeFunction(AsyncInvokeFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.asyncInvokeFunction);
    }

    /** 异步执行函数。 异步执行函数。
     *
     * @param AsyncInvokeFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker asyncInvokeFunctionInvoker(
        AsyncInvokeFunctionRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.asyncInvokeFunction, hcClient);
    }

    /** 函数异步执行并返回预留实例ID。 函数异步执行并返回预留实例ID用于场景指客户端请求执行比较费时任务,不需要同步等待执行完成返回结果,该方法提前返回任务执行对应的预留实例ID, 如果预留实例有异常,
     * 可以通过该实例ID把对应实例删除(该接口主要针对白名单用户)。
     *
     * @param AsyncInvokeReservedFunctionRequest 请求对象
     * @return AsyncInvokeReservedFunctionResponse */
    public AsyncInvokeReservedFunctionResponse asyncInvokeReservedFunction(AsyncInvokeReservedFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.asyncInvokeReservedFunction);
    }

    /** 函数异步执行并返回预留实例ID。 函数异步执行并返回预留实例ID用于场景指客户端请求执行比较费时任务,不需要同步等待执行完成返回结果,该方法提前返回任务执行对应的预留实例ID, 如果预留实例有异常,
     * 可以通过该实例ID把对应实例删除(该接口主要针对白名单用户)。
     *
     * @param AsyncInvokeReservedFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker asyncInvokeReservedFunctionInvoker(
        AsyncInvokeReservedFunctionRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.asyncInvokeReservedFunction, hcClient);
    }

    /** 创建依赖包 创建依赖包。
     *
     * @param CreateDependencyRequest 请求对象
     * @return CreateDependencyResponse */
    public CreateDependencyResponse createDependency(CreateDependencyRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createDependency);
    }

    /** 创建依赖包 创建依赖包。
     *
     * @param CreateDependencyRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createDependencyInvoker(
        CreateDependencyRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.createDependency, hcClient);
    }

    /** 创建测试事件 创建测试事件。
     *
     * @param CreateEventRequest 请求对象
     * @return CreateEventResponse */
    public CreateEventResponse createEvent(CreateEventRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createEvent);
    }

    /** 创建测试事件 创建测试事件。
     *
     * @param CreateEventRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createEventInvoker(CreateEventRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.createEvent,
            hcClient);
    }

    /** 创建函数。 创建指定的函数。
     *
     * @param CreateFunctionRequest 请求对象
     * @return CreateFunctionResponse */
    public CreateFunctionResponse createFunction(CreateFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createFunction);
    }

    /** 创建函数。 创建指定的函数。
     *
     * @param CreateFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createFunctionInvoker(
        CreateFunctionRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.createFunction,
            hcClient);
    }

    /** 发布函数版本。 发布函数版本。
     *
     * @param CreateFunctionVersionRequest 请求对象
     * @return CreateFunctionVersionResponse */
    public CreateFunctionVersionResponse createFunctionVersion(CreateFunctionVersionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createFunctionVersion);
    }

    /** 发布函数版本。 发布函数版本。
     *
     * @param CreateFunctionVersionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createFunctionVersionInvoker(
        CreateFunctionVersionRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.createFunctionVersion, hcClient);
    }

    /** 创建函数版本别名。 创建函数灰度版本别名。
     *
     * @param CreateVersionAliasRequest 请求对象
     * @return CreateVersionAliasResponse */
    public CreateVersionAliasResponse createVersionAlias(CreateVersionAliasRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createVersionAlias);
    }

    /** 创建函数版本别名。 创建函数灰度版本别名。
     *
     * @param CreateVersionAliasRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createVersionAliasInvoker(
        CreateVersionAliasRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.createVersionAlias, hcClient);
    }

    /** 删除依赖包 删除指定的依赖包。
     *
     * @param DeleteDependencyRequest 请求对象
     * @return DeleteDependencyResponse */
    public DeleteDependencyResponse deleteDependency(DeleteDependencyRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteDependency);
    }

    /** 删除依赖包 删除指定的依赖包。
     *
     * @param DeleteDependencyRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteDependencyInvoker(
        DeleteDependencyRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.deleteDependency, hcClient);
    }

    /** 删除测试事件 删除测试事件。
     *
     * @param DeleteEventRequest 请求对象
     * @return DeleteEventResponse */
    public DeleteEventResponse deleteEvent(DeleteEventRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteEvent);
    }

    /** 删除测试事件 删除测试事件。
     *
     * @param DeleteEventRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteEventInvoker(DeleteEventRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.deleteEvent,
            hcClient);
    }

    /** 删除函数/版本。 删除指定的函数或者特定的版本(不允许删除latest版本)。 如果URN中包含函数版本或者别名,则删除特定的函数版本或者别名指向的版本以及该版本关联的trigger。
     * 如果URN中不包含版本或者别名,则删除整个函数,包含所有版本以及别名,触发器。
     *
     * @param DeleteFunctionRequest 请求对象
     * @return DeleteFunctionResponse */
    public DeleteFunctionResponse deleteFunction(DeleteFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteFunction);
    }

    /** 删除函数/版本。 删除指定的函数或者特定的版本(不允许删除latest版本)。 如果URN中包含函数版本或者别名,则删除特定的函数版本或者别名指向的版本以及该版本关联的trigger。
     * 如果URN中不包含版本或者别名,则删除整个函数,包含所有版本以及别名,触发器。
     *
     * @param DeleteFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteFunctionInvoker(
        DeleteFunctionRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.deleteFunction,
            hcClient);
    }

    /** 删除函数异步配置信息。 删除函数异步配置信息。
     *
     * @param DeleteFunctionAsyncInvokeConfigRequest 请求对象
     * @return DeleteFunctionAsyncInvokeConfigResponse */
    public DeleteFunctionAsyncInvokeConfigResponse deleteFunctionAsyncInvokeConfig(
        DeleteFunctionAsyncInvokeConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteFunctionAsyncInvokeConfig);
    }

    /** 删除函数异步配置信息。 删除函数异步配置信息。
     *
     * @param DeleteFunctionAsyncInvokeConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteFunctionAsyncInvokeConfigInvoker(
        DeleteFunctionAsyncInvokeConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.deleteFunctionAsyncInvokeConfig, hcClient);
    }

    /** 删除函数版本别名。 删除函数版本别名。
     *
     * @param DeleteVersionAliasRequest 请求对象
     * @return DeleteVersionAliasResponse */
    public DeleteVersionAliasResponse deleteVersionAlias(DeleteVersionAliasRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteVersionAlias);
    }

    /** 删除函数版本别名。 删除函数版本别名。
     *
     * @param DeleteVersionAliasRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteVersionAliasInvoker(
        DeleteVersionAliasRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.deleteVersionAlias, hcClient);
    }

    /** 开通lts日志上报功能。 开通lts日志上报功能。
     *
     * @param EnableLtsLogsRequest 请求对象
     * @return EnableLtsLogsResponse */
    public EnableLtsLogsResponse enableLtsLogs(EnableLtsLogsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.enableLtsLogs);
    }

    /** 开通lts日志上报功能。 开通lts日志上报功能。
     *
     * @param EnableLtsLogsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker enableLtsLogsInvoker(EnableLtsLogsRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.enableLtsLogs,
            hcClient);
    }

    /** 导出函数。 导出函数。
     *
     * @param ExportFunctionRequest 请求对象
     * @return ExportFunctionResponse */
    public ExportFunctionResponse exportFunction(ExportFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.exportFunction);
    }

    /** 导出函数。 导出函数。
     *
     * @param ExportFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker exportFunctionInvoker(
        ExportFunctionRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.exportFunction,
            hcClient);
    }

    /** 导入函数。 导入函数。
     *
     * @param ImportFunctionRequest 请求对象
     * @return ImportFunctionResponse */
    public ImportFunctionResponse importFunction(ImportFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.importFunction);
    }

    /** 导入函数。 导入函数。
     *
     * @param ImportFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker importFunctionInvoker(
        ImportFunctionRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.importFunction,
            hcClient);
    }

    /** 同步执行函数。 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。
     *
     * @param InvokeFunctionRequest 请求对象
     * @return InvokeFunctionResponse */
    public InvokeFunctionResponse invokeFunction(InvokeFunctionRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.invokeFunction);
    }

    /** 同步执行函数。 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。
     *
     * @param InvokeFunctionRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker invokeFunctionInvoker(
        InvokeFunctionRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.invokeFunction,
            hcClient);
    }

    /** 获取依赖包列表 获取依赖包列表。
     *
     * @param ListDependenciesRequest 请求对象
     * @return ListDependenciesResponse */
    public ListDependenciesResponse listDependencies(ListDependenciesRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listDependencies);
    }

    /** 获取依赖包列表 获取依赖包列表。
     *
     * @param ListDependenciesRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listDependenciesInvoker(
        ListDependenciesRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listDependencies, hcClient);
    }

    /** 获取测试事件列表 获取指定函数的测试事件列表。
     *
     * @param ListEventsRequest 请求对象
     * @return ListEventsResponse */
    public ListEventsResponse listEvents(ListEventsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listEvents);
    }

    /** 获取测试事件列表 获取指定函数的测试事件列表。
     *
     * @param ListEventsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listEventsInvoker(ListEventsRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.listEvents, hcClient);
    }

    /** 获取函数异步调用请求列表 获取函数异步调用请求列表
     *
     * @param ListFunctionAsyncInvocationsRequest 请求对象
     * @return ListFunctionAsyncInvocationsResponse */
    public ListFunctionAsyncInvocationsResponse listFunctionAsyncInvocations(
        ListFunctionAsyncInvocationsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctionAsyncInvocations);
    }

    /** 获取函数异步调用请求列表 获取函数异步调用请求列表
     *
     * @param ListFunctionAsyncInvocationsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionAsyncInvocationsInvoker(
        ListFunctionAsyncInvocationsRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listFunctionAsyncInvocations, hcClient);
    }

    /** 获取函数异步配置列表 获取函数异步配置列表。
     *
     * @param ListFunctionAsyncInvokeConfigRequest 请求对象
     * @return ListFunctionAsyncInvokeConfigResponse */
    public ListFunctionAsyncInvokeConfigResponse listFunctionAsyncInvokeConfig(
        ListFunctionAsyncInvokeConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctionAsyncInvokeConfig);
    }

    /** 获取函数异步配置列表 获取函数异步配置列表。
     *
     * @param ListFunctionAsyncInvokeConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionAsyncInvokeConfigInvoker(
        ListFunctionAsyncInvokeConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listFunctionAsyncInvokeConfig, hcClient);
    }

    /** 获取指定时间段的函数运行指标 获取指定时间段的函数运行指标。
     *
     * @param ListFunctionStatisticsRequest 请求对象
     * @return ListFunctionStatisticsResponse */
    public ListFunctionStatisticsResponse listFunctionStatistics(ListFunctionStatisticsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctionStatistics);
    }

    /** 获取指定时间段的函数运行指标 获取指定时间段的函数运行指标。
     *
     * @param ListFunctionStatisticsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionStatisticsInvoker(
        ListFunctionStatisticsRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listFunctionStatistics, hcClient);
    }

    /** 获取指定函数的版本列表。 获取指定函数的版本列表。
     *
     * @param ListFunctionVersionsRequest 请求对象
     * @return ListFunctionVersionsResponse */
    public ListFunctionVersionsResponse listFunctionVersions(ListFunctionVersionsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctionVersions);
    }

    /** 获取指定函数的版本列表。 获取指定函数的版本列表。
     *
     * @param ListFunctionVersionsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionVersionsInvoker(
        ListFunctionVersionsRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listFunctionVersions, hcClient);
    }

    /** 获取函数列表 获取函数列表
     *
     * @param ListFunctionsRequest 请求对象
     * @return ListFunctionsResponse */
    public ListFunctionsResponse listFunctions(ListFunctionsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctions);
    }

    /** 获取函数列表 获取函数列表
     *
     * @param ListFunctionsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionsInvoker(ListFunctionsRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.listFunctions,
            hcClient);
    }

    /** 查询租户配额 查询租户配额
     *
     * @param ListQuotasRequest 请求对象
     * @return ListQuotasResponse */
    public ListQuotasResponse listQuotas(ListQuotasRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listQuotas);
    }

    /** 查询租户配额 查询租户配额
     *
     * @param ListQuotasRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listQuotasInvoker(ListQuotasRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.listQuotas, hcClient);
    }

    /** 租户函数统计信息 租户函数统计信息。 返回三类的统计信息,函数格式和大小使用情况包括配额和使用量,流量报告。 通过查询参数filter可以进行过滤,查询参数period可以指定返回的时间段。
     *
     * @param ListStatisticsRequest 请求对象
     * @return ListStatisticsResponse */
    public ListStatisticsResponse listStatistics(ListStatisticsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listStatistics);
    }

    /** 租户函数统计信息 租户函数统计信息。 返回三类的统计信息,函数格式和大小使用情况包括配额和使用量,流量报告。 通过查询参数filter可以进行过滤,查询参数period可以指定返回的时间段。
     *
     * @param ListStatisticsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listStatisticsInvoker(
        ListStatisticsRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.listStatistics,
            hcClient);
    }

    /** 获取指定函数所有版本别名列表。 获取函数版本别名列表。
     *
     * @param ListVersionAliasesRequest 请求对象
     * @return ListVersionAliasesResponse */
    public ListVersionAliasesResponse listVersionAliases(ListVersionAliasesRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listVersionAliases);
    }

    /** 获取指定函数所有版本别名列表。 获取函数版本别名列表。
     *
     * @param ListVersionAliasesRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listVersionAliasesInvoker(
        ListVersionAliasesRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listVersionAliases, hcClient);
    }

    /** 获取指定依赖包 获取指定依赖包。
     *
     * @param ShowDependencyRequest 请求对象
     * @return ShowDependencyResponse */
    public ShowDependencyResponse showDependency(ShowDependencyRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showDependency);
    }

    /** 获取指定依赖包 获取指定依赖包。
     *
     * @param ShowDependencyRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showDependencyInvoker(
        ShowDependencyRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.showDependency,
            hcClient);
    }

    /** 获取测试事件详细信息 获取测试事件详细信息。
     *
     * @param ShowEventRequest 请求对象
     * @return ShowEventResponse */
    public ShowEventResponse showEvent(ShowEventRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showEvent);
    }

    /** 获取测试事件详细信息 获取测试事件详细信息。
     *
     * @param ShowEventRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showEventInvoker(ShowEventRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.showEvent, hcClient);
    }

    /** 获取函数异步配置信息。 获取函数异步配置信息。
     *
     * @param ShowFunctionAsyncInvokeConfigRequest 请求对象
     * @return ShowFunctionAsyncInvokeConfigResponse */
    public ShowFunctionAsyncInvokeConfigResponse showFunctionAsyncInvokeConfig(
        ShowFunctionAsyncInvokeConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showFunctionAsyncInvokeConfig);
    }

    /** 获取函数异步配置信息。 获取函数异步配置信息。
     *
     * @param ShowFunctionAsyncInvokeConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showFunctionAsyncInvokeConfigInvoker(
        ShowFunctionAsyncInvokeConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showFunctionAsyncInvokeConfig, hcClient);
    }

    /** 获取指定函数代码。 获取指定函数的代码。
     *
     * @param ShowFunctionCodeRequest 请求对象
     * @return ShowFunctionCodeResponse */
    public ShowFunctionCodeResponse showFunctionCode(ShowFunctionCodeRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showFunctionCode);
    }

    /** 获取指定函数代码。 获取指定函数的代码。
     *
     * @param ShowFunctionCodeRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showFunctionCodeInvoker(
        ShowFunctionCodeRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showFunctionCode, hcClient);
    }

    /** 获取函数的metadata。 获取指定函数的metadata。
     *
     * @param ShowFunctionConfigRequest 请求对象
     * @return ShowFunctionConfigResponse */
    public ShowFunctionConfigResponse showFunctionConfig(ShowFunctionConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showFunctionConfig);
    }

    /** 获取函数的metadata。 获取指定函数的metadata。
     *
     * @param ShowFunctionConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showFunctionConfigInvoker(
        ShowFunctionConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showFunctionConfig, hcClient);
    }

    /** 获取指定函数的lts日志组日志流配置。 获取指定函数的lts日志组日志流配置。
     *
     * @param ShowLtsLogDetailsRequest 请求对象
     * @return ShowLtsLogDetailsResponse */
    public ShowLtsLogDetailsResponse showLtsLogDetails(ShowLtsLogDetailsRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showLtsLogDetails);
    }

    /** 获取指定函数的lts日志组日志流配置。 获取指定函数的lts日志组日志流配置。
     *
     * @param ShowLtsLogDetailsRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showLtsLogDetailsInvoker(
        ShowLtsLogDetailsRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showLtsLogDetails, hcClient);
    }

    /** 获取函数调用链配置 获取函数调用链配置
     *
     * @param ShowTracingRequest 请求对象
     * @return ShowTracingResponse */
    public ShowTracingResponse showTracing(ShowTracingRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showTracing);
    }

    /** 获取函数调用链配置 获取函数调用链配置
     *
     * @param ShowTracingRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showTracingInvoker(ShowTracingRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.showTracing,
            hcClient);
    }

    /** 获取函数版本的指定别名信息。 获取函数指定的版本别名信息。
     *
     * @param ShowVersionAliasRequest 请求对象
     * @return ShowVersionAliasResponse */
    public ShowVersionAliasResponse showVersionAlias(ShowVersionAliasRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showVersionAlias);
    }

    /** 获取函数版本的指定别名信息。 获取函数指定的版本别名信息。
     *
     * @param ShowVersionAliasRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showVersionAliasInvoker(
        ShowVersionAliasRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showVersionAlias, hcClient);
    }

    /** 更新依赖包指定依赖包 更新依赖包指定依赖包。
     *
     * @param UpdateDependencyRequest 请求对象
     * @return UpdateDependencyResponse */
    public UpdateDependencyResponse updateDependency(UpdateDependencyRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateDependency);
    }

    /** 更新依赖包指定依赖包 更新依赖包指定依赖包。
     *
     * @param UpdateDependencyRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateDependencyInvoker(
        UpdateDependencyRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateDependency, hcClient);
    }

    /** 更新测试事件 更新测试事件。
     *
     * @param UpdateEventRequest 请求对象
     * @return UpdateEventResponse */
    public UpdateEventResponse updateEvent(UpdateEventRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateEvent);
    }

    /** 更新测试事件 更新测试事件。
     *
     * @param UpdateEventRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateEventInvoker(UpdateEventRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.updateEvent,
            hcClient);
    }

    /** 设置函数异步配置信息。 设置函数异步配置信息。
     *
     * @param UpdateFunctionAsyncInvokeConfigRequest 请求对象
     * @return UpdateFunctionAsyncInvokeConfigResponse */
    public UpdateFunctionAsyncInvokeConfigResponse updateFunctionAsyncInvokeConfig(
        UpdateFunctionAsyncInvokeConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateFunctionAsyncInvokeConfig);
    }

    /** 设置函数异步配置信息。 设置函数异步配置信息。
     *
     * @param UpdateFunctionAsyncInvokeConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateFunctionAsyncInvokeConfigInvoker(
        UpdateFunctionAsyncInvokeConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateFunctionAsyncInvokeConfig, hcClient);
    }

    /** 修改函数代码。 修改指定的函数的代码。
     *
     * @param UpdateFunctionCodeRequest 请求对象
     * @return UpdateFunctionCodeResponse */
    public UpdateFunctionCodeResponse updateFunctionCode(UpdateFunctionCodeRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateFunctionCode);
    }

    /** 修改函数代码。 修改指定的函数的代码。
     *
     * @param UpdateFunctionCodeRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateFunctionCodeInvoker(
        UpdateFunctionCodeRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateFunctionCode, hcClient);
    }

    /** 修改函数的metadata信息。 修改指定的函数的metadata信息。
     *
     * @param UpdateFunctionConfigRequest 请求对象
     * @return UpdateFunctionConfigResponse */
    public UpdateFunctionConfigResponse updateFunctionConfig(UpdateFunctionConfigRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateFunctionConfig);
    }

    /** 修改函数的metadata信息。 修改指定的函数的metadata信息。
     *
     * @param UpdateFunctionConfigRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateFunctionConfigInvoker(
        UpdateFunctionConfigRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateFunctionConfig, hcClient);
    }

    /** 更新函数预留实例个数 为函数绑定预留实例
     *
     * @param UpdateFunctionReservedInstancesRequest 请求对象
     * @return UpdateFunctionReservedInstancesResponse */
    public UpdateFunctionReservedInstancesResponse updateFunctionReservedInstances(
        UpdateFunctionReservedInstancesRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateFunctionReservedInstances);
    }

    /** 更新函数预留实例个数 为函数绑定预留实例
     *
     * @param UpdateFunctionReservedInstancesRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateFunctionReservedInstancesInvoker(
        UpdateFunctionReservedInstancesRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateFunctionReservedInstances, hcClient);
    }

    /** 修改函数调用链配置 修改函数调用链配置,开通/修改传入aksk,关闭aksk传空
     *
     * @param UpdateTracingRequest 请求对象
     * @return UpdateTracingResponse */
    public UpdateTracingResponse updateTracing(UpdateTracingRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateTracing);
    }

    /** 修改函数调用链配置 修改函数调用链配置,开通/修改传入aksk,关闭aksk传空
     *
     * @param UpdateTracingRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateTracingInvoker(UpdateTracingRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.updateTracing,
            hcClient);
    }

    /** 修改函数版本别名信息。 修改函数版本别名信息。
     *
     * @param UpdateVersionAliasRequest 请求对象
     * @return UpdateVersionAliasResponse */
    public UpdateVersionAliasResponse updateVersionAlias(UpdateVersionAliasRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateVersionAlias);
    }

    /** 修改函数版本别名信息。 修改函数版本别名信息。
     *
     * @param UpdateVersionAliasRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateVersionAliasInvoker(
        UpdateVersionAliasRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.updateVersionAlias, hcClient);
    }

    /** 删除指定函数的所有触发器。 删除指定函数所有触发器设置。 在提供函数版本且非latest的情况下,删除对应函数版本的触发器。 在提供函数别名的情况下,删除对应函数别名的触发器。
     * 在不提供函数版本(也不提供别名)或版本为latest的情况下,删除该函数所有的触发器(包括所有版本和别名)。
     *
     * @param BatchDeleteFunctionTriggersRequest 请求对象
     * @return BatchDeleteFunctionTriggersResponse */
    public BatchDeleteFunctionTriggersResponse batchDeleteFunctionTriggers(BatchDeleteFunctionTriggersRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.batchDeleteFunctionTriggers);
    }

    /** 删除指定函数的所有触发器。 删除指定函数所有触发器设置。 在提供函数版本且非latest的情况下,删除对应函数版本的触发器。 在提供函数别名的情况下,删除对应函数别名的触发器。
     * 在不提供函数版本(也不提供别名)或版本为latest的情况下,删除该函数所有的触发器(包括所有版本和别名)。
     *
     * @param BatchDeleteFunctionTriggersRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker batchDeleteFunctionTriggersInvoker(
        BatchDeleteFunctionTriggersRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.batchDeleteFunctionTriggers, hcClient);
    }

    /** 创建触发器。 创建触发器。 - 可以创建的触发器类型包括TIMER、APIG、CTS、DDS、DMS、DIS、LTS、OBS、SMN、KAFKA。 -
     * DDS和KAFKA触发器创建时默认为DISABLED状态,其他触发器默认为ACTIVE状态。 - TIMER、DDS、DMS、KAFKA、LTS触发器支持禁用,其他触发器不支持。
     *
     * @param CreateFunctionTriggerRequest 请求对象
     * @return CreateFunctionTriggerResponse */
    public CreateFunctionTriggerResponse createFunctionTrigger(CreateFunctionTriggerRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.createFunctionTrigger);
    }

    /** 创建触发器。 创建触发器。 - 可以创建的触发器类型包括TIMER、APIG、CTS、DDS、DMS、DIS、LTS、OBS、SMN、KAFKA。 -
     * DDS和KAFKA触发器创建时默认为DISABLED状态,其他触发器默认为ACTIVE状态。 - TIMER、DDS、DMS、KAFKA、LTS触发器支持禁用,其他触发器不支持。
     *
     * @param CreateFunctionTriggerRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker createFunctionTriggerInvoker(
        CreateFunctionTriggerRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.createFunctionTrigger, hcClient);
    }

    /** 删除触发器。 删除触发器。
     *
     * @param DeleteFunctionTriggerRequest 请求对象
     * @return DeleteFunctionTriggerResponse */
    public DeleteFunctionTriggerResponse deleteFunctionTrigger(DeleteFunctionTriggerRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.deleteFunctionTrigger);
    }

    /** 删除触发器。 删除触发器。
     *
     * @param DeleteFunctionTriggerRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker deleteFunctionTriggerInvoker(
        DeleteFunctionTriggerRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.deleteFunctionTrigger, hcClient);
    }

    /** 获取指定函数的所有触发器。 获取指定函数的所有触发器设置。
     *
     * @param ListFunctionTriggersRequest 请求对象
     * @return ListFunctionTriggersResponse */
    public ListFunctionTriggersResponse listFunctionTriggers(ListFunctionTriggersRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.listFunctionTriggers);
    }

    /** 获取指定函数的所有触发器。 获取指定函数的所有触发器设置。
     *
     * @param ListFunctionTriggersRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker listFunctionTriggersInvoker(
        ListFunctionTriggersRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.listFunctionTriggers, hcClient);
    }

    /** 获取指定触发器的信息。 获取特定触发器的信息。
     *
     * @param ShowFunctionTriggerRequest 请求对象
     * @return ShowFunctionTriggerResponse */
    public ShowFunctionTriggerResponse showFunctionTrigger(ShowFunctionTriggerRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.showFunctionTrigger);
    }

    /** 获取指定触发器的信息。 获取特定触发器的信息。
     *
     * @param ShowFunctionTriggerRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker showFunctionTriggerInvoker(
        ShowFunctionTriggerRequest request) {
        return new SyncInvoker(request,
            FunctionGraphMeta.showFunctionTrigger, hcClient);
    }

    /** 更新触发器 更新触发器
     *
     * @param UpdateTriggerRequest 请求对象
     * @return UpdateTriggerResponse */
    public UpdateTriggerResponse updateTrigger(UpdateTriggerRequest request) {
        return hcClient.syncInvokeHttp(request, FunctionGraphMeta.updateTrigger);
    }

    /** 更新触发器 更新触发器
     *
     * @param UpdateTriggerRequest 请求对象
     * @return SyncInvoker */
    public SyncInvoker updateTriggerInvoker(UpdateTriggerRequest request) {
        return new SyncInvoker(request, FunctionGraphMeta.updateTrigger,
            hcClient);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy