@alicloud/cs20151215 4.0.5 → 4.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1713,11 +1713,13 @@ export class DeleteAlertContactGroupResponse extends $tea.Model {
1713
1713
  }
1714
1714
 
1715
1715
  export class DeleteClusterRequest extends $tea.Model {
1716
+ deleteOptions?: DeleteClusterRequestDeleteOptions[];
1716
1717
  keepSlb?: boolean;
1717
1718
  retainAllResources?: boolean;
1718
1719
  retainResources?: string[];
1719
1720
  static names(): { [key: string]: string } {
1720
1721
  return {
1722
+ deleteOptions: 'delete_options',
1721
1723
  keepSlb: 'keep_slb',
1722
1724
  retainAllResources: 'retain_all_resources',
1723
1725
  retainResources: 'retain_resources',
@@ -1726,6 +1728,7 @@ export class DeleteClusterRequest extends $tea.Model {
1726
1728
 
1727
1729
  static types(): { [key: string]: any } {
1728
1730
  return {
1731
+ deleteOptions: { 'type': 'array', 'itemType': DeleteClusterRequestDeleteOptions },
1729
1732
  keepSlb: 'boolean',
1730
1733
  retainAllResources: 'boolean',
1731
1734
  retainResources: { 'type': 'array', 'itemType': 'string' },
@@ -1738,11 +1741,13 @@ export class DeleteClusterRequest extends $tea.Model {
1738
1741
  }
1739
1742
 
1740
1743
  export class DeleteClusterShrinkRequest extends $tea.Model {
1744
+ deleteOptionsShrink?: string;
1741
1745
  keepSlb?: boolean;
1742
1746
  retainAllResources?: boolean;
1743
1747
  retainResourcesShrink?: string;
1744
1748
  static names(): { [key: string]: string } {
1745
1749
  return {
1750
+ deleteOptionsShrink: 'delete_options',
1746
1751
  keepSlb: 'keep_slb',
1747
1752
  retainAllResources: 'retain_all_resources',
1748
1753
  retainResourcesShrink: 'retain_resources',
@@ -1751,6 +1756,7 @@ export class DeleteClusterShrinkRequest extends $tea.Model {
1751
1756
 
1752
1757
  static types(): { [key: string]: any } {
1753
1758
  return {
1759
+ deleteOptionsShrink: 'string',
1754
1760
  keepSlb: 'boolean',
1755
1761
  retainAllResources: 'boolean',
1756
1762
  retainResourcesShrink: 'string',
@@ -3045,6 +3051,25 @@ export class DescribeClusterNodePoolDetailResponse extends $tea.Model {
3045
3051
  }
3046
3052
  }
3047
3053
 
3054
+ export class DescribeClusterNodePoolsRequest extends $tea.Model {
3055
+ nodepoolName?: string;
3056
+ static names(): { [key: string]: string } {
3057
+ return {
3058
+ nodepoolName: 'NodepoolName',
3059
+ };
3060
+ }
3061
+
3062
+ static types(): { [key: string]: any } {
3063
+ return {
3064
+ nodepoolName: 'string',
3065
+ };
3066
+ }
3067
+
3068
+ constructor(map?: { [key: string]: any }) {
3069
+ super(map);
3070
+ }
3071
+ }
3072
+
3048
3073
  export class DescribeClusterNodePoolsResponseBody extends $tea.Model {
3049
3074
  nodepools?: DescribeClusterNodePoolsResponseBodyNodepools[];
3050
3075
  static names(): { [key: string]: string } {
@@ -9161,6 +9186,28 @@ export class DeleteAlertContactGroupResponseBody extends $tea.Model {
9161
9186
  }
9162
9187
  }
9163
9188
 
9189
+ export class DeleteClusterRequestDeleteOptions extends $tea.Model {
9190
+ deleteMode?: string;
9191
+ resourceType?: string;
9192
+ static names(): { [key: string]: string } {
9193
+ return {
9194
+ deleteMode: 'delete_mode',
9195
+ resourceType: 'resource_type',
9196
+ };
9197
+ }
9198
+
9199
+ static types(): { [key: string]: any } {
9200
+ return {
9201
+ deleteMode: 'string',
9202
+ resourceType: 'string',
9203
+ };
9204
+ }
9205
+
9206
+ constructor(map?: { [key: string]: any }) {
9207
+ super(map);
9208
+ }
9209
+ }
9210
+
9164
9211
  export class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
9165
9212
  minimumClusterVersion?: string;
9166
9213
  upgradable?: boolean;
@@ -14425,11 +14472,19 @@ export default class Client extends OpenApi {
14425
14472
  Util.validateModel(tmpReq);
14426
14473
  let request = new DeleteClusterShrinkRequest({ });
14427
14474
  OpenApiUtil.convert(tmpReq, request);
14475
+ if (!Util.isUnset(tmpReq.deleteOptions)) {
14476
+ request.deleteOptionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.deleteOptions, "delete_options", "json");
14477
+ }
14478
+
14428
14479
  if (!Util.isUnset(tmpReq.retainResources)) {
14429
14480
  request.retainResourcesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.retainResources, "retain_resources", "json");
14430
14481
  }
14431
14482
 
14432
14483
  let query : {[key: string ]: any} = { };
14484
+ if (!Util.isUnset(request.deleteOptionsShrink)) {
14485
+ query["delete_options"] = request.deleteOptionsShrink;
14486
+ }
14487
+
14433
14488
  if (!Util.isUnset(request.keepSlb)) {
14434
14489
  query["keep_slb"] = request.keepSlb;
14435
14490
  }
@@ -15243,9 +15298,16 @@ export default class Client extends OpenApi {
15243
15298
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
15244
15299
  }
15245
15300
 
15246
- async describeClusterNodePoolsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolsResponse> {
15301
+ async describeClusterNodePoolsWithOptions(ClusterId: string, request: DescribeClusterNodePoolsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolsResponse> {
15302
+ Util.validateModel(request);
15303
+ let query : {[key: string ]: any} = { };
15304
+ if (!Util.isUnset(request.nodepoolName)) {
15305
+ query["NodepoolName"] = request.nodepoolName;
15306
+ }
15307
+
15247
15308
  let req = new $OpenApi.OpenApiRequest({
15248
15309
  headers: headers,
15310
+ query: OpenApiUtil.query(query),
15249
15311
  });
15250
15312
  let params = new $OpenApi.Params({
15251
15313
  action: "DescribeClusterNodePools",
@@ -15261,10 +15323,10 @@ export default class Client extends OpenApi {
15261
15323
  return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
15262
15324
  }
15263
15325
 
15264
- async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
15326
+ async describeClusterNodePools(ClusterId: string, request: DescribeClusterNodePoolsRequest): Promise<DescribeClusterNodePoolsResponse> {
15265
15327
  let runtime = new $Util.RuntimeOptions({ });
15266
15328
  let headers : {[key: string ]: string} = { };
15267
- return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
15329
+ return await this.describeClusterNodePoolsWithOptions(ClusterId, request, headers, runtime);
15268
15330
  }
15269
15331
 
15270
15332
  async describeClusterNodesWithOptions(ClusterId: string, request: DescribeClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodesResponse> {