@alicloud/cs20151215 6.1.1 → 6.2.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 +15 -0
- package/dist/client.js +36 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +1 -0
- package/dist/models/DescribeClusterAttachScriptsRequest.js +2 -0
- package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
- package/dist/models/ListClusterAddonInstanceResourcesResponse.d.ts +19 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponse.js +69 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponse.js.map +1 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.d.ts +84 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.js +118 -0
- package/dist/models/ListClusterAddonInstanceResourcesResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +17 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +39 -0
- package/src/models/DescribeClusterAttachScriptsRequest.ts +3 -0
- package/src/models/ListClusterAddonInstanceResourcesResponse.ts +40 -0
- package/src/models/ListClusterAddonInstanceResourcesResponseBody.ts +139 -0
- package/src/models/model.ts +4 -0
package/src/client.ts
CHANGED
|
@@ -2456,6 +2456,10 @@ export default class Client extends OpenApi {
|
|
|
2456
2456
|
body["nodepool_id"] = request.nodepoolId;
|
|
2457
2457
|
}
|
|
2458
2458
|
|
|
2459
|
+
if (!$dara.isNull(request.oneTimeToken)) {
|
|
2460
|
+
body["one_time_token"] = request.oneTimeToken;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2459
2463
|
if (!$dara.isNull(request.options)) {
|
|
2460
2464
|
body["options"] = request.options;
|
|
2461
2465
|
}
|
|
@@ -4701,6 +4705,41 @@ export default class Client extends OpenApi {
|
|
|
4701
4705
|
return await this.listAddonsWithOptions(request, headers, runtime);
|
|
4702
4706
|
}
|
|
4703
4707
|
|
|
4708
|
+
/**
|
|
4709
|
+
* 获取集群组件实例的资源列表
|
|
4710
|
+
*
|
|
4711
|
+
* @param headers - map
|
|
4712
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4713
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
4714
|
+
*/
|
|
4715
|
+
async listClusterAddonInstanceResourcesWithOptions(clusterId: string, instanceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListClusterAddonInstanceResourcesResponse> {
|
|
4716
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4717
|
+
headers: headers,
|
|
4718
|
+
});
|
|
4719
|
+
let params = new $OpenApiUtil.Params({
|
|
4720
|
+
action: "ListClusterAddonInstanceResources",
|
|
4721
|
+
version: "2015-12-15",
|
|
4722
|
+
protocol: "HTTPS",
|
|
4723
|
+
pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/addon_instances/${$dara.URL.percentEncode(instanceName)}/resources`,
|
|
4724
|
+
method: "GET",
|
|
4725
|
+
authType: "AK",
|
|
4726
|
+
style: "ROA",
|
|
4727
|
+
reqBodyType: "json",
|
|
4728
|
+
bodyType: "json",
|
|
4729
|
+
});
|
|
4730
|
+
return $dara.cast<$_model.ListClusterAddonInstanceResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListClusterAddonInstanceResourcesResponse({}));
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
/**
|
|
4734
|
+
* 获取集群组件实例的资源列表
|
|
4735
|
+
* @returns ListClusterAddonInstanceResourcesResponse
|
|
4736
|
+
*/
|
|
4737
|
+
async listClusterAddonInstanceResources(clusterId: string, instanceName: string): Promise<$_model.ListClusterAddonInstanceResourcesResponse> {
|
|
4738
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4739
|
+
let headers : {[key: string ]: string} = { };
|
|
4740
|
+
return await this.listClusterAddonInstanceResourcesWithOptions(clusterId, instanceName, headers, runtime);
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4704
4743
|
/**
|
|
4705
4744
|
* Queries the component instances that are running in the specified cluster and the information about the component instances. The information includes the component version and status.
|
|
4706
4745
|
*
|
|
@@ -64,6 +64,7 @@ export class DescribeClusterAttachScriptsRequest extends $dara.Model {
|
|
|
64
64
|
* np1c9229d9be2d432c93f77a88fca0****
|
|
65
65
|
*/
|
|
66
66
|
nodepoolId?: string;
|
|
67
|
+
oneTimeToken?: boolean;
|
|
67
68
|
/**
|
|
68
69
|
* @remarks
|
|
69
70
|
* The node configurations for the node that you want to add.
|
|
@@ -86,6 +87,7 @@ export class DescribeClusterAttachScriptsRequest extends $dara.Model {
|
|
|
86
87
|
formatDisk: 'format_disk',
|
|
87
88
|
keepInstanceName: 'keep_instance_name',
|
|
88
89
|
nodepoolId: 'nodepool_id',
|
|
90
|
+
oneTimeToken: 'one_time_token',
|
|
89
91
|
options: 'options',
|
|
90
92
|
rdsInstances: 'rds_instances',
|
|
91
93
|
};
|
|
@@ -98,6 +100,7 @@ export class DescribeClusterAttachScriptsRequest extends $dara.Model {
|
|
|
98
100
|
formatDisk: 'boolean',
|
|
99
101
|
keepInstanceName: 'boolean',
|
|
100
102
|
nodepoolId: 'string',
|
|
103
|
+
oneTimeToken: 'boolean',
|
|
101
104
|
options: 'string',
|
|
102
105
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
103
106
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListClusterAddonInstanceResourcesResponseBody } from "./ListClusterAddonInstanceResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListClusterAddonInstanceResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListClusterAddonInstanceResourcesResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListClusterAddonInstanceResourcesResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListClusterAddonInstanceResourcesResponseBodyHelmRelease extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ack-node-problem-detector
|
|
9
|
+
*/
|
|
10
|
+
chartName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1.2.28
|
|
14
|
+
*/
|
|
15
|
+
chartVersion?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* kube-system
|
|
19
|
+
*/
|
|
20
|
+
namespace?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ack-node-problem-detector
|
|
24
|
+
*/
|
|
25
|
+
releaseName?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
chartName: 'chart_name',
|
|
29
|
+
chartVersion: 'chart_version',
|
|
30
|
+
namespace: 'namespace',
|
|
31
|
+
releaseName: 'release_name',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
chartName: 'string',
|
|
38
|
+
chartVersion: 'string',
|
|
39
|
+
namespace: 'string',
|
|
40
|
+
releaseName: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class ListClusterAddonInstanceResourcesResponseBodyKubernetesObjects extends $dara.Model {
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* rbac.authorization.k8s.io
|
|
57
|
+
*/
|
|
58
|
+
group?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* ClusterRole
|
|
62
|
+
*/
|
|
63
|
+
kind?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* terway-pod-reader
|
|
67
|
+
*/
|
|
68
|
+
name?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* kube-system
|
|
72
|
+
*/
|
|
73
|
+
namespace?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* v1
|
|
77
|
+
*/
|
|
78
|
+
version?: string;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
group: 'group',
|
|
82
|
+
kind: 'kind',
|
|
83
|
+
name: 'name',
|
|
84
|
+
namespace: 'namespace',
|
|
85
|
+
version: 'version',
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static types(): { [key: string]: any } {
|
|
90
|
+
return {
|
|
91
|
+
group: 'string',
|
|
92
|
+
kind: 'string',
|
|
93
|
+
name: 'string',
|
|
94
|
+
namespace: 'string',
|
|
95
|
+
version: 'string',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
validate() {
|
|
100
|
+
super.validate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class ListClusterAddonInstanceResourcesResponseBody extends $dara.Model {
|
|
109
|
+
helmRelease?: ListClusterAddonInstanceResourcesResponseBodyHelmRelease;
|
|
110
|
+
kubernetesObjects?: ListClusterAddonInstanceResourcesResponseBodyKubernetesObjects[];
|
|
111
|
+
static names(): { [key: string]: string } {
|
|
112
|
+
return {
|
|
113
|
+
helmRelease: 'helm_release',
|
|
114
|
+
kubernetesObjects: 'kubernetes_objects',
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static types(): { [key: string]: any } {
|
|
119
|
+
return {
|
|
120
|
+
helmRelease: ListClusterAddonInstanceResourcesResponseBodyHelmRelease,
|
|
121
|
+
kubernetesObjects: { 'type': 'array', 'itemType': ListClusterAddonInstanceResourcesResponseBodyKubernetesObjects },
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
validate() {
|
|
126
|
+
if(this.helmRelease && typeof (this.helmRelease as any).validate === 'function') {
|
|
127
|
+
(this.helmRelease as any).validate();
|
|
128
|
+
}
|
|
129
|
+
if(Array.isArray(this.kubernetesObjects)) {
|
|
130
|
+
$dara.Model.validateArray(this.kubernetesObjects);
|
|
131
|
+
}
|
|
132
|
+
super.validate();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
constructor(map?: { [key: string]: any }) {
|
|
136
|
+
super(map);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -169,6 +169,8 @@ export { GetUpgradeStatusResponseBodyUpgradeTask } from './GetUpgradeStatusRespo
|
|
|
169
169
|
export { GrantPermissionsRequestBody } from './GrantPermissionsRequest';
|
|
170
170
|
export { InstallClusterAddonsRequestBody } from './InstallClusterAddonsRequest';
|
|
171
171
|
export { ListAddonsResponseBodyAddons } from './ListAddonsResponseBody';
|
|
172
|
+
export { ListClusterAddonInstanceResourcesResponseBodyHelmRelease } from './ListClusterAddonInstanceResourcesResponseBody';
|
|
173
|
+
export { ListClusterAddonInstanceResourcesResponseBodyKubernetesObjects } from './ListClusterAddonInstanceResourcesResponseBody';
|
|
172
174
|
export { ListClusterAddonInstancesResponseBodyAddons } from './ListClusterAddonInstancesResponseBody';
|
|
173
175
|
export { ListClusterChecksResponseBodyChecks } from './ListClusterChecksResponseBody';
|
|
174
176
|
export { ListClusterInspectReportsResponseBodyReportsSummary } from './ListClusterInspectReportsResponseBody';
|
|
@@ -422,6 +424,8 @@ export { InstallClusterAddonsResponse } from './InstallClusterAddonsResponse';
|
|
|
422
424
|
export { ListAddonsRequest } from './ListAddonsRequest';
|
|
423
425
|
export { ListAddonsResponseBody } from './ListAddonsResponseBody';
|
|
424
426
|
export { ListAddonsResponse } from './ListAddonsResponse';
|
|
427
|
+
export { ListClusterAddonInstanceResourcesResponseBody } from './ListClusterAddonInstanceResourcesResponseBody';
|
|
428
|
+
export { ListClusterAddonInstanceResourcesResponse } from './ListClusterAddonInstanceResourcesResponse';
|
|
425
429
|
export { ListClusterAddonInstancesResponseBody } from './ListClusterAddonInstancesResponseBody';
|
|
426
430
|
export { ListClusterAddonInstancesResponse } from './ListClusterAddonInstancesResponse';
|
|
427
431
|
export { ListClusterChecksRequest } from './ListClusterChecksRequest';
|