@alicloud/cs20151215 4.7.0 → 4.7.2

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.2",
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 {
@@ -9321,6 +9337,7 @@ export class GetClusterAddonInstanceResponse extends $tea.Model {
9321
9337
  }
9322
9338
 
9323
9339
  export class GetClusterAuditProjectResponseBody extends $tea.Model {
9340
+ auditEnabled?: boolean;
9324
9341
  /**
9325
9342
  * @example
9326
9343
  * k8s-log-cad1230511cbb4db4a488e58518******
@@ -9328,12 +9345,14 @@ export class GetClusterAuditProjectResponseBody extends $tea.Model {
9328
9345
  slsProjectName?: string;
9329
9346
  static names(): { [key: string]: string } {
9330
9347
  return {
9348
+ auditEnabled: 'audit_enabled',
9331
9349
  slsProjectName: 'sls_project_name',
9332
9350
  };
9333
9351
  }
9334
9352
 
9335
9353
  static types(): { [key: string]: any } {
9336
9354
  return {
9355
+ auditEnabled: 'boolean',
9337
9356
  slsProjectName: 'string',
9338
9357
  };
9339
9358
  }
@@ -13803,13 +13822,65 @@ export class UpdateClusterAuditLogConfigResponse extends $tea.Model {
13803
13822
  }
13804
13823
  }
13805
13824
 
13825
+ export class UpdateContactGroupForAlertRequest extends $tea.Model {
13826
+ alertRuleGroupName?: string;
13827
+ contactGroupIds?: number[];
13828
+ crName?: string;
13829
+ namespace?: string;
13830
+ static names(): { [key: string]: string } {
13831
+ return {
13832
+ alertRuleGroupName: 'alert_rule_group_name',
13833
+ contactGroupIds: 'contact_group_ids',
13834
+ crName: 'cr_name',
13835
+ namespace: 'namespace',
13836
+ };
13837
+ }
13838
+
13839
+ static types(): { [key: string]: any } {
13840
+ return {
13841
+ alertRuleGroupName: 'string',
13842
+ contactGroupIds: { 'type': 'array', 'itemType': 'number' },
13843
+ crName: 'string',
13844
+ namespace: 'string',
13845
+ };
13846
+ }
13847
+
13848
+ constructor(map?: { [key: string]: any }) {
13849
+ super(map);
13850
+ }
13851
+ }
13852
+
13853
+ export class UpdateContactGroupForAlertResponseBody extends $tea.Model {
13854
+ msg?: string;
13855
+ status?: boolean;
13856
+ static names(): { [key: string]: string } {
13857
+ return {
13858
+ msg: 'msg',
13859
+ status: 'status',
13860
+ };
13861
+ }
13862
+
13863
+ static types(): { [key: string]: any } {
13864
+ return {
13865
+ msg: 'string',
13866
+ status: 'boolean',
13867
+ };
13868
+ }
13869
+
13870
+ constructor(map?: { [key: string]: any }) {
13871
+ super(map);
13872
+ }
13873
+ }
13874
+
13806
13875
  export class UpdateContactGroupForAlertResponse extends $tea.Model {
13807
13876
  headers?: { [key: string]: string };
13808
13877
  statusCode?: number;
13878
+ body?: UpdateContactGroupForAlertResponseBody;
13809
13879
  static names(): { [key: string]: string } {
13810
13880
  return {
13811
13881
  headers: 'headers',
13812
13882
  statusCode: 'statusCode',
13883
+ body: 'body',
13813
13884
  };
13814
13885
  }
13815
13886
 
@@ -13817,6 +13888,7 @@ export class UpdateContactGroupForAlertResponse extends $tea.Model {
13817
13888
  return {
13818
13889
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
13819
13890
  statusCode: 'number',
13891
+ body: UpdateContactGroupForAlertResponseBody,
13820
13892
  };
13821
13893
  }
13822
13894
 
@@ -17051,7 +17123,7 @@ export class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
17051
17123
  }
17052
17124
  }
17053
17125
 
17054
- export class DeleteAlertContactResponseBodyBody extends $tea.Model {
17126
+ export class DeleteAlertContactResponseBody extends $tea.Model {
17055
17127
  status?: boolean;
17056
17128
  msg?: string;
17057
17129
  contactId?: string;
@@ -17076,25 +17148,6 @@ export class DeleteAlertContactResponseBodyBody extends $tea.Model {
17076
17148
  }
17077
17149
  }
17078
17150
 
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
17151
  export class DeleteAlertContactGroupResponseBody extends $tea.Model {
17099
17152
  status?: boolean;
17100
17153
  msg?: string;
@@ -28263,6 +28316,8 @@ export default class Client extends OpenApi {
28263
28316
  }
28264
28317
 
28265
28318
  /**
28319
+ * 删除ACK报警联系人
28320
+ *
28266
28321
  * @param tmpReq - DeleteAlertContactRequest
28267
28322
  * @param headers - map
28268
28323
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28300,6 +28355,8 @@ export default class Client extends OpenApi {
28300
28355
  }
28301
28356
 
28302
28357
  /**
28358
+ * 删除ACK报警联系人
28359
+ *
28303
28360
  * @param request - DeleteAlertContactRequest
28304
28361
  * @returns DeleteAlertContactResponse
28305
28362
  */
@@ -28310,6 +28367,8 @@ export default class Client extends OpenApi {
28310
28367
  }
28311
28368
 
28312
28369
  /**
28370
+ * 删除ACK报警联系人分组
28371
+ *
28313
28372
  * @param tmpReq - DeleteAlertContactGroupRequest
28314
28373
  * @param headers - map
28315
28374
  * @param runtime - runtime options for this request RuntimeOptions
@@ -28347,6 +28406,8 @@ export default class Client extends OpenApi {
28347
28406
  }
28348
28407
 
28349
28408
  /**
28409
+ * 删除ACK报警联系人分组
28410
+ *
28350
28411
  * @param request - DeleteAlertContactGroupRequest
28351
28412
  * @returns DeleteAlertContactGroupResponse
28352
28413
  */
@@ -33689,13 +33750,35 @@ export default class Client extends OpenApi {
33689
33750
  }
33690
33751
 
33691
33752
  /**
33753
+ * 为集群中报警规则集设置订阅的通知对象联系人组
33754
+ *
33755
+ * @param request - UpdateContactGroupForAlertRequest
33692
33756
  * @param headers - map
33693
33757
  * @param runtime - runtime options for this request RuntimeOptions
33694
33758
  * @returns UpdateContactGroupForAlertResponse
33695
33759
  */
33696
- async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
33760
+ async updateContactGroupForAlertWithOptions(ClusterId: string, request: UpdateContactGroupForAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
33761
+ Util.validateModel(request);
33762
+ let body : {[key: string ]: any} = { };
33763
+ if (!Util.isUnset(request.alertRuleGroupName)) {
33764
+ body["alert_rule_group_name"] = request.alertRuleGroupName;
33765
+ }
33766
+
33767
+ if (!Util.isUnset(request.contactGroupIds)) {
33768
+ body["contact_group_ids"] = request.contactGroupIds;
33769
+ }
33770
+
33771
+ if (!Util.isUnset(request.crName)) {
33772
+ body["cr_name"] = request.crName;
33773
+ }
33774
+
33775
+ if (!Util.isUnset(request.namespace)) {
33776
+ body["namespace"] = request.namespace;
33777
+ }
33778
+
33697
33779
  let req = new $OpenApi.OpenApiRequest({
33698
33780
  headers: headers,
33781
+ body: OpenApiUtil.parseToMap(body),
33699
33782
  });
33700
33783
  let params = new $OpenApi.Params({
33701
33784
  action: "UpdateContactGroupForAlert",
@@ -33706,18 +33789,21 @@ export default class Client extends OpenApi {
33706
33789
  authType: "AK",
33707
33790
  style: "ROA",
33708
33791
  reqBodyType: "json",
33709
- bodyType: "none",
33792
+ bodyType: "json",
33710
33793
  });
33711
33794
  return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
33712
33795
  }
33713
33796
 
33714
33797
  /**
33798
+ * 为集群中报警规则集设置订阅的通知对象联系人组
33799
+ *
33800
+ * @param request - UpdateContactGroupForAlertRequest
33715
33801
  * @returns UpdateContactGroupForAlertResponse
33716
33802
  */
33717
- async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
33803
+ async updateContactGroupForAlert(ClusterId: string, request: UpdateContactGroupForAlertRequest): Promise<UpdateContactGroupForAlertResponse> {
33718
33804
  let runtime = new $Util.RuntimeOptions({ });
33719
33805
  let headers : {[key: string ]: string} = { };
33720
- return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
33806
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, request, headers, runtime);
33721
33807
  }
33722
33808
 
33723
33809
  /**