@alicloud/cs20151215 3.1.1 → 3.1.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.d.ts +16 -2
- package/dist/client.js +35 -3
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +43 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cs20151215",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.7",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -2909,6 +2909,28 @@ export class DescribeClusterResourcesResponse extends $tea.Model {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
}
|
|
2911
2911
|
|
|
2912
|
+
export class DescribeClusterTasksRequest extends $tea.Model {
|
|
2913
|
+
pageNumber?: number;
|
|
2914
|
+
pageSize?: number;
|
|
2915
|
+
static names(): { [key: string]: string } {
|
|
2916
|
+
return {
|
|
2917
|
+
pageNumber: 'page_number',
|
|
2918
|
+
pageSize: 'page_size',
|
|
2919
|
+
};
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
static types(): { [key: string]: any } {
|
|
2923
|
+
return {
|
|
2924
|
+
pageNumber: 'number',
|
|
2925
|
+
pageSize: 'number',
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
constructor(map?: { [key: string]: any }) {
|
|
2930
|
+
super(map);
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2912
2934
|
export class DescribeClusterTasksResponseBody extends $tea.Model {
|
|
2913
2935
|
pageInfo?: DescribeClusterTasksResponseBodyPageInfo;
|
|
2914
2936
|
requestId?: string;
|
|
@@ -3183,6 +3205,7 @@ export class DescribeClustersResponse extends $tea.Model {
|
|
|
3183
3205
|
}
|
|
3184
3206
|
|
|
3185
3207
|
export class DescribeClustersV1Request extends $tea.Model {
|
|
3208
|
+
clusterId?: string;
|
|
3186
3209
|
clusterSpec?: string;
|
|
3187
3210
|
clusterType?: string;
|
|
3188
3211
|
name?: string;
|
|
@@ -3192,6 +3215,7 @@ export class DescribeClustersV1Request extends $tea.Model {
|
|
|
3192
3215
|
regionId?: string;
|
|
3193
3216
|
static names(): { [key: string]: string } {
|
|
3194
3217
|
return {
|
|
3218
|
+
clusterId: 'cluster_id',
|
|
3195
3219
|
clusterSpec: 'cluster_spec',
|
|
3196
3220
|
clusterType: 'cluster_type',
|
|
3197
3221
|
name: 'name',
|
|
@@ -3204,6 +3228,7 @@ export class DescribeClustersV1Request extends $tea.Model {
|
|
|
3204
3228
|
|
|
3205
3229
|
static types(): { [key: string]: any } {
|
|
3206
3230
|
return {
|
|
3231
|
+
clusterId: 'string',
|
|
3207
3232
|
clusterSpec: 'string',
|
|
3208
3233
|
clusterType: 'string',
|
|
3209
3234
|
name: 'string',
|
|
@@ -13658,9 +13683,20 @@ export default class Client extends OpenApi {
|
|
|
13658
13683
|
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
13659
13684
|
}
|
|
13660
13685
|
|
|
13661
|
-
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
13686
|
+
async describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
13687
|
+
Util.validateModel(request);
|
|
13688
|
+
let query : {[key: string ]: any} = { };
|
|
13689
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
13690
|
+
query["page_number"] = request.pageNumber;
|
|
13691
|
+
}
|
|
13692
|
+
|
|
13693
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
13694
|
+
query["page_size"] = request.pageSize;
|
|
13695
|
+
}
|
|
13696
|
+
|
|
13662
13697
|
let req = new $OpenApi.OpenApiRequest({
|
|
13663
13698
|
headers: headers,
|
|
13699
|
+
query: OpenApiUtil.query(query),
|
|
13664
13700
|
});
|
|
13665
13701
|
let params = new $OpenApi.Params({
|
|
13666
13702
|
action: "DescribeClusterTasks",
|
|
@@ -13676,10 +13712,10 @@ export default class Client extends OpenApi {
|
|
|
13676
13712
|
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
13677
13713
|
}
|
|
13678
13714
|
|
|
13679
|
-
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
13715
|
+
async describeClusterTasks(clusterId: string, request: DescribeClusterTasksRequest): Promise<DescribeClusterTasksResponse> {
|
|
13680
13716
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13681
13717
|
let headers : {[key: string ]: string} = { };
|
|
13682
|
-
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
13718
|
+
return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
|
|
13683
13719
|
}
|
|
13684
13720
|
|
|
13685
13721
|
async describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -13842,6 +13878,10 @@ export default class Client extends OpenApi {
|
|
|
13842
13878
|
async describeClustersV1WithOptions(request: DescribeClustersV1Request, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersV1Response> {
|
|
13843
13879
|
Util.validateModel(request);
|
|
13844
13880
|
let query : {[key: string ]: any} = { };
|
|
13881
|
+
if (!Util.isUnset(request.clusterId)) {
|
|
13882
|
+
query["cluster_id"] = request.clusterId;
|
|
13883
|
+
}
|
|
13884
|
+
|
|
13845
13885
|
if (!Util.isUnset(request.clusterSpec)) {
|
|
13846
13886
|
query["cluster_spec"] = request.clusterSpec;
|
|
13847
13887
|
}
|