@alicloud/cs20151215 6.3.0 → 6.3.2
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.js +9 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +27 -0
- package/dist/models/CreateClusterRequest.js +50 -1
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +28 -0
- package/dist/models/DescribeClusterDetailResponseBody.js +52 -1
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/ListClusterKubeconfigStatesRequest.d.ts +1 -0
- package/dist/models/ListClusterKubeconfigStatesRequest.js +2 -0
- package/dist/models/ListClusterKubeconfigStatesRequest.js.map +1 -1
- package/dist/models/ListClusterKubeconfigStatesResponseBody.d.ts +17 -0
- package/dist/models/ListClusterKubeconfigStatesResponseBody.js +31 -1
- package/dist/models/ListClusterKubeconfigStatesResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +28 -0
- package/dist/models/ModifyClusterRequest.js +52 -1
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +45 -31
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/models/CreateClusterRequest.ts +58 -0
- package/src/models/DescribeClusterDetailResponseBody.ts +61 -0
- package/src/models/ListClusterKubeconfigStatesRequest.ts +3 -0
- package/src/models/ListClusterKubeconfigStatesResponseBody.ts +38 -0
- package/src/models/ModifyClusterRequest.ts +61 -0
- package/src/models/model.ts +7 -0
|
@@ -284,6 +284,61 @@ export class DescribeClusterDetailResponseBodyControlPlaneConfig extends $dara.M
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
export class DescribeClusterDetailResponseBodyControlPlaneEndpointsConfigInternalDnsConfig extends $dara.Model {
|
|
288
|
+
bindVpcs?: string[];
|
|
289
|
+
enabled?: boolean;
|
|
290
|
+
static names(): { [key: string]: string } {
|
|
291
|
+
return {
|
|
292
|
+
bindVpcs: 'bind_vpcs',
|
|
293
|
+
enabled: 'enabled',
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
static types(): { [key: string]: any } {
|
|
298
|
+
return {
|
|
299
|
+
bindVpcs: { 'type': 'array', 'itemType': 'string' },
|
|
300
|
+
enabled: 'boolean',
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
validate() {
|
|
305
|
+
if(Array.isArray(this.bindVpcs)) {
|
|
306
|
+
$dara.Model.validateArray(this.bindVpcs);
|
|
307
|
+
}
|
|
308
|
+
super.validate();
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
constructor(map?: { [key: string]: any }) {
|
|
312
|
+
super(map);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export class DescribeClusterDetailResponseBodyControlPlaneEndpointsConfig extends $dara.Model {
|
|
317
|
+
internalDnsConfig?: DescribeClusterDetailResponseBodyControlPlaneEndpointsConfigInternalDnsConfig;
|
|
318
|
+
static names(): { [key: string]: string } {
|
|
319
|
+
return {
|
|
320
|
+
internalDnsConfig: 'internal_dns_config',
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
static types(): { [key: string]: any } {
|
|
325
|
+
return {
|
|
326
|
+
internalDnsConfig: DescribeClusterDetailResponseBodyControlPlaneEndpointsConfigInternalDnsConfig,
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
validate() {
|
|
331
|
+
if(this.internalDnsConfig && typeof (this.internalDnsConfig as any).validate === 'function') {
|
|
332
|
+
(this.internalDnsConfig as any).validate();
|
|
333
|
+
}
|
|
334
|
+
super.validate();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
constructor(map?: { [key: string]: any }) {
|
|
338
|
+
super(map);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
287
342
|
export class DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade extends $dara.Model {
|
|
288
343
|
/**
|
|
289
344
|
* @remarks
|
|
@@ -458,6 +513,7 @@ export class DescribeClusterDetailResponseBody extends $dara.Model {
|
|
|
458
513
|
* The control plane configurations in an ACK dedicated cluster.
|
|
459
514
|
*/
|
|
460
515
|
controlPlaneConfig?: DescribeClusterDetailResponseBodyControlPlaneConfig;
|
|
516
|
+
controlPlaneEndpointsConfig?: DescribeClusterDetailResponseBodyControlPlaneEndpointsConfig;
|
|
461
517
|
/**
|
|
462
518
|
* @remarks
|
|
463
519
|
* The time when the cluster was created.
|
|
@@ -778,6 +834,7 @@ export class DescribeClusterDetailResponseBody extends $dara.Model {
|
|
|
778
834
|
clusterType: 'cluster_type',
|
|
779
835
|
containerCidr: 'container_cidr',
|
|
780
836
|
controlPlaneConfig: 'control_plane_config',
|
|
837
|
+
controlPlaneEndpointsConfig: 'control_plane_endpoints_config',
|
|
781
838
|
created: 'created',
|
|
782
839
|
currentVersion: 'current_version',
|
|
783
840
|
deletionProtection: 'deletion_protection',
|
|
@@ -826,6 +883,7 @@ export class DescribeClusterDetailResponseBody extends $dara.Model {
|
|
|
826
883
|
clusterType: 'string',
|
|
827
884
|
containerCidr: 'string',
|
|
828
885
|
controlPlaneConfig: DescribeClusterDetailResponseBodyControlPlaneConfig,
|
|
886
|
+
controlPlaneEndpointsConfig: DescribeClusterDetailResponseBodyControlPlaneEndpointsConfig,
|
|
829
887
|
created: 'string',
|
|
830
888
|
currentVersion: 'string',
|
|
831
889
|
deletionProtection: 'boolean',
|
|
@@ -872,6 +930,9 @@ export class DescribeClusterDetailResponseBody extends $dara.Model {
|
|
|
872
930
|
if(this.controlPlaneConfig && typeof (this.controlPlaneConfig as any).validate === 'function') {
|
|
873
931
|
(this.controlPlaneConfig as any).validate();
|
|
874
932
|
}
|
|
933
|
+
if(this.controlPlaneEndpointsConfig && typeof (this.controlPlaneEndpointsConfig as any).validate === 'function') {
|
|
934
|
+
(this.controlPlaneEndpointsConfig as any).validate();
|
|
935
|
+
}
|
|
875
936
|
if(Array.isArray(this.extraSans)) {
|
|
876
937
|
$dara.Model.validateArray(this.extraSans);
|
|
877
938
|
}
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ListClusterKubeconfigStatesRequest extends $dara.Model {
|
|
6
|
+
cloudServiceKubeConfig?: boolean;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The page number.
|
|
@@ -27,6 +28,7 @@ export class ListClusterKubeconfigStatesRequest extends $dara.Model {
|
|
|
27
28
|
pageSize?: number;
|
|
28
29
|
static names(): { [key: string]: string } {
|
|
29
30
|
return {
|
|
31
|
+
cloudServiceKubeConfig: 'cloudServiceKubeConfig',
|
|
30
32
|
pageNumber: 'pageNumber',
|
|
31
33
|
pageSize: 'pageSize',
|
|
32
34
|
};
|
|
@@ -34,6 +36,7 @@ export class ListClusterKubeconfigStatesRequest extends $dara.Model {
|
|
|
34
36
|
|
|
35
37
|
static types(): { [key: string]: any } {
|
|
36
38
|
return {
|
|
39
|
+
cloudServiceKubeConfig: 'boolean',
|
|
37
40
|
pageNumber: 'number',
|
|
38
41
|
pageSize: 'number',
|
|
39
42
|
};
|
|
@@ -52,6 +52,38 @@ export class ListClusterKubeconfigStatesResponseBodyPage extends $dara.Model {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export class ListClusterKubeconfigStatesResponseBodyStatesCloudServiceRoles extends $dara.Model {
|
|
56
|
+
isDefaultTemplate?: boolean;
|
|
57
|
+
roleName?: string;
|
|
58
|
+
roleNamespace?: string;
|
|
59
|
+
type?: string;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
isDefaultTemplate: 'is_default_template',
|
|
63
|
+
roleName: 'role_name',
|
|
64
|
+
roleNamespace: 'role_namespace',
|
|
65
|
+
type: 'type',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static types(): { [key: string]: any } {
|
|
70
|
+
return {
|
|
71
|
+
isDefaultTemplate: 'boolean',
|
|
72
|
+
roleName: 'string',
|
|
73
|
+
roleNamespace: 'string',
|
|
74
|
+
type: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
55
87
|
export class ListClusterKubeconfigStatesResponseBodyStates extends $dara.Model {
|
|
56
88
|
/**
|
|
57
89
|
* @remarks
|
|
@@ -121,6 +153,7 @@ export class ListClusterKubeconfigStatesResponseBodyStates extends $dara.Model {
|
|
|
121
153
|
* Expired
|
|
122
154
|
*/
|
|
123
155
|
certState?: string;
|
|
156
|
+
cloudServiceRoles?: ListClusterKubeconfigStatesResponseBodyStatesCloudServiceRoles[];
|
|
124
157
|
/**
|
|
125
158
|
* @remarks
|
|
126
159
|
* Indicates whether the client certificate for the kubeconfig file can be revoked.
|
|
@@ -138,6 +171,7 @@ export class ListClusterKubeconfigStatesResponseBodyStates extends $dara.Model {
|
|
|
138
171
|
accountType: 'account_type',
|
|
139
172
|
certExpireTime: 'cert_expire_time',
|
|
140
173
|
certState: 'cert_state',
|
|
174
|
+
cloudServiceRoles: 'cloud_service_roles',
|
|
141
175
|
revokable: 'revokable',
|
|
142
176
|
};
|
|
143
177
|
}
|
|
@@ -151,11 +185,15 @@ export class ListClusterKubeconfigStatesResponseBodyStates extends $dara.Model {
|
|
|
151
185
|
accountType: 'string',
|
|
152
186
|
certExpireTime: 'string',
|
|
153
187
|
certState: 'string',
|
|
188
|
+
cloudServiceRoles: { 'type': 'array', 'itemType': ListClusterKubeconfigStatesResponseBodyStatesCloudServiceRoles },
|
|
154
189
|
revokable: 'boolean',
|
|
155
190
|
};
|
|
156
191
|
}
|
|
157
192
|
|
|
158
193
|
validate() {
|
|
194
|
+
if(Array.isArray(this.cloudServiceRoles)) {
|
|
195
|
+
$dara.Model.validateArray(this.cloudServiceRoles);
|
|
196
|
+
}
|
|
159
197
|
super.validate();
|
|
160
198
|
}
|
|
161
199
|
|
|
@@ -363,6 +363,61 @@ export class ModifyClusterRequestControlPlaneConfig extends $dara.Model {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
export class ModifyClusterRequestControlPlaneEndpointsConfigInternalDnsConfig extends $dara.Model {
|
|
367
|
+
bindVpcs?: string[];
|
|
368
|
+
enabled?: boolean;
|
|
369
|
+
static names(): { [key: string]: string } {
|
|
370
|
+
return {
|
|
371
|
+
bindVpcs: 'bind_vpcs',
|
|
372
|
+
enabled: 'enabled',
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
static types(): { [key: string]: any } {
|
|
377
|
+
return {
|
|
378
|
+
bindVpcs: { 'type': 'array', 'itemType': 'string' },
|
|
379
|
+
enabled: 'boolean',
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
validate() {
|
|
384
|
+
if(Array.isArray(this.bindVpcs)) {
|
|
385
|
+
$dara.Model.validateArray(this.bindVpcs);
|
|
386
|
+
}
|
|
387
|
+
super.validate();
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
constructor(map?: { [key: string]: any }) {
|
|
391
|
+
super(map);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export class ModifyClusterRequestControlPlaneEndpointsConfig extends $dara.Model {
|
|
396
|
+
internalDnsConfig?: ModifyClusterRequestControlPlaneEndpointsConfigInternalDnsConfig;
|
|
397
|
+
static names(): { [key: string]: string } {
|
|
398
|
+
return {
|
|
399
|
+
internalDnsConfig: 'internal_dns_config',
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
static types(): { [key: string]: any } {
|
|
404
|
+
return {
|
|
405
|
+
internalDnsConfig: ModifyClusterRequestControlPlaneEndpointsConfigInternalDnsConfig,
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
validate() {
|
|
410
|
+
if(this.internalDnsConfig && typeof (this.internalDnsConfig as any).validate === 'function') {
|
|
411
|
+
(this.internalDnsConfig as any).validate();
|
|
412
|
+
}
|
|
413
|
+
super.validate();
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
constructor(map?: { [key: string]: any }) {
|
|
417
|
+
super(map);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
366
421
|
export class ModifyClusterRequestOperationPolicyClusterAutoUpgrade extends $dara.Model {
|
|
367
422
|
/**
|
|
368
423
|
* @remarks
|
|
@@ -526,6 +581,7 @@ export class ModifyClusterRequest extends $dara.Model {
|
|
|
526
581
|
* The control plane configurations of an ACK dedicated cluster.
|
|
527
582
|
*/
|
|
528
583
|
controlPlaneConfig?: ModifyClusterRequestControlPlaneConfig;
|
|
584
|
+
controlPlaneEndpointsConfig?: ModifyClusterRequestControlPlaneEndpointsConfig;
|
|
529
585
|
/**
|
|
530
586
|
* @remarks
|
|
531
587
|
* Specifies whether to enable cluster deletion protection. If you enable this option, the cluster cannot be deleted in the console or by calling API operations. Valid values:
|
|
@@ -670,6 +726,7 @@ export class ModifyClusterRequest extends $dara.Model {
|
|
|
670
726
|
apiServerEipId: 'api_server_eip_id',
|
|
671
727
|
clusterName: 'cluster_name',
|
|
672
728
|
controlPlaneConfig: 'control_plane_config',
|
|
729
|
+
controlPlaneEndpointsConfig: 'control_plane_endpoints_config',
|
|
673
730
|
deletionProtection: 'deletion_protection',
|
|
674
731
|
enableRrsa: 'enable_rrsa',
|
|
675
732
|
ingressDomainRebinding: 'ingress_domain_rebinding',
|
|
@@ -693,6 +750,7 @@ export class ModifyClusterRequest extends $dara.Model {
|
|
|
693
750
|
apiServerEipId: 'string',
|
|
694
751
|
clusterName: 'string',
|
|
695
752
|
controlPlaneConfig: ModifyClusterRequestControlPlaneConfig,
|
|
753
|
+
controlPlaneEndpointsConfig: ModifyClusterRequestControlPlaneEndpointsConfig,
|
|
696
754
|
deletionProtection: 'boolean',
|
|
697
755
|
enableRrsa: 'boolean',
|
|
698
756
|
ingressDomainRebinding: 'boolean',
|
|
@@ -718,6 +776,9 @@ export class ModifyClusterRequest extends $dara.Model {
|
|
|
718
776
|
if(this.controlPlaneConfig && typeof (this.controlPlaneConfig as any).validate === 'function') {
|
|
719
777
|
(this.controlPlaneConfig as any).validate();
|
|
720
778
|
}
|
|
779
|
+
if(this.controlPlaneEndpointsConfig && typeof (this.controlPlaneEndpointsConfig as any).validate === 'function') {
|
|
780
|
+
(this.controlPlaneEndpointsConfig as any).validate();
|
|
781
|
+
}
|
|
721
782
|
if(this.maintenanceWindow && typeof (this.maintenanceWindow as any).validate === 'function') {
|
|
722
783
|
(this.maintenanceWindow as any).validate();
|
|
723
784
|
}
|
package/src/models/model.ts
CHANGED
|
@@ -24,6 +24,8 @@ export { CheckServiceRoleResponseBodyRoles } from './CheckServiceRoleResponseBod
|
|
|
24
24
|
export { CreateClusterRequestAuditLogConfig } from './CreateClusterRequest';
|
|
25
25
|
export { CreateClusterRequestAutoMode } from './CreateClusterRequest';
|
|
26
26
|
export { CreateClusterRequestControlPlaneConfig } from './CreateClusterRequest';
|
|
27
|
+
export { CreateClusterRequestControlPlaneEndpointsConfigInternalDnsConfig } from './CreateClusterRequest';
|
|
28
|
+
export { CreateClusterRequestControlPlaneEndpointsConfig } from './CreateClusterRequest';
|
|
27
29
|
export { CreateClusterRequestOperationPolicyClusterAutoUpgrade } from './CreateClusterRequest';
|
|
28
30
|
export { CreateClusterRequestOperationPolicy } from './CreateClusterRequest';
|
|
29
31
|
export { CreateClusterRequestRrsaConfig } from './CreateClusterRequest';
|
|
@@ -57,6 +59,8 @@ export { DescribeAddonsResponseBodyComponentGroupsItems } from './DescribeAddons
|
|
|
57
59
|
export { DescribeAddonsResponseBodyComponentGroups } from './DescribeAddonsResponseBody';
|
|
58
60
|
export { DescribeClusterDetailResponseBodyAutoMode } from './DescribeClusterDetailResponseBody';
|
|
59
61
|
export { DescribeClusterDetailResponseBodyControlPlaneConfig } from './DescribeClusterDetailResponseBody';
|
|
62
|
+
export { DescribeClusterDetailResponseBodyControlPlaneEndpointsConfigInternalDnsConfig } from './DescribeClusterDetailResponseBody';
|
|
63
|
+
export { DescribeClusterDetailResponseBodyControlPlaneEndpointsConfig } from './DescribeClusterDetailResponseBody';
|
|
60
64
|
export { DescribeClusterDetailResponseBodyOperationPolicyClusterAutoUpgrade } from './DescribeClusterDetailResponseBody';
|
|
61
65
|
export { DescribeClusterDetailResponseBodyOperationPolicy } from './DescribeClusterDetailResponseBody';
|
|
62
66
|
export { DescribeClusterDetailResponseBodyRrsaConfig } from './DescribeClusterDetailResponseBody';
|
|
@@ -179,6 +183,7 @@ export { ListClusterChecksResponseBodyChecks } from './ListClusterChecksResponse
|
|
|
179
183
|
export { ListClusterInspectReportsResponseBodyReportsSummary } from './ListClusterInspectReportsResponseBody';
|
|
180
184
|
export { ListClusterInspectReportsResponseBodyReports } from './ListClusterInspectReportsResponseBody';
|
|
181
185
|
export { ListClusterKubeconfigStatesResponseBodyPage } from './ListClusterKubeconfigStatesResponseBody';
|
|
186
|
+
export { ListClusterKubeconfigStatesResponseBodyStatesCloudServiceRoles } from './ListClusterKubeconfigStatesResponseBody';
|
|
182
187
|
export { ListClusterKubeconfigStatesResponseBodyStates } from './ListClusterKubeconfigStatesResponseBody';
|
|
183
188
|
export { ListOperationPlansResponseBodyPlans } from './ListOperationPlansResponseBody';
|
|
184
189
|
export { ListOperationPlansForRegionResponseBodyPlansStateReason } from './ListOperationPlansForRegionResponseBody';
|
|
@@ -189,6 +194,8 @@ export { ListUserKubeConfigStatesResponseBodyPage } from './ListUserKubeConfigSt
|
|
|
189
194
|
export { ListUserKubeConfigStatesResponseBodyStates } from './ListUserKubeConfigStatesResponseBody';
|
|
190
195
|
export { ModifyClusterRequestApiServerCustomCertSans } from './ModifyClusterRequest';
|
|
191
196
|
export { ModifyClusterRequestControlPlaneConfig } from './ModifyClusterRequest';
|
|
197
|
+
export { ModifyClusterRequestControlPlaneEndpointsConfigInternalDnsConfig } from './ModifyClusterRequest';
|
|
198
|
+
export { ModifyClusterRequestControlPlaneEndpointsConfig } from './ModifyClusterRequest';
|
|
192
199
|
export { ModifyClusterRequestOperationPolicyClusterAutoUpgrade } from './ModifyClusterRequest';
|
|
193
200
|
export { ModifyClusterRequestOperationPolicy } from './ModifyClusterRequest';
|
|
194
201
|
export { ModifyClusterRequestSystemEventsLogging } from './ModifyClusterRequest';
|