@alicloud/cs20151215 3.3.5 → 4.0.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/src/client.ts CHANGED
@@ -1583,13 +1583,53 @@ export class CreateTriggerResponse extends $tea.Model {
1583
1583
  }
1584
1584
  }
1585
1585
 
1586
+ export class DeleteAlertContactRequest extends $tea.Model {
1587
+ contactIds?: number[];
1588
+ static names(): { [key: string]: string } {
1589
+ return {
1590
+ contactIds: 'contact_ids',
1591
+ };
1592
+ }
1593
+
1594
+ static types(): { [key: string]: any } {
1595
+ return {
1596
+ contactIds: { 'type': 'array', 'itemType': 'number' },
1597
+ };
1598
+ }
1599
+
1600
+ constructor(map?: { [key: string]: any }) {
1601
+ super(map);
1602
+ }
1603
+ }
1604
+
1605
+ export class DeleteAlertContactShrinkRequest extends $tea.Model {
1606
+ contactIdsShrink?: string;
1607
+ static names(): { [key: string]: string } {
1608
+ return {
1609
+ contactIdsShrink: 'contact_ids',
1610
+ };
1611
+ }
1612
+
1613
+ static types(): { [key: string]: any } {
1614
+ return {
1615
+ contactIdsShrink: 'string',
1616
+ };
1617
+ }
1618
+
1619
+ constructor(map?: { [key: string]: any }) {
1620
+ super(map);
1621
+ }
1622
+ }
1623
+
1586
1624
  export class DeleteAlertContactResponse extends $tea.Model {
1587
1625
  headers?: { [key: string]: string };
1588
1626
  statusCode?: number;
1627
+ body?: DeleteAlertContactResponseBody;
1589
1628
  static names(): { [key: string]: string } {
1590
1629
  return {
1591
1630
  headers: 'headers',
1592
1631
  statusCode: 'statusCode',
1632
+ body: 'body',
1593
1633
  };
1594
1634
  }
1595
1635
 
@@ -1597,6 +1637,45 @@ export class DeleteAlertContactResponse extends $tea.Model {
1597
1637
  return {
1598
1638
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1599
1639
  statusCode: 'number',
1640
+ body: DeleteAlertContactResponseBody,
1641
+ };
1642
+ }
1643
+
1644
+ constructor(map?: { [key: string]: any }) {
1645
+ super(map);
1646
+ }
1647
+ }
1648
+
1649
+ export class DeleteAlertContactGroupRequest extends $tea.Model {
1650
+ contactGroupIds?: number[];
1651
+ static names(): { [key: string]: string } {
1652
+ return {
1653
+ contactGroupIds: 'contact_group_ids',
1654
+ };
1655
+ }
1656
+
1657
+ static types(): { [key: string]: any } {
1658
+ return {
1659
+ contactGroupIds: { 'type': 'array', 'itemType': 'number' },
1660
+ };
1661
+ }
1662
+
1663
+ constructor(map?: { [key: string]: any }) {
1664
+ super(map);
1665
+ }
1666
+ }
1667
+
1668
+ export class DeleteAlertContactGroupShrinkRequest extends $tea.Model {
1669
+ contactGroupIdsShrink?: string;
1670
+ static names(): { [key: string]: string } {
1671
+ return {
1672
+ contactGroupIdsShrink: 'contact_group_ids',
1673
+ };
1674
+ }
1675
+
1676
+ static types(): { [key: string]: any } {
1677
+ return {
1678
+ contactGroupIdsShrink: 'string',
1600
1679
  };
1601
1680
  }
1602
1681
 
@@ -1608,10 +1687,12 @@ export class DeleteAlertContactResponse extends $tea.Model {
1608
1687
  export class DeleteAlertContactGroupResponse extends $tea.Model {
1609
1688
  headers?: { [key: string]: string };
1610
1689
  statusCode?: number;
1690
+ body?: DeleteAlertContactGroupResponseBody[];
1611
1691
  static names(): { [key: string]: string } {
1612
1692
  return {
1613
1693
  headers: 'headers',
1614
1694
  statusCode: 'statusCode',
1695
+ body: 'body',
1615
1696
  };
1616
1697
  }
1617
1698
 
@@ -1619,6 +1700,7 @@ export class DeleteAlertContactGroupResponse extends $tea.Model {
1619
1700
  return {
1620
1701
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1621
1702
  statusCode: 'number',
1703
+ body: { 'type': 'array', 'itemType': DeleteAlertContactGroupResponseBody },
1622
1704
  };
1623
1705
  }
1624
1706
 
@@ -3063,6 +3145,25 @@ export class DescribeClusterNodesResponse extends $tea.Model {
3063
3145
  }
3064
3146
  }
3065
3147
 
3148
+ export class DescribeClusterResourcesRequest extends $tea.Model {
3149
+ withAddonResources?: boolean;
3150
+ static names(): { [key: string]: string } {
3151
+ return {
3152
+ withAddonResources: 'with_addon_resources',
3153
+ };
3154
+ }
3155
+
3156
+ static types(): { [key: string]: any } {
3157
+ return {
3158
+ withAddonResources: 'boolean',
3159
+ };
3160
+ }
3161
+
3162
+ constructor(map?: { [key: string]: any }) {
3163
+ super(map);
3164
+ }
3165
+ }
3166
+
3066
3167
  export class DescribeClusterResourcesResponse extends $tea.Model {
3067
3168
  headers?: { [key: string]: string };
3068
3169
  statusCode?: number;
@@ -5266,15 +5367,18 @@ export class ListClusterAddonInstancesResponse extends $tea.Model {
5266
5367
  }
5267
5368
 
5268
5369
  export class ListClusterChecksRequest extends $tea.Model {
5370
+ target?: string;
5269
5371
  type?: string;
5270
5372
  static names(): { [key: string]: string } {
5271
5373
  return {
5374
+ target: 'target',
5272
5375
  type: 'type',
5273
5376
  };
5274
5377
  }
5275
5378
 
5276
5379
  static types(): { [key: string]: any } {
5277
5380
  return {
5381
+ target: 'string',
5278
5382
  type: 'string',
5279
5383
  };
5280
5384
  }
@@ -6487,10 +6591,12 @@ export class ResumeUpgradeClusterResponse extends $tea.Model {
6487
6591
 
6488
6592
  export class RunClusterCheckRequest extends $tea.Model {
6489
6593
  options?: { [key: string]: string };
6594
+ target?: string;
6490
6595
  type?: string;
6491
6596
  static names(): { [key: string]: string } {
6492
6597
  return {
6493
6598
  options: 'options',
6599
+ target: 'target',
6494
6600
  type: 'type',
6495
6601
  };
6496
6602
  }
@@ -6498,6 +6604,7 @@ export class RunClusterCheckRequest extends $tea.Model {
6498
6604
  static types(): { [key: string]: any } {
6499
6605
  return {
6500
6606
  options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6607
+ target: 'string',
6501
6608
  type: 'string',
6502
6609
  };
6503
6610
  }
@@ -6916,6 +7023,28 @@ export class ScanClusterVulsResponse extends $tea.Model {
6916
7023
  }
6917
7024
  }
6918
7025
 
7026
+ export class StartAlertRequest extends $tea.Model {
7027
+ alertRuleGroupName?: string;
7028
+ alertRuleName?: string;
7029
+ static names(): { [key: string]: string } {
7030
+ return {
7031
+ alertRuleGroupName: 'alert_rule_group_name',
7032
+ alertRuleName: 'alert_rule_name',
7033
+ };
7034
+ }
7035
+
7036
+ static types(): { [key: string]: any } {
7037
+ return {
7038
+ alertRuleGroupName: 'string',
7039
+ alertRuleName: 'string',
7040
+ };
7041
+ }
7042
+
7043
+ constructor(map?: { [key: string]: any }) {
7044
+ super(map);
7045
+ }
7046
+ }
7047
+
6919
7048
  export class StartAlertResponseBody extends $tea.Model {
6920
7049
  msg?: string;
6921
7050
  status?: boolean;
@@ -7080,6 +7209,28 @@ export class StartWorkflowResponse extends $tea.Model {
7080
7209
  }
7081
7210
  }
7082
7211
 
7212
+ export class StopAlertRequest extends $tea.Model {
7213
+ alertRuleGroupName?: string;
7214
+ alertRuleName?: string;
7215
+ static names(): { [key: string]: string } {
7216
+ return {
7217
+ alertRuleGroupName: 'alert_rule_group_name',
7218
+ alertRuleName: 'alert_rule_name',
7219
+ };
7220
+ }
7221
+
7222
+ static types(): { [key: string]: any } {
7223
+ return {
7224
+ alertRuleGroupName: 'string',
7225
+ alertRuleName: 'string',
7226
+ };
7227
+ }
7228
+
7229
+ constructor(map?: { [key: string]: any }) {
7230
+ super(map);
7231
+ }
7232
+ }
7233
+
7083
7234
  export class StopAlertResponseBody extends $tea.Model {
7084
7235
  msg?: string;
7085
7236
  status?: boolean;
@@ -7587,6 +7738,50 @@ export class UpdateTemplateResponse extends $tea.Model {
7587
7738
  }
7588
7739
  }
7589
7740
 
7741
+ export class UpdateUserPermissionsRequest extends $tea.Model {
7742
+ body?: UpdateUserPermissionsRequestBody[];
7743
+ mode?: string;
7744
+ static names(): { [key: string]: string } {
7745
+ return {
7746
+ body: 'body',
7747
+ mode: 'mode',
7748
+ };
7749
+ }
7750
+
7751
+ static types(): { [key: string]: any } {
7752
+ return {
7753
+ body: { 'type': 'array', 'itemType': UpdateUserPermissionsRequestBody },
7754
+ mode: 'string',
7755
+ };
7756
+ }
7757
+
7758
+ constructor(map?: { [key: string]: any }) {
7759
+ super(map);
7760
+ }
7761
+ }
7762
+
7763
+ export class UpdateUserPermissionsResponse extends $tea.Model {
7764
+ headers?: { [key: string]: string };
7765
+ statusCode?: number;
7766
+ static names(): { [key: string]: string } {
7767
+ return {
7768
+ headers: 'headers',
7769
+ statusCode: 'statusCode',
7770
+ };
7771
+ }
7772
+
7773
+ static types(): { [key: string]: any } {
7774
+ return {
7775
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7776
+ statusCode: 'number',
7777
+ };
7778
+ }
7779
+
7780
+ constructor(map?: { [key: string]: any }) {
7781
+ super(map);
7782
+ }
7783
+ }
7784
+
7590
7785
  export class UpgradeClusterRequest extends $tea.Model {
7591
7786
  componentName?: string;
7592
7787
  masterOnly?: boolean;
@@ -7709,6 +7904,8 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
7709
7904
  export class UpgradeClusterNodepoolRequest extends $tea.Model {
7710
7905
  imageId?: string;
7711
7906
  kubernetesVersion?: string;
7907
+ nodeNames?: string[];
7908
+ rollingPolicy?: UpgradeClusterNodepoolRequestRollingPolicy;
7712
7909
  runtimeType?: string;
7713
7910
  runtimeVersion?: string;
7714
7911
  useReplace?: boolean;
@@ -7716,6 +7913,8 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
7716
7913
  return {
7717
7914
  imageId: 'image_id',
7718
7915
  kubernetesVersion: 'kubernetes_version',
7916
+ nodeNames: 'node_names',
7917
+ rollingPolicy: 'rolling_policy',
7719
7918
  runtimeType: 'runtime_type',
7720
7919
  runtimeVersion: 'runtime_version',
7721
7920
  useReplace: 'use_replace',
@@ -7726,6 +7925,8 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
7726
7925
  return {
7727
7926
  imageId: 'string',
7728
7927
  kubernetesVersion: 'string',
7928
+ nodeNames: { 'type': 'array', 'itemType': 'string' },
7929
+ rollingPolicy: UpgradeClusterNodepoolRequestRollingPolicy,
7729
7930
  runtimeType: 'string',
7730
7931
  runtimeVersion: 'string',
7731
7932
  useReplace: 'boolean',
@@ -8854,6 +9055,75 @@ export class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
8854
9055
  }
8855
9056
  }
8856
9057
 
9058
+ export class DeleteAlertContactResponseBodyBody extends $tea.Model {
9059
+ status?: boolean;
9060
+ msg?: string;
9061
+ contactId?: string;
9062
+ static names(): { [key: string]: string } {
9063
+ return {
9064
+ status: 'status',
9065
+ msg: 'msg',
9066
+ contactId: 'contact_id',
9067
+ };
9068
+ }
9069
+
9070
+ static types(): { [key: string]: any } {
9071
+ return {
9072
+ status: 'boolean',
9073
+ msg: 'string',
9074
+ contactId: 'string',
9075
+ };
9076
+ }
9077
+
9078
+ constructor(map?: { [key: string]: any }) {
9079
+ super(map);
9080
+ }
9081
+ }
9082
+
9083
+ export class DeleteAlertContactResponseBody extends $tea.Model {
9084
+ body?: DeleteAlertContactResponseBodyBody[];
9085
+ static names(): { [key: string]: string } {
9086
+ return {
9087
+ body: 'body',
9088
+ };
9089
+ }
9090
+
9091
+ static types(): { [key: string]: any } {
9092
+ return {
9093
+ body: { 'type': 'array', 'itemType': DeleteAlertContactResponseBodyBody },
9094
+ };
9095
+ }
9096
+
9097
+ constructor(map?: { [key: string]: any }) {
9098
+ super(map);
9099
+ }
9100
+ }
9101
+
9102
+ export class DeleteAlertContactGroupResponseBody extends $tea.Model {
9103
+ status?: boolean;
9104
+ msg?: string;
9105
+ contactGroupId?: string;
9106
+ static names(): { [key: string]: string } {
9107
+ return {
9108
+ status: 'status',
9109
+ msg: 'msg',
9110
+ contactGroupId: 'contact_group_id',
9111
+ };
9112
+ }
9113
+
9114
+ static types(): { [key: string]: any } {
9115
+ return {
9116
+ status: 'boolean',
9117
+ msg: 'string',
9118
+ contactGroupId: 'string',
9119
+ };
9120
+ }
9121
+
9122
+ constructor(map?: { [key: string]: any }) {
9123
+ super(map);
9124
+ }
9125
+ }
9126
+
8857
9127
  export class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
8858
9128
  minimumClusterVersion?: string;
8859
9129
  upgradable?: boolean;
@@ -10317,6 +10587,53 @@ export class DescribeClusterResourcesResponseBodyDependencies extends $tea.Model
10317
10587
  }
10318
10588
  }
10319
10589
 
10590
+ export class DescribeClusterResourcesResponseBodyAssociatedObject extends $tea.Model {
10591
+ kind?: string;
10592
+ namespace?: string;
10593
+ name?: string;
10594
+ static names(): { [key: string]: string } {
10595
+ return {
10596
+ kind: 'kind',
10597
+ namespace: 'namespace',
10598
+ name: 'name',
10599
+ };
10600
+ }
10601
+
10602
+ static types(): { [key: string]: any } {
10603
+ return {
10604
+ kind: 'string',
10605
+ namespace: 'string',
10606
+ name: 'string',
10607
+ };
10608
+ }
10609
+
10610
+ constructor(map?: { [key: string]: any }) {
10611
+ super(map);
10612
+ }
10613
+ }
10614
+
10615
+ export class DescribeClusterResourcesResponseBodyDeleteBehavior extends $tea.Model {
10616
+ deleteByDefault?: boolean;
10617
+ changeable?: boolean;
10618
+ static names(): { [key: string]: string } {
10619
+ return {
10620
+ deleteByDefault: 'delete_by_default',
10621
+ changeable: 'changeable',
10622
+ };
10623
+ }
10624
+
10625
+ static types(): { [key: string]: any } {
10626
+ return {
10627
+ deleteByDefault: 'boolean',
10628
+ changeable: 'boolean',
10629
+ };
10630
+ }
10631
+
10632
+ constructor(map?: { [key: string]: any }) {
10633
+ super(map);
10634
+ }
10635
+ }
10636
+
10320
10637
  export class DescribeClusterResourcesResponseBody extends $tea.Model {
10321
10638
  clusterId?: string;
10322
10639
  created?: string;
@@ -10326,6 +10643,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10326
10643
  state?: string;
10327
10644
  autoCreate?: number;
10328
10645
  dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
10646
+ associatedObject?: DescribeClusterResourcesResponseBodyAssociatedObject;
10647
+ deleteBehavior?: DescribeClusterResourcesResponseBodyDeleteBehavior;
10648
+ creatorType?: string;
10649
+ extraInfo?: { [key: string]: any };
10329
10650
  static names(): { [key: string]: string } {
10330
10651
  return {
10331
10652
  clusterId: 'cluster_id',
@@ -10336,6 +10657,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10336
10657
  state: 'state',
10337
10658
  autoCreate: 'auto_create',
10338
10659
  dependencies: 'dependencies',
10660
+ associatedObject: 'associated_object',
10661
+ deleteBehavior: 'delete_behavior',
10662
+ creatorType: 'creator_type',
10663
+ extraInfo: 'extra_info',
10339
10664
  };
10340
10665
  }
10341
10666
 
@@ -10349,6 +10674,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10349
10674
  state: 'string',
10350
10675
  autoCreate: 'number',
10351
10676
  dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
10677
+ associatedObject: DescribeClusterResourcesResponseBodyAssociatedObject,
10678
+ deleteBehavior: DescribeClusterResourcesResponseBodyDeleteBehavior,
10679
+ creatorType: 'string',
10680
+ extraInfo: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
10352
10681
  };
10353
10682
  }
10354
10683
 
@@ -12752,6 +13081,40 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
12752
13081
  }
12753
13082
  }
12754
13083
 
13084
+ export class UpdateUserPermissionsRequestBody extends $tea.Model {
13085
+ cluster?: string;
13086
+ isCustom?: boolean;
13087
+ isRamRole?: boolean;
13088
+ namespace?: string;
13089
+ roleName?: string;
13090
+ roleType?: string;
13091
+ static names(): { [key: string]: string } {
13092
+ return {
13093
+ cluster: 'cluster',
13094
+ isCustom: 'is_custom',
13095
+ isRamRole: 'is_ram_role',
13096
+ namespace: 'namespace',
13097
+ roleName: 'role_name',
13098
+ roleType: 'role_type',
13099
+ };
13100
+ }
13101
+
13102
+ static types(): { [key: string]: any } {
13103
+ return {
13104
+ cluster: 'string',
13105
+ isCustom: 'boolean',
13106
+ isRamRole: 'boolean',
13107
+ namespace: 'string',
13108
+ roleName: 'string',
13109
+ roleType: 'string',
13110
+ };
13111
+ }
13112
+
13113
+ constructor(map?: { [key: string]: any }) {
13114
+ super(map);
13115
+ }
13116
+ }
13117
+
12755
13118
  export class UpgradeClusterAddonsRequestBody extends $tea.Model {
12756
13119
  componentName?: string;
12757
13120
  config?: string;
@@ -12783,6 +13146,31 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
12783
13146
  }
12784
13147
  }
12785
13148
 
13149
+ export class UpgradeClusterNodepoolRequestRollingPolicy extends $tea.Model {
13150
+ batchInterval?: number;
13151
+ maxParallelism?: number;
13152
+ pausePolicy?: string;
13153
+ static names(): { [key: string]: string } {
13154
+ return {
13155
+ batchInterval: 'batch_interval',
13156
+ maxParallelism: 'max_parallelism',
13157
+ pausePolicy: 'pause_policy',
13158
+ };
13159
+ }
13160
+
13161
+ static types(): { [key: string]: any } {
13162
+ return {
13163
+ batchInterval: 'number',
13164
+ maxParallelism: 'number',
13165
+ pausePolicy: 'string',
13166
+ };
13167
+ }
13168
+
13169
+ constructor(map?: { [key: string]: any }) {
13170
+ super(map);
13171
+ }
13172
+ }
13173
+
12786
13174
 
12787
13175
  export default class Client extends OpenApi {
12788
13176
 
@@ -13865,9 +14253,22 @@ export default class Client extends OpenApi {
13865
14253
  return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
13866
14254
  }
13867
14255
 
13868
- async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
14256
+ async deleteAlertContactWithOptions(tmpReq: DeleteAlertContactRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
14257
+ Util.validateModel(tmpReq);
14258
+ let request = new DeleteAlertContactShrinkRequest({ });
14259
+ OpenApiUtil.convert(tmpReq, request);
14260
+ if (!Util.isUnset(tmpReq.contactIds)) {
14261
+ request.contactIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactIds, "contact_ids", "json");
14262
+ }
14263
+
14264
+ let query : {[key: string ]: any} = { };
14265
+ if (!Util.isUnset(request.contactIdsShrink)) {
14266
+ query["contact_ids"] = request.contactIdsShrink;
14267
+ }
14268
+
13869
14269
  let req = new $OpenApi.OpenApiRequest({
13870
14270
  headers: headers,
14271
+ query: OpenApiUtil.query(query),
13871
14272
  });
13872
14273
  let params = new $OpenApi.Params({
13873
14274
  action: "DeleteAlertContact",
@@ -13878,20 +14279,33 @@ export default class Client extends OpenApi {
13878
14279
  authType: "AK",
13879
14280
  style: "ROA",
13880
14281
  reqBodyType: "json",
13881
- bodyType: "none",
14282
+ bodyType: "array",
13882
14283
  });
13883
14284
  return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
13884
14285
  }
13885
14286
 
13886
- async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
14287
+ async deleteAlertContact(request: DeleteAlertContactRequest): Promise<DeleteAlertContactResponse> {
13887
14288
  let runtime = new $Util.RuntimeOptions({ });
13888
14289
  let headers : {[key: string ]: string} = { };
13889
- return await this.deleteAlertContactWithOptions(headers, runtime);
14290
+ return await this.deleteAlertContactWithOptions(request, headers, runtime);
13890
14291
  }
13891
14292
 
13892
- async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
14293
+ async deleteAlertContactGroupWithOptions(tmpReq: DeleteAlertContactGroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
14294
+ Util.validateModel(tmpReq);
14295
+ let request = new DeleteAlertContactGroupShrinkRequest({ });
14296
+ OpenApiUtil.convert(tmpReq, request);
14297
+ if (!Util.isUnset(tmpReq.contactGroupIds)) {
14298
+ request.contactGroupIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactGroupIds, "contact_group_ids", "json");
14299
+ }
14300
+
14301
+ let query : {[key: string ]: any} = { };
14302
+ if (!Util.isUnset(request.contactGroupIdsShrink)) {
14303
+ query["contact_group_ids"] = request.contactGroupIdsShrink;
14304
+ }
14305
+
13893
14306
  let req = new $OpenApi.OpenApiRequest({
13894
14307
  headers: headers,
14308
+ query: OpenApiUtil.query(query),
13895
14309
  });
13896
14310
  let params = new $OpenApi.Params({
13897
14311
  action: "DeleteAlertContactGroup",
@@ -13902,15 +14316,15 @@ export default class Client extends OpenApi {
13902
14316
  authType: "AK",
13903
14317
  style: "ROA",
13904
14318
  reqBodyType: "json",
13905
- bodyType: "none",
14319
+ bodyType: "array",
13906
14320
  });
13907
14321
  return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
13908
14322
  }
13909
14323
 
13910
- async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
14324
+ async deleteAlertContactGroup(request: DeleteAlertContactGroupRequest): Promise<DeleteAlertContactGroupResponse> {
13911
14325
  let runtime = new $Util.RuntimeOptions({ });
13912
14326
  let headers : {[key: string ]: string} = { };
13913
- return await this.deleteAlertContactGroupWithOptions(headers, runtime);
14327
+ return await this.deleteAlertContactGroupWithOptions(request, headers, runtime);
13914
14328
  }
13915
14329
 
13916
14330
  async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
@@ -14797,9 +15211,16 @@ export default class Client extends OpenApi {
14797
15211
  return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
14798
15212
  }
14799
15213
 
14800
- async describeClusterResourcesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
15214
+ async describeClusterResourcesWithOptions(ClusterId: string, request: DescribeClusterResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
15215
+ Util.validateModel(request);
15216
+ let query : {[key: string ]: any} = { };
15217
+ if (!Util.isUnset(request.withAddonResources)) {
15218
+ query["with_addon_resources"] = request.withAddonResources;
15219
+ }
15220
+
14801
15221
  let req = new $OpenApi.OpenApiRequest({
14802
15222
  headers: headers,
15223
+ query: OpenApiUtil.query(query),
14803
15224
  });
14804
15225
  let params = new $OpenApi.Params({
14805
15226
  action: "DescribeClusterResources",
@@ -14815,10 +15236,10 @@ export default class Client extends OpenApi {
14815
15236
  return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
14816
15237
  }
14817
15238
 
14818
- async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
15239
+ async describeClusterResources(ClusterId: string, request: DescribeClusterResourcesRequest): Promise<DescribeClusterResourcesResponse> {
14819
15240
  let runtime = new $Util.RuntimeOptions({ });
14820
15241
  let headers : {[key: string ]: string} = { };
14821
- return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
15242
+ return await this.describeClusterResourcesWithOptions(ClusterId, request, headers, runtime);
14822
15243
  }
14823
15244
 
14824
15245
  async describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
@@ -16167,6 +16588,10 @@ export default class Client extends OpenApi {
16167
16588
  async listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse> {
16168
16589
  Util.validateModel(request);
16169
16590
  let query : {[key: string ]: any} = { };
16591
+ if (!Util.isUnset(request.target)) {
16592
+ query["target"] = request.target;
16593
+ }
16594
+
16170
16595
  if (!Util.isUnset(request.type)) {
16171
16596
  query["type"] = request.type;
16172
16597
  }
@@ -17085,6 +17510,10 @@ export default class Client extends OpenApi {
17085
17510
  body["options"] = request.options;
17086
17511
  }
17087
17512
 
17513
+ if (!Util.isUnset(request.target)) {
17514
+ body["target"] = request.target;
17515
+ }
17516
+
17088
17517
  if (!Util.isUnset(request.type)) {
17089
17518
  body["type"] = request.type;
17090
17519
  }
@@ -17414,9 +17843,20 @@ export default class Client extends OpenApi {
17414
17843
  return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
17415
17844
  }
17416
17845
 
17417
- async startAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
17846
+ async startAlertWithOptions(ClusterId: string, request: StartAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
17847
+ Util.validateModel(request);
17848
+ let body : {[key: string ]: any} = { };
17849
+ if (!Util.isUnset(request.alertRuleGroupName)) {
17850
+ body["alert_rule_group_name"] = request.alertRuleGroupName;
17851
+ }
17852
+
17853
+ if (!Util.isUnset(request.alertRuleName)) {
17854
+ body["alert_rule_name"] = request.alertRuleName;
17855
+ }
17856
+
17418
17857
  let req = new $OpenApi.OpenApiRequest({
17419
17858
  headers: headers,
17859
+ body: OpenApiUtil.parseToMap(body),
17420
17860
  });
17421
17861
  let params = new $OpenApi.Params({
17422
17862
  action: "StartAlert",
@@ -17432,10 +17872,10 @@ export default class Client extends OpenApi {
17432
17872
  return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
17433
17873
  }
17434
17874
 
17435
- async startAlert(ClusterId: string): Promise<StartAlertResponse> {
17875
+ async startAlert(ClusterId: string, request: StartAlertRequest): Promise<StartAlertResponse> {
17436
17876
  let runtime = new $Util.RuntimeOptions({ });
17437
17877
  let headers : {[key: string ]: string} = { };
17438
- return await this.startAlertWithOptions(ClusterId, headers, runtime);
17878
+ return await this.startAlertWithOptions(ClusterId, request, headers, runtime);
17439
17879
  }
17440
17880
 
17441
17881
  async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
@@ -17541,9 +17981,20 @@ export default class Client extends OpenApi {
17541
17981
  return await this.startWorkflowWithOptions(request, headers, runtime);
17542
17982
  }
17543
17983
 
17544
- async stopAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
17984
+ async stopAlertWithOptions(ClusterId: string, request: StopAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
17985
+ Util.validateModel(request);
17986
+ let body : {[key: string ]: any} = { };
17987
+ if (!Util.isUnset(request.alertRuleGroupName)) {
17988
+ body["alert_rule_group_name"] = request.alertRuleGroupName;
17989
+ }
17990
+
17991
+ if (!Util.isUnset(request.alertRuleName)) {
17992
+ body["alert_rule_name"] = request.alertRuleName;
17993
+ }
17994
+
17545
17995
  let req = new $OpenApi.OpenApiRequest({
17546
17996
  headers: headers,
17997
+ body: OpenApiUtil.parseToMap(body),
17547
17998
  });
17548
17999
  let params = new $OpenApi.Params({
17549
18000
  action: "StopAlert",
@@ -17559,10 +18010,10 @@ export default class Client extends OpenApi {
17559
18010
  return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
17560
18011
  }
17561
18012
 
17562
- async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
18013
+ async stopAlert(ClusterId: string, request: StopAlertRequest): Promise<StopAlertResponse> {
17563
18014
  let runtime = new $Util.RuntimeOptions({ });
17564
18015
  let headers : {[key: string ]: string} = { };
17565
- return await this.stopAlertWithOptions(ClusterId, headers, runtime);
18016
+ return await this.stopAlertWithOptions(ClusterId, request, headers, runtime);
17566
18017
  }
17567
18018
 
17568
18019
  async syncClusterNodePoolWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse> {
@@ -17882,6 +18333,38 @@ export default class Client extends OpenApi {
17882
18333
  return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
17883
18334
  }
17884
18335
 
18336
+ async updateUserPermissionsWithOptions(uid: string, request: UpdateUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateUserPermissionsResponse> {
18337
+ Util.validateModel(request);
18338
+ let query : {[key: string ]: any} = { };
18339
+ if (!Util.isUnset(request.mode)) {
18340
+ query["mode"] = request.mode;
18341
+ }
18342
+
18343
+ let req = new $OpenApi.OpenApiRequest({
18344
+ headers: headers,
18345
+ query: OpenApiUtil.query(query),
18346
+ body: Util.toArray(request.body),
18347
+ });
18348
+ let params = new $OpenApi.Params({
18349
+ action: "UpdateUserPermissions",
18350
+ version: "2015-12-15",
18351
+ protocol: "HTTPS",
18352
+ pathname: `/permissions/users/${OpenApiUtil.getEncodeParam(uid)}/update`,
18353
+ method: "POST",
18354
+ authType: "AK",
18355
+ style: "ROA",
18356
+ reqBodyType: "json",
18357
+ bodyType: "none",
18358
+ });
18359
+ return $tea.cast<UpdateUserPermissionsResponse>(await this.callApi(params, req, runtime), new UpdateUserPermissionsResponse({}));
18360
+ }
18361
+
18362
+ async updateUserPermissions(uid: string, request: UpdateUserPermissionsRequest): Promise<UpdateUserPermissionsResponse> {
18363
+ let runtime = new $Util.RuntimeOptions({ });
18364
+ let headers : {[key: string ]: string} = { };
18365
+ return await this.updateUserPermissionsWithOptions(uid, request, headers, runtime);
18366
+ }
18367
+
17885
18368
  async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
17886
18369
  Util.validateModel(request);
17887
18370
  let body : {[key: string ]: any} = { };
@@ -17970,6 +18453,14 @@ export default class Client extends OpenApi {
17970
18453
  body["kubernetes_version"] = request.kubernetesVersion;
17971
18454
  }
17972
18455
 
18456
+ if (!Util.isUnset(request.nodeNames)) {
18457
+ body["node_names"] = request.nodeNames;
18458
+ }
18459
+
18460
+ if (!Util.isUnset(request.rollingPolicy)) {
18461
+ body["rolling_policy"] = request.rollingPolicy;
18462
+ }
18463
+
17973
18464
  if (!Util.isUnset(request.runtimeType)) {
17974
18465
  body["runtime_type"] = request.runtimeType;
17975
18466
  }