
com.huaweicloud.sdk.bcs.v2.BcsAsyncClient Maven / Gradle / Ivy
package com.huaweicloud.sdk.bcs.v2;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.ClientBuilder;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
import com.huaweicloud.sdk.core.invoker.AsyncInvoker;
import com.huaweicloud.sdk.bcs.v2.model.*;
public class BcsAsyncClient {
protected HcClient hcClient;
public BcsAsyncClient(HcClient hcClient) {
this.hcClient = hcClient;
}
public static ClientBuilder newBuilder() {
return new ClientBuilder<>(BcsAsyncClient::new);
}
/**
* peer节点加入通道
* peer节点加入通道,目前仅支持往一个通道中加入peer
*
* @param BatchAddPeersToChannelRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture batchAddPeersToChannelAsync(BatchAddPeersToChannelRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.batchAddPeersToChannel);
}
/**
* peer节点加入通道
* peer节点加入通道,目前仅支持往一个通道中加入peer
*
* @param BatchAddPeersToChannelRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker batchAddPeersToChannelAsyncInvoker(BatchAddPeersToChannelRequest request) {
return new AsyncInvoker(request, BcsMeta.batchAddPeersToChannel, hcClient);
}
/**
* 创建通道
* 创建通道
*
* @param BatchCreateChannelsRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture batchCreateChannelsAsync(BatchCreateChannelsRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.batchCreateChannels);
}
/**
* 创建通道
* 创建通道
*
* @param BatchCreateChannelsRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker batchCreateChannelsAsyncInvoker(BatchCreateChannelsRequest request) {
return new AsyncInvoker(request, BcsMeta.batchCreateChannels, hcClient);
}
/**
* 邀请联盟成员
* 批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
*
* @param BatchInviteMembersToChannelRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture batchInviteMembersToChannelAsync(BatchInviteMembersToChannelRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.batchInviteMembersToChannel);
}
/**
* 邀请联盟成员
* 批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
*
* @param BatchInviteMembersToChannelRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker batchInviteMembersToChannelAsyncInvoker(BatchInviteMembersToChannelRequest request) {
return new AsyncInvoker(request, BcsMeta.batchInviteMembersToChannel, hcClient);
}
/**
* 创建服务实例
* 创建BCS服务实例
*
* @param CreateNewBlockchainRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture createNewBlockchainAsync(CreateNewBlockchainRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.createNewBlockchain);
}
/**
* 创建服务实例
* 创建BCS服务实例
*
* @param CreateNewBlockchainRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker createNewBlockchainAsyncInvoker(CreateNewBlockchainRequest request) {
return new AsyncInvoker(request, BcsMeta.createNewBlockchain, hcClient);
}
/**
* 删除bcs实例
* 删除bcs实例
*
* @param DeleteBlockchainRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture deleteBlockchainAsync(DeleteBlockchainRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.deleteBlockchain);
}
/**
* 删除bcs实例
* 删除bcs实例
*
* @param DeleteBlockchainRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker deleteBlockchainAsyncInvoker(DeleteBlockchainRequest request) {
return new AsyncInvoker(request, BcsMeta.deleteBlockchain, hcClient);
}
/**
* 下载证书
* 下载指定服务实例相关证书
*
* @param DownloadBlockchainCertRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture downloadBlockchainCertAsync(DownloadBlockchainCertRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.downloadBlockchainCert);
}
/**
* 下载证书
* 下载指定服务实例相关证书
*
* @param DownloadBlockchainCertRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker downloadBlockchainCertAsyncInvoker(DownloadBlockchainCertRequest request) {
return new AsyncInvoker(request, BcsMeta.downloadBlockchainCert, hcClient);
}
/**
* 下载SDK配置
* 下载指定服务实例SDK配置文件
*
* @param DownloadBlockchainSdkConfigRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture downloadBlockchainSdkConfigAsync(DownloadBlockchainSdkConfigRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.downloadBlockchainSdkConfig);
}
/**
* 下载SDK配置
* 下载指定服务实例SDK配置文件
*
* @param DownloadBlockchainSdkConfigRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker downloadBlockchainSdkConfigAsyncInvoker(DownloadBlockchainSdkConfigRequest request) {
return new AsyncInvoker(request, BcsMeta.downloadBlockchainSdkConfig, hcClient);
}
/**
* 处理联盟邀请
* 处理联盟邀请
*
* @param HandleNotificationRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture handleNotificationAsync(HandleNotificationRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.handleNotification);
}
/**
* 处理联盟邀请
* 处理联盟邀请
*
* @param HandleNotificationRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker handleNotificationAsyncInvoker(HandleNotificationRequest request) {
return new AsyncInvoker(request, BcsMeta.handleNotification, hcClient);
}
/**
* 查询BCS服务实例监控数据
* [该接口用于查询BCS服务的监控数据,可以指定相应的指标名称,目前不支持IEF节点](tag:online)[该接口用于查询BCS服务的监控数据,可以指定相应的指标名称](tag:hcs)
*
* @param ListBcsMetricRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listBcsMetricAsync(ListBcsMetricRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listBcsMetric);
}
/**
* 查询BCS服务实例监控数据
* [该接口用于查询BCS服务的监控数据,可以指定相应的指标名称,目前不支持IEF节点](tag:online)[该接口用于查询BCS服务的监控数据,可以指定相应的指标名称](tag:hcs)
*
* @param ListBcsMetricRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listBcsMetricAsyncInvoker(ListBcsMetricRequest request) {
return new AsyncInvoker(request, BcsMeta.listBcsMetric, hcClient);
}
/**
* 查询通道信息
* 查询指定服务实例通道信息
*
* @param ListBlockchainChannelsRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listBlockchainChannelsAsync(ListBlockchainChannelsRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listBlockchainChannels);
}
/**
* 查询通道信息
* 查询指定服务实例通道信息
*
* @param ListBlockchainChannelsRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listBlockchainChannelsAsyncInvoker(ListBlockchainChannelsRequest request) {
return new AsyncInvoker(request, BcsMeta.listBlockchainChannels, hcClient);
}
/**
* 查询服务实例简要信息
* 查询当前项目下所有服务实例的简要信息
*
* @param ListBlockchainsRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listBlockchainsAsync(ListBlockchainsRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listBlockchains);
}
/**
* 查询服务实例简要信息
* 查询当前项目下所有服务实例的简要信息
*
* @param ListBlockchainsRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listBlockchainsAsyncInvoker(ListBlockchainsRequest request) {
return new AsyncInvoker(request, BcsMeta.listBlockchains, hcClient);
}
/**
* 查询BCS组织监控数据列表
* 该接口用于查询BCS组织的监控数据列表。
*
* @param ListEntityMetricRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listEntityMetricAsync(ListEntityMetricRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listEntityMetric);
}
/**
* 查询BCS组织监控数据列表
* 该接口用于查询BCS组织的监控数据列表。
*
* @param ListEntityMetricRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listEntityMetricAsyncInvoker(ListEntityMetricRequest request) {
return new AsyncInvoker(request, BcsMeta.listEntityMetric, hcClient);
}
/**
* 查询BCS组织实例监控数据详情
* 该接口用于BCS组织实例监控数据详情。
*
* @param ListInstanceMetricRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listInstanceMetricAsync(ListInstanceMetricRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listInstanceMetric);
}
/**
* 查询BCS组织实例监控数据详情
* 该接口用于BCS组织实例监控数据详情。
*
* @param ListInstanceMetricRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listInstanceMetricAsyncInvoker(ListInstanceMetricRequest request) {
return new AsyncInvoker(request, BcsMeta.listInstanceMetric, hcClient);
}
/**
* 获取联盟成员列表
* 获取联盟成员列表
*
* @param ListMembersRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listMembersAsync(ListMembersRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listMembers);
}
/**
* 获取联盟成员列表
* 获取联盟成员列表
*
* @param ListMembersRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listMembersAsyncInvoker(ListMembersRequest request) {
return new AsyncInvoker(request, BcsMeta.listMembers, hcClient);
}
/**
* 获取全部通知
* 获取全部通知
*
* @param ListNotificationsRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listNotificationsAsync(ListNotificationsRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listNotifications);
}
/**
* 获取全部通知
* 获取全部通知
*
* @param ListNotificationsRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listNotificationsAsyncInvoker(ListNotificationsRequest request) {
return new AsyncInvoker(request, BcsMeta.listNotifications, hcClient);
}
/**
* 查询异步操作结果
* 查询异步操作结果
*
* @param ListOpRecordRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listOpRecordAsync(ListOpRecordRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listOpRecord);
}
/**
* 查询异步操作结果
* 查询异步操作结果
*
* @param ListOpRecordRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listOpRecordAsyncInvoker(ListOpRecordRequest request) {
return new AsyncInvoker(request, BcsMeta.listOpRecord, hcClient);
}
/**
* 查询配额
* 查询当前项目下BCS服务所有资源的配额信息
*
* @param ListQuotasRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture listQuotasAsync(ListQuotasRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.listQuotas);
}
/**
* 查询配额
* 查询当前项目下BCS服务所有资源的配额信息
*
* @param ListQuotasRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker listQuotasAsyncInvoker(ListQuotasRequest request) {
return new AsyncInvoker(request, BcsMeta.listQuotas, hcClient);
}
/**
* 查询详细信息
* 查询指定服务实例详细信息
*
* @param ShowBlockchainDetailRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture showBlockchainDetailAsync(ShowBlockchainDetailRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.showBlockchainDetail);
}
/**
* 查询详细信息
* 查询指定服务实例详细信息
*
* @param ShowBlockchainDetailRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker showBlockchainDetailAsyncInvoker(ShowBlockchainDetailRequest request) {
return new AsyncInvoker(request, BcsMeta.showBlockchainDetail, hcClient);
}
/**
* 查询节点信息
* 查询指定服务实例节点信息
*
* @param ShowBlockchainNodesRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture showBlockchainNodesAsync(ShowBlockchainNodesRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.showBlockchainNodes);
}
/**
* 查询节点信息
* 查询指定服务实例节点信息
*
* @param ShowBlockchainNodesRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker showBlockchainNodesAsyncInvoker(ShowBlockchainNodesRequest request) {
return new AsyncInvoker(request, BcsMeta.showBlockchainNodes, hcClient);
}
/**
* 查询创建状态
* 查询指定服务实例创建状态
*
* @param ShowBlockchainStatusRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture showBlockchainStatusAsync(ShowBlockchainStatusRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.showBlockchainStatus);
}
/**
* 查询创建状态
* 查询指定服务实例创建状态
*
* @param ShowBlockchainStatusRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker showBlockchainStatusAsyncInvoker(ShowBlockchainStatusRequest request) {
return new AsyncInvoker(request, BcsMeta.showBlockchainStatus, hcClient);
}
/**
* 修改实例
* 修改实例的节点、组织,目前仅支持添加节点,添加组织
*
* @param UpdateInstanceRequest 请求对象
* @return CompletableFuture
*/
public CompletableFuture updateInstanceAsync(UpdateInstanceRequest request) {
return hcClient.asyncInvokeHttp(request, BcsMeta.updateInstance);
}
/**
* 修改实例
* 修改实例的节点、组织,目前仅支持添加节点,添加组织
*
* @param UpdateInstanceRequest 请求对象
* @return AsyncInvoker
*/
public AsyncInvoker updateInstanceAsyncInvoker(UpdateInstanceRequest request) {
return new AsyncInvoker(request, BcsMeta.updateInstance, hcClient);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy