@alicloud/cs20151215 6.5.2 → 6.6.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 +36 -18
- package/dist/client.js +63 -18
- package/dist/client.js.map +1 -1
- package/dist/models/Addon.d.ts +16 -1
- package/dist/models/Addon.js.map +1 -1
- package/dist/models/ContainerdConfig.d.ts +8 -0
- package/dist/models/ContainerdConfig.js.map +1 -1
- package/dist/models/CreateAutoRepairPolicyRequest.d.ts +0 -51
- package/dist/models/CreateAutoRepairPolicyRequest.js +1 -55
- package/dist/models/CreateAutoRepairPolicyRequest.js.map +1 -1
- package/dist/models/DataDisk.d.ts +71 -0
- package/dist/models/DataDisk.js.map +1 -1
- package/dist/models/DeleteAlertContactResponse.d.ts +0 -24
- package/dist/models/DeleteAlertContactResponse.js.map +1 -1
- package/dist/models/DescribeAutoRepairPolicyResponseBody.d.ts +1 -52
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js +2 -56
- package/dist/models/DescribeAutoRepairPolicyResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterAddonMetadataRequest.d.ts +7 -0
- package/dist/models/DescribeClusterAddonMetadataRequest.js.map +1 -1
- package/dist/models/InstancePatterns.d.ts +77 -0
- package/dist/models/InstancePatterns.js.map +1 -1
- package/dist/models/KubeletConfig.d.ts +127 -0
- package/dist/models/KubeletConfig.js.map +1 -1
- package/dist/models/ListAutoRepairPoliciesResponseBody.d.ts +1 -52
- package/dist/models/ListAutoRepairPoliciesResponseBody.js +2 -56
- package/dist/models/ListAutoRepairPoliciesResponseBody.js.map +1 -1
- package/dist/models/MaintenanceWindow.d.ts +31 -1
- package/dist/models/MaintenanceWindow.js.map +1 -1
- package/dist/models/ModifyAutoRepairPolicyRequest.d.ts +0 -51
- package/dist/models/ModifyAutoRepairPolicyRequest.js +1 -55
- package/dist/models/ModifyAutoRepairPolicyRequest.js.map +1 -1
- package/dist/models/Nodepool.d.ts +508 -10
- package/dist/models/Nodepool.js.map +1 -1
- package/dist/models/Runtime.d.ts +14 -0
- package/dist/models/Runtime.js.map +1 -1
- package/dist/models/Tag.d.ts +6 -0
- package/dist/models/Tag.js.map +1 -1
- package/dist/models/Taint.d.ts +15 -0
- package/dist/models/Taint.js.map +1 -1
- package/dist/models/UpdateKmsencryptionRequest.d.ts +23 -0
- package/dist/models/UpdateKmsencryptionRequest.js +60 -0
- package/dist/models/UpdateKmsencryptionRequest.js.map +1 -0
- package/dist/models/UpdateKmsencryptionResponse.d.ts +17 -0
- package/dist/models/UpdateKmsencryptionResponse.js +63 -0
- package/dist/models/UpdateKmsencryptionResponse.js.map +1 -0
- package/dist/models/model.d.ts +2 -8
- package/dist/models/model.js +50 -62
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +67 -18
- package/src/models/Addon.ts +16 -1
- package/src/models/ContainerdConfig.ts +8 -0
- package/src/models/CreateAutoRepairPolicyRequest.ts +0 -87
- package/src/models/DataDisk.ts +71 -0
- package/src/models/DeleteAlertContactResponse.ts +0 -24
- package/src/models/DescribeAutoRepairPolicyResponseBody.ts +2 -89
- package/src/models/DescribeClusterAddonMetadataRequest.ts +7 -0
- package/src/models/InstancePatterns.ts +77 -0
- package/src/models/KubeletConfig.ts +127 -0
- package/src/models/ListAutoRepairPoliciesResponseBody.ts +2 -89
- package/src/models/MaintenanceWindow.ts +31 -1
- package/src/models/ModifyAutoRepairPolicyRequest.ts +0 -87
- package/src/models/Nodepool.ts +508 -10
- package/src/models/Runtime.ts +14 -0
- package/src/models/Tag.ts +6 -0
- package/src/models/Taint.ts +15 -0
- package/src/models/UpdateKmsencryptionRequest.ts +38 -0
- package/src/models/UpdateKmsencryptionResponse.ts +33 -0
- package/src/models/model.ts +2 -8
package/src/client.ts
CHANGED
|
@@ -62,7 +62,7 @@ export default class Client extends OpenApi {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster.
|
|
65
|
+
* Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster. When you need to add an ECS instance as a worker node to an ACK cluster or re-add a worker node to the cluster, you can call this operation.
|
|
66
66
|
*
|
|
67
67
|
* @param request - AttachInstancesRequest
|
|
68
68
|
* @param headers - map
|
|
@@ -143,7 +143,7 @@ export default class Client extends OpenApi {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster.
|
|
146
|
+
* Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster. When you need to add an ECS instance as a worker node to an ACK cluster or re-add a worker node to the cluster, you can call this operation.
|
|
147
147
|
*
|
|
148
148
|
* @param request - AttachInstancesRequest
|
|
149
149
|
* @returns AttachInstancesResponse
|
|
@@ -292,7 +292,7 @@ export default class Client extends OpenApi {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
|
-
* You can call the CancelOperationPlan operation to cancel a pending auto O
|
|
295
|
+
* You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\\\\\\\\\&M plan.
|
|
296
296
|
*
|
|
297
297
|
* @param headers - map
|
|
298
298
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -317,7 +317,7 @@ export default class Client extends OpenApi {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* You can call the CancelOperationPlan operation to cancel a pending auto O
|
|
320
|
+
* You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\\\\\\\\\&M plan.
|
|
321
321
|
* @returns CancelOperationPlanResponse
|
|
322
322
|
*/
|
|
323
323
|
async cancelOperationPlan(planId: string): Promise<$_model.CancelOperationPlanResponse> {
|
|
@@ -1299,7 +1299,7 @@ export default class Client extends OpenApi {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
1301
|
/**
|
|
1302
|
-
* 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
|
|
1302
|
+
* 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.
|
|
1303
1303
|
*
|
|
1304
1304
|
* @param request - CreateClusterNodePoolRequest
|
|
1305
1305
|
* @param headers - map
|
|
@@ -1392,7 +1392,7 @@ export default class Client extends OpenApi {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
|
|
1394
1394
|
/**
|
|
1395
|
-
* 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
|
|
1395
|
+
* 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.
|
|
1396
1396
|
*
|
|
1397
1397
|
* @param request - CreateClusterNodePoolRequest
|
|
1398
1398
|
* @returns CreateClusterNodePoolResponse
|
|
@@ -1839,7 +1839,7 @@ export default class Client extends OpenApi {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
|
|
1841
1841
|
/**
|
|
1842
|
-
*
|
|
1842
|
+
* Deletes unused node pools. Deleting a node pool terminates all pods on its nodes, which triggers pod rescheduling. Insufficient cluster resources may cause scheduling failures and business impact.
|
|
1843
1843
|
*
|
|
1844
1844
|
* @param request - DeleteClusterNodepoolRequest
|
|
1845
1845
|
* @param headers - map
|
|
@@ -1872,7 +1872,7 @@ export default class Client extends OpenApi {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
/**
|
|
1875
|
-
*
|
|
1875
|
+
* Deletes unused node pools. Deleting a node pool terminates all pods on its nodes, which triggers pod rescheduling. Insufficient cluster resources may cause scheduling failures and business impact.
|
|
1876
1876
|
*
|
|
1877
1877
|
* @param request - DeleteClusterNodepoolRequest
|
|
1878
1878
|
* @returns DeleteClusterNodepoolResponse
|
|
@@ -4737,7 +4737,7 @@ export default class Client extends OpenApi {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
|
|
4739
4739
|
/**
|
|
4740
|
-
*
|
|
4740
|
+
* By default, RAM users or roles who aren\\"t cluster creators and haven\\"t been granted full cluster permissions have no RBAC permissions in the cluster. You can call this interface to update RBAC access permissions for RAM users/roles, including accessible resources, permission scopes, and preset roles, for enhanced security control on resources in Container Service for Kubernetes (ACK) clusters.
|
|
4741
4741
|
*
|
|
4742
4742
|
* @remarks
|
|
4743
4743
|
* If you use a Resource Access Management (RAM) account to call this operation, make sure it has permissions to modify cluster authorization information for other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
|
|
@@ -4769,7 +4769,7 @@ export default class Client extends OpenApi {
|
|
|
4769
4769
|
}
|
|
4770
4770
|
|
|
4771
4771
|
/**
|
|
4772
|
-
*
|
|
4772
|
+
* By default, RAM users or roles who aren\\"t cluster creators and haven\\"t been granted full cluster permissions have no RBAC permissions in the cluster. You can call this interface to update RBAC access permissions for RAM users/roles, including accessible resources, permission scopes, and preset roles, for enhanced security control on resources in Container Service for Kubernetes (ACK) clusters.
|
|
4773
4773
|
*
|
|
4774
4774
|
* @remarks
|
|
4775
4775
|
* If you use a Resource Access Management (RAM) account to call this operation, make sure it has permissions to modify cluster authorization information for other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
|
|
@@ -4785,7 +4785,7 @@ export default class Client extends OpenApi {
|
|
|
4785
4785
|
}
|
|
4786
4786
|
|
|
4787
4787
|
/**
|
|
4788
|
-
*
|
|
4788
|
+
* Installs a component by specifying the name and version of the component. To enhance Kubernetes capabilities, you can install a variety of components in Container Service for Kubernetes (ACK) clusters, such as fully-managed core components and application, logging and monitoring, network, storage, and security group components.
|
|
4789
4789
|
*
|
|
4790
4790
|
* @param request - InstallClusterAddonsRequest
|
|
4791
4791
|
* @param headers - map
|
|
@@ -4813,7 +4813,7 @@ export default class Client extends OpenApi {
|
|
|
4813
4813
|
}
|
|
4814
4814
|
|
|
4815
4815
|
/**
|
|
4816
|
-
*
|
|
4816
|
+
* Installs a component by specifying the name and version of the component. To enhance Kubernetes capabilities, you can install a variety of components in Container Service for Kubernetes (ACK) clusters, such as fully-managed core components and application, logging and monitoring, network, storage, and security group components.
|
|
4817
4817
|
*
|
|
4818
4818
|
* @param request - InstallClusterAddonsRequest
|
|
4819
4819
|
* @returns InstallClusterAddonsResponse
|
|
@@ -6916,7 +6916,7 @@ export default class Client extends OpenApi {
|
|
|
6916
6916
|
}
|
|
6917
6917
|
|
|
6918
6918
|
/**
|
|
6919
|
-
* You can add labels in key-value pairs to clusters. This allows cluster developers or O
|
|
6919
|
+
* You can add labels in key-value pairs to clusters. This allows cluster developers or O\\\\\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
|
|
6920
6920
|
*
|
|
6921
6921
|
* @param request - TagResourcesRequest
|
|
6922
6922
|
* @param headers - map
|
|
@@ -6961,7 +6961,7 @@ export default class Client extends OpenApi {
|
|
|
6961
6961
|
}
|
|
6962
6962
|
|
|
6963
6963
|
/**
|
|
6964
|
-
* You can add labels in key-value pairs to clusters. This allows cluster developers or O
|
|
6964
|
+
* You can add labels in key-value pairs to clusters. This allows cluster developers or O\\\\\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
|
|
6965
6965
|
*
|
|
6966
6966
|
* @param request - TagResourcesRequest
|
|
6967
6967
|
* @returns TagResourcesResponse
|
|
@@ -7362,6 +7362,55 @@ export default class Client extends OpenApi {
|
|
|
7362
7362
|
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
7363
7363
|
}
|
|
7364
7364
|
|
|
7365
|
+
/**
|
|
7366
|
+
* 更新 Secret 落盘加密配置
|
|
7367
|
+
*
|
|
7368
|
+
* @param request - UpdateKMSEncryptionRequest
|
|
7369
|
+
* @param headers - map
|
|
7370
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7371
|
+
* @returns UpdateKMSEncryptionResponse
|
|
7372
|
+
*/
|
|
7373
|
+
async updateKMSEncryptionWithOptions(ClusterId: string, request: $_model.UpdateKMSEncryptionRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateKMSEncryptionResponse> {
|
|
7374
|
+
request.validate();
|
|
7375
|
+
let body : {[key: string ]: any} = { };
|
|
7376
|
+
if (!$dara.isNull(request.disableEncryption)) {
|
|
7377
|
+
body["disable_encryption"] = request.disableEncryption;
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7380
|
+
if (!$dara.isNull(request.kmsKeyId)) {
|
|
7381
|
+
body["kms_key_id"] = request.kmsKeyId;
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7385
|
+
headers: headers,
|
|
7386
|
+
body: OpenApiUtil.parseToMap(body),
|
|
7387
|
+
});
|
|
7388
|
+
let params = new $OpenApiUtil.Params({
|
|
7389
|
+
action: "UpdateKMSEncryption",
|
|
7390
|
+
version: "2015-12-15",
|
|
7391
|
+
protocol: "HTTPS",
|
|
7392
|
+
pathname: `/clusters/${$dara.URL.percentEncode(ClusterId)}/kms`,
|
|
7393
|
+
method: "PUT",
|
|
7394
|
+
authType: "AK",
|
|
7395
|
+
style: "ROA",
|
|
7396
|
+
reqBodyType: "json",
|
|
7397
|
+
bodyType: "none",
|
|
7398
|
+
});
|
|
7399
|
+
return $dara.cast<$_model.UpdateKMSEncryptionResponse>(await this.callApi(params, req, runtime), new $_model.UpdateKMSEncryptionResponse({}));
|
|
7400
|
+
}
|
|
7401
|
+
|
|
7402
|
+
/**
|
|
7403
|
+
* 更新 Secret 落盘加密配置
|
|
7404
|
+
*
|
|
7405
|
+
* @param request - UpdateKMSEncryptionRequest
|
|
7406
|
+
* @returns UpdateKMSEncryptionResponse
|
|
7407
|
+
*/
|
|
7408
|
+
async updateKMSEncryption(ClusterId: string, request: $_model.UpdateKMSEncryptionRequest): Promise<$_model.UpdateKMSEncryptionResponse> {
|
|
7409
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
7410
|
+
let headers : {[key: string ]: string} = { };
|
|
7411
|
+
return await this.updateKMSEncryptionWithOptions(ClusterId, request, headers, runtime);
|
|
7412
|
+
}
|
|
7413
|
+
|
|
7365
7414
|
/**
|
|
7366
7415
|
* 更新节点组件
|
|
7367
7416
|
*
|
|
@@ -7546,7 +7595,7 @@ export default class Client extends OpenApi {
|
|
|
7546
7595
|
}
|
|
7547
7596
|
|
|
7548
7597
|
/**
|
|
7549
|
-
*
|
|
7598
|
+
* In a Container Service for Kubernetes (ACK) cluster, non-cluster creators, Resource Access Management (RAM) users, and RAM roles do not have any Role-Based Access Control (RBAC) permissions in the cluster by default. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
7550
7599
|
*
|
|
7551
7600
|
* @remarks
|
|
7552
7601
|
* *Precautions**:
|
|
@@ -7584,7 +7633,7 @@ export default class Client extends OpenApi {
|
|
|
7584
7633
|
}
|
|
7585
7634
|
|
|
7586
7635
|
/**
|
|
7587
|
-
*
|
|
7636
|
+
* In a Container Service for Kubernetes (ACK) cluster, non-cluster creators, Resource Access Management (RAM) users, and RAM roles do not have any Role-Based Access Control (RBAC) permissions in the cluster by default. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
|
|
7588
7637
|
*
|
|
7589
7638
|
* @remarks
|
|
7590
7639
|
* *Precautions**:
|
|
@@ -7675,7 +7724,7 @@ export default class Client extends OpenApi {
|
|
|
7675
7724
|
}
|
|
7676
7725
|
|
|
7677
7726
|
/**
|
|
7678
|
-
* Updates cluster
|
|
7727
|
+
* Updates cluster add-ons to newer versions for enhanced functionality.
|
|
7679
7728
|
*
|
|
7680
7729
|
* @param request - UpgradeClusterAddonsRequest
|
|
7681
7730
|
* @param headers - map
|
|
@@ -7703,7 +7752,7 @@ export default class Client extends OpenApi {
|
|
|
7703
7752
|
}
|
|
7704
7753
|
|
|
7705
7754
|
/**
|
|
7706
|
-
* Updates cluster
|
|
7755
|
+
* Updates cluster add-ons to newer versions for enhanced functionality.
|
|
7707
7756
|
*
|
|
7708
7757
|
* @param request - UpgradeClusterAddonsRequest
|
|
7709
7758
|
* @returns UpgradeClusterAddonsResponse
|
package/src/models/Addon.ts
CHANGED
|
@@ -4,21 +4,36 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class Addon extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The configuration of the component.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
|
-
* {
|
|
11
|
+
* {\\"IngressSlbNetworkType\\":\\"internet\\"}
|
|
9
12
|
*/
|
|
10
13
|
config?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies whether to disable automatic installation. When you create a cluster, some additional log components are automatically installed in addition to the required components. You can disable the automatic installations of a component and install the component later by calling the component API or in the corresponding console. Valid values:
|
|
17
|
+
*
|
|
18
|
+
* * `true`: disables the automatic installation of a component.
|
|
19
|
+
* * `false`: allows the automatic installation of a component.
|
|
20
|
+
*
|
|
12
21
|
* @example
|
|
13
22
|
* false
|
|
14
23
|
*/
|
|
15
24
|
disabled?: boolean;
|
|
16
25
|
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* The component name.
|
|
28
|
+
*
|
|
17
29
|
* @example
|
|
18
30
|
* nginx-ingress-controller
|
|
19
31
|
*/
|
|
20
32
|
name?: string;
|
|
21
33
|
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The version of the component.
|
|
36
|
+
*
|
|
22
37
|
* @example
|
|
23
38
|
* v1.9.3-aliyun.1
|
|
24
39
|
*/
|
|
@@ -4,11 +4,19 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ContainerdConfig extends $dara.Model {
|
|
6
6
|
ignoreImageDefinedVolume?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* Insecure image repositories that skipped the TLS certificate verification.
|
|
10
|
+
*/
|
|
7
11
|
insecureRegistries?: string[];
|
|
8
12
|
limitCore?: number;
|
|
9
13
|
limitMemLock?: number;
|
|
10
14
|
limitNoFile?: number;
|
|
11
15
|
maxConcurrentDownloads?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The image accelerator configuration.
|
|
19
|
+
*/
|
|
12
20
|
registryMirrors?: string[];
|
|
13
21
|
static names(): { [key: string]: string } {
|
|
14
22
|
return {
|
|
@@ -2,84 +2,7 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
export class CreateAutoRepairPolicyRequestRulesIncidentsConditions extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @example
|
|
8
|
-
* xxx
|
|
9
|
-
*/
|
|
10
|
-
reason?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @example
|
|
13
|
-
* False
|
|
14
|
-
*/
|
|
15
|
-
status?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @example
|
|
18
|
-
* KubeletReady
|
|
19
|
-
*/
|
|
20
|
-
type?: string;
|
|
21
|
-
static names(): { [key: string]: string } {
|
|
22
|
-
return {
|
|
23
|
-
reason: 'reason',
|
|
24
|
-
status: 'status',
|
|
25
|
-
type: 'type',
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
static types(): { [key: string]: any } {
|
|
30
|
-
return {
|
|
31
|
-
reason: 'string',
|
|
32
|
-
status: 'string',
|
|
33
|
-
type: 'string',
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
validate() {
|
|
38
|
-
super.validate();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
constructor(map?: { [key: string]: any }) {
|
|
42
|
-
super(map);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export class CreateAutoRepairPolicyRequestRulesIncidentsEvents extends $dara.Model {
|
|
47
|
-
/**
|
|
48
|
-
* @example
|
|
49
|
-
* xxx
|
|
50
|
-
*/
|
|
51
|
-
reason?: string;
|
|
52
|
-
/**
|
|
53
|
-
* @example
|
|
54
|
-
* xxx
|
|
55
|
-
*/
|
|
56
|
-
type?: string;
|
|
57
|
-
static names(): { [key: string]: string } {
|
|
58
|
-
return {
|
|
59
|
-
reason: 'reason',
|
|
60
|
-
type: 'type',
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
static types(): { [key: string]: any } {
|
|
65
|
-
return {
|
|
66
|
-
reason: 'string',
|
|
67
|
-
type: 'string',
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
validate() {
|
|
72
|
-
super.validate();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
constructor(map?: { [key: string]: any }) {
|
|
76
|
-
super(map);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
5
|
export class CreateAutoRepairPolicyRequestRulesIncidents extends $dara.Model {
|
|
81
|
-
conditions?: CreateAutoRepairPolicyRequestRulesIncidentsConditions[];
|
|
82
|
-
events?: CreateAutoRepairPolicyRequestRulesIncidentsEvents[];
|
|
83
6
|
/**
|
|
84
7
|
* @example
|
|
85
8
|
* Node.FaultNeedReboot.HOST
|
|
@@ -92,8 +15,6 @@ export class CreateAutoRepairPolicyRequestRulesIncidents extends $dara.Model {
|
|
|
92
15
|
type?: string;
|
|
93
16
|
static names(): { [key: string]: string } {
|
|
94
17
|
return {
|
|
95
|
-
conditions: 'conditions',
|
|
96
|
-
events: 'events',
|
|
97
18
|
name: 'name',
|
|
98
19
|
type: 'type',
|
|
99
20
|
};
|
|
@@ -101,20 +22,12 @@ export class CreateAutoRepairPolicyRequestRulesIncidents extends $dara.Model {
|
|
|
101
22
|
|
|
102
23
|
static types(): { [key: string]: any } {
|
|
103
24
|
return {
|
|
104
|
-
conditions: { 'type': 'array', 'itemType': CreateAutoRepairPolicyRequestRulesIncidentsConditions },
|
|
105
|
-
events: { 'type': 'array', 'itemType': CreateAutoRepairPolicyRequestRulesIncidentsEvents },
|
|
106
25
|
name: 'string',
|
|
107
26
|
type: 'string',
|
|
108
27
|
};
|
|
109
28
|
}
|
|
110
29
|
|
|
111
30
|
validate() {
|
|
112
|
-
if(Array.isArray(this.conditions)) {
|
|
113
|
-
$dara.Model.validateArray(this.conditions);
|
|
114
|
-
}
|
|
115
|
-
if(Array.isArray(this.events)) {
|
|
116
|
-
$dara.Model.validateArray(this.events);
|
|
117
|
-
}
|
|
118
31
|
super.validate();
|
|
119
32
|
}
|
|
120
33
|
|
package/src/models/DataDisk.ts
CHANGED
|
@@ -4,6 +4,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DataDisk extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to automatically mount the data disk.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* true
|
|
9
12
|
*
|
|
@@ -11,36 +14,80 @@ export class DataDisk extends $dara.Model {
|
|
|
11
14
|
*/
|
|
12
15
|
autoFormat?: boolean;
|
|
13
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The ID of the automatic snapshot policy. The system performs automatic backup for a cloud disk based on the specified automatic snapshot policy.
|
|
19
|
+
*
|
|
20
|
+
* By default, this parameter is empty, which indicates that automatic backup is disabled.
|
|
21
|
+
*
|
|
14
22
|
* @example
|
|
15
23
|
* sp-2zej1nogjvovnz4z****
|
|
16
24
|
*/
|
|
17
25
|
autoSnapshotPolicyId?: string;
|
|
18
26
|
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Specifies whether to enable the burst feature for the data disk. Valid values:
|
|
29
|
+
*
|
|
30
|
+
* * `true`: enables the burst feature.
|
|
31
|
+
* * `false`: disables the burst feature for the data disk.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is available only if `DiskCategory` is set to `cloud_auto`. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html).
|
|
34
|
+
*
|
|
19
35
|
* @example
|
|
20
36
|
* true
|
|
21
37
|
*/
|
|
22
38
|
burstingEnabled?: boolean;
|
|
23
39
|
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The category of data disk. Valid values:
|
|
42
|
+
*
|
|
43
|
+
* * `cloud`: basic disk.
|
|
44
|
+
* * `cloud_efficiency`: ultra disk
|
|
45
|
+
* * `cloud_ssd`: standard SSD.
|
|
46
|
+
* * `cloud_essd`: Enterprise ESSD (ESSD).
|
|
47
|
+
* * `cloud_auto`: ESSD AutoPL disk.
|
|
48
|
+
* * `cloud_essd_entry`: ESSD Entry disk.
|
|
49
|
+
* * `elastic_ephemeral_disk_premium`: premium elastic ephemeral disk.
|
|
50
|
+
* * `elastic_ephemeral_disk_standard`: standard elastic ephemeral disk.
|
|
51
|
+
*
|
|
52
|
+
* Default value: `cloud_efficiency`.
|
|
53
|
+
*
|
|
24
54
|
* @example
|
|
25
55
|
* cloud_ssd
|
|
26
56
|
*/
|
|
27
57
|
category?: string;
|
|
28
58
|
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The mount target of the data disk. If you do not specify this parameter, the system automatically assigns a mount target when you create an Elastic Compute Service (ECS) instance. Valid values: /dev/xvdb to /dev/xvdz.
|
|
61
|
+
*
|
|
29
62
|
* @example
|
|
30
63
|
* /dev/xvdb
|
|
31
64
|
*/
|
|
32
65
|
device?: string;
|
|
33
66
|
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The data disk name. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
|
|
69
|
+
*
|
|
34
70
|
* @example
|
|
35
71
|
* DataDiskName
|
|
36
72
|
*/
|
|
37
73
|
diskName?: string;
|
|
38
74
|
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* Specifies whether to encrypt the data disk. Valid values:
|
|
77
|
+
*
|
|
78
|
+
* * `true`: encrypts the data disk.
|
|
79
|
+
* * `false`: does not encrypt the data disk.
|
|
80
|
+
*
|
|
81
|
+
* Default value: `false`.
|
|
82
|
+
*
|
|
39
83
|
* @example
|
|
40
84
|
* true
|
|
41
85
|
*/
|
|
42
86
|
encrypted?: string;
|
|
43
87
|
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The file system that is mounted. This parameter takes effect only if auto_format is set to true. Valid values: ext4 and xfs.
|
|
90
|
+
*
|
|
44
91
|
* @example
|
|
45
92
|
* ext4
|
|
46
93
|
*
|
|
@@ -48,11 +95,17 @@ export class DataDisk extends $dara.Model {
|
|
|
48
95
|
*/
|
|
49
96
|
fileSystem?: string;
|
|
50
97
|
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* The ID of the Key Management Service (KMS) key that is used to encrypt the data disk.
|
|
100
|
+
*
|
|
51
101
|
* @example
|
|
52
102
|
* 0e478b7a-4262-4802-b8cb-00d3fb40****
|
|
53
103
|
*/
|
|
54
104
|
kmsKeyId?: string;
|
|
55
105
|
/**
|
|
106
|
+
* @remarks
|
|
107
|
+
* The path to which the data disk is mounted. You must specify a valid path.
|
|
108
|
+
*
|
|
56
109
|
* @example
|
|
57
110
|
* /mnt/path1
|
|
58
111
|
*
|
|
@@ -60,21 +113,39 @@ export class DataDisk extends $dara.Model {
|
|
|
60
113
|
*/
|
|
61
114
|
mountTarget?: string;
|
|
62
115
|
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The performance level (PL) of the data disk. This parameter takes effect only for an ESSD. This parameter is related to the disk size. For more information, see [ESSDs](https://help.aliyun.com/document_detail/122389.html).
|
|
118
|
+
*
|
|
63
119
|
* @example
|
|
64
120
|
* PL1
|
|
65
121
|
*/
|
|
66
122
|
performanceLevel?: string;
|
|
67
123
|
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* The preset IOPS of the data disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.
|
|
126
|
+
*
|
|
127
|
+
* This parameter is available only if `DiskCategory` is set to `cloud_auto`. For more information, see [ESSD AutoPL disks](https://help.aliyun.com/document_detail/368372.html).
|
|
128
|
+
*
|
|
68
129
|
* @example
|
|
69
130
|
* 1000
|
|
70
131
|
*/
|
|
71
132
|
provisionedIops?: number;
|
|
72
133
|
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* The size of the data disk. Unit: GiB.
|
|
136
|
+
*
|
|
137
|
+
* Valid values: 40 to 32768.
|
|
138
|
+
*
|
|
139
|
+
* Default value: `120`.
|
|
140
|
+
*
|
|
73
141
|
* @example
|
|
74
142
|
* 40
|
|
75
143
|
*/
|
|
76
144
|
size?: number;
|
|
77
145
|
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The ID of the snapshot that you want to use to create the data disk. If this parameter is specified, the specified size of the data disk is ignored. The size of the disk equals the size of the specified snapshot. If the snapshot was created on or before July 15, 2013, the API request is rejected and the InvalidSnapshot.TooOld message is returned.
|
|
148
|
+
*
|
|
78
149
|
* @example
|
|
79
150
|
* s-280s7****
|
|
80
151
|
*/
|
|
@@ -3,32 +3,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DeleteAlertContactResponseBodyResult extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The deletion status.
|
|
9
|
-
*
|
|
10
|
-
* * true: The alert contact was deleted.
|
|
11
|
-
* * false: The alert contact failed to be deleted.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* true
|
|
15
|
-
*/
|
|
16
6
|
status?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @remarks
|
|
19
|
-
* The error message returned if the call fails.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* Delete contact resource failed.
|
|
23
|
-
*/
|
|
24
7
|
msg?: string;
|
|
25
|
-
/**
|
|
26
|
-
* @remarks
|
|
27
|
-
* An alert contact ID.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* 12345
|
|
31
|
-
*/
|
|
32
8
|
contactId?: string;
|
|
33
9
|
static names(): { [key: string]: string } {
|
|
34
10
|
return {
|