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

com.huaweicloud.sdk.bcs.v2.BcsClient Maven / Gradle / Ivy

package com.huaweicloud.sdk.bcs.v2;

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

public class BcsClient {
    protected HcClient hcClient;

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

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


    /**
     * peer节点加入通道
     * peer节点加入通道,目前仅支持往一个通道中加入peer
     *
     * @param BatchAddPeersToChannelRequest 请求对象
     * @return BatchAddPeersToChannelResponse
     */
    public BatchAddPeersToChannelResponse batchAddPeersToChannel(BatchAddPeersToChannelRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.batchAddPeersToChannel);
    }

    /**
     * peer节点加入通道
     * peer节点加入通道,目前仅支持往一个通道中加入peer
     *
     * @param BatchAddPeersToChannelRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker batchAddPeersToChannelInvoker(BatchAddPeersToChannelRequest request) {
        return new SyncInvoker(request, BcsMeta.batchAddPeersToChannel, hcClient);
    }

    /**
     * 创建通道
     * 创建通道
     *
     * @param BatchCreateChannelsRequest 请求对象
     * @return BatchCreateChannelsResponse
     */
    public BatchCreateChannelsResponse batchCreateChannels(BatchCreateChannelsRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.batchCreateChannels);
    }

    /**
     * 创建通道
     * 创建通道
     *
     * @param BatchCreateChannelsRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker batchCreateChannelsInvoker(BatchCreateChannelsRequest request) {
        return new SyncInvoker(request, BcsMeta.batchCreateChannels, hcClient);
    }

    /**
     * 邀请联盟成员
     * 批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
     *
     * @param BatchInviteMembersToChannelRequest 请求对象
     * @return BatchInviteMembersToChannelResponse
     */
    public BatchInviteMembersToChannelResponse batchInviteMembersToChannel(BatchInviteMembersToChannelRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.batchInviteMembersToChannel);
    }

    /**
     * 邀请联盟成员
     * 批量邀请联盟成员加入通道,此操作会向被邀请方发出邀请通知
     *
     * @param BatchInviteMembersToChannelRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker batchInviteMembersToChannelInvoker(BatchInviteMembersToChannelRequest request) {
        return new SyncInvoker(request, BcsMeta.batchInviteMembersToChannel, hcClient);
    }

    /**
     * 创建服务实例
     * 创建BCS服务实例
     *
     * @param CreateNewBlockchainRequest 请求对象
     * @return CreateNewBlockchainResponse
     */
    public CreateNewBlockchainResponse createNewBlockchain(CreateNewBlockchainRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.createNewBlockchain);
    }

    /**
     * 创建服务实例
     * 创建BCS服务实例
     *
     * @param CreateNewBlockchainRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker createNewBlockchainInvoker(CreateNewBlockchainRequest request) {
        return new SyncInvoker(request, BcsMeta.createNewBlockchain, hcClient);
    }

    /**
     * 删除bcs实例
     * 删除bcs实例
     *
     * @param DeleteBlockchainRequest 请求对象
     * @return DeleteBlockchainResponse
     */
    public DeleteBlockchainResponse deleteBlockchain(DeleteBlockchainRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.deleteBlockchain);
    }

    /**
     * 删除bcs实例
     * 删除bcs实例
     *
     * @param DeleteBlockchainRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker deleteBlockchainInvoker(DeleteBlockchainRequest request) {
        return new SyncInvoker(request, BcsMeta.deleteBlockchain, hcClient);
    }

    /**
     * 下载证书
     * 下载指定服务实例相关证书
     *
     * @param DownloadBlockchainCertRequest 请求对象
     * @return DownloadBlockchainCertResponse
     */
    public DownloadBlockchainCertResponse downloadBlockchainCert(DownloadBlockchainCertRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.downloadBlockchainCert);
    }

    /**
     * 下载证书
     * 下载指定服务实例相关证书
     *
     * @param DownloadBlockchainCertRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker downloadBlockchainCertInvoker(DownloadBlockchainCertRequest request) {
        return new SyncInvoker(request, BcsMeta.downloadBlockchainCert, hcClient);
    }

    /**
     * 下载SDK配置
     * 下载指定服务实例SDK配置文件
     *
     * @param DownloadBlockchainSdkConfigRequest 请求对象
     * @return DownloadBlockchainSdkConfigResponse
     */
    public DownloadBlockchainSdkConfigResponse downloadBlockchainSdkConfig(DownloadBlockchainSdkConfigRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.downloadBlockchainSdkConfig);
    }

    /**
     * 下载SDK配置
     * 下载指定服务实例SDK配置文件
     *
     * @param DownloadBlockchainSdkConfigRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker downloadBlockchainSdkConfigInvoker(DownloadBlockchainSdkConfigRequest request) {
        return new SyncInvoker(request, BcsMeta.downloadBlockchainSdkConfig, hcClient);
    }

    /**
     * 处理联盟邀请
     * 处理联盟邀请
     *
     * @param HandleNotificationRequest 请求对象
     * @return HandleNotificationResponse
     */
    public HandleNotificationResponse handleNotification(HandleNotificationRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.handleNotification);
    }

    /**
     * 处理联盟邀请
     * 处理联盟邀请
     *
     * @param HandleNotificationRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker handleNotificationInvoker(HandleNotificationRequest request) {
        return new SyncInvoker(request, BcsMeta.handleNotification, hcClient);
    }

    /**
     * 查询BCS服务实例监控数据
     * [该接口用于查询BCS服务的监控数据,可以指定相应的指标名称,目前不支持IEF节点](tag:online)[该接口用于查询BCS服务的监控数据,可以指定相应的指标名称](tag:hcs)
     *
     * @param ListBcsMetricRequest 请求对象
     * @return ListBcsMetricResponse
     */
    public ListBcsMetricResponse listBcsMetric(ListBcsMetricRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listBcsMetric);
    }

    /**
     * 查询BCS服务实例监控数据
     * [该接口用于查询BCS服务的监控数据,可以指定相应的指标名称,目前不支持IEF节点](tag:online)[该接口用于查询BCS服务的监控数据,可以指定相应的指标名称](tag:hcs)
     *
     * @param ListBcsMetricRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listBcsMetricInvoker(ListBcsMetricRequest request) {
        return new SyncInvoker(request, BcsMeta.listBcsMetric, hcClient);
    }

    /**
     * 查询通道信息
     * 查询指定服务实例通道信息
     *
     * @param ListBlockchainChannelsRequest 请求对象
     * @return ListBlockchainChannelsResponse
     */
    public ListBlockchainChannelsResponse listBlockchainChannels(ListBlockchainChannelsRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listBlockchainChannels);
    }

    /**
     * 查询通道信息
     * 查询指定服务实例通道信息
     *
     * @param ListBlockchainChannelsRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listBlockchainChannelsInvoker(ListBlockchainChannelsRequest request) {
        return new SyncInvoker(request, BcsMeta.listBlockchainChannels, hcClient);
    }

    /**
     * 查询服务实例简要信息
     * 查询当前项目下所有服务实例的简要信息
     *
     * @param ListBlockchainsRequest 请求对象
     * @return ListBlockchainsResponse
     */
    public ListBlockchainsResponse listBlockchains(ListBlockchainsRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listBlockchains);
    }

    /**
     * 查询服务实例简要信息
     * 查询当前项目下所有服务实例的简要信息
     *
     * @param ListBlockchainsRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listBlockchainsInvoker(ListBlockchainsRequest request) {
        return new SyncInvoker(request, BcsMeta.listBlockchains, hcClient);
    }

    /**
     * 查询BCS组织监控数据列表
     * 该接口用于查询BCS组织的监控数据列表。
     *
     * @param ListEntityMetricRequest 请求对象
     * @return ListEntityMetricResponse
     */
    public ListEntityMetricResponse listEntityMetric(ListEntityMetricRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listEntityMetric);
    }

    /**
     * 查询BCS组织监控数据列表
     * 该接口用于查询BCS组织的监控数据列表。
     *
     * @param ListEntityMetricRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listEntityMetricInvoker(ListEntityMetricRequest request) {
        return new SyncInvoker(request, BcsMeta.listEntityMetric, hcClient);
    }

    /**
     * 查询BCS组织实例监控数据详情
     * 该接口用于BCS组织实例监控数据详情。
     *
     * @param ListInstanceMetricRequest 请求对象
     * @return ListInstanceMetricResponse
     */
    public ListInstanceMetricResponse listInstanceMetric(ListInstanceMetricRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listInstanceMetric);
    }

    /**
     * 查询BCS组织实例监控数据详情
     * 该接口用于BCS组织实例监控数据详情。
     *
     * @param ListInstanceMetricRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listInstanceMetricInvoker(ListInstanceMetricRequest request) {
        return new SyncInvoker(request, BcsMeta.listInstanceMetric, hcClient);
    }

    /**
     * 获取联盟成员列表
     * 获取联盟成员列表
     *
     * @param ListMembersRequest 请求对象
     * @return ListMembersResponse
     */
    public ListMembersResponse listMembers(ListMembersRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listMembers);
    }

    /**
     * 获取联盟成员列表
     * 获取联盟成员列表
     *
     * @param ListMembersRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listMembersInvoker(ListMembersRequest request) {
        return new SyncInvoker(request, BcsMeta.listMembers, hcClient);
    }

    /**
     * 获取全部通知
     * 获取全部通知
     *
     * @param ListNotificationsRequest 请求对象
     * @return ListNotificationsResponse
     */
    public ListNotificationsResponse listNotifications(ListNotificationsRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listNotifications);
    }

    /**
     * 获取全部通知
     * 获取全部通知
     *
     * @param ListNotificationsRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listNotificationsInvoker(ListNotificationsRequest request) {
        return new SyncInvoker(request, BcsMeta.listNotifications, hcClient);
    }

    /**
     * 查询异步操作结果
     * 查询异步操作结果
     *
     * @param ListOpRecordRequest 请求对象
     * @return ListOpRecordResponse
     */
    public ListOpRecordResponse listOpRecord(ListOpRecordRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listOpRecord);
    }

    /**
     * 查询异步操作结果
     * 查询异步操作结果
     *
     * @param ListOpRecordRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listOpRecordInvoker(ListOpRecordRequest request) {
        return new SyncInvoker(request, BcsMeta.listOpRecord, hcClient);
    }

    /**
     * 查询配额
     * 查询当前项目下BCS服务所有资源的配额信息
     *
     * @param ListQuotasRequest 请求对象
     * @return ListQuotasResponse
     */
    public ListQuotasResponse listQuotas(ListQuotasRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.listQuotas);
    }

    /**
     * 查询配额
     * 查询当前项目下BCS服务所有资源的配额信息
     *
     * @param ListQuotasRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker listQuotasInvoker(ListQuotasRequest request) {
        return new SyncInvoker(request, BcsMeta.listQuotas, hcClient);
    }

    /**
     * 查询详细信息
     * 查询指定服务实例详细信息
     *
     * @param ShowBlockchainDetailRequest 请求对象
     * @return ShowBlockchainDetailResponse
     */
    public ShowBlockchainDetailResponse showBlockchainDetail(ShowBlockchainDetailRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.showBlockchainDetail);
    }

    /**
     * 查询详细信息
     * 查询指定服务实例详细信息
     *
     * @param ShowBlockchainDetailRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker showBlockchainDetailInvoker(ShowBlockchainDetailRequest request) {
        return new SyncInvoker(request, BcsMeta.showBlockchainDetail, hcClient);
    }

    /**
     * 查询节点信息
     * 查询指定服务实例节点信息
     *
     * @param ShowBlockchainNodesRequest 请求对象
     * @return ShowBlockchainNodesResponse
     */
    public ShowBlockchainNodesResponse showBlockchainNodes(ShowBlockchainNodesRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.showBlockchainNodes);
    }

    /**
     * 查询节点信息
     * 查询指定服务实例节点信息
     *
     * @param ShowBlockchainNodesRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker showBlockchainNodesInvoker(ShowBlockchainNodesRequest request) {
        return new SyncInvoker(request, BcsMeta.showBlockchainNodes, hcClient);
    }

    /**
     * 查询创建状态
     * 查询指定服务实例创建状态
     *
     * @param ShowBlockchainStatusRequest 请求对象
     * @return ShowBlockchainStatusResponse
     */
    public ShowBlockchainStatusResponse showBlockchainStatus(ShowBlockchainStatusRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.showBlockchainStatus);
    }

    /**
     * 查询创建状态
     * 查询指定服务实例创建状态
     *
     * @param ShowBlockchainStatusRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker showBlockchainStatusInvoker(ShowBlockchainStatusRequest request) {
        return new SyncInvoker(request, BcsMeta.showBlockchainStatus, hcClient);
    }

    /**
     * 修改实例
     * 修改实例的节点、组织,目前仅支持添加节点,添加组织
     *
     * @param UpdateInstanceRequest 请求对象
     * @return UpdateInstanceResponse
     */
    public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) {
        return hcClient.syncInvokeHttp(request, BcsMeta.updateInstance);
    }

    /**
     * 修改实例
     * 修改实例的节点、组织,目前仅支持添加节点,添加组织
     *
     * @param UpdateInstanceRequest 请求对象
     * @return SyncInvoker
     */
    public SyncInvoker updateInstanceInvoker(UpdateInstanceRequest request) {
        return new SyncInvoker(request, BcsMeta.updateInstance, hcClient);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy