@alicloud/cs20151215 4.3.2 → 4.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cs20151215",
3
- "version": "4.3.2",
3
+ "version": "4.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -7946,6 +7946,78 @@ export class UntagResourcesResponse extends $tea.Model {
7946
7946
  }
7947
7947
  }
7948
7948
 
7949
+ export class UpdateClusterAuditLogConfigRequest extends $tea.Model {
7950
+ disable?: boolean;
7951
+ slsProjectName?: string;
7952
+ static names(): { [key: string]: string } {
7953
+ return {
7954
+ disable: 'disable',
7955
+ slsProjectName: 'sls_project_name',
7956
+ };
7957
+ }
7958
+
7959
+ static types(): { [key: string]: any } {
7960
+ return {
7961
+ disable: 'boolean',
7962
+ slsProjectName: 'string',
7963
+ };
7964
+ }
7965
+
7966
+ constructor(map?: { [key: string]: any }) {
7967
+ super(map);
7968
+ }
7969
+ }
7970
+
7971
+ export class UpdateClusterAuditLogConfigResponseBody extends $tea.Model {
7972
+ clusterId?: string;
7973
+ requestId?: string;
7974
+ taskId?: string;
7975
+ static names(): { [key: string]: string } {
7976
+ return {
7977
+ clusterId: 'cluster_id',
7978
+ requestId: 'request_id',
7979
+ taskId: 'task_id',
7980
+ };
7981
+ }
7982
+
7983
+ static types(): { [key: string]: any } {
7984
+ return {
7985
+ clusterId: 'string',
7986
+ requestId: 'string',
7987
+ taskId: 'string',
7988
+ };
7989
+ }
7990
+
7991
+ constructor(map?: { [key: string]: any }) {
7992
+ super(map);
7993
+ }
7994
+ }
7995
+
7996
+ export class UpdateClusterAuditLogConfigResponse extends $tea.Model {
7997
+ headers?: { [key: string]: string };
7998
+ statusCode?: number;
7999
+ body?: UpdateClusterAuditLogConfigResponseBody;
8000
+ static names(): { [key: string]: string } {
8001
+ return {
8002
+ headers: 'headers',
8003
+ statusCode: 'statusCode',
8004
+ body: 'body',
8005
+ };
8006
+ }
8007
+
8008
+ static types(): { [key: string]: any } {
8009
+ return {
8010
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8011
+ statusCode: 'number',
8012
+ body: UpdateClusterAuditLogConfigResponseBody,
8013
+ };
8014
+ }
8015
+
8016
+ constructor(map?: { [key: string]: any }) {
8017
+ super(map);
8018
+ }
8019
+ }
8020
+
7949
8021
  export class UpdateContactGroupForAlertResponse extends $tea.Model {
7950
8022
  headers?: { [key: string]: string };
7951
8023
  statusCode?: number;
@@ -9455,6 +9527,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
9455
9527
  periodUnit?: string;
9456
9528
  platform?: string;
9457
9529
  privatePoolOptions?: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
9530
+ ramRoleName?: string;
9458
9531
  rdsInstances?: string[];
9459
9532
  scalingPolicy?: string;
9460
9533
  securityGroupId?: string;
@@ -9502,6 +9575,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
9502
9575
  periodUnit: 'period_unit',
9503
9576
  platform: 'platform',
9504
9577
  privatePoolOptions: 'private_pool_options',
9578
+ ramRoleName: 'ram_role_name',
9505
9579
  rdsInstances: 'rds_instances',
9506
9580
  scalingPolicy: 'scaling_policy',
9507
9581
  securityGroupId: 'security_group_id',
@@ -9552,6 +9626,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
9552
9626
  periodUnit: 'string',
9553
9627
  platform: 'string',
9554
9628
  privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
9629
+ ramRoleName: 'string',
9555
9630
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
9556
9631
  scalingPolicy: 'string',
9557
9632
  securityGroupId: 'string',
@@ -10243,6 +10318,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
10243
10318
  platform?: string;
10244
10319
  privatePoolOptions?: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
10245
10320
  ramPolicy?: string;
10321
+ ramRoleName?: string;
10246
10322
  rdsInstances?: string[];
10247
10323
  scalingGroupId?: string;
10248
10324
  scalingPolicy?: string;
@@ -10292,6 +10368,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
10292
10368
  platform: 'platform',
10293
10369
  privatePoolOptions: 'private_pool_options',
10294
10370
  ramPolicy: 'ram_policy',
10371
+ ramRoleName: 'ram_role_name',
10295
10372
  rdsInstances: 'rds_instances',
10296
10373
  scalingGroupId: 'scaling_group_id',
10297
10374
  scalingPolicy: 'scaling_policy',
@@ -10344,6 +10421,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
10344
10421
  platform: 'string',
10345
10422
  privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
10346
10423
  ramPolicy: 'string',
10424
+ ramRoleName: 'string',
10347
10425
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
10348
10426
  scalingGroupId: 'string',
10349
10427
  scalingPolicy: 'string',
@@ -10801,6 +10879,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
10801
10879
  platform?: string;
10802
10880
  privatePoolOptions?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
10803
10881
  ramPolicy?: string;
10882
+ ramRoleName?: string;
10804
10883
  rdsInstances?: string[];
10805
10884
  scalingGroupId?: string;
10806
10885
  scalingPolicy?: string;
@@ -10850,6 +10929,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
10850
10929
  platform: 'platform',
10851
10930
  privatePoolOptions: 'private_pool_options',
10852
10931
  ramPolicy: 'ram_policy',
10932
+ ramRoleName: 'ram_role_name',
10853
10933
  rdsInstances: 'rds_instances',
10854
10934
  scalingGroupId: 'scaling_group_id',
10855
10935
  scalingPolicy: 'scaling_policy',
@@ -10902,6 +10982,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
10902
10982
  platform: 'string',
10903
10983
  privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
10904
10984
  ramPolicy: 'string',
10985
+ ramRoleName: 'string',
10905
10986
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
10906
10987
  scalingGroupId: 'string',
10907
10988
  scalingPolicy: 'string',
@@ -17489,7 +17570,7 @@ export default class Client extends OpenApi {
17489
17570
  }
17490
17571
 
17491
17572
  /**
17492
- * @summary 修改资源删除保护配置
17573
+ * @summary Queries whether the deletion protection feature is enabled for the specified resources. The resources that you can query include namespaces and Services.
17493
17574
  *
17494
17575
  * @param request DescribeResourcesDeleteProtectionRequest
17495
17576
  * @param headers map
@@ -17526,7 +17607,7 @@ export default class Client extends OpenApi {
17526
17607
  }
17527
17608
 
17528
17609
  /**
17529
- * @summary 修改资源删除保护配置
17610
+ * @summary Queries whether the deletion protection feature is enabled for the specified resources. The resources that you can query include namespaces and Services.
17530
17611
  *
17531
17612
  * @param request DescribeResourcesDeleteProtectionRequest
17532
17613
  * @return DescribeResourcesDeleteProtectionResponse
@@ -20474,6 +20555,55 @@ export default class Client extends OpenApi {
20474
20555
  return await this.untagResourcesWithOptions(request, headers, runtime);
20475
20556
  }
20476
20557
 
20558
+ /**
20559
+ * @summary 更新集群审计日志配置
20560
+ *
20561
+ * @param request UpdateClusterAuditLogConfigRequest
20562
+ * @param headers map
20563
+ * @param runtime runtime options for this request RuntimeOptions
20564
+ * @return UpdateClusterAuditLogConfigResponse
20565
+ */
20566
+ async updateClusterAuditLogConfigWithOptions(clusterid: string, request: UpdateClusterAuditLogConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateClusterAuditLogConfigResponse> {
20567
+ Util.validateModel(request);
20568
+ let body : {[key: string ]: any} = { };
20569
+ if (!Util.isUnset(request.disable)) {
20570
+ body["disable"] = request.disable;
20571
+ }
20572
+
20573
+ if (!Util.isUnset(request.slsProjectName)) {
20574
+ body["sls_project_name"] = request.slsProjectName;
20575
+ }
20576
+
20577
+ let req = new $OpenApi.OpenApiRequest({
20578
+ headers: headers,
20579
+ body: OpenApiUtil.parseToMap(body),
20580
+ });
20581
+ let params = new $OpenApi.Params({
20582
+ action: "UpdateClusterAuditLogConfig",
20583
+ version: "2015-12-15",
20584
+ protocol: "HTTPS",
20585
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterid)}/audit_log`,
20586
+ method: "PUT",
20587
+ authType: "AK",
20588
+ style: "ROA",
20589
+ reqBodyType: "json",
20590
+ bodyType: "json",
20591
+ });
20592
+ return $tea.cast<UpdateClusterAuditLogConfigResponse>(await this.callApi(params, req, runtime), new UpdateClusterAuditLogConfigResponse({}));
20593
+ }
20594
+
20595
+ /**
20596
+ * @summary 更新集群审计日志配置
20597
+ *
20598
+ * @param request UpdateClusterAuditLogConfigRequest
20599
+ * @return UpdateClusterAuditLogConfigResponse
20600
+ */
20601
+ async updateClusterAuditLogConfig(clusterid: string, request: UpdateClusterAuditLogConfigRequest): Promise<UpdateClusterAuditLogConfigResponse> {
20602
+ let runtime = new $Util.RuntimeOptions({ });
20603
+ let headers : {[key: string ]: string} = { };
20604
+ return await this.updateClusterAuditLogConfigWithOptions(clusterid, request, headers, runtime);
20605
+ }
20606
+
20477
20607
  /**
20478
20608
  * @param headers map
20479
20609
  * @param runtime runtime options for this request RuntimeOptions
@@ -20619,7 +20749,7 @@ export default class Client extends OpenApi {
20619
20749
  }
20620
20750
 
20621
20751
  /**
20622
- * @summary 修改资源删除保护配置
20752
+ * @summary Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services.
20623
20753
  *
20624
20754
  * @param request UpdateResourcesDeleteProtectionRequest
20625
20755
  * @param headers map
@@ -20664,7 +20794,7 @@ export default class Client extends OpenApi {
20664
20794
  }
20665
20795
 
20666
20796
  /**
20667
- * @summary 修改资源删除保护配置
20797
+ * @summary Updates the deletion protection status of the specified resources. You can enable or disable deletion protection for namespaces and Services.
20668
20798
  *
20669
20799
  * @param request UpdateResourcesDeleteProtectionRequest
20670
20800
  * @return UpdateResourcesDeleteProtectionResponse