@alicloud/cs20151215 4.0.6 → 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.6",
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',
@@ -9180,6 +9186,28 @@ export class DeleteAlertContactGroupResponseBody extends $tea.Model {
9180
9186
  }
9181
9187
  }
9182
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
+
9183
9211
  export class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
9184
9212
  minimumClusterVersion?: string;
9185
9213
  upgradable?: boolean;
@@ -14444,11 +14472,19 @@ export default class Client extends OpenApi {
14444
14472
  Util.validateModel(tmpReq);
14445
14473
  let request = new DeleteClusterShrinkRequest({ });
14446
14474
  OpenApiUtil.convert(tmpReq, request);
14475
+ if (!Util.isUnset(tmpReq.deleteOptions)) {
14476
+ request.deleteOptionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.deleteOptions, "delete_options", "json");
14477
+ }
14478
+
14447
14479
  if (!Util.isUnset(tmpReq.retainResources)) {
14448
14480
  request.retainResourcesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.retainResources, "retain_resources", "json");
14449
14481
  }
14450
14482
 
14451
14483
  let query : {[key: string ]: any} = { };
14484
+ if (!Util.isUnset(request.deleteOptionsShrink)) {
14485
+ query["delete_options"] = request.deleteOptionsShrink;
14486
+ }
14487
+
14452
14488
  if (!Util.isUnset(request.keepSlb)) {
14453
14489
  query["keep_slb"] = request.keepSlb;
14454
14490
  }