@alicloud/cs20151215 4.8.10 → 4.8.11
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 +38 -5
- package/dist/client.js +49 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +65 -5
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15325,6 +15325,38 @@ export class Addon extends $dara.Model {
|
|
|
15325
15325
|
}
|
|
15326
15326
|
}
|
|
15327
15327
|
|
|
15328
|
+
export class ContainerdConfig extends $dara.Model {
|
|
15329
|
+
insecureRegistries?: string[];
|
|
15330
|
+
registryMirrors?: string[];
|
|
15331
|
+
static names(): { [key: string]: string } {
|
|
15332
|
+
return {
|
|
15333
|
+
insecureRegistries: 'insecureRegistries',
|
|
15334
|
+
registryMirrors: 'registryMirrors',
|
|
15335
|
+
};
|
|
15336
|
+
}
|
|
15337
|
+
|
|
15338
|
+
static types(): { [key: string]: any } {
|
|
15339
|
+
return {
|
|
15340
|
+
insecureRegistries: { 'type': 'array', 'itemType': 'string' },
|
|
15341
|
+
registryMirrors: { 'type': 'array', 'itemType': 'string' },
|
|
15342
|
+
};
|
|
15343
|
+
}
|
|
15344
|
+
|
|
15345
|
+
validate() {
|
|
15346
|
+
if(Array.isArray(this.insecureRegistries)) {
|
|
15347
|
+
$dara.Model.validateArray(this.insecureRegistries);
|
|
15348
|
+
}
|
|
15349
|
+
if(Array.isArray(this.registryMirrors)) {
|
|
15350
|
+
$dara.Model.validateArray(this.registryMirrors);
|
|
15351
|
+
}
|
|
15352
|
+
super.validate();
|
|
15353
|
+
}
|
|
15354
|
+
|
|
15355
|
+
constructor(map?: { [key: string]: any }) {
|
|
15356
|
+
super(map);
|
|
15357
|
+
}
|
|
15358
|
+
}
|
|
15359
|
+
|
|
15328
15360
|
export class DataDisk extends $dara.Model {
|
|
15329
15361
|
/**
|
|
15330
15362
|
* @example
|
|
@@ -29347,7 +29379,7 @@ export class ModifyClusterNodePoolResponse extends $dara.Model {
|
|
|
29347
29379
|
export class ModifyClusterTagsRequest extends $dara.Model {
|
|
29348
29380
|
/**
|
|
29349
29381
|
* @remarks
|
|
29350
|
-
* The data of the
|
|
29382
|
+
* The data of the tags that you want to modify.
|
|
29351
29383
|
*/
|
|
29352
29384
|
body?: Tag[];
|
|
29353
29385
|
static names(): { [key: string]: string } {
|
|
@@ -29404,9 +29436,10 @@ export class ModifyClusterTagsResponse extends $dara.Model {
|
|
|
29404
29436
|
}
|
|
29405
29437
|
|
|
29406
29438
|
export class ModifyNodePoolNodeConfigRequest extends $dara.Model {
|
|
29439
|
+
containerdConfig?: ContainerdConfig;
|
|
29407
29440
|
/**
|
|
29408
29441
|
* @remarks
|
|
29409
|
-
* The kubelet
|
|
29442
|
+
* The parameters of the kubelet.
|
|
29410
29443
|
*/
|
|
29411
29444
|
kubeletConfig?: KubeletConfig;
|
|
29412
29445
|
/**
|
|
@@ -29416,11 +29449,12 @@ export class ModifyNodePoolNodeConfigRequest extends $dara.Model {
|
|
|
29416
29449
|
osConfig?: ModifyNodePoolNodeConfigRequestOsConfig;
|
|
29417
29450
|
/**
|
|
29418
29451
|
* @remarks
|
|
29419
|
-
* The
|
|
29452
|
+
* The rolling policy configuration.
|
|
29420
29453
|
*/
|
|
29421
29454
|
rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
|
|
29422
29455
|
static names(): { [key: string]: string } {
|
|
29423
29456
|
return {
|
|
29457
|
+
containerdConfig: 'containerd_config',
|
|
29424
29458
|
kubeletConfig: 'kubelet_config',
|
|
29425
29459
|
osConfig: 'os_config',
|
|
29426
29460
|
rollingPolicy: 'rolling_policy',
|
|
@@ -29429,6 +29463,7 @@ export class ModifyNodePoolNodeConfigRequest extends $dara.Model {
|
|
|
29429
29463
|
|
|
29430
29464
|
static types(): { [key: string]: any } {
|
|
29431
29465
|
return {
|
|
29466
|
+
containerdConfig: ContainerdConfig,
|
|
29432
29467
|
kubeletConfig: KubeletConfig,
|
|
29433
29468
|
osConfig: ModifyNodePoolNodeConfigRequestOsConfig,
|
|
29434
29469
|
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
@@ -29436,6 +29471,9 @@ export class ModifyNodePoolNodeConfigRequest extends $dara.Model {
|
|
|
29436
29471
|
}
|
|
29437
29472
|
|
|
29438
29473
|
validate() {
|
|
29474
|
+
if(this.containerdConfig && typeof (this.containerdConfig as any).validate === 'function') {
|
|
29475
|
+
(this.containerdConfig as any).validate();
|
|
29476
|
+
}
|
|
29439
29477
|
if(this.kubeletConfig && typeof (this.kubeletConfig as any).validate === 'function') {
|
|
29440
29478
|
(this.kubeletConfig as any).validate();
|
|
29441
29479
|
}
|
|
@@ -30179,6 +30217,8 @@ export class RepairClusterNodePoolRequest extends $dara.Model {
|
|
|
30179
30217
|
*
|
|
30180
30218
|
* @example
|
|
30181
30219
|
* true
|
|
30220
|
+
*
|
|
30221
|
+
* @deprecated
|
|
30182
30222
|
*/
|
|
30183
30223
|
autoRestart?: boolean;
|
|
30184
30224
|
/**
|
|
@@ -31268,11 +31308,17 @@ export class StartAlertRequest extends $dara.Model {
|
|
|
31268
31308
|
/**
|
|
31269
31309
|
* @remarks
|
|
31270
31310
|
* The name of the alert rule set to be enabled.
|
|
31311
|
+
*
|
|
31312
|
+
* @example
|
|
31313
|
+
* sample
|
|
31271
31314
|
*/
|
|
31272
31315
|
alertRuleGroupName?: string;
|
|
31273
31316
|
/**
|
|
31274
31317
|
* @remarks
|
|
31275
31318
|
* The name of the alert rule to be enabled. If you do not specify an alert rule name, the alert rule set is enabled.
|
|
31319
|
+
*
|
|
31320
|
+
* @example
|
|
31321
|
+
* sample
|
|
31276
31322
|
*/
|
|
31277
31323
|
alertRuleName?: string;
|
|
31278
31324
|
static names(): { [key: string]: string } {
|
|
@@ -31377,11 +31423,17 @@ export class StopAlertRequest extends $dara.Model {
|
|
|
31377
31423
|
/**
|
|
31378
31424
|
* @remarks
|
|
31379
31425
|
* The name of the alert rule set to be disabled.
|
|
31426
|
+
*
|
|
31427
|
+
* @example
|
|
31428
|
+
* sample
|
|
31380
31429
|
*/
|
|
31381
31430
|
alertRuleGroupName?: string;
|
|
31382
31431
|
/**
|
|
31383
31432
|
* @remarks
|
|
31384
31433
|
* The name of the alert rule to be disabled. If you do not specify an alert rule name, the alert rule set is disabled.
|
|
31434
|
+
*
|
|
31435
|
+
* @example
|
|
31436
|
+
* sample
|
|
31385
31437
|
*/
|
|
31386
31438
|
alertRuleName?: string;
|
|
31387
31439
|
static names(): { [key: string]: string } {
|
|
@@ -39211,7 +39263,7 @@ export default class Client extends OpenApi {
|
|
|
39211
39263
|
}
|
|
39212
39264
|
|
|
39213
39265
|
/**
|
|
39214
|
-
* You can add labels in key-value pairs to clusters. This allows cluster developers or O
|
|
39266
|
+
* 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 ModifyClusterTags operation to modify the labels of a cluster.
|
|
39215
39267
|
*
|
|
39216
39268
|
* @param request - ModifyClusterTagsRequest
|
|
39217
39269
|
* @param headers - map
|
|
@@ -39244,7 +39296,7 @@ export default class Client extends OpenApi {
|
|
|
39244
39296
|
}
|
|
39245
39297
|
|
|
39246
39298
|
/**
|
|
39247
|
-
* You can add labels in key-value pairs to clusters. This allows cluster developers or O
|
|
39299
|
+
* 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 ModifyClusterTags operation to modify the labels of a cluster.
|
|
39248
39300
|
*
|
|
39249
39301
|
* @param request - ModifyClusterTagsRequest
|
|
39250
39302
|
* @returns ModifyClusterTagsResponse
|
|
@@ -39269,6 +39321,10 @@ export default class Client extends OpenApi {
|
|
|
39269
39321
|
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
39270
39322
|
request.validate();
|
|
39271
39323
|
let body : {[key: string ]: any} = { };
|
|
39324
|
+
if (!$dara.isNull(request.containerdConfig)) {
|
|
39325
|
+
body["containerd_config"] = request.containerdConfig;
|
|
39326
|
+
}
|
|
39327
|
+
|
|
39272
39328
|
if (!$dara.isNull(request.kubeletConfig)) {
|
|
39273
39329
|
body["kubelet_config"] = request.kubeletConfig;
|
|
39274
39330
|
}
|
|
@@ -40384,6 +40440,8 @@ export default class Client extends OpenApi {
|
|
|
40384
40440
|
}
|
|
40385
40441
|
|
|
40386
40442
|
/**
|
|
40443
|
+
* 启用告警
|
|
40444
|
+
*
|
|
40387
40445
|
* @param request - StartAlertRequest
|
|
40388
40446
|
* @param headers - map
|
|
40389
40447
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -40424,6 +40482,8 @@ export default class Client extends OpenApi {
|
|
|
40424
40482
|
}
|
|
40425
40483
|
|
|
40426
40484
|
/**
|
|
40485
|
+
* 启用告警
|
|
40486
|
+
*
|
|
40427
40487
|
* @param request - StartAlertRequest
|
|
40428
40488
|
* @returns StartAlertResponse
|
|
40429
40489
|
*/
|