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

com.aliyun.sdk.service.cs20151215.AsyncClient Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cs20151215;

import com.aliyun.core.utils.SdkAutoCloseable;
import com.aliyun.sdk.service.cs20151215.models.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;

import java.util.concurrent.CompletableFuture;

public interface AsyncClient extends SdkAutoCloseable {

    static DefaultAsyncClientBuilder builder() {
        return new DefaultAsyncClientBuilder();
    }

    static AsyncClient create() {
        return builder().build();
    }

    CompletableFuture attachInstances(AttachInstancesRequest request);

    CompletableFuture attachInstancesToNodePool(AttachInstancesToNodePoolRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture cancelClusterUpgrade(CancelClusterUpgradeRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture cancelComponentUpgrade(CancelComponentUpgradeRequest request);

    CompletableFuture cancelOperationPlan(CancelOperationPlanRequest request);

    CompletableFuture cancelTask(CancelTaskRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture cancelWorkflow(CancelWorkflowRequest request);

    CompletableFuture checkControlPlaneLogEnable(CheckControlPlaneLogEnableRequest request);

    CompletableFuture checkServiceRole(CheckServiceRoleRequest request);

    /**
      * > 
      * *   To call this operation, make sure that you have the AliyunCSFullAccess permissions.
      * *   You cannot revoke the permissions of an Alibaba Cloud account.
      * *   You cannot revoke the permissions of the account that you use to call this operation.
      *
     */
    CompletableFuture cleanClusterUserPermissions(CleanClusterUserPermissionsRequest request);

    /**
      * >- To call this operation, make sure that you have the AliyunCSFullAccess permissions.
      * >- You cannot revoke the permissions of an Alibaba Cloud account.
      * >- You cannot revoke the permissions of the account that you use to call this operation.
      *
     */
    CompletableFuture cleanUserPermissions(CleanUserPermissionsRequest request);

    CompletableFuture createAutoscalingConfig(CreateAutoscalingConfigRequest request);

    /**
      * This topic describes all parameters for creating an ACK cluster. You can create the following types of ACK clusters.
      * *   [Create an ACK managed cluster](~~90776~~)
      * *   [Create an ACK dedicated cluster](~~197620~~)
      * *   [Create an ACK Serverless cluster](~~144246~~)
      * *   [Create an ACK Edge cluster](~~128204~~)
      * *   [Create an ACK Basic cluster that supports sandboxed containers](~~196321~~)
      * *   [Create an ACK Pro cluster that supports sandboxed containers](~~140623~~)
      *
     */
    CompletableFuture createCluster(CreateClusterRequest request);

    CompletableFuture createClusterDiagnosis(CreateClusterDiagnosisRequest request);

    CompletableFuture createClusterNodePool(CreateClusterNodePoolRequest request);

    CompletableFuture createEdgeMachine(CreateEdgeMachineRequest request);

    CompletableFuture createKubernetesTrigger(CreateKubernetesTriggerRequest request);

    CompletableFuture createTemplate(CreateTemplateRequest request);

    CompletableFuture createTrigger(CreateTriggerRequest request);

    CompletableFuture deleteAlertContact(DeleteAlertContactRequest request);

    CompletableFuture deleteAlertContactGroup(DeleteAlertContactGroupRequest request);

    CompletableFuture deleteCluster(DeleteClusterRequest request);

    CompletableFuture deleteClusterNodepool(DeleteClusterNodepoolRequest request);

    /**
      * > 
      * *   When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
      *
     */
    CompletableFuture deleteClusterNodes(DeleteClusterNodesRequest request);

    CompletableFuture deleteEdgeMachine(DeleteEdgeMachineRequest request);

    CompletableFuture deleteKubernetesTrigger(DeleteKubernetesTriggerRequest request);

    CompletableFuture deletePolicyInstance(DeletePolicyInstanceRequest request);

    CompletableFuture deleteTemplate(DeleteTemplateRequest request);

    CompletableFuture deleteTrigger(DeleteTriggerRequest request);

    CompletableFuture deployPolicyInstance(DeployPolicyInstanceRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture descirbeWorkflow(DescirbeWorkflowRequest request);

    CompletableFuture describeAddon(DescribeAddonRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeAddons(DescribeAddonsRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterAddonInstance(DescribeClusterAddonInstanceRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterAddonMetadata(DescribeClusterAddonMetadataRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterAddonUpgradeStatus(DescribeClusterAddonUpgradeStatusRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterAddonsUpgradeStatus(DescribeClusterAddonsUpgradeStatusRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterAddonsVersion(DescribeClusterAddonsVersionRequest request);

    CompletableFuture describeClusterAttachScripts(DescribeClusterAttachScriptsRequest request);

    CompletableFuture describeClusterDetail(DescribeClusterDetailRequest request);

    CompletableFuture describeClusterEvents(DescribeClusterEventsRequest request);

    CompletableFuture describeClusterLogs(DescribeClusterLogsRequest request);

    CompletableFuture describeClusterNodePoolDetail(DescribeClusterNodePoolDetailRequest request);

    CompletableFuture describeClusterNodePools(DescribeClusterNodePoolsRequest request);

    CompletableFuture describeClusterNodes(DescribeClusterNodesRequest request);

    CompletableFuture describeClusterResources(DescribeClusterResourcesRequest request);

    CompletableFuture describeClusterTasks(DescribeClusterTasksRequest request);

    /**
      * **
      * ****The default validity period of a kubeconfig file is 3 years. Two months before a kubeconfig file expires, you can renew it in the Container Service for Kubernetes (ACK) console or by calling API operations. After a kubeconfig file is renewed, the secret is valid for 3 years. The previous kubeconfig secret remains valid until expiration. We recommend that you renew your kubeconfig file at the earliest opportunity.
      *
     */
    CompletableFuture describeClusterUserKubeconfig(DescribeClusterUserKubeconfigRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusterV2UserKubeconfig(DescribeClusterV2UserKubeconfigRequest request);

    CompletableFuture describeClusterVuls(DescribeClusterVulsRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeClusters(DescribeClustersRequest request);

    CompletableFuture describeClustersV1(DescribeClustersV1Request request);

    CompletableFuture describeEdgeMachineActiveProcess(DescribeEdgeMachineActiveProcessRequest request);

    CompletableFuture describeEdgeMachineModels(DescribeEdgeMachineModelsRequest request);

    CompletableFuture describeEdgeMachineTunnelConfigDetail(DescribeEdgeMachineTunnelConfigDetailRequest request);

    CompletableFuture describeEdgeMachines(DescribeEdgeMachinesRequest request);

    CompletableFuture describeEvents(DescribeEventsRequest request);

    /**
      * For more information, see [Register an external Kubernetes cluster](~~121053~~).
      *
     */
    CompletableFuture describeExternalAgent(DescribeExternalAgentRequest request);

    CompletableFuture describeKubernetesVersionMetadata(DescribeKubernetesVersionMetadataRequest request);

    CompletableFuture describeNodePoolVuls(DescribeNodePoolVulsRequest request);

    CompletableFuture describePolicies(DescribePoliciesRequest request);

    CompletableFuture describePolicyDetails(DescribePolicyDetailsRequest request);

    CompletableFuture describePolicyGovernanceInCluster(DescribePolicyGovernanceInClusterRequest request);

    CompletableFuture describePolicyInstances(DescribePolicyInstancesRequest request);

    CompletableFuture describePolicyInstancesStatus(DescribePolicyInstancesStatusRequest request);

    CompletableFuture describeResourcesDeleteProtection(DescribeResourcesDeleteProtectionRequest request);

    /**
      * **
      * ****Only Alibaba Cloud accounts can call this API operation.
      *
     */
    CompletableFuture describeSubaccountK8sClusterUserConfig(DescribeSubaccountK8sClusterUserConfigRequest request);

    CompletableFuture describeTaskInfo(DescribeTaskInfoRequest request);

    CompletableFuture describeTemplateAttribute(DescribeTemplateAttributeRequest request);

    CompletableFuture describeTemplates(DescribeTemplatesRequest request);

    CompletableFuture describeTrigger(DescribeTriggerRequest request);

    CompletableFuture describeUserClusterNamespaces(DescribeUserClusterNamespacesRequest request);

    CompletableFuture describeUserPermission(DescribeUserPermissionRequest request);

    CompletableFuture describeUserQuota(DescribeUserQuotaRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture describeWorkflows(DescribeWorkflowsRequest request);

    CompletableFuture edgeClusterAddEdgeMachine(EdgeClusterAddEdgeMachineRequest request);

    /**
      * 1.  The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
      * 2.  ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
      * 3.  Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
      * 4.  CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
      *
     */
    CompletableFuture fixNodePoolVuls(FixNodePoolVulsRequest request);

    CompletableFuture getClusterAddonInstance(GetClusterAddonInstanceRequest request);

    CompletableFuture getClusterAuditProject(GetClusterAuditProjectRequest request);

    CompletableFuture getClusterCheck(GetClusterCheckRequest request);

    CompletableFuture getClusterDiagnosisCheckItems(GetClusterDiagnosisCheckItemsRequest request);

    CompletableFuture getClusterDiagnosisResult(GetClusterDiagnosisResultRequest request);

    CompletableFuture getKubernetesTrigger(GetKubernetesTriggerRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture getUpgradeStatus(GetUpgradeStatusRequest request);

    /**
      * **Precautions**:
      * *   Make sure that you have attached a RAM policy that has at least the read-only permissions on the cluster to the RAM user or RAM role in the RAM console. Otherwise, the `ErrorRamPolicyConfig` error code is returned when you call the operation. For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
      * *   If you use a RAM user to call the operation, make sure that the RAM user has the permissions to modify the permissions of other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned when you call the operation. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
      * *   If you update full permissions, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation.
      *
     */
    CompletableFuture grantPermissions(GrantPermissionsRequest request);

    CompletableFuture installClusterAddons(InstallClusterAddonsRequest request);

    CompletableFuture listAddons(ListAddonsRequest request);

    CompletableFuture listClusterAddonInstances(ListClusterAddonInstancesRequest request);

    CompletableFuture listClusterChecks(ListClusterChecksRequest request);

    /**
      * > 
      * *   To call this operation, make sure that you have ram:ListUsers and ram:ListRoles permissions.
      * *   To call this operation, make sure that you have the AliyunCSFullAccess permissions.
      *
     */
    CompletableFuture listClusterKubeconfigStates(ListClusterKubeconfigStatesRequest request);

    CompletableFuture listOperationPlans(ListOperationPlansRequest request);

    CompletableFuture listTagResources(ListTagResourcesRequest request);

    /**
      * >  To call this operation, make sure that you have the AliyunCSFullAccess permissions.
      *
     */
    CompletableFuture listUserKubeConfigStates(ListUserKubeConfigStatesRequest request);

    CompletableFuture migrateCluster(MigrateClusterRequest request);

    CompletableFuture modifyCluster(ModifyClusterRequest request);

    /**
      * You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
      * *   To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
      * *   For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
      * After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
      *
     */
    CompletableFuture modifyClusterAddon(ModifyClusterAddonRequest request);

    CompletableFuture modifyClusterConfiguration(ModifyClusterConfigurationRequest request);

    CompletableFuture modifyClusterNodePool(ModifyClusterNodePoolRequest request);

    CompletableFuture modifyClusterTags(ModifyClusterTagsRequest request);

    /**
      * >  Container Service for Kubernetes (ACK) allows you to modify the kubelet configuration of nodes in a node pool. After you modify the kubelet configuration, the new configuration immediately takes effect on existing nodes in the node pool and is automatically applied to newly added nodes.
      *
     */
    CompletableFuture modifyNodePoolNodeConfig(ModifyNodePoolNodeConfigRequest request);

    CompletableFuture modifyPolicyInstance(ModifyPolicyInstanceRequest request);

    /**
      * *   You can activate ACK by using Alibaba Cloud accounts.
      * *   To activate ACK by using RAM users, you need to grant the AdministratorAccess permission to the RAM users.
      *
     */
    CompletableFuture openAckService(OpenAckServiceRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture pauseClusterUpgrade(PauseClusterUpgradeRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture pauseComponentUpgrade(PauseComponentUpgradeRequest request);

    CompletableFuture pauseTask(PauseTaskRequest request);

    /**
      * @deprecated
      * ****
      * *   When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
      * *   Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
      * *   Nodes remain in the Unschedulable state when they are being removed.
      * *   You can remove only worker nodes. You cannot remove master nodes.
      *
     */
    CompletableFuture removeClusterNodes(RemoveClusterNodesRequest request);

    /**
      * **
      * ****
      * *   When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours. - The operation may have unexpected risks. Back up the data before you perform this operation. - When the system removes a node, it sets the status of the node to Unschedulable. - The system removes only worker nodes. It does not remove master nodes.
      *
     */
    CompletableFuture removeNodePoolNodes(RemoveNodePoolNodesRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture removeWorkflow(RemoveWorkflowRequest request);

    CompletableFuture repairClusterNodePool(RepairClusterNodePoolRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture resumeComponentUpgrade(ResumeComponentUpgradeRequest request);

    CompletableFuture resumeTask(ResumeTaskRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture resumeUpgradeCluster(ResumeUpgradeClusterRequest request);

    CompletableFuture revokeK8sClusterKubeConfig(RevokeK8sClusterKubeConfigRequest request);

    CompletableFuture runClusterCheck(RunClusterCheckRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture scaleCluster(ScaleClusterRequest request);

    CompletableFuture scaleClusterNodePool(ScaleClusterNodePoolRequest request);

    /**
      * **
      * ****The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
      *
     */
    CompletableFuture scaleOutCluster(ScaleOutClusterRequest request);

    CompletableFuture scanClusterVuls(ScanClusterVulsRequest request);

    CompletableFuture startAlert(StartAlertRequest request);

    /**
      * @deprecated
      *
     */
    CompletableFuture startWorkflow(StartWorkflowRequest request);

    CompletableFuture stopAlert(StopAlertRequest request);

    CompletableFuture syncClusterNodePool(SyncClusterNodePoolRequest request);

    CompletableFuture tagResources(TagResourcesRequest request);

    CompletableFuture unInstallClusterAddons(UnInstallClusterAddonsRequest request);

    CompletableFuture untagResources(UntagResourcesRequest request);

    /**
      * Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls) (SLS).
      *
     */
    CompletableFuture updateClusterAuditLogConfig(UpdateClusterAuditLogConfigRequest request);

    CompletableFuture updateContactGroupForAlert(UpdateContactGroupForAlertRequest request);

    CompletableFuture updateControlPlaneLog(UpdateControlPlaneLogRequest request);

    /**
      * - You can call this operation only with an Alibaba Cloud account. 
      * - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
      *
     */
    CompletableFuture updateK8sClusterUserConfigExpire(UpdateK8sClusterUserConfigExpireRequest request);

    CompletableFuture updateResourcesDeleteProtection(UpdateResourcesDeleteProtectionRequest request);

    CompletableFuture updateTemplate(UpdateTemplateRequest request);

    /**
      * **Precautions**:
      * *   You can update the permissions of a RAM user or RAM role on a cluster by using full update or incremental update. If you use full update, the existing permissions of the RAM user or RAM role on the cluster are overwritten. You must specify all the permissions that you want to grant to the RAM user or RAM role in the request parameters when you call the operation. If you use incremental update, you can grant permissions to or revoke permissions from the RAM user or RAM role on the cluster. In this case, only the permissions that you specify in the request parameters when you call the operation are granted or revoked, other permissions of the RAM user or RAM role on the cluster are not affected.
      *
     */
    CompletableFuture updateUserPermissions(UpdateUserPermissionsRequest request);

    CompletableFuture upgradeCluster(UpgradeClusterRequest request);

    CompletableFuture upgradeClusterAddons(UpgradeClusterAddonsRequest request);

    /**
      * This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
      *
     */
    CompletableFuture upgradeClusterNodepool(UpgradeClusterNodepoolRequest request);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy