@alicloud/cs20151215 3.0.6 → 3.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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud CS SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/cs20151215 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
package/dist/client.d.ts CHANGED
@@ -574,6 +574,34 @@ export declare class CreateTriggerResponse extends $tea.Model {
574
574
  [key: string]: any;
575
575
  });
576
576
  }
577
+ export declare class DeleteAlertContactResponse extends $tea.Model {
578
+ headers: {
579
+ [key: string]: string;
580
+ };
581
+ static names(): {
582
+ [key: string]: string;
583
+ };
584
+ static types(): {
585
+ [key: string]: any;
586
+ };
587
+ constructor(map?: {
588
+ [key: string]: any;
589
+ });
590
+ }
591
+ export declare class DeleteAlertContactGroupResponse extends $tea.Model {
592
+ headers: {
593
+ [key: string]: string;
594
+ };
595
+ static names(): {
596
+ [key: string]: string;
597
+ };
598
+ static types(): {
599
+ [key: string]: any;
600
+ };
601
+ constructor(map?: {
602
+ [key: string]: any;
603
+ });
604
+ }
577
605
  export declare class DeleteClusterRequest extends $tea.Model {
578
606
  keepSlb?: boolean;
579
607
  retainAllResources?: boolean;
@@ -2957,6 +2985,33 @@ export declare class UntagResourcesResponse extends $tea.Model {
2957
2985
  [key: string]: any;
2958
2986
  });
2959
2987
  }
2988
+ export declare class UpdateContactGroupForAlertResponse extends $tea.Model {
2989
+ headers: {
2990
+ [key: string]: string;
2991
+ };
2992
+ static names(): {
2993
+ [key: string]: string;
2994
+ };
2995
+ static types(): {
2996
+ [key: string]: any;
2997
+ };
2998
+ constructor(map?: {
2999
+ [key: string]: any;
3000
+ });
3001
+ }
3002
+ export declare class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
3003
+ expireHour?: number;
3004
+ user?: string;
3005
+ static names(): {
3006
+ [key: string]: string;
3007
+ };
3008
+ static types(): {
3009
+ [key: string]: any;
3010
+ };
3011
+ constructor(map?: {
3012
+ [key: string]: any;
3013
+ });
3014
+ }
2960
3015
  export declare class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
2961
3016
  headers: {
2962
3017
  [key: string]: string;
@@ -4699,6 +4754,14 @@ export default class Client extends OpenApi {
4699
4754
  createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {
4700
4755
  [key: string]: string;
4701
4756
  }, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse>;
4757
+ deleteAlertContact(): Promise<DeleteAlertContactResponse>;
4758
+ deleteAlertContactWithOptions(headers: {
4759
+ [key: string]: string;
4760
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse>;
4761
+ deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse>;
4762
+ deleteAlertContactGroupWithOptions(headers: {
4763
+ [key: string]: string;
4764
+ }, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse>;
4702
4765
  deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse>;
4703
4766
  deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {
4704
4767
  [key: string]: string;
@@ -4995,8 +5058,12 @@ export default class Client extends OpenApi {
4995
5058
  untagResourcesWithOptions(request: UntagResourcesRequest, headers: {
4996
5059
  [key: string]: string;
4997
5060
  }, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse>;
4998
- updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse>;
4999
- updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {
5061
+ updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse>;
5062
+ updateContactGroupForAlertWithOptions(ClusterId: string, headers: {
5063
+ [key: string]: string;
5064
+ }, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse>;
5065
+ updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse>;
5066
+ updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {
5000
5067
  [key: string]: string;
5001
5068
  }, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse>;
5002
5069
  updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse>;
package/dist/client.js CHANGED
@@ -851,6 +851,38 @@ class CreateTriggerResponse extends $tea.Model {
851
851
  }
852
852
  }
853
853
  exports.CreateTriggerResponse = CreateTriggerResponse;
854
+ class DeleteAlertContactResponse extends $tea.Model {
855
+ constructor(map) {
856
+ super(map);
857
+ }
858
+ static names() {
859
+ return {
860
+ headers: 'headers',
861
+ };
862
+ }
863
+ static types() {
864
+ return {
865
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
866
+ };
867
+ }
868
+ }
869
+ exports.DeleteAlertContactResponse = DeleteAlertContactResponse;
870
+ class DeleteAlertContactGroupResponse extends $tea.Model {
871
+ constructor(map) {
872
+ super(map);
873
+ }
874
+ static names() {
875
+ return {
876
+ headers: 'headers',
877
+ };
878
+ }
879
+ static types() {
880
+ return {
881
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
882
+ };
883
+ }
884
+ }
885
+ exports.DeleteAlertContactGroupResponse = DeleteAlertContactGroupResponse;
854
886
  class DeleteClusterRequest extends $tea.Model {
855
887
  constructor(map) {
856
888
  super(map);
@@ -4009,6 +4041,40 @@ class UntagResourcesResponse extends $tea.Model {
4009
4041
  }
4010
4042
  }
4011
4043
  exports.UntagResourcesResponse = UntagResourcesResponse;
4044
+ class UpdateContactGroupForAlertResponse extends $tea.Model {
4045
+ constructor(map) {
4046
+ super(map);
4047
+ }
4048
+ static names() {
4049
+ return {
4050
+ headers: 'headers',
4051
+ };
4052
+ }
4053
+ static types() {
4054
+ return {
4055
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4056
+ };
4057
+ }
4058
+ }
4059
+ exports.UpdateContactGroupForAlertResponse = UpdateContactGroupForAlertResponse;
4060
+ class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
4061
+ constructor(map) {
4062
+ super(map);
4063
+ }
4064
+ static names() {
4065
+ return {
4066
+ expireHour: 'expire_hour',
4067
+ user: 'user',
4068
+ };
4069
+ }
4070
+ static types() {
4071
+ return {
4072
+ expireHour: 'number',
4073
+ user: 'string',
4074
+ };
4075
+ }
4076
+ }
4077
+ exports.UpdateK8sClusterUserConfigExpireRequest = UpdateK8sClusterUserConfigExpireRequest;
4012
4078
  class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
4013
4079
  constructor(map) {
4014
4080
  super(map);
@@ -7296,6 +7362,50 @@ class Client extends openapi_client_1.default {
7296
7362
  });
7297
7363
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
7298
7364
  }
7365
+ async deleteAlertContact() {
7366
+ let runtime = new $Util.RuntimeOptions({});
7367
+ let headers = {};
7368
+ return await this.deleteAlertContactWithOptions(headers, runtime);
7369
+ }
7370
+ async deleteAlertContactWithOptions(headers, runtime) {
7371
+ let req = new $OpenApi.OpenApiRequest({
7372
+ headers: headers,
7373
+ });
7374
+ let params = new $OpenApi.Params({
7375
+ action: "DeleteAlertContact",
7376
+ version: "2015-12-15",
7377
+ protocol: "HTTPS",
7378
+ pathname: `/alert/contacts`,
7379
+ method: "DELETE",
7380
+ authType: "AK",
7381
+ style: "ROA",
7382
+ reqBodyType: "json",
7383
+ bodyType: "none",
7384
+ });
7385
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
7386
+ }
7387
+ async deleteAlertContactGroup() {
7388
+ let runtime = new $Util.RuntimeOptions({});
7389
+ let headers = {};
7390
+ return await this.deleteAlertContactGroupWithOptions(headers, runtime);
7391
+ }
7392
+ async deleteAlertContactGroupWithOptions(headers, runtime) {
7393
+ let req = new $OpenApi.OpenApiRequest({
7394
+ headers: headers,
7395
+ });
7396
+ let params = new $OpenApi.Params({
7397
+ action: "DeleteAlertContactGroup",
7398
+ version: "2015-12-15",
7399
+ protocol: "HTTPS",
7400
+ pathname: `/alert/contact_groups`,
7401
+ method: "DELETE",
7402
+ authType: "AK",
7403
+ style: "ROA",
7404
+ reqBodyType: "json",
7405
+ bodyType: "none",
7406
+ });
7407
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
7408
+ }
7299
7409
  async deleteCluster(ClusterId, request) {
7300
7410
  let runtime = new $Util.RuntimeOptions({});
7301
7411
  let headers = {};
@@ -9648,16 +9758,48 @@ class Client extends openapi_client_1.default {
9648
9758
  });
9649
9759
  return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
9650
9760
  }
9651
- async updateK8sClusterUserConfigExpire(ClusterId) {
9761
+ async updateContactGroupForAlert(ClusterId) {
9652
9762
  let runtime = new $Util.RuntimeOptions({});
9653
9763
  let headers = {};
9654
- return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime);
9764
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
9655
9765
  }
9656
- async updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime) {
9766
+ async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
9657
9767
  ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9658
9768
  let req = new $OpenApi.OpenApiRequest({
9659
9769
  headers: headers,
9660
9770
  });
9771
+ let params = new $OpenApi.Params({
9772
+ action: "UpdateContactGroupForAlert",
9773
+ version: "2015-12-15",
9774
+ protocol: "HTTPS",
9775
+ pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
9776
+ method: "POST",
9777
+ authType: "AK",
9778
+ style: "ROA",
9779
+ reqBodyType: "json",
9780
+ bodyType: "none",
9781
+ });
9782
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
9783
+ }
9784
+ async updateK8sClusterUserConfigExpire(ClusterId, request) {
9785
+ let runtime = new $Util.RuntimeOptions({});
9786
+ let headers = {};
9787
+ return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
9788
+ }
9789
+ async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
9790
+ tea_util_1.default.validateModel(request);
9791
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
9792
+ let body = {};
9793
+ if (!tea_util_1.default.isUnset(request.expireHour)) {
9794
+ body["expire_hour"] = request.expireHour;
9795
+ }
9796
+ if (!tea_util_1.default.isUnset(request.user)) {
9797
+ body["user"] = request.user;
9798
+ }
9799
+ let req = new $OpenApi.OpenApiRequest({
9800
+ headers: headers,
9801
+ body: openapi_util_1.default.parseToMap(body),
9802
+ });
9661
9803
  let params = new $OpenApi.Params({
9662
9804
  action: "UpdateK8sClusterUserConfigExpire",
9663
9805
  version: "2015-12-15",