@alicloud/cs20151215 4.7.0 → 4.7.1

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.7.0",
3
+ "version": "4.7.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3900,6 +3900,10 @@ export class CreateTriggerResponse extends $tea.Model {
3900
3900
  }
3901
3901
 
3902
3902
  export class DeleteAlertContactRequest extends $tea.Model {
3903
+ /**
3904
+ * @remarks
3905
+ * This parameter is required.
3906
+ */
3903
3907
  contactIds?: number[];
3904
3908
  static names(): { [key: string]: string } {
3905
3909
  return {
@@ -3919,6 +3923,10 @@ export class DeleteAlertContactRequest extends $tea.Model {
3919
3923
  }
3920
3924
 
3921
3925
  export class DeleteAlertContactShrinkRequest extends $tea.Model {
3926
+ /**
3927
+ * @remarks
3928
+ * This parameter is required.
3929
+ */
3922
3930
  contactIdsShrink?: string;
3923
3931
  static names(): { [key: string]: string } {
3924
3932
  return {
@@ -3940,7 +3948,7 @@ export class DeleteAlertContactShrinkRequest extends $tea.Model {
3940
3948
  export class DeleteAlertContactResponse extends $tea.Model {
3941
3949
  headers?: { [key: string]: string };
3942
3950
  statusCode?: number;
3943
- body?: DeleteAlertContactResponseBody;
3951
+ body?: DeleteAlertContactResponseBody[];
3944
3952
  static names(): { [key: string]: string } {
3945
3953
  return {
3946
3954
  headers: 'headers',
@@ -3953,7 +3961,7 @@ export class DeleteAlertContactResponse extends $tea.Model {
3953
3961
  return {
3954
3962
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3955
3963
  statusCode: 'number',
3956
- body: DeleteAlertContactResponseBody,
3964
+ body: { 'type': 'array', 'itemType': DeleteAlertContactResponseBody },
3957
3965
  };
3958
3966
  }
3959
3967
 
@@ -3963,6 +3971,10 @@ export class DeleteAlertContactResponse extends $tea.Model {
3963
3971
  }
3964
3972
 
3965
3973
  export class DeleteAlertContactGroupRequest extends $tea.Model {
3974
+ /**
3975
+ * @remarks
3976
+ * This parameter is required.
3977
+ */
3966
3978
  contactGroupIds?: number[];
3967
3979
  static names(): { [key: string]: string } {
3968
3980
  return {
@@ -3982,6 +3994,10 @@ export class DeleteAlertContactGroupRequest extends $tea.Model {
3982
3994
  }
3983
3995
 
3984
3996
  export class DeleteAlertContactGroupShrinkRequest extends $tea.Model {
3997
+ /**
3998
+ * @remarks
3999
+ * This parameter is required.
4000
+ */
3985
4001
  contactGroupIdsShrink?: string;
3986
4002
  static names(): { [key: string]: string } {
3987
4003
  return {
@@ -13803,13 +13819,65 @@ export class UpdateClusterAuditLogConfigResponse extends $tea.Model {
13803
13819
  }
13804
13820
  }
13805
13821
 
13822
+ export class UpdateContactGroupForAlertRequest extends $tea.Model {
13823
+ alertRuleGroupName?: string;
13824
+ contactGroupIds?: number[];
13825
+ crName?: string;
13826
+ namespace?: string;
13827
+ static names(): { [key: string]: string } {
13828
+ return {
13829
+ alertRuleGroupName: 'alert_rule_group_name',
13830
+ contactGroupIds: 'contact_group_ids',
13831
+ crName: 'cr_name',
13832
+ namespace: 'namespace',
13833
+ };
13834
+ }
13835
+
13836
+ static types(): { [key: string]: any } {
13837
+ return {
13838
+ alertRuleGroupName: 'string',
13839
+ contactGroupIds: { 'type': 'array', 'itemType': 'number' },
13840
+ crName: 'string',
13841
+ namespace: 'string',
13842
+ };
13843
+ }
13844
+
13845
+ constructor(map?: { [key: string]: any }) {
13846
+ super(map);
13847
+ }
13848
+ }
13849
+
13850
+ export class UpdateContactGroupForAlertResponseBody extends $tea.Model {
13851
+ msg?: string;
13852
+ status?: boolean;
13853
+ static names(): { [key: string]: string } {
13854
+ return {
13855
+ msg: 'msg',
13856
+ status: 'status',
13857
+ };
13858
+ }
13859
+
13860
+ static types(): { [key: string]: any } {
13861
+ return {
13862
+ msg: 'string',
13863
+ status: 'boolean',
13864
+ };
13865
+ }
13866
+
13867
+ constructor(map?: { [key: string]: any }) {
13868
+ super(map);
13869
+ }
13870
+ }
13871
+
13806
13872
  export class UpdateContactGroupForAlertResponse extends $tea.Model {
13807
13873
  headers?: { [key: string]: string };
13808
13874
  statusCode?: number;
13875
+ body?: UpdateContactGroupForAlertResponseBody;
13809
13876
  static names(): { [key: string]: string } {
13810
13877
  return {
13811
13878
  headers: 'headers',
13812
13879
  statusCode: 'statusCode',
13880
+ body: 'body',
13813
13881
  };
13814
13882
  }
13815
13883
 
@@ -13817,6 +13885,7 @@ export class UpdateContactGroupForAlertResponse extends $tea.Model {
13817
13885
  return {
13818
13886
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
13819
13887
  statusCode: 'number',
13888
+ body: UpdateContactGroupForAlertResponseBody,
13820
13889
  };
13821
13890
  }
13822
13891
 
@@ -17051,7 +17120,7 @@ export class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
17051
17120
  }
17052
17121
  }
17053
17122
 
17054
- export class DeleteAlertContactResponseBodyBody extends $tea.Model {
17123
+ export class DeleteAlertContactResponseBody extends $tea.Model {
17055
17124
  status?: boolean;
17056
17125
  msg?: string;
17057
17126
  contactId?: string;
@@ -17076,25 +17145,6 @@ export class DeleteAlertContactResponseBodyBody extends $tea.Model {
17076
17145
  }
17077
17146
  }
17078
17147
 
17079
- export class DeleteAlertContactResponseBody extends $tea.Model {
17080
- body?: DeleteAlertContactResponseBodyBody[];
17081
- static names(): { [key: string]: string } {
17082
- return {
17083
- body: 'body',
17084
- };
17085
- }
17086
-
17087
- static types(): { [key: string]: any } {
17088
- return {
17089
- body: { 'type': 'array', 'itemType': DeleteAlertContactResponseBodyBody },
17090
- };
17091
- }
17092
-
17093
- constructor(map?: { [key: string]: any }) {
17094
- super(map);
17095
- }
17096
- }
17097
-
17098
17148
  export class DeleteAlertContactGroupResponseBody extends $tea.Model {
17099
17149
  status?: boolean;
17100
17150
  msg?: string;
@@ -28263,6 +28313,8 @@ export default class Client extends OpenApi {
28263
28313
  }
28264
28314
 
28265
28315
  /**
28316
+ * 删除ACK报警联系人
28317
+ *
28266
28318
  * @param tmpReq - DeleteAlertContactRequest
28267
28319
  * @param headers - map
28268
28320
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28300,6 +28352,8 @@ export default class Client extends OpenApi {
28300
28352
  }
28301
28353
 
28302
28354
  /**
28355
+ * 删除ACK报警联系人
28356
+ *
28303
28357
  * @param request - DeleteAlertContactRequest
28304
28358
  * @returns DeleteAlertContactResponse
28305
28359
  */
@@ -28310,6 +28364,8 @@ export default class Client extends OpenApi {
28310
28364
  }
28311
28365
 
28312
28366
  /**
28367
+ * 删除ACK报警联系人分组
28368
+ *
28313
28369
  * @param tmpReq - DeleteAlertContactGroupRequest
28314
28370
  * @param headers - map
28315
28371
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28347,6 +28403,8 @@ export default class Client extends OpenApi {
28347
28403
  }
28348
28404
 
28349
28405
  /**
28406
+ * 删除ACK报警联系人分组
28407
+ *
28350
28408
  * @param request - DeleteAlertContactGroupRequest
28351
28409
  * @returns DeleteAlertContactGroupResponse
28352
28410
  */
@@ -33689,13 +33747,35 @@ export default class Client extends OpenApi {
33689
33747
  }
33690
33748
 
33691
33749
  /**
33750
+ * 为集群中报警规则集设置订阅的通知对象联系人组
33751
+ *
33752
+ * @param request - UpdateContactGroupForAlertRequest
33692
33753
  * @param headers - map
33693
33754
  * @param runtime - runtime options for this request RuntimeOptions
33694
33755
  * @returns UpdateContactGroupForAlertResponse
33695
33756
  */
33696
- async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
33757
+ async updateContactGroupForAlertWithOptions(ClusterId: string, request: UpdateContactGroupForAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
33758
+ Util.validateModel(request);
33759
+ let body : {[key: string ]: any} = { };
33760
+ if (!Util.isUnset(request.alertRuleGroupName)) {
33761
+ body["alert_rule_group_name"] = request.alertRuleGroupName;
33762
+ }
33763
+
33764
+ if (!Util.isUnset(request.contactGroupIds)) {
33765
+ body["contact_group_ids"] = request.contactGroupIds;
33766
+ }
33767
+
33768
+ if (!Util.isUnset(request.crName)) {
33769
+ body["cr_name"] = request.crName;
33770
+ }
33771
+
33772
+ if (!Util.isUnset(request.namespace)) {
33773
+ body["namespace"] = request.namespace;
33774
+ }
33775
+
33697
33776
  let req = new $OpenApi.OpenApiRequest({
33698
33777
  headers: headers,
33778
+ body: OpenApiUtil.parseToMap(body),
33699
33779
  });
33700
33780
  let params = new $OpenApi.Params({
33701
33781
  action: "UpdateContactGroupForAlert",
@@ -33706,18 +33786,21 @@ export default class Client extends OpenApi {
33706
33786
  authType: "AK",
33707
33787
  style: "ROA",
33708
33788
  reqBodyType: "json",
33709
- bodyType: "none",
33789
+ bodyType: "json",
33710
33790
  });
33711
33791
  return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
33712
33792
  }
33713
33793
 
33714
33794
  /**
33795
+ * 为集群中报警规则集设置订阅的通知对象联系人组
33796
+ *
33797
+ * @param request - UpdateContactGroupForAlertRequest
33715
33798
  * @returns UpdateContactGroupForAlertResponse
33716
33799
  */
33717
- async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
33800
+ async updateContactGroupForAlert(ClusterId: string, request: UpdateContactGroupForAlertRequest): Promise<UpdateContactGroupForAlertResponse> {
33718
33801
  let runtime = new $Util.RuntimeOptions({ });
33719
33802
  let headers : {[key: string ]: string} = { };
33720
- return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
33803
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, request, headers, runtime);
33721
33804
  }
33722
33805
 
33723
33806
  /**