
com.huaweicloud.sdk.functiongraph.v2.FunctionGraphAsyncClient 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.AsyncInvoker;
import com.huaweicloud.sdk.functiongraph.v2.model.*;
import java.util.concurrent.CompletableFuture;
public class FunctionGraphAsyncClient {
protected HcClient hcClient;
public FunctionGraphAsyncClient(HcClient hcClient) {
this.hcClient = hcClient;
}
public static ClientBuilder newBuilder() {
return new ClientBuilder<>(FunctionGraphAsyncClient::new);
}
/** 异步执行函数。 异步执行函数。
*
* @param AsyncInvokeFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture asyncInvokeFunctionAsync(AsyncInvokeFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.asyncInvokeFunction);
}
/** 异步执行函数。 异步执行函数。
*
* @param AsyncInvokeFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker asyncInvokeFunctionAsyncInvoker(
AsyncInvokeFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.asyncInvokeFunction, hcClient);
}
/** 函数异步执行并返回预留实例ID。 函数异步执行并返回预留实例ID用于场景指客户端请求执行比较费时任务,不需要同步等待执行完成返回结果,该方法提前返回任务执行对应的预留实例ID, 如果预留实例有异常,
* 可以通过该实例ID把对应实例删除(该接口主要针对白名单用户)。
*
* @param AsyncInvokeReservedFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture asyncInvokeReservedFunctionAsync(
AsyncInvokeReservedFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.asyncInvokeReservedFunction);
}
/** 函数异步执行并返回预留实例ID。 函数异步执行并返回预留实例ID用于场景指客户端请求执行比较费时任务,不需要同步等待执行完成返回结果,该方法提前返回任务执行对应的预留实例ID, 如果预留实例有异常,
* 可以通过该实例ID把对应实例删除(该接口主要针对白名单用户)。
*
* @param AsyncInvokeReservedFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker asyncInvokeReservedFunctionAsyncInvoker(
AsyncInvokeReservedFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.asyncInvokeReservedFunction, hcClient);
}
/** 创建依赖包 创建依赖包。
*
* @param CreateDependencyRequest 请求对象
* @return CompletableFuture */
public CompletableFuture createDependencyAsync(CreateDependencyRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.createDependency);
}
/** 创建依赖包 创建依赖包。
*
* @param CreateDependencyRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker createDependencyAsyncInvoker(
CreateDependencyRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.createDependency, hcClient);
}
/** 创建测试事件 创建测试事件。
*
* @param CreateEventRequest 请求对象
* @return CompletableFuture */
public CompletableFuture createEventAsync(CreateEventRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.createEvent);
}
/** 创建测试事件 创建测试事件。
*
* @param CreateEventRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker createEventAsyncInvoker(CreateEventRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.createEvent,
hcClient);
}
/** 创建函数。 创建指定的函数。
*
* @param CreateFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture createFunctionAsync(CreateFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.createFunction);
}
/** 创建函数。 创建指定的函数。
*
* @param CreateFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker createFunctionAsyncInvoker(
CreateFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.createFunction, hcClient);
}
/** 发布函数版本。 发布函数版本。
*
* @param CreateFunctionVersionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture createFunctionVersionAsync(
CreateFunctionVersionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.createFunctionVersion);
}
/** 发布函数版本。 发布函数版本。
*
* @param CreateFunctionVersionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker createFunctionVersionAsyncInvoker(
CreateFunctionVersionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.createFunctionVersion, hcClient);
}
/** 创建函数版本别名。 创建函数灰度版本别名。
*
* @param CreateVersionAliasRequest 请求对象
* @return CompletableFuture */
public CompletableFuture createVersionAliasAsync(CreateVersionAliasRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.createVersionAlias);
}
/** 创建函数版本别名。 创建函数灰度版本别名。
*
* @param CreateVersionAliasRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker createVersionAliasAsyncInvoker(
CreateVersionAliasRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.createVersionAlias, hcClient);
}
/** 删除依赖包 删除指定的依赖包。
*
* @param DeleteDependencyRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteDependencyAsync(DeleteDependencyRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteDependency);
}
/** 删除依赖包 删除指定的依赖包。
*
* @param DeleteDependencyRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteDependencyAsyncInvoker(
DeleteDependencyRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.deleteDependency, hcClient);
}
/** 删除测试事件 删除测试事件。
*
* @param DeleteEventRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteEventAsync(DeleteEventRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteEvent);
}
/** 删除测试事件 删除测试事件。
*
* @param DeleteEventRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteEventAsyncInvoker(DeleteEventRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.deleteEvent,
hcClient);
}
/** 删除函数/版本。 删除指定的函数或者特定的版本(不允许删除latest版本)。 如果URN中包含函数版本或者别名,则删除特定的函数版本或者别名指向的版本以及该版本关联的trigger。
* 如果URN中不包含版本或者别名,则删除整个函数,包含所有版本以及别名,触发器。
*
* @param DeleteFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteFunctionAsync(DeleteFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteFunction);
}
/** 删除函数/版本。 删除指定的函数或者特定的版本(不允许删除latest版本)。 如果URN中包含函数版本或者别名,则删除特定的函数版本或者别名指向的版本以及该版本关联的trigger。
* 如果URN中不包含版本或者别名,则删除整个函数,包含所有版本以及别名,触发器。
*
* @param DeleteFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteFunctionAsyncInvoker(
DeleteFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.deleteFunction, hcClient);
}
/** 删除函数异步配置信息。 删除函数异步配置信息。
*
* @param DeleteFunctionAsyncInvokeConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteFunctionAsyncInvokeConfigAsync(
DeleteFunctionAsyncInvokeConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteFunctionAsyncInvokeConfig);
}
/** 删除函数异步配置信息。 删除函数异步配置信息。
*
* @param DeleteFunctionAsyncInvokeConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteFunctionAsyncInvokeConfigAsyncInvoker(
DeleteFunctionAsyncInvokeConfigRequest request) {
return new AsyncInvoker(
request, FunctionGraphMeta.deleteFunctionAsyncInvokeConfig, hcClient);
}
/** 删除函数版本别名。 删除函数版本别名。
*
* @param DeleteVersionAliasRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteVersionAliasAsync(DeleteVersionAliasRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteVersionAlias);
}
/** 删除函数版本别名。 删除函数版本别名。
*
* @param DeleteVersionAliasRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteVersionAliasAsyncInvoker(
DeleteVersionAliasRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.deleteVersionAlias, hcClient);
}
/** 开通lts日志上报功能。 开通lts日志上报功能。
*
* @param EnableLtsLogsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture enableLtsLogsAsync(EnableLtsLogsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.enableLtsLogs);
}
/** 开通lts日志上报功能。 开通lts日志上报功能。
*
* @param EnableLtsLogsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker enableLtsLogsAsyncInvoker(
EnableLtsLogsRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.enableLtsLogs,
hcClient);
}
/** 导出函数。 导出函数。
*
* @param ExportFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture exportFunctionAsync(ExportFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.exportFunction);
}
/** 导出函数。 导出函数。
*
* @param ExportFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker exportFunctionAsyncInvoker(
ExportFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.exportFunction, hcClient);
}
/** 导入函数。 导入函数。
*
* @param ImportFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture importFunctionAsync(ImportFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.importFunction);
}
/** 导入函数。 导入函数。
*
* @param ImportFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker importFunctionAsyncInvoker(
ImportFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.importFunction, hcClient);
}
/** 同步执行函数。 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。
*
* @param InvokeFunctionRequest 请求对象
* @return CompletableFuture */
public CompletableFuture invokeFunctionAsync(InvokeFunctionRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.invokeFunction);
}
/** 同步执行函数。 同步调用指的是客户端请求需要明确等到响应结果,也就是说这样的请求必须得调用到用户的函数,并且等到调用完成才返回。
*
* @param InvokeFunctionRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker invokeFunctionAsyncInvoker(
InvokeFunctionRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.invokeFunction, hcClient);
}
/** 获取依赖包列表 获取依赖包列表。
*
* @param ListDependenciesRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listDependenciesAsync(ListDependenciesRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listDependencies);
}
/** 获取依赖包列表 获取依赖包列表。
*
* @param ListDependenciesRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listDependenciesAsyncInvoker(
ListDependenciesRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listDependencies, hcClient);
}
/** 获取测试事件列表 获取指定函数的测试事件列表。
*
* @param ListEventsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listEventsAsync(ListEventsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listEvents);
}
/** 获取测试事件列表 获取指定函数的测试事件列表。
*
* @param ListEventsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listEventsAsyncInvoker(ListEventsRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.listEvents, hcClient);
}
/** 获取函数异步调用请求列表 获取函数异步调用请求列表
*
* @param ListFunctionAsyncInvocationsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionAsyncInvocationsAsync(
ListFunctionAsyncInvocationsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctionAsyncInvocations);
}
/** 获取函数异步调用请求列表 获取函数异步调用请求列表
*
* @param ListFunctionAsyncInvocationsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionAsyncInvocationsAsyncInvoker(
ListFunctionAsyncInvocationsRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listFunctionAsyncInvocations, hcClient);
}
/** 获取函数异步配置列表 获取函数异步配置列表。
*
* @param ListFunctionAsyncInvokeConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionAsyncInvokeConfigAsync(
ListFunctionAsyncInvokeConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctionAsyncInvokeConfig);
}
/** 获取函数异步配置列表 获取函数异步配置列表。
*
* @param ListFunctionAsyncInvokeConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionAsyncInvokeConfigAsyncInvoker(
ListFunctionAsyncInvokeConfigRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listFunctionAsyncInvokeConfig, hcClient);
}
/** 获取指定时间段的函数运行指标 获取指定时间段的函数运行指标。
*
* @param ListFunctionStatisticsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionStatisticsAsync(
ListFunctionStatisticsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctionStatistics);
}
/** 获取指定时间段的函数运行指标 获取指定时间段的函数运行指标。
*
* @param ListFunctionStatisticsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionStatisticsAsyncInvoker(
ListFunctionStatisticsRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listFunctionStatistics, hcClient);
}
/** 获取指定函数的版本列表。 获取指定函数的版本列表。
*
* @param ListFunctionVersionsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionVersionsAsync(
ListFunctionVersionsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctionVersions);
}
/** 获取指定函数的版本列表。 获取指定函数的版本列表。
*
* @param ListFunctionVersionsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionVersionsAsyncInvoker(
ListFunctionVersionsRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listFunctionVersions, hcClient);
}
/** 获取函数列表 获取函数列表
*
* @param ListFunctionsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionsAsync(ListFunctionsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctions);
}
/** 获取函数列表 获取函数列表
*
* @param ListFunctionsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionsAsyncInvoker(
ListFunctionsRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.listFunctions,
hcClient);
}
/** 查询租户配额 查询租户配额
*
* @param ListQuotasRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listQuotasAsync(ListQuotasRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listQuotas);
}
/** 查询租户配额 查询租户配额
*
* @param ListQuotasRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listQuotasAsyncInvoker(ListQuotasRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.listQuotas, hcClient);
}
/** 租户函数统计信息 租户函数统计信息。 返回三类的统计信息,函数格式和大小使用情况包括配额和使用量,流量报告。 通过查询参数filter可以进行过滤,查询参数period可以指定返回的时间段。
*
* @param ListStatisticsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listStatisticsAsync(ListStatisticsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listStatistics);
}
/** 租户函数统计信息 租户函数统计信息。 返回三类的统计信息,函数格式和大小使用情况包括配额和使用量,流量报告。 通过查询参数filter可以进行过滤,查询参数period可以指定返回的时间段。
*
* @param ListStatisticsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listStatisticsAsyncInvoker(
ListStatisticsRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listStatistics, hcClient);
}
/** 获取指定函数所有版本别名列表。 获取函数版本别名列表。
*
* @param ListVersionAliasesRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listVersionAliasesAsync(ListVersionAliasesRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listVersionAliases);
}
/** 获取指定函数所有版本别名列表。 获取函数版本别名列表。
*
* @param ListVersionAliasesRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listVersionAliasesAsyncInvoker(
ListVersionAliasesRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listVersionAliases, hcClient);
}
/** 获取指定依赖包 获取指定依赖包。
*
* @param ShowDependencyRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showDependencyAsync(ShowDependencyRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showDependency);
}
/** 获取指定依赖包 获取指定依赖包。
*
* @param ShowDependencyRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showDependencyAsyncInvoker(
ShowDependencyRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showDependency, hcClient);
}
/** 获取测试事件详细信息 获取测试事件详细信息。
*
* @param ShowEventRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showEventAsync(ShowEventRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showEvent);
}
/** 获取测试事件详细信息 获取测试事件详细信息。
*
* @param ShowEventRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showEventAsyncInvoker(ShowEventRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.showEvent, hcClient);
}
/** 获取函数异步配置信息。 获取函数异步配置信息。
*
* @param ShowFunctionAsyncInvokeConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showFunctionAsyncInvokeConfigAsync(
ShowFunctionAsyncInvokeConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showFunctionAsyncInvokeConfig);
}
/** 获取函数异步配置信息。 获取函数异步配置信息。
*
* @param ShowFunctionAsyncInvokeConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showFunctionAsyncInvokeConfigAsyncInvoker(
ShowFunctionAsyncInvokeConfigRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showFunctionAsyncInvokeConfig, hcClient);
}
/** 获取指定函数代码。 获取指定函数的代码。
*
* @param ShowFunctionCodeRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showFunctionCodeAsync(ShowFunctionCodeRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showFunctionCode);
}
/** 获取指定函数代码。 获取指定函数的代码。
*
* @param ShowFunctionCodeRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showFunctionCodeAsyncInvoker(
ShowFunctionCodeRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showFunctionCode, hcClient);
}
/** 获取函数的metadata。 获取指定函数的metadata。
*
* @param ShowFunctionConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showFunctionConfigAsync(ShowFunctionConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showFunctionConfig);
}
/** 获取函数的metadata。 获取指定函数的metadata。
*
* @param ShowFunctionConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showFunctionConfigAsyncInvoker(
ShowFunctionConfigRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showFunctionConfig, hcClient);
}
/** 获取指定函数的lts日志组日志流配置。 获取指定函数的lts日志组日志流配置。
*
* @param ShowLtsLogDetailsRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showLtsLogDetailsAsync(ShowLtsLogDetailsRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showLtsLogDetails);
}
/** 获取指定函数的lts日志组日志流配置。 获取指定函数的lts日志组日志流配置。
*
* @param ShowLtsLogDetailsRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showLtsLogDetailsAsyncInvoker(
ShowLtsLogDetailsRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showLtsLogDetails, hcClient);
}
/** 获取函数调用链配置 获取函数调用链配置
*
* @param ShowTracingRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showTracingAsync(ShowTracingRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showTracing);
}
/** 获取函数调用链配置 获取函数调用链配置
*
* @param ShowTracingRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showTracingAsyncInvoker(ShowTracingRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.showTracing,
hcClient);
}
/** 获取函数版本的指定别名信息。 获取函数指定的版本别名信息。
*
* @param ShowVersionAliasRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showVersionAliasAsync(ShowVersionAliasRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showVersionAlias);
}
/** 获取函数版本的指定别名信息。 获取函数指定的版本别名信息。
*
* @param ShowVersionAliasRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showVersionAliasAsyncInvoker(
ShowVersionAliasRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showVersionAlias, hcClient);
}
/** 更新依赖包指定依赖包 更新依赖包指定依赖包。
*
* @param UpdateDependencyRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateDependencyAsync(UpdateDependencyRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateDependency);
}
/** 更新依赖包指定依赖包 更新依赖包指定依赖包。
*
* @param UpdateDependencyRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateDependencyAsyncInvoker(
UpdateDependencyRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.updateDependency, hcClient);
}
/** 更新测试事件 更新测试事件。
*
* @param UpdateEventRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateEventAsync(UpdateEventRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateEvent);
}
/** 更新测试事件 更新测试事件。
*
* @param UpdateEventRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateEventAsyncInvoker(UpdateEventRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.updateEvent,
hcClient);
}
/** 设置函数异步配置信息。 设置函数异步配置信息。
*
* @param UpdateFunctionAsyncInvokeConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateFunctionAsyncInvokeConfigAsync(
UpdateFunctionAsyncInvokeConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateFunctionAsyncInvokeConfig);
}
/** 设置函数异步配置信息。 设置函数异步配置信息。
*
* @param UpdateFunctionAsyncInvokeConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateFunctionAsyncInvokeConfigAsyncInvoker(
UpdateFunctionAsyncInvokeConfigRequest request) {
return new AsyncInvoker(
request, FunctionGraphMeta.updateFunctionAsyncInvokeConfig, hcClient);
}
/** 修改函数代码。 修改指定的函数的代码。
*
* @param UpdateFunctionCodeRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateFunctionCodeAsync(UpdateFunctionCodeRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateFunctionCode);
}
/** 修改函数代码。 修改指定的函数的代码。
*
* @param UpdateFunctionCodeRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateFunctionCodeAsyncInvoker(
UpdateFunctionCodeRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.updateFunctionCode, hcClient);
}
/** 修改函数的metadata信息。 修改指定的函数的metadata信息。
*
* @param UpdateFunctionConfigRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateFunctionConfigAsync(
UpdateFunctionConfigRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateFunctionConfig);
}
/** 修改函数的metadata信息。 修改指定的函数的metadata信息。
*
* @param UpdateFunctionConfigRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateFunctionConfigAsyncInvoker(
UpdateFunctionConfigRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.updateFunctionConfig, hcClient);
}
/** 更新函数预留实例个数 为函数绑定预留实例
*
* @param UpdateFunctionReservedInstancesRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateFunctionReservedInstancesAsync(
UpdateFunctionReservedInstancesRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateFunctionReservedInstances);
}
/** 更新函数预留实例个数 为函数绑定预留实例
*
* @param UpdateFunctionReservedInstancesRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateFunctionReservedInstancesAsyncInvoker(
UpdateFunctionReservedInstancesRequest request) {
return new AsyncInvoker(
request, FunctionGraphMeta.updateFunctionReservedInstances, hcClient);
}
/** 修改函数调用链配置 修改函数调用链配置,开通/修改传入aksk,关闭aksk传空
*
* @param UpdateTracingRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateTracingAsync(UpdateTracingRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateTracing);
}
/** 修改函数调用链配置 修改函数调用链配置,开通/修改传入aksk,关闭aksk传空
*
* @param UpdateTracingRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateTracingAsyncInvoker(
UpdateTracingRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.updateTracing,
hcClient);
}
/** 修改函数版本别名信息。 修改函数版本别名信息。
*
* @param UpdateVersionAliasRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateVersionAliasAsync(UpdateVersionAliasRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateVersionAlias);
}
/** 修改函数版本别名信息。 修改函数版本别名信息。
*
* @param UpdateVersionAliasRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateVersionAliasAsyncInvoker(
UpdateVersionAliasRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.updateVersionAlias, hcClient);
}
/** 删除指定函数的所有触发器。 删除指定函数所有触发器设置。 在提供函数版本且非latest的情况下,删除对应函数版本的触发器。 在提供函数别名的情况下,删除对应函数别名的触发器。
* 在不提供函数版本(也不提供别名)或版本为latest的情况下,删除该函数所有的触发器(包括所有版本和别名)。
*
* @param BatchDeleteFunctionTriggersRequest 请求对象
* @return CompletableFuture */
public CompletableFuture batchDeleteFunctionTriggersAsync(
BatchDeleteFunctionTriggersRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.batchDeleteFunctionTriggers);
}
/** 删除指定函数的所有触发器。 删除指定函数所有触发器设置。 在提供函数版本且非latest的情况下,删除对应函数版本的触发器。 在提供函数别名的情况下,删除对应函数别名的触发器。
* 在不提供函数版本(也不提供别名)或版本为latest的情况下,删除该函数所有的触发器(包括所有版本和别名)。
*
* @param BatchDeleteFunctionTriggersRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker batchDeleteFunctionTriggersAsyncInvoker(
BatchDeleteFunctionTriggersRequest request) {
return new AsyncInvoker(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 CompletableFuture */
public CompletableFuture createFunctionTriggerAsync(
CreateFunctionTriggerRequest request) {
return hcClient.asyncInvokeHttp(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 AsyncInvoker */
public AsyncInvoker createFunctionTriggerAsyncInvoker(
CreateFunctionTriggerRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.createFunctionTrigger, hcClient);
}
/** 删除触发器。 删除触发器。
*
* @param DeleteFunctionTriggerRequest 请求对象
* @return CompletableFuture */
public CompletableFuture deleteFunctionTriggerAsync(
DeleteFunctionTriggerRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.deleteFunctionTrigger);
}
/** 删除触发器。 删除触发器。
*
* @param DeleteFunctionTriggerRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker deleteFunctionTriggerAsyncInvoker(
DeleteFunctionTriggerRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.deleteFunctionTrigger, hcClient);
}
/** 获取指定函数的所有触发器。 获取指定函数的所有触发器设置。
*
* @param ListFunctionTriggersRequest 请求对象
* @return CompletableFuture */
public CompletableFuture listFunctionTriggersAsync(
ListFunctionTriggersRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.listFunctionTriggers);
}
/** 获取指定函数的所有触发器。 获取指定函数的所有触发器设置。
*
* @param ListFunctionTriggersRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker listFunctionTriggersAsyncInvoker(
ListFunctionTriggersRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.listFunctionTriggers, hcClient);
}
/** 获取指定触发器的信息。 获取特定触发器的信息。
*
* @param ShowFunctionTriggerRequest 请求对象
* @return CompletableFuture */
public CompletableFuture showFunctionTriggerAsync(ShowFunctionTriggerRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.showFunctionTrigger);
}
/** 获取指定触发器的信息。 获取特定触发器的信息。
*
* @param ShowFunctionTriggerRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker showFunctionTriggerAsyncInvoker(
ShowFunctionTriggerRequest request) {
return new AsyncInvoker(request,
FunctionGraphMeta.showFunctionTrigger, hcClient);
}
/** 更新触发器 更新触发器
*
* @param UpdateTriggerRequest 请求对象
* @return CompletableFuture */
public CompletableFuture updateTriggerAsync(UpdateTriggerRequest request) {
return hcClient.asyncInvokeHttp(request, FunctionGraphMeta.updateTrigger);
}
/** 更新触发器 更新触发器
*
* @param UpdateTriggerRequest 请求对象
* @return AsyncInvoker */
public AsyncInvoker updateTriggerAsyncInvoker(
UpdateTriggerRequest request) {
return new AsyncInvoker(request, FunctionGraphMeta.updateTrigger,
hcClient);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy