@alicloud/cs20151215 3.3.4 → 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,14 +7904,20 @@ 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;
7911
+ useReplace?: boolean;
7714
7912
  static names(): { [key: string]: string } {
7715
7913
  return {
7716
7914
  imageId: 'image_id',
7717
7915
  kubernetesVersion: 'kubernetes_version',
7916
+ nodeNames: 'node_names',
7917
+ rollingPolicy: 'rolling_policy',
7718
7918
  runtimeType: 'runtime_type',
7719
7919
  runtimeVersion: 'runtime_version',
7920
+ useReplace: 'use_replace',
7720
7921
  };
7721
7922
  }
7722
7923
 
@@ -7724,8 +7925,11 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
7724
7925
  return {
7725
7926
  imageId: 'string',
7726
7927
  kubernetesVersion: 'string',
7928
+ nodeNames: { 'type': 'array', 'itemType': 'string' },
7929
+ rollingPolicy: UpgradeClusterNodepoolRequestRollingPolicy,
7727
7930
  runtimeType: 'string',
7728
7931
  runtimeVersion: 'string',
7932
+ useReplace: 'boolean',
7729
7933
  };
7730
7934
  }
7731
7935
 
@@ -8851,6 +9055,75 @@ export class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
8851
9055
  }
8852
9056
  }
8853
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
+
8854
9127
  export class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
8855
9128
  minimumClusterVersion?: string;
8856
9129
  upgradable?: boolean;
@@ -10314,6 +10587,53 @@ export class DescribeClusterResourcesResponseBodyDependencies extends $tea.Model
10314
10587
  }
10315
10588
  }
10316
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
+
10317
10637
  export class DescribeClusterResourcesResponseBody extends $tea.Model {
10318
10638
  clusterId?: string;
10319
10639
  created?: string;
@@ -10323,6 +10643,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10323
10643
  state?: string;
10324
10644
  autoCreate?: number;
10325
10645
  dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
10646
+ associatedObject?: DescribeClusterResourcesResponseBodyAssociatedObject;
10647
+ deleteBehavior?: DescribeClusterResourcesResponseBodyDeleteBehavior;
10648
+ creatorType?: string;
10649
+ extraInfo?: { [key: string]: any };
10326
10650
  static names(): { [key: string]: string } {
10327
10651
  return {
10328
10652
  clusterId: 'cluster_id',
@@ -10333,6 +10657,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10333
10657
  state: 'state',
10334
10658
  autoCreate: 'auto_create',
10335
10659
  dependencies: 'dependencies',
10660
+ associatedObject: 'associated_object',
10661
+ deleteBehavior: 'delete_behavior',
10662
+ creatorType: 'creator_type',
10663
+ extraInfo: 'extra_info',
10336
10664
  };
10337
10665
  }
10338
10666
 
@@ -10346,6 +10674,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
10346
10674
  state: 'string',
10347
10675
  autoCreate: 'number',
10348
10676
  dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
10677
+ associatedObject: DescribeClusterResourcesResponseBodyAssociatedObject,
10678
+ deleteBehavior: DescribeClusterResourcesResponseBodyDeleteBehavior,
10679
+ creatorType: 'string',
10680
+ extraInfo: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
10349
10681
  };
10350
10682
  }
10351
10683
 
@@ -12749,6 +13081,40 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
12749
13081
  }
12750
13082
  }
12751
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
+
12752
13118
  export class UpgradeClusterAddonsRequestBody extends $tea.Model {
12753
13119
  componentName?: string;
12754
13120
  config?: string;
@@ -12780,6 +13146,31 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
12780
13146
  }
12781
13147
  }
12782
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
+
12783
13174
 
12784
13175
  export default class Client extends OpenApi {
12785
13176
 
@@ -13862,9 +14253,22 @@ export default class Client extends OpenApi {
13862
14253
  return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
13863
14254
  }
13864
14255
 
13865
- 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
+
13866
14269
  let req = new $OpenApi.OpenApiRequest({
13867
14270
  headers: headers,
14271
+ query: OpenApiUtil.query(query),
13868
14272
  });
13869
14273
  let params = new $OpenApi.Params({
13870
14274
  action: "DeleteAlertContact",
@@ -13875,20 +14279,33 @@ export default class Client extends OpenApi {
13875
14279
  authType: "AK",
13876
14280
  style: "ROA",
13877
14281
  reqBodyType: "json",
13878
- bodyType: "none",
14282
+ bodyType: "array",
13879
14283
  });
13880
14284
  return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
13881
14285
  }
13882
14286
 
13883
- async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
14287
+ async deleteAlertContact(request: DeleteAlertContactRequest): Promise<DeleteAlertContactResponse> {
13884
14288
  let runtime = new $Util.RuntimeOptions({ });
13885
14289
  let headers : {[key: string ]: string} = { };
13886
- return await this.deleteAlertContactWithOptions(headers, runtime);
14290
+ return await this.deleteAlertContactWithOptions(request, headers, runtime);
13887
14291
  }
13888
14292
 
13889
- 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
+
13890
14306
  let req = new $OpenApi.OpenApiRequest({
13891
14307
  headers: headers,
14308
+ query: OpenApiUtil.query(query),
13892
14309
  });
13893
14310
  let params = new $OpenApi.Params({
13894
14311
  action: "DeleteAlertContactGroup",
@@ -13899,15 +14316,15 @@ export default class Client extends OpenApi {
13899
14316
  authType: "AK",
13900
14317
  style: "ROA",
13901
14318
  reqBodyType: "json",
13902
- bodyType: "none",
14319
+ bodyType: "array",
13903
14320
  });
13904
14321
  return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
13905
14322
  }
13906
14323
 
13907
- async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
14324
+ async deleteAlertContactGroup(request: DeleteAlertContactGroupRequest): Promise<DeleteAlertContactGroupResponse> {
13908
14325
  let runtime = new $Util.RuntimeOptions({ });
13909
14326
  let headers : {[key: string ]: string} = { };
13910
- return await this.deleteAlertContactGroupWithOptions(headers, runtime);
14327
+ return await this.deleteAlertContactGroupWithOptions(request, headers, runtime);
13911
14328
  }
13912
14329
 
13913
14330
  async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
@@ -14794,9 +15211,16 @@ export default class Client extends OpenApi {
14794
15211
  return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
14795
15212
  }
14796
15213
 
14797
- 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
+
14798
15221
  let req = new $OpenApi.OpenApiRequest({
14799
15222
  headers: headers,
15223
+ query: OpenApiUtil.query(query),
14800
15224
  });
14801
15225
  let params = new $OpenApi.Params({
14802
15226
  action: "DescribeClusterResources",
@@ -14812,10 +15236,10 @@ export default class Client extends OpenApi {
14812
15236
  return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
14813
15237
  }
14814
15238
 
14815
- async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
15239
+ async describeClusterResources(ClusterId: string, request: DescribeClusterResourcesRequest): Promise<DescribeClusterResourcesResponse> {
14816
15240
  let runtime = new $Util.RuntimeOptions({ });
14817
15241
  let headers : {[key: string ]: string} = { };
14818
- return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
15242
+ return await this.describeClusterResourcesWithOptions(ClusterId, request, headers, runtime);
14819
15243
  }
14820
15244
 
14821
15245
  async describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
@@ -16164,6 +16588,10 @@ export default class Client extends OpenApi {
16164
16588
  async listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse> {
16165
16589
  Util.validateModel(request);
16166
16590
  let query : {[key: string ]: any} = { };
16591
+ if (!Util.isUnset(request.target)) {
16592
+ query["target"] = request.target;
16593
+ }
16594
+
16167
16595
  if (!Util.isUnset(request.type)) {
16168
16596
  query["type"] = request.type;
16169
16597
  }
@@ -17082,6 +17510,10 @@ export default class Client extends OpenApi {
17082
17510
  body["options"] = request.options;
17083
17511
  }
17084
17512
 
17513
+ if (!Util.isUnset(request.target)) {
17514
+ body["target"] = request.target;
17515
+ }
17516
+
17085
17517
  if (!Util.isUnset(request.type)) {
17086
17518
  body["type"] = request.type;
17087
17519
  }
@@ -17411,9 +17843,20 @@ export default class Client extends OpenApi {
17411
17843
  return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
17412
17844
  }
17413
17845
 
17414
- 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
+
17415
17857
  let req = new $OpenApi.OpenApiRequest({
17416
17858
  headers: headers,
17859
+ body: OpenApiUtil.parseToMap(body),
17417
17860
  });
17418
17861
  let params = new $OpenApi.Params({
17419
17862
  action: "StartAlert",
@@ -17429,10 +17872,10 @@ export default class Client extends OpenApi {
17429
17872
  return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
17430
17873
  }
17431
17874
 
17432
- async startAlert(ClusterId: string): Promise<StartAlertResponse> {
17875
+ async startAlert(ClusterId: string, request: StartAlertRequest): Promise<StartAlertResponse> {
17433
17876
  let runtime = new $Util.RuntimeOptions({ });
17434
17877
  let headers : {[key: string ]: string} = { };
17435
- return await this.startAlertWithOptions(ClusterId, headers, runtime);
17878
+ return await this.startAlertWithOptions(ClusterId, request, headers, runtime);
17436
17879
  }
17437
17880
 
17438
17881
  async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
@@ -17538,9 +17981,20 @@ export default class Client extends OpenApi {
17538
17981
  return await this.startWorkflowWithOptions(request, headers, runtime);
17539
17982
  }
17540
17983
 
17541
- 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
+
17542
17995
  let req = new $OpenApi.OpenApiRequest({
17543
17996
  headers: headers,
17997
+ body: OpenApiUtil.parseToMap(body),
17544
17998
  });
17545
17999
  let params = new $OpenApi.Params({
17546
18000
  action: "StopAlert",
@@ -17556,10 +18010,10 @@ export default class Client extends OpenApi {
17556
18010
  return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
17557
18011
  }
17558
18012
 
17559
- async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
18013
+ async stopAlert(ClusterId: string, request: StopAlertRequest): Promise<StopAlertResponse> {
17560
18014
  let runtime = new $Util.RuntimeOptions({ });
17561
18015
  let headers : {[key: string ]: string} = { };
17562
- return await this.stopAlertWithOptions(ClusterId, headers, runtime);
18016
+ return await this.stopAlertWithOptions(ClusterId, request, headers, runtime);
17563
18017
  }
17564
18018
 
17565
18019
  async syncClusterNodePoolWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse> {
@@ -17879,6 +18333,38 @@ export default class Client extends OpenApi {
17879
18333
  return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
17880
18334
  }
17881
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
+
17882
18368
  async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
17883
18369
  Util.validateModel(request);
17884
18370
  let body : {[key: string ]: any} = { };
@@ -17967,6 +18453,14 @@ export default class Client extends OpenApi {
17967
18453
  body["kubernetes_version"] = request.kubernetesVersion;
17968
18454
  }
17969
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
+
17970
18464
  if (!Util.isUnset(request.runtimeType)) {
17971
18465
  body["runtime_type"] = request.runtimeType;
17972
18466
  }
@@ -17975,6 +18469,10 @@ export default class Client extends OpenApi {
17975
18469
  body["runtime_version"] = request.runtimeVersion;
17976
18470
  }
17977
18471
 
18472
+ if (!Util.isUnset(request.useReplace)) {
18473
+ body["use_replace"] = request.useReplace;
18474
+ }
18475
+
17978
18476
  let req = new $OpenApi.OpenApiRequest({
17979
18477
  headers: headers,
17980
18478
  body: OpenApiUtil.parseToMap(body),