@alicloud/cs20151215 4.0.9 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +90 -8
- package/dist/client.js +146 -18
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +158 -8
package/dist/client.d.ts
CHANGED
|
@@ -422,6 +422,46 @@ export declare class CheckControlPlaneLogEnableResponse extends $tea.Model {
|
|
|
422
422
|
[key: string]: any;
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
+
export declare class CheckServiceRoleRequest extends $tea.Model {
|
|
426
|
+
roles?: CheckServiceRoleRequestRoles[];
|
|
427
|
+
static names(): {
|
|
428
|
+
[key: string]: string;
|
|
429
|
+
};
|
|
430
|
+
static types(): {
|
|
431
|
+
[key: string]: any;
|
|
432
|
+
};
|
|
433
|
+
constructor(map?: {
|
|
434
|
+
[key: string]: any;
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
export declare class CheckServiceRoleResponseBody extends $tea.Model {
|
|
438
|
+
roles?: CheckServiceRoleResponseBodyRoles[];
|
|
439
|
+
static names(): {
|
|
440
|
+
[key: string]: string;
|
|
441
|
+
};
|
|
442
|
+
static types(): {
|
|
443
|
+
[key: string]: any;
|
|
444
|
+
};
|
|
445
|
+
constructor(map?: {
|
|
446
|
+
[key: string]: any;
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
export declare class CheckServiceRoleResponse extends $tea.Model {
|
|
450
|
+
headers?: {
|
|
451
|
+
[key: string]: string;
|
|
452
|
+
};
|
|
453
|
+
statusCode?: number;
|
|
454
|
+
body?: CheckServiceRoleResponseBody;
|
|
455
|
+
static names(): {
|
|
456
|
+
[key: string]: string;
|
|
457
|
+
};
|
|
458
|
+
static types(): {
|
|
459
|
+
[key: string]: any;
|
|
460
|
+
};
|
|
461
|
+
constructor(map?: {
|
|
462
|
+
[key: string]: any;
|
|
463
|
+
});
|
|
464
|
+
}
|
|
425
465
|
export declare class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
426
466
|
coolDownDuration?: string;
|
|
427
467
|
daemonsetEvictionForNodes?: boolean;
|
|
@@ -4910,6 +4950,32 @@ export declare class AttachInstancesResponseBodyList extends $tea.Model {
|
|
|
4910
4950
|
[key: string]: any;
|
|
4911
4951
|
});
|
|
4912
4952
|
}
|
|
4953
|
+
export declare class CheckServiceRoleRequestRoles extends $tea.Model {
|
|
4954
|
+
name?: string;
|
|
4955
|
+
static names(): {
|
|
4956
|
+
[key: string]: string;
|
|
4957
|
+
};
|
|
4958
|
+
static types(): {
|
|
4959
|
+
[key: string]: any;
|
|
4960
|
+
};
|
|
4961
|
+
constructor(map?: {
|
|
4962
|
+
[key: string]: any;
|
|
4963
|
+
});
|
|
4964
|
+
}
|
|
4965
|
+
export declare class CheckServiceRoleResponseBodyRoles extends $tea.Model {
|
|
4966
|
+
granted?: boolean;
|
|
4967
|
+
message?: string;
|
|
4968
|
+
name?: string;
|
|
4969
|
+
static names(): {
|
|
4970
|
+
[key: string]: string;
|
|
4971
|
+
};
|
|
4972
|
+
static types(): {
|
|
4973
|
+
[key: string]: any;
|
|
4974
|
+
};
|
|
4975
|
+
constructor(map?: {
|
|
4976
|
+
[key: string]: any;
|
|
4977
|
+
});
|
|
4978
|
+
}
|
|
4913
4979
|
export declare class CreateClusterRequestWorkerDataDisks extends $tea.Model {
|
|
4914
4980
|
category?: string;
|
|
4915
4981
|
encrypted?: string;
|
|
@@ -7466,6 +7532,24 @@ export default class Client extends OpenApi {
|
|
|
7466
7532
|
* @return CheckControlPlaneLogEnableResponse
|
|
7467
7533
|
*/
|
|
7468
7534
|
checkControlPlaneLogEnable(ClusterId: string): Promise<CheckControlPlaneLogEnableResponse>;
|
|
7535
|
+
/**
|
|
7536
|
+
* @summary 检查是否授权指定服务角色
|
|
7537
|
+
*
|
|
7538
|
+
* @param request CheckServiceRoleRequest
|
|
7539
|
+
* @param headers map
|
|
7540
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7541
|
+
* @return CheckServiceRoleResponse
|
|
7542
|
+
*/
|
|
7543
|
+
checkServiceRoleWithOptions(request: CheckServiceRoleRequest, headers: {
|
|
7544
|
+
[key: string]: string;
|
|
7545
|
+
}, runtime: $Util.RuntimeOptions): Promise<CheckServiceRoleResponse>;
|
|
7546
|
+
/**
|
|
7547
|
+
* @summary 检查是否授权指定服务角色
|
|
7548
|
+
*
|
|
7549
|
+
* @param request CheckServiceRoleRequest
|
|
7550
|
+
* @return CheckServiceRoleResponse
|
|
7551
|
+
*/
|
|
7552
|
+
checkServiceRole(request: CheckServiceRoleRequest): Promise<CheckServiceRoleResponse>;
|
|
7469
7553
|
/**
|
|
7470
7554
|
* @summary Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
|
|
7471
7555
|
*
|
|
@@ -7519,7 +7603,7 @@ export default class Client extends OpenApi {
|
|
|
7519
7603
|
*/
|
|
7520
7604
|
createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse>;
|
|
7521
7605
|
/**
|
|
7522
|
-
* @summary You can
|
|
7606
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
|
|
7523
7607
|
*
|
|
7524
7608
|
* @param request CreateClusterNodePoolRequest
|
|
7525
7609
|
* @param headers map
|
|
@@ -7530,7 +7614,7 @@ export default class Client extends OpenApi {
|
|
|
7530
7614
|
[key: string]: string;
|
|
7531
7615
|
}, runtime: $Util.RuntimeOptions): Promise<CreateClusterNodePoolResponse>;
|
|
7532
7616
|
/**
|
|
7533
|
-
* @summary You can
|
|
7617
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
|
|
7534
7618
|
*
|
|
7535
7619
|
* @param request CreateClusterNodePoolRequest
|
|
7536
7620
|
* @return CreateClusterNodePoolResponse
|
|
@@ -9475,9 +9559,8 @@ export default class Client extends OpenApi {
|
|
|
9475
9559
|
/**
|
|
9476
9560
|
* @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
|
|
9477
9561
|
*
|
|
9478
|
-
* @description
|
|
9479
|
-
*
|
|
9480
|
-
* * 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.
|
|
9562
|
+
* @description - You can call this operation only with an Alibaba Cloud account.
|
|
9563
|
+
* - 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.
|
|
9481
9564
|
*
|
|
9482
9565
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
9483
9566
|
* @param headers map
|
|
@@ -9490,9 +9573,8 @@ export default class Client extends OpenApi {
|
|
|
9490
9573
|
/**
|
|
9491
9574
|
* @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
|
|
9492
9575
|
*
|
|
9493
|
-
* @description
|
|
9494
|
-
*
|
|
9495
|
-
* * 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.
|
|
9576
|
+
* @description - You can call this operation only with an Alibaba Cloud account.
|
|
9577
|
+
* - 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.
|
|
9496
9578
|
*
|
|
9497
9579
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
9498
9580
|
* @return UpdateK8sClusterUserConfigExpireResponse
|
package/dist/client.js
CHANGED
|
@@ -26,16 +26,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.UpgradeClusterNodepoolRequestRollingPolicy = exports.UpgradeClusterAddonsRequestBody = exports.UpdateUserPermissionsRequestBody = exports.UnInstallClusterAddonsRequestAddons = exports.ScaleOutClusterRequestWorkerDataDisks = exports.ScaleClusterRequestWorkerDataDisks = exports.ScaleClusterRequestTaints = void 0;
|
|
29
|
+
exports.DeleteAlertContactShrinkRequest = exports.DeleteAlertContactRequest = exports.CreateTriggerResponse = exports.CreateTriggerResponseBody = exports.CreateTriggerRequest = exports.CreateTemplateResponse = exports.CreateTemplateResponseBody = exports.CreateTemplateRequest = exports.CreateKubernetesTriggerResponse = exports.CreateKubernetesTriggerResponseBody = exports.CreateKubernetesTriggerRequest = exports.CreateEdgeMachineResponse = exports.CreateEdgeMachineResponseBody = exports.CreateEdgeMachineRequest = exports.CreateClusterNodePoolResponse = exports.CreateClusterNodePoolResponseBody = exports.CreateClusterNodePoolRequest = exports.CreateClusterResponse = exports.CreateClusterResponseBody = exports.CreateClusterRequest = exports.CreateAutoscalingConfigResponse = exports.CreateAutoscalingConfigRequest = exports.CheckServiceRoleResponse = exports.CheckServiceRoleResponseBody = exports.CheckServiceRoleRequest = exports.CheckControlPlaneLogEnableResponse = exports.CheckControlPlaneLogEnableResponseBody = exports.CancelWorkflowResponse = exports.CancelWorkflowRequest = exports.CancelTaskResponse = exports.CancelOperationPlanResponse = exports.CancelOperationPlanResponseBody = exports.CancelComponentUpgradeResponse = exports.CancelClusterUpgradeResponse = exports.AttachInstancesToNodePoolResponse = exports.AttachInstancesToNodePoolResponseBody = exports.AttachInstancesToNodePoolRequest = exports.AttachInstancesResponse = exports.AttachInstancesResponseBody = exports.AttachInstancesRequest = exports.QuotasValue = exports.StandardComponentsValue = exports.Taint = exports.Tag = exports.Runtime = exports.Nodepool = exports.MaintenanceWindow = exports.KubeletConfig = exports.DataDisk = exports.Addon = void 0;
|
|
30
|
+
exports.DescribeClusterEventsResponse = exports.DescribeClusterEventsResponseBody = exports.DescribeClusterEventsRequest = exports.DescribeClusterDetailResponse = exports.DescribeClusterDetailResponseBody = exports.DescribeClusterAttachScriptsResponse = exports.DescribeClusterAttachScriptsRequest = exports.DescribeClusterAddonsVersionResponse = exports.DescribeClusterAddonsUpgradeStatusResponse = exports.DescribeClusterAddonsUpgradeStatusShrinkRequest = exports.DescribeClusterAddonsUpgradeStatusRequest = exports.DescribeClusterAddonUpgradeStatusResponse = exports.DescribeClusterAddonMetadataResponse = exports.DescribeClusterAddonMetadataResponseBody = exports.DescribeClusterAddonMetadataRequest = exports.DescribeClusterAddonInstanceResponse = exports.DescribeClusterAddonInstanceResponseBody = exports.DescribeAddonsResponse = exports.DescribeAddonsResponseBody = exports.DescribeAddonsRequest = exports.DescribeAddonResponse = exports.DescribeAddonResponseBody = exports.DescribeAddonRequest = exports.DescirbeWorkflowResponse = exports.DescirbeWorkflowResponseBody = exports.DeployPolicyInstanceResponse = exports.DeployPolicyInstanceResponseBody = exports.DeployPolicyInstanceRequest = exports.DeleteTriggerResponse = exports.DeleteTemplateResponse = exports.DeletePolicyInstanceResponse = exports.DeletePolicyInstanceResponseBody = exports.DeletePolicyInstanceRequest = exports.DeleteKubernetesTriggerResponse = exports.DeleteEdgeMachineResponse = exports.DeleteEdgeMachineRequest = exports.DeleteClusterNodesResponse = exports.DeleteClusterNodesResponseBody = exports.DeleteClusterNodesRequest = exports.DeleteClusterNodepoolResponse = exports.DeleteClusterNodepoolResponseBody = exports.DeleteClusterNodepoolRequest = exports.DeleteClusterResponse = exports.DeleteClusterResponseBody = exports.DeleteClusterShrinkRequest = exports.DeleteClusterRequest = exports.DeleteAlertContactGroupResponse = exports.DeleteAlertContactGroupShrinkRequest = exports.DeleteAlertContactGroupRequest = exports.DeleteAlertContactResponse = void 0;
|
|
31
|
+
exports.DescribePolicyDetailsResponse = exports.DescribePolicyDetailsResponseBody = exports.DescribePoliciesResponse = exports.DescribeNodePoolVulsResponse = exports.DescribeNodePoolVulsResponseBody = exports.DescribeNodePoolVulsRequest = exports.DescribeKubernetesVersionMetadataResponse = exports.DescribeKubernetesVersionMetadataRequest = exports.DescribeExternalAgentResponse = exports.DescribeExternalAgentResponseBody = exports.DescribeExternalAgentRequest = exports.DescribeEventsResponse = exports.DescribeEventsResponseBody = exports.DescribeEventsRequest = exports.DescribeEdgeMachinesResponse = exports.DescribeEdgeMachinesResponseBody = exports.DescribeEdgeMachinesRequest = exports.DescribeEdgeMachineTunnelConfigDetailResponse = exports.DescribeEdgeMachineTunnelConfigDetailResponseBody = exports.DescribeEdgeMachineModelsResponse = exports.DescribeEdgeMachineModelsResponseBody = exports.DescribeEdgeMachineActiveProcessResponse = exports.DescribeEdgeMachineActiveProcessResponseBody = exports.DescribeClustersV1Response = exports.DescribeClustersV1ResponseBody = exports.DescribeClustersV1Request = exports.DescribeClustersResponse = exports.DescribeClustersRequest = exports.DescribeClusterVulsResponse = exports.DescribeClusterVulsResponseBody = exports.DescribeClusterV2UserKubeconfigResponse = exports.DescribeClusterV2UserKubeconfigResponseBody = exports.DescribeClusterV2UserKubeconfigRequest = exports.DescribeClusterUserKubeconfigResponse = exports.DescribeClusterUserKubeconfigResponseBody = exports.DescribeClusterUserKubeconfigRequest = exports.DescribeClusterTasksResponse = exports.DescribeClusterTasksResponseBody = exports.DescribeClusterTasksRequest = exports.DescribeClusterResourcesResponse = exports.DescribeClusterResourcesRequest = exports.DescribeClusterNodesResponse = exports.DescribeClusterNodesResponseBody = exports.DescribeClusterNodesRequest = exports.DescribeClusterNodePoolsResponse = exports.DescribeClusterNodePoolsResponseBody = exports.DescribeClusterNodePoolsRequest = exports.DescribeClusterNodePoolDetailResponse = exports.DescribeClusterNodePoolDetailResponseBody = exports.DescribeClusterLogsResponse = void 0;
|
|
32
|
+
exports.ListClusterChecksResponse = exports.ListClusterChecksResponseBody = exports.ListClusterChecksRequest = exports.ListClusterAddonInstancesResponse = exports.ListClusterAddonInstancesResponseBody = exports.ListAddonsResponse = exports.ListAddonsResponseBody = exports.ListAddonsRequest = exports.InstallClusterAddonsResponse = exports.InstallClusterAddonsRequest = exports.GrantPermissionsResponse = exports.GrantPermissionsRequest = exports.GetUpgradeStatusResponse = exports.GetUpgradeStatusResponseBody = exports.GetKubernetesTriggerResponse = exports.GetKubernetesTriggerRequest = exports.GetClusterCheckResponse = exports.GetClusterCheckResponseBody = exports.GetClusterAddonInstanceResponse = exports.GetClusterAddonInstanceResponseBody = exports.FixNodePoolVulsResponse = exports.FixNodePoolVulsResponseBody = exports.FixNodePoolVulsRequest = exports.EdgeClusterAddEdgeMachineResponse = exports.EdgeClusterAddEdgeMachineResponseBody = exports.EdgeClusterAddEdgeMachineRequest = exports.DescribeWorkflowsResponse = exports.DescribeWorkflowsResponseBody = exports.DescribeUserQuotaResponse = exports.DescribeUserQuotaResponseBody = exports.DescribeUserPermissionResponse = exports.DescribeUserClusterNamespacesResponse = exports.DescribeTriggerResponse = exports.DescribeTriggerRequest = exports.DescribeTemplatesResponse = exports.DescribeTemplatesResponseBody = exports.DescribeTemplatesRequest = exports.DescribeTemplateAttributeResponse = exports.DescribeTemplateAttributeRequest = exports.DescribeTaskInfoResponse = exports.DescribeTaskInfoResponseBody = exports.DescribeSubaccountK8sClusterUserConfigResponse = exports.DescribeSubaccountK8sClusterUserConfigResponseBody = exports.DescribeSubaccountK8sClusterUserConfigRequest = exports.DescribePolicyInstancesStatusResponse = exports.DescribePolicyInstancesStatusResponseBody = exports.DescribePolicyInstancesResponse = exports.DescribePolicyInstancesRequest = exports.DescribePolicyGovernanceInClusterResponse = exports.DescribePolicyGovernanceInClusterResponseBody = void 0;
|
|
33
|
+
exports.RunClusterCheckResponse = exports.RunClusterCheckResponseBody = exports.RunClusterCheckRequest = exports.ResumeUpgradeClusterResponse = exports.ResumeTaskResponse = exports.ResumeComponentUpgradeResponse = exports.RepairClusterNodePoolResponse = exports.RepairClusterNodePoolResponseBody = exports.RepairClusterNodePoolRequest = exports.RemoveWorkflowResponse = exports.RemoveNodePoolNodesResponse = exports.RemoveNodePoolNodesResponseBody = exports.RemoveNodePoolNodesShrinkRequest = exports.RemoveNodePoolNodesRequest = exports.RemoveClusterNodesResponse = exports.RemoveClusterNodesRequest = exports.PauseTaskResponse = exports.PauseComponentUpgradeResponse = exports.PauseClusterUpgradeResponse = exports.OpenAckServiceResponse = exports.OpenAckServiceResponseBody = exports.OpenAckServiceRequest = exports.ModifyPolicyInstanceResponse = exports.ModifyPolicyInstanceResponseBody = exports.ModifyPolicyInstanceRequest = exports.ModifyNodePoolNodeConfigResponse = exports.ModifyNodePoolNodeConfigResponseBody = exports.ModifyNodePoolNodeConfigRequest = exports.ModifyClusterTagsResponse = exports.ModifyClusterTagsRequest = exports.ModifyClusterNodePoolResponse = exports.ModifyClusterNodePoolResponseBody = exports.ModifyClusterNodePoolRequest = exports.ModifyClusterConfigurationResponse = exports.ModifyClusterConfigurationRequest = exports.ModifyClusterAddonResponse = exports.ModifyClusterAddonRequest = exports.ModifyClusterResponse = exports.ModifyClusterResponseBody = exports.ModifyClusterRequest = exports.MigrateClusterResponse = exports.MigrateClusterResponseBody = exports.MigrateClusterRequest = exports.ListTagResourcesResponse = exports.ListTagResourcesResponseBody = exports.ListTagResourcesShrinkRequest = exports.ListTagResourcesRequest = exports.ListOperationPlansResponse = exports.ListOperationPlansResponseBody = exports.ListOperationPlansRequest = void 0;
|
|
34
|
+
exports.NodepoolAutoScaling = exports.UpgradeClusterNodepoolResponse = exports.UpgradeClusterNodepoolResponseBody = exports.UpgradeClusterNodepoolRequest = exports.UpgradeClusterAddonsResponse = exports.UpgradeClusterAddonsRequest = exports.UpgradeClusterResponse = exports.UpgradeClusterResponseBody = exports.UpgradeClusterRequest = exports.UpdateUserPermissionsResponse = exports.UpdateUserPermissionsRequest = exports.UpdateTemplateResponse = exports.UpdateTemplateRequest = exports.UpdateK8sClusterUserConfigExpireResponse = exports.UpdateK8sClusterUserConfigExpireRequest = exports.UpdateControlPlaneLogResponse = exports.UpdateControlPlaneLogResponseBody = exports.UpdateControlPlaneLogRequest = exports.UpdateContactGroupForAlertResponse = exports.UntagResourcesResponse = exports.UntagResourcesResponseBody = exports.UntagResourcesShrinkRequest = exports.UntagResourcesRequest = exports.UnInstallClusterAddonsResponse = exports.UnInstallClusterAddonsRequest = exports.TagResourcesResponse = exports.TagResourcesResponseBody = exports.TagResourcesRequest = exports.SyncClusterNodePoolResponse = exports.SyncClusterNodePoolResponseBody = exports.StopAlertResponse = exports.StopAlertResponseBody = exports.StopAlertRequest = exports.StartWorkflowResponse = exports.StartWorkflowResponseBody = exports.StartWorkflowRequest = exports.StartAlertResponse = exports.StartAlertResponseBody = exports.StartAlertRequest = exports.ScanClusterVulsResponse = exports.ScanClusterVulsResponseBody = exports.ScaleOutClusterResponse = exports.ScaleOutClusterResponseBody = exports.ScaleOutClusterRequest = exports.ScaleClusterNodePoolResponse = exports.ScaleClusterNodePoolResponseBody = exports.ScaleClusterNodePoolRequest = exports.ScaleClusterResponse = exports.ScaleClusterResponseBody = exports.ScaleClusterRequest = void 0;
|
|
35
|
+
exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy = exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy = exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy = exports.DescribeClusterNodePoolDetailResponseBodyKubernetesConfig = exports.DescribeClusterNodePoolDetailResponseBodyInterconnectConfig = exports.DescribeClusterNodePoolDetailResponseBodyAutoScaling = exports.DescribeClusterLogsResponseBody = exports.DescribeClusterEventsResponseBodyPageInfo = exports.DescribeClusterEventsResponseBodyEvents = exports.DescribeClusterEventsResponseBodyEventsData = exports.DescribeAddonsResponseBodyComponentGroups = exports.DescribeAddonsResponseBodyComponentGroupsItems = exports.DescribeAddonResponseBodyNewerVersions = exports.DeleteClusterRequestDeleteOptions = exports.DeleteAlertContactGroupResponseBody = exports.DeleteAlertContactResponseBody = exports.DeleteAlertContactResponseBodyBody = exports.CreateClusterNodePoolRequestTeeConfig = exports.CreateClusterNodePoolRequestScalingGroup = exports.CreateClusterNodePoolRequestScalingGroupTags = exports.CreateClusterNodePoolRequestScalingGroupSpotPriceLimit = exports.CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions = exports.CreateClusterNodePoolRequestNodepoolInfo = exports.CreateClusterNodePoolRequestNodeConfig = exports.CreateClusterNodePoolRequestManagement = exports.CreateClusterNodePoolRequestManagementUpgradeConfig = exports.CreateClusterNodePoolRequestManagementAutoVulFixPolicy = exports.CreateClusterNodePoolRequestManagementAutoUpgradePolicy = exports.CreateClusterNodePoolRequestManagementAutoRepairPolicy = exports.CreateClusterNodePoolRequestKubernetesConfig = exports.CreateClusterNodePoolRequestInterconnectConfig = exports.CreateClusterNodePoolRequestAutoScaling = exports.CreateClusterRequestWorkerDataDisks = exports.CheckServiceRoleResponseBodyRoles = exports.CheckServiceRoleRequestRoles = exports.AttachInstancesResponseBodyList = exports.NodepoolTeeConfig = exports.NodepoolScalingGroup = exports.NodepoolScalingGroupTags = exports.NodepoolScalingGroupSpotPriceLimit = exports.NodepoolScalingGroupPrivatePoolOptions = exports.NodepoolNodepoolInfo = exports.NodepoolNodeConfig = exports.NodepoolManagement = exports.NodepoolManagementUpgradeConfig = exports.NodepoolManagementAutoVulFixPolicy = exports.NodepoolManagementAutoUpgradePolicy = exports.NodepoolManagementAutoRepairPolicy = exports.NodepoolKubernetesConfig = exports.NodepoolInterconnectConfig = void 0;
|
|
36
|
+
exports.DescribePolicyGovernanceInClusterResponseBodyAdmitLogLog = exports.DescribeNodePoolVulsResponseBodyVulRecords = exports.DescribeNodePoolVulsResponseBodyVulRecordsVulList = exports.DescribeKubernetesVersionMetadataResponseBody = exports.DescribeKubernetesVersionMetadataResponseBodyImages = exports.DescribeEventsResponseBodyPageInfo = exports.DescribeEventsResponseBodyEvents = exports.DescribeEventsResponseBodyEventsData = exports.DescribeEdgeMachinesResponseBodyPageInfo = exports.DescribeEdgeMachinesResponseBodyEdgeMachines = exports.DescribeEdgeMachineModelsResponseBodyModels = exports.DescribeClustersV1ResponseBodyPageInfo = exports.DescribeClustersV1ResponseBodyClusters = exports.DescribeClustersResponseBody = exports.DescribeClustersResponseBodyTags = exports.DescribeClusterVulsResponseBodyVulRecords = exports.DescribeClusterTasksResponseBodyTasks = exports.DescribeClusterTasksResponseBodyTasksError = exports.DescribeClusterTasksResponseBodyPageInfo = exports.DescribeClusterResourcesResponseBody = exports.DescribeClusterResourcesResponseBodyDeleteBehavior = exports.DescribeClusterResourcesResponseBodyAssociatedObject = exports.DescribeClusterResourcesResponseBodyDependencies = exports.DescribeClusterNodesResponseBodyPage = exports.DescribeClusterNodesResponseBodyNodes = exports.DescribeClusterNodePoolsResponseBodyNodepools = exports.DescribeClusterNodePoolsResponseBodyNodepoolsTeeConfig = exports.DescribeClusterNodePoolsResponseBodyNodepoolsStatus = exports.DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup = exports.DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit = exports.DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions = exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo = exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodeConfig = exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagement = exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig = exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy = exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy = exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy = exports.DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig = exports.DescribeClusterNodePoolsResponseBodyNodepoolsInterconnectConfig = exports.DescribeClusterNodePoolsResponseBodyNodepoolsAutoScaling = exports.DescribeClusterNodePoolDetailResponseBodyTeeConfig = exports.DescribeClusterNodePoolDetailResponseBodyStatus = exports.DescribeClusterNodePoolDetailResponseBodyScalingGroup = exports.DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit = exports.DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions = exports.DescribeClusterNodePoolDetailResponseBodyNodepoolInfo = exports.DescribeClusterNodePoolDetailResponseBodyNodeConfig = exports.DescribeClusterNodePoolDetailResponseBodyManagement = exports.DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig = void 0;
|
|
37
|
+
exports.ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit = exports.ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions = exports.ModifyClusterNodePoolRequestNodepoolInfo = exports.ModifyClusterNodePoolRequestManagement = exports.ModifyClusterNodePoolRequestManagementUpgradeConfig = exports.ModifyClusterNodePoolRequestManagementAutoVulFixPolicy = exports.ModifyClusterNodePoolRequestManagementAutoUpgradePolicy = exports.ModifyClusterNodePoolRequestManagementAutoRepairPolicy = exports.ModifyClusterNodePoolRequestKubernetesConfig = exports.ModifyClusterNodePoolRequestAutoScaling = exports.ModifyClusterConfigurationRequestCustomizeConfig = exports.ModifyClusterConfigurationRequestCustomizeConfigConfigs = exports.ModifyClusterRequestSystemEventsLogging = exports.ModifyClusterRequestOperationPolicy = exports.ModifyClusterRequestOperationPolicyClusterAutoUpgrade = exports.ModifyClusterRequestApiServerCustomCertSans = exports.ListTagResourcesResponseBodyTagResources = exports.ListTagResourcesResponseBodyTagResourcesTagResource = exports.ListOperationPlansResponseBodyPlans = exports.ListClusterChecksResponseBodyChecks = exports.ListClusterAddonInstancesResponseBodyAddons = exports.ListAddonsResponseBodyAddons = exports.InstallClusterAddonsRequestBody = exports.GrantPermissionsRequestBody = exports.GetUpgradeStatusResponseBodyUpgradeTask = exports.GetKubernetesTriggerResponseBody = exports.GetClusterAddonInstanceResponseBodyLogging = exports.FixNodePoolVulsRequestRolloutPolicy = exports.DescribeWorkflowsResponseBodyJobs = exports.DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota = exports.DescribeUserPermissionResponseBody = exports.DescribeTriggerResponseBody = exports.DescribeTemplatesResponseBodyTemplates = exports.DescribeTemplatesResponseBodyPageInfo = exports.DescribeTemplateAttributeResponseBody = exports.DescribeTaskInfoResponseBodyTaskResult = exports.DescribeTaskInfoResponseBodyTarget = exports.DescribeTaskInfoResponseBodyStages = exports.DescribeTaskInfoResponseBodyEvents = exports.DescribeTaskInfoResponseBodyError = exports.DescribePolicyInstancesStatusResponseBodyPolicyInstances = exports.DescribePolicyInstancesResponseBody = exports.DescribePolicyGovernanceInClusterResponseBodyViolations = exports.DescribePolicyGovernanceInClusterResponseBodyViolationsWarn = exports.DescribePolicyGovernanceInClusterResponseBodyViolationsDeny = exports.DescribePolicyGovernanceInClusterResponseBodyTotalViolations = exports.DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn = exports.DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny = exports.DescribePolicyGovernanceInClusterResponseBodyOnState = exports.DescribePolicyGovernanceInClusterResponseBodyAdmitLog = void 0;
|
|
38
|
+
exports.UpgradeClusterNodepoolRequestRollingPolicy = exports.UpgradeClusterAddonsRequestBody = exports.UpdateUserPermissionsRequestBody = exports.UnInstallClusterAddonsRequestAddons = exports.ScaleOutClusterRequestWorkerDataDisks = exports.ScaleClusterRequestWorkerDataDisks = exports.ScaleClusterRequestTaints = exports.ScaleClusterRequestTags = exports.ModifyNodePoolNodeConfigRequestRollingPolicy = exports.ModifyNodePoolNodeConfigRequestOsConfig = exports.ModifyClusterNodePoolRequestTeeConfig = exports.ModifyClusterNodePoolRequestScalingGroup = void 0;
|
|
39
39
|
// This file is auto-generated, don't edit it
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
@@ -625,6 +625,58 @@ class CheckControlPlaneLogEnableResponse extends $tea.Model {
|
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
exports.CheckControlPlaneLogEnableResponse = CheckControlPlaneLogEnableResponse;
|
|
628
|
+
class CheckServiceRoleRequest extends $tea.Model {
|
|
629
|
+
static names() {
|
|
630
|
+
return {
|
|
631
|
+
roles: 'roles',
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
static types() {
|
|
635
|
+
return {
|
|
636
|
+
roles: { 'type': 'array', 'itemType': CheckServiceRoleRequestRoles },
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
constructor(map) {
|
|
640
|
+
super(map);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
exports.CheckServiceRoleRequest = CheckServiceRoleRequest;
|
|
644
|
+
class CheckServiceRoleResponseBody extends $tea.Model {
|
|
645
|
+
static names() {
|
|
646
|
+
return {
|
|
647
|
+
roles: 'roles',
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
static types() {
|
|
651
|
+
return {
|
|
652
|
+
roles: { 'type': 'array', 'itemType': CheckServiceRoleResponseBodyRoles },
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
constructor(map) {
|
|
656
|
+
super(map);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.CheckServiceRoleResponseBody = CheckServiceRoleResponseBody;
|
|
660
|
+
class CheckServiceRoleResponse extends $tea.Model {
|
|
661
|
+
static names() {
|
|
662
|
+
return {
|
|
663
|
+
headers: 'headers',
|
|
664
|
+
statusCode: 'statusCode',
|
|
665
|
+
body: 'body',
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
static types() {
|
|
669
|
+
return {
|
|
670
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
671
|
+
statusCode: 'number',
|
|
672
|
+
body: CheckServiceRoleResponseBody,
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
constructor(map) {
|
|
676
|
+
super(map);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
exports.CheckServiceRoleResponse = CheckServiceRoleResponse;
|
|
628
680
|
class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
629
681
|
static names() {
|
|
630
682
|
return {
|
|
@@ -6793,6 +6845,42 @@ class AttachInstancesResponseBodyList extends $tea.Model {
|
|
|
6793
6845
|
}
|
|
6794
6846
|
}
|
|
6795
6847
|
exports.AttachInstancesResponseBodyList = AttachInstancesResponseBodyList;
|
|
6848
|
+
class CheckServiceRoleRequestRoles extends $tea.Model {
|
|
6849
|
+
static names() {
|
|
6850
|
+
return {
|
|
6851
|
+
name: 'name',
|
|
6852
|
+
};
|
|
6853
|
+
}
|
|
6854
|
+
static types() {
|
|
6855
|
+
return {
|
|
6856
|
+
name: 'string',
|
|
6857
|
+
};
|
|
6858
|
+
}
|
|
6859
|
+
constructor(map) {
|
|
6860
|
+
super(map);
|
|
6861
|
+
}
|
|
6862
|
+
}
|
|
6863
|
+
exports.CheckServiceRoleRequestRoles = CheckServiceRoleRequestRoles;
|
|
6864
|
+
class CheckServiceRoleResponseBodyRoles extends $tea.Model {
|
|
6865
|
+
static names() {
|
|
6866
|
+
return {
|
|
6867
|
+
granted: 'granted',
|
|
6868
|
+
message: 'message',
|
|
6869
|
+
name: 'name',
|
|
6870
|
+
};
|
|
6871
|
+
}
|
|
6872
|
+
static types() {
|
|
6873
|
+
return {
|
|
6874
|
+
granted: 'boolean',
|
|
6875
|
+
message: 'string',
|
|
6876
|
+
name: 'string',
|
|
6877
|
+
};
|
|
6878
|
+
}
|
|
6879
|
+
constructor(map) {
|
|
6880
|
+
super(map);
|
|
6881
|
+
}
|
|
6882
|
+
}
|
|
6883
|
+
exports.CheckServiceRoleResponseBodyRoles = CheckServiceRoleResponseBodyRoles;
|
|
6796
6884
|
class CreateClusterRequestWorkerDataDisks extends $tea.Model {
|
|
6797
6885
|
static names() {
|
|
6798
6886
|
return {
|
|
@@ -10835,6 +10923,48 @@ class Client extends openapi_client_1.default {
|
|
|
10835
10923
|
let headers = {};
|
|
10836
10924
|
return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
|
|
10837
10925
|
}
|
|
10926
|
+
/**
|
|
10927
|
+
* @summary 检查是否授权指定服务角色
|
|
10928
|
+
*
|
|
10929
|
+
* @param request CheckServiceRoleRequest
|
|
10930
|
+
* @param headers map
|
|
10931
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
10932
|
+
* @return CheckServiceRoleResponse
|
|
10933
|
+
*/
|
|
10934
|
+
async checkServiceRoleWithOptions(request, headers, runtime) {
|
|
10935
|
+
tea_util_1.default.validateModel(request);
|
|
10936
|
+
let body = {};
|
|
10937
|
+
if (!tea_util_1.default.isUnset(request.roles)) {
|
|
10938
|
+
body["roles"] = request.roles;
|
|
10939
|
+
}
|
|
10940
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10941
|
+
headers: headers,
|
|
10942
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
10943
|
+
});
|
|
10944
|
+
let params = new $OpenApi.Params({
|
|
10945
|
+
action: "CheckServiceRole",
|
|
10946
|
+
version: "2015-12-15",
|
|
10947
|
+
protocol: "HTTPS",
|
|
10948
|
+
pathname: `/ram/check-service-role`,
|
|
10949
|
+
method: "POST",
|
|
10950
|
+
authType: "AK",
|
|
10951
|
+
style: "ROA",
|
|
10952
|
+
reqBodyType: "json",
|
|
10953
|
+
bodyType: "json",
|
|
10954
|
+
});
|
|
10955
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CheckServiceRoleResponse({}));
|
|
10956
|
+
}
|
|
10957
|
+
/**
|
|
10958
|
+
* @summary 检查是否授权指定服务角色
|
|
10959
|
+
*
|
|
10960
|
+
* @param request CheckServiceRoleRequest
|
|
10961
|
+
* @return CheckServiceRoleResponse
|
|
10962
|
+
*/
|
|
10963
|
+
async checkServiceRole(request) {
|
|
10964
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10965
|
+
let headers = {};
|
|
10966
|
+
return await this.checkServiceRoleWithOptions(request, headers, runtime);
|
|
10967
|
+
}
|
|
10838
10968
|
/**
|
|
10839
10969
|
* @summary Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
|
|
10840
10970
|
*
|
|
@@ -11245,7 +11375,7 @@ class Client extends openapi_client_1.default {
|
|
|
11245
11375
|
return await this.createClusterWithOptions(request, headers, runtime);
|
|
11246
11376
|
}
|
|
11247
11377
|
/**
|
|
11248
|
-
* @summary You can
|
|
11378
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
|
|
11249
11379
|
*
|
|
11250
11380
|
* @param request CreateClusterNodePoolRequest
|
|
11251
11381
|
* @param headers map
|
|
@@ -11306,7 +11436,7 @@ class Client extends openapi_client_1.default {
|
|
|
11306
11436
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
11307
11437
|
}
|
|
11308
11438
|
/**
|
|
11309
|
-
* @summary You can
|
|
11439
|
+
* @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
|
|
11310
11440
|
*
|
|
11311
11441
|
* @param request CreateClusterNodePoolRequest
|
|
11312
11442
|
* @return CreateClusterNodePoolResponse
|
|
@@ -16190,9 +16320,8 @@ class Client extends openapi_client_1.default {
|
|
|
16190
16320
|
/**
|
|
16191
16321
|
* @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
|
|
16192
16322
|
*
|
|
16193
|
-
* @description
|
|
16194
|
-
*
|
|
16195
|
-
* * 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.
|
|
16323
|
+
* @description - You can call this operation only with an Alibaba Cloud account.
|
|
16324
|
+
* - 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.
|
|
16196
16325
|
*
|
|
16197
16326
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
16198
16327
|
* @param headers map
|
|
@@ -16228,9 +16357,8 @@ class Client extends openapi_client_1.default {
|
|
|
16228
16357
|
/**
|
|
16229
16358
|
* @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
|
|
16230
16359
|
*
|
|
16231
|
-
* @description
|
|
16232
|
-
*
|
|
16233
|
-
* * 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.
|
|
16360
|
+
* @description - You can call this operation only with an Alibaba Cloud account.
|
|
16361
|
+
* - 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.
|
|
16234
16362
|
*
|
|
16235
16363
|
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
16236
16364
|
* @return UpdateK8sClusterUserConfigExpireResponse
|