@alicloud/cs20151215 3.1.0 → 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 +38 -6
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +46 -6
package/dist/client.d.ts
CHANGED
|
@@ -1619,6 +1619,19 @@ export declare class DescribeClusterResourcesResponse extends $tea.Model {
|
|
|
1619
1619
|
[key: string]: any;
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
|
+
export declare class DescribeClusterTasksRequest extends $tea.Model {
|
|
1623
|
+
pageNumber?: number;
|
|
1624
|
+
pageSize?: number;
|
|
1625
|
+
static names(): {
|
|
1626
|
+
[key: string]: string;
|
|
1627
|
+
};
|
|
1628
|
+
static types(): {
|
|
1629
|
+
[key: string]: any;
|
|
1630
|
+
};
|
|
1631
|
+
constructor(map?: {
|
|
1632
|
+
[key: string]: any;
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1622
1635
|
export declare class DescribeClusterTasksResponseBody extends $tea.Model {
|
|
1623
1636
|
pageInfo?: DescribeClusterTasksResponseBodyPageInfo;
|
|
1624
1637
|
requestId?: string;
|
|
@@ -1789,6 +1802,7 @@ export declare class DescribeClustersResponse extends $tea.Model {
|
|
|
1789
1802
|
});
|
|
1790
1803
|
}
|
|
1791
1804
|
export declare class DescribeClustersV1Request extends $tea.Model {
|
|
1805
|
+
clusterId?: string;
|
|
1792
1806
|
clusterSpec?: string;
|
|
1793
1807
|
clusterType?: string;
|
|
1794
1808
|
name?: string;
|
|
@@ -6710,10 +6724,10 @@ export default class Client extends OpenApi {
|
|
|
6710
6724
|
[key: string]: string;
|
|
6711
6725
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse>;
|
|
6712
6726
|
describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse>;
|
|
6713
|
-
describeClusterTasksWithOptions(clusterId: string, headers: {
|
|
6727
|
+
describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {
|
|
6714
6728
|
[key: string]: string;
|
|
6715
6729
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse>;
|
|
6716
|
-
describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse>;
|
|
6730
|
+
describeClusterTasks(clusterId: string, request: DescribeClusterTasksRequest): Promise<DescribeClusterTasksResponse>;
|
|
6717
6731
|
describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {
|
|
6718
6732
|
[key: string]: string;
|
|
6719
6733
|
}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse>;
|
package/dist/client.js
CHANGED
|
@@ -2273,6 +2273,24 @@ class DescribeClusterResourcesResponse extends $tea.Model {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
2275
|
exports.DescribeClusterResourcesResponse = DescribeClusterResourcesResponse;
|
|
2276
|
+
class DescribeClusterTasksRequest extends $tea.Model {
|
|
2277
|
+
constructor(map) {
|
|
2278
|
+
super(map);
|
|
2279
|
+
}
|
|
2280
|
+
static names() {
|
|
2281
|
+
return {
|
|
2282
|
+
pageNumber: 'page_number',
|
|
2283
|
+
pageSize: 'page_size',
|
|
2284
|
+
};
|
|
2285
|
+
}
|
|
2286
|
+
static types() {
|
|
2287
|
+
return {
|
|
2288
|
+
pageNumber: 'number',
|
|
2289
|
+
pageSize: 'number',
|
|
2290
|
+
};
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
exports.DescribeClusterTasksRequest = DescribeClusterTasksRequest;
|
|
2276
2294
|
class DescribeClusterTasksResponseBody extends $tea.Model {
|
|
2277
2295
|
constructor(map) {
|
|
2278
2296
|
super(map);
|
|
@@ -2501,6 +2519,7 @@ class DescribeClustersV1Request extends $tea.Model {
|
|
|
2501
2519
|
}
|
|
2502
2520
|
static names() {
|
|
2503
2521
|
return {
|
|
2522
|
+
clusterId: 'cluster_id',
|
|
2504
2523
|
clusterSpec: 'cluster_spec',
|
|
2505
2524
|
clusterType: 'cluster_type',
|
|
2506
2525
|
name: 'name',
|
|
@@ -2512,6 +2531,7 @@ class DescribeClustersV1Request extends $tea.Model {
|
|
|
2512
2531
|
}
|
|
2513
2532
|
static types() {
|
|
2514
2533
|
return {
|
|
2534
|
+
clusterId: 'string',
|
|
2515
2535
|
clusterSpec: 'string',
|
|
2516
2536
|
clusterType: 'string',
|
|
2517
2537
|
name: 'string',
|
|
@@ -10817,9 +10837,18 @@ class Client extends openapi_client_1.default {
|
|
|
10817
10837
|
let headers = {};
|
|
10818
10838
|
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
10819
10839
|
}
|
|
10820
|
-
async describeClusterTasksWithOptions(clusterId, headers, runtime) {
|
|
10840
|
+
async describeClusterTasksWithOptions(clusterId, request, headers, runtime) {
|
|
10841
|
+
tea_util_1.default.validateModel(request);
|
|
10842
|
+
let query = {};
|
|
10843
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
10844
|
+
query["page_number"] = request.pageNumber;
|
|
10845
|
+
}
|
|
10846
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
10847
|
+
query["page_size"] = request.pageSize;
|
|
10848
|
+
}
|
|
10821
10849
|
let req = new $OpenApi.OpenApiRequest({
|
|
10822
10850
|
headers: headers,
|
|
10851
|
+
query: openapi_util_1.default.query(query),
|
|
10823
10852
|
});
|
|
10824
10853
|
let params = new $OpenApi.Params({
|
|
10825
10854
|
action: "DescribeClusterTasks",
|
|
@@ -10834,10 +10863,10 @@ class Client extends openapi_client_1.default {
|
|
|
10834
10863
|
});
|
|
10835
10864
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
10836
10865
|
}
|
|
10837
|
-
async describeClusterTasks(clusterId) {
|
|
10866
|
+
async describeClusterTasks(clusterId, request) {
|
|
10838
10867
|
let runtime = new $Util.RuntimeOptions({});
|
|
10839
10868
|
let headers = {};
|
|
10840
|
-
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
10869
|
+
return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
|
|
10841
10870
|
}
|
|
10842
10871
|
async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
|
|
10843
10872
|
tea_util_1.default.validateModel(request);
|
|
@@ -10986,6 +11015,9 @@ class Client extends openapi_client_1.default {
|
|
|
10986
11015
|
async describeClustersV1WithOptions(request, headers, runtime) {
|
|
10987
11016
|
tea_util_1.default.validateModel(request);
|
|
10988
11017
|
let query = {};
|
|
11018
|
+
if (!tea_util_1.default.isUnset(request.clusterId)) {
|
|
11019
|
+
query["cluster_id"] = request.clusterId;
|
|
11020
|
+
}
|
|
10989
11021
|
if (!tea_util_1.default.isUnset(request.clusterSpec)) {
|
|
10990
11022
|
query["cluster_spec"] = request.clusterSpec;
|
|
10991
11023
|
}
|
|
@@ -11765,7 +11797,7 @@ class Client extends openapi_client_1.default {
|
|
|
11765
11797
|
action: "GetClusterCheck",
|
|
11766
11798
|
version: "2015-12-15",
|
|
11767
11799
|
protocol: "HTTPS",
|
|
11768
|
-
pathname: `/clusters
|
|
11800
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/checks/${openapi_util_1.default.getEncodeParam(checkId)}`,
|
|
11769
11801
|
method: "GET",
|
|
11770
11802
|
authType: "AK",
|
|
11771
11803
|
style: "ROA",
|
|
@@ -11920,7 +11952,7 @@ class Client extends openapi_client_1.default {
|
|
|
11920
11952
|
action: "ListClusterChecks",
|
|
11921
11953
|
version: "2015-12-15",
|
|
11922
11954
|
protocol: "HTTPS",
|
|
11923
|
-
pathname: `/clusters
|
|
11955
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/checks`,
|
|
11924
11956
|
method: "GET",
|
|
11925
11957
|
authType: "AK",
|
|
11926
11958
|
style: "ROA",
|
|
@@ -12671,7 +12703,7 @@ class Client extends openapi_client_1.default {
|
|
|
12671
12703
|
action: "RunClusterCheck",
|
|
12672
12704
|
version: "2015-12-15",
|
|
12673
12705
|
protocol: "HTTPS",
|
|
12674
|
-
pathname: `/clusters
|
|
12706
|
+
pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/checks`,
|
|
12675
12707
|
method: "POST",
|
|
12676
12708
|
authType: "AK",
|
|
12677
12709
|
style: "ROA",
|