@alicloud/cs20151215 3.0.6 → 3.0.9

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": "3.0.6",
3
+ "version": "3.0.9",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1091,6 +1091,44 @@ export class CreateTriggerResponse extends $tea.Model {
1091
1091
  }
1092
1092
  }
1093
1093
 
1094
+ export class DeleteAlertContactResponse extends $tea.Model {
1095
+ headers: { [key: string]: string };
1096
+ static names(): { [key: string]: string } {
1097
+ return {
1098
+ headers: 'headers',
1099
+ };
1100
+ }
1101
+
1102
+ static types(): { [key: string]: any } {
1103
+ return {
1104
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1105
+ };
1106
+ }
1107
+
1108
+ constructor(map?: { [key: string]: any }) {
1109
+ super(map);
1110
+ }
1111
+ }
1112
+
1113
+ export class DeleteAlertContactGroupResponse extends $tea.Model {
1114
+ headers: { [key: string]: string };
1115
+ static names(): { [key: string]: string } {
1116
+ return {
1117
+ headers: 'headers',
1118
+ };
1119
+ }
1120
+
1121
+ static types(): { [key: string]: any } {
1122
+ return {
1123
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1124
+ };
1125
+ }
1126
+
1127
+ constructor(map?: { [key: string]: any }) {
1128
+ super(map);
1129
+ }
1130
+ }
1131
+
1094
1132
  export class DeleteClusterRequest extends $tea.Model {
1095
1133
  keepSlb?: boolean;
1096
1134
  retainAllResources?: boolean;
@@ -2390,6 +2428,7 @@ export class DescribeClustersV1Request extends $tea.Model {
2390
2428
  pageNumber?: number;
2391
2429
  pageSize?: number;
2392
2430
  profile?: string;
2431
+ regionId?: string;
2393
2432
  static names(): { [key: string]: string } {
2394
2433
  return {
2395
2434
  clusterSpec: 'cluster_spec',
@@ -2398,6 +2437,7 @@ export class DescribeClustersV1Request extends $tea.Model {
2398
2437
  pageNumber: 'page_number',
2399
2438
  pageSize: 'page_size',
2400
2439
  profile: 'profile',
2440
+ regionId: 'region_id',
2401
2441
  };
2402
2442
  }
2403
2443
 
@@ -2409,6 +2449,7 @@ export class DescribeClustersV1Request extends $tea.Model {
2409
2449
  pageNumber: 'number',
2410
2450
  pageSize: 'number',
2411
2451
  profile: 'string',
2452
+ regionId: 'string',
2412
2453
  };
2413
2454
  }
2414
2455
 
@@ -4098,13 +4139,13 @@ export class ModifyClusterTagsResponse extends $tea.Model {
4098
4139
  export class ModifyPolicyInstanceRequest extends $tea.Model {
4099
4140
  action?: string;
4100
4141
  instanceName?: string;
4101
- namespace?: string;
4142
+ namespaces?: string[];
4102
4143
  parameters?: { [key: string]: any };
4103
4144
  static names(): { [key: string]: string } {
4104
4145
  return {
4105
4146
  action: 'action',
4106
4147
  instanceName: 'instance_name',
4107
- namespace: 'namespace',
4148
+ namespaces: 'namespaces',
4108
4149
  parameters: 'parameters',
4109
4150
  };
4110
4151
  }
@@ -4113,7 +4154,7 @@ export class ModifyPolicyInstanceRequest extends $tea.Model {
4113
4154
  return {
4114
4155
  action: 'string',
4115
4156
  instanceName: 'string',
4116
- namespace: 'string',
4157
+ namespaces: { 'type': 'array', 'itemType': 'string' },
4117
4158
  parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
4118
4159
  };
4119
4160
  }
@@ -5028,6 +5069,47 @@ export class UntagResourcesResponse extends $tea.Model {
5028
5069
  }
5029
5070
  }
5030
5071
 
5072
+ export class UpdateContactGroupForAlertResponse extends $tea.Model {
5073
+ headers: { [key: string]: string };
5074
+ static names(): { [key: string]: string } {
5075
+ return {
5076
+ headers: 'headers',
5077
+ };
5078
+ }
5079
+
5080
+ static types(): { [key: string]: any } {
5081
+ return {
5082
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5083
+ };
5084
+ }
5085
+
5086
+ constructor(map?: { [key: string]: any }) {
5087
+ super(map);
5088
+ }
5089
+ }
5090
+
5091
+ export class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
5092
+ expireHour?: number;
5093
+ user?: string;
5094
+ static names(): { [key: string]: string } {
5095
+ return {
5096
+ expireHour: 'expire_hour',
5097
+ user: 'user',
5098
+ };
5099
+ }
5100
+
5101
+ static types(): { [key: string]: any } {
5102
+ return {
5103
+ expireHour: 'number',
5104
+ user: 'string',
5105
+ };
5106
+ }
5107
+
5108
+ constructor(map?: { [key: string]: any }) {
5109
+ super(map);
5110
+ }
5111
+ }
5112
+
5031
5113
  export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
5032
5114
  headers: { [key: string]: string };
5033
5115
  static names(): { [key: string]: string } {
@@ -5672,7 +5754,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
5672
5754
  ID?: number;
5673
5755
  clusterId?: string;
5674
5756
  clusterLog?: string;
5675
- logLevel?: string;
5676
5757
  created?: string;
5677
5758
  updated?: string;
5678
5759
  static names(): { [key: string]: string } {
@@ -5680,7 +5761,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
5680
5761
  ID: 'ID',
5681
5762
  clusterId: 'cluster_id',
5682
5763
  clusterLog: 'cluster_log',
5683
- logLevel: 'log_level',
5684
5764
  created: 'created',
5685
5765
  updated: 'updated',
5686
5766
  };
@@ -5691,7 +5771,6 @@ export class DescribeClusterLogsResponseBody extends $tea.Model {
5691
5771
  ID: 'number',
5692
5772
  clusterId: 'string',
5693
5773
  clusterLog: 'string',
5694
- logLevel: 'string',
5695
5774
  created: 'string',
5696
5775
  updated: 'string',
5697
5776
  };
@@ -9263,6 +9342,54 @@ export default class Client extends OpenApi {
9263
9342
  return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
9264
9343
  }
9265
9344
 
9345
+ async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
9346
+ let runtime = new $Util.RuntimeOptions({ });
9347
+ let headers : {[key: string ]: string} = { };
9348
+ return await this.deleteAlertContactWithOptions(headers, runtime);
9349
+ }
9350
+
9351
+ async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
9352
+ let req = new $OpenApi.OpenApiRequest({
9353
+ headers: headers,
9354
+ });
9355
+ let params = new $OpenApi.Params({
9356
+ action: "DeleteAlertContact",
9357
+ version: "2015-12-15",
9358
+ protocol: "HTTPS",
9359
+ pathname: `/alert/contacts`,
9360
+ method: "DELETE",
9361
+ authType: "AK",
9362
+ style: "ROA",
9363
+ reqBodyType: "json",
9364
+ bodyType: "none",
9365
+ });
9366
+ return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
9367
+ }
9368
+
9369
+ async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
9370
+ let runtime = new $Util.RuntimeOptions({ });
9371
+ let headers : {[key: string ]: string} = { };
9372
+ return await this.deleteAlertContactGroupWithOptions(headers, runtime);
9373
+ }
9374
+
9375
+ async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
9376
+ let req = new $OpenApi.OpenApiRequest({
9377
+ headers: headers,
9378
+ });
9379
+ let params = new $OpenApi.Params({
9380
+ action: "DeleteAlertContactGroup",
9381
+ version: "2015-12-15",
9382
+ protocol: "HTTPS",
9383
+ pathname: `/alert/contact_groups`,
9384
+ method: "DELETE",
9385
+ authType: "AK",
9386
+ style: "ROA",
9387
+ reqBodyType: "json",
9388
+ bodyType: "none",
9389
+ });
9390
+ return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
9391
+ }
9392
+
9266
9393
  async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
9267
9394
  let runtime = new $Util.RuntimeOptions({ });
9268
9395
  let headers : {[key: string ]: string} = { };
@@ -10120,6 +10247,10 @@ export default class Client extends OpenApi {
10120
10247
  query["profile"] = request.profile;
10121
10248
  }
10122
10249
 
10250
+ if (!Util.isUnset(request.regionId)) {
10251
+ query["region_id"] = request.regionId;
10252
+ }
10253
+
10123
10254
  let req = new $OpenApi.OpenApiRequest({
10124
10255
  headers: headers,
10125
10256
  query: OpenApiUtil.query(query),
@@ -11211,8 +11342,8 @@ export default class Client extends OpenApi {
11211
11342
  body["instance_name"] = request.instanceName;
11212
11343
  }
11213
11344
 
11214
- if (!Util.isUnset(request.namespace)) {
11215
- body["namespace"] = request.namespace;
11345
+ if (!Util.isUnset(request.namespaces)) {
11346
+ body["namespaces"] = request.namespaces;
11216
11347
  }
11217
11348
 
11218
11349
  if (!Util.isUnset(request.parameters)) {
@@ -11937,16 +12068,52 @@ export default class Client extends OpenApi {
11937
12068
  return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
11938
12069
  }
11939
12070
 
11940
- async updateK8sClusterUserConfigExpire(ClusterId: string): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12071
+ async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
12072
+ let runtime = new $Util.RuntimeOptions({ });
12073
+ let headers : {[key: string ]: string} = { };
12074
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
12075
+ }
12076
+
12077
+ async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
12078
+ ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
12079
+ let req = new $OpenApi.OpenApiRequest({
12080
+ headers: headers,
12081
+ });
12082
+ let params = new $OpenApi.Params({
12083
+ action: "UpdateContactGroupForAlert",
12084
+ version: "2015-12-15",
12085
+ protocol: "HTTPS",
12086
+ pathname: `/alert/${ClusterId}/alert_rule/contact_groups`,
12087
+ method: "POST",
12088
+ authType: "AK",
12089
+ style: "ROA",
12090
+ reqBodyType: "json",
12091
+ bodyType: "none",
12092
+ });
12093
+ return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
12094
+ }
12095
+
12096
+ async updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse> {
11941
12097
  let runtime = new $Util.RuntimeOptions({ });
11942
12098
  let headers : {[key: string ]: string} = { };
11943
- return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, headers, runtime);
12099
+ return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
11944
12100
  }
11945
12101
 
11946
- async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12102
+ async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
12103
+ Util.validateModel(request);
11947
12104
  ClusterId = OpenApiUtil.getEncodeParam(ClusterId);
12105
+ let body : {[key: string ]: any} = { };
12106
+ if (!Util.isUnset(request.expireHour)) {
12107
+ body["expire_hour"] = request.expireHour;
12108
+ }
12109
+
12110
+ if (!Util.isUnset(request.user)) {
12111
+ body["user"] = request.user;
12112
+ }
12113
+
11948
12114
  let req = new $OpenApi.OpenApiRequest({
11949
12115
  headers: headers,
12116
+ body: OpenApiUtil.parseToMap(body),
11950
12117
  });
11951
12118
  let params = new $OpenApi.Params({
11952
12119
  action: "UpdateK8sClusterUserConfigExpire",