@alicloud/cs20151215 4.0.10 → 4.1.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.0.10",
3
+ "version": "4.1.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -753,6 +753,69 @@ export class CheckControlPlaneLogEnableResponse extends $tea.Model {
753
753
  }
754
754
  }
755
755
 
756
+ export class CheckServiceRoleRequest extends $tea.Model {
757
+ roles?: CheckServiceRoleRequestRoles[];
758
+ static names(): { [key: string]: string } {
759
+ return {
760
+ roles: 'roles',
761
+ };
762
+ }
763
+
764
+ static types(): { [key: string]: any } {
765
+ return {
766
+ roles: { 'type': 'array', 'itemType': CheckServiceRoleRequestRoles },
767
+ };
768
+ }
769
+
770
+ constructor(map?: { [key: string]: any }) {
771
+ super(map);
772
+ }
773
+ }
774
+
775
+ export class CheckServiceRoleResponseBody extends $tea.Model {
776
+ roles?: CheckServiceRoleResponseBodyRoles[];
777
+ static names(): { [key: string]: string } {
778
+ return {
779
+ roles: 'roles',
780
+ };
781
+ }
782
+
783
+ static types(): { [key: string]: any } {
784
+ return {
785
+ roles: { 'type': 'array', 'itemType': CheckServiceRoleResponseBodyRoles },
786
+ };
787
+ }
788
+
789
+ constructor(map?: { [key: string]: any }) {
790
+ super(map);
791
+ }
792
+ }
793
+
794
+ export class CheckServiceRoleResponse extends $tea.Model {
795
+ headers?: { [key: string]: string };
796
+ statusCode?: number;
797
+ body?: CheckServiceRoleResponseBody;
798
+ static names(): { [key: string]: string } {
799
+ return {
800
+ headers: 'headers',
801
+ statusCode: 'statusCode',
802
+ body: 'body',
803
+ };
804
+ }
805
+
806
+ static types(): { [key: string]: any } {
807
+ return {
808
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
809
+ statusCode: 'number',
810
+ body: CheckServiceRoleResponseBody,
811
+ };
812
+ }
813
+
814
+ constructor(map?: { [key: string]: any }) {
815
+ super(map);
816
+ }
817
+ }
818
+
756
819
  export class CreateAutoscalingConfigRequest extends $tea.Model {
757
820
  coolDownDuration?: string;
758
821
  daemonsetEvictionForNodes?: boolean;
@@ -6513,10 +6576,12 @@ export class RemoveWorkflowResponse extends $tea.Model {
6513
6576
  export class RepairClusterNodePoolRequest extends $tea.Model {
6514
6577
  autoRestart?: boolean;
6515
6578
  nodes?: string[];
6579
+ operations?: RepairClusterNodePoolRequestOperations[];
6516
6580
  static names(): { [key: string]: string } {
6517
6581
  return {
6518
6582
  autoRestart: 'auto_restart',
6519
6583
  nodes: 'nodes',
6584
+ operations: 'operations',
6520
6585
  };
6521
6586
  }
6522
6587
 
@@ -6524,6 +6589,7 @@ export class RepairClusterNodePoolRequest extends $tea.Model {
6524
6589
  return {
6525
6590
  autoRestart: 'boolean',
6526
6591
  nodes: { 'type': 'array', 'itemType': 'string' },
6592
+ operations: { 'type': 'array', 'itemType': RepairClusterNodePoolRequestOperations },
6527
6593
  };
6528
6594
  }
6529
6595
 
@@ -8570,6 +8636,50 @@ export class AttachInstancesResponseBodyList extends $tea.Model {
8570
8636
  }
8571
8637
  }
8572
8638
 
8639
+ export class CheckServiceRoleRequestRoles extends $tea.Model {
8640
+ name?: string;
8641
+ static names(): { [key: string]: string } {
8642
+ return {
8643
+ name: 'name',
8644
+ };
8645
+ }
8646
+
8647
+ static types(): { [key: string]: any } {
8648
+ return {
8649
+ name: 'string',
8650
+ };
8651
+ }
8652
+
8653
+ constructor(map?: { [key: string]: any }) {
8654
+ super(map);
8655
+ }
8656
+ }
8657
+
8658
+ export class CheckServiceRoleResponseBodyRoles extends $tea.Model {
8659
+ granted?: boolean;
8660
+ message?: string;
8661
+ name?: string;
8662
+ static names(): { [key: string]: string } {
8663
+ return {
8664
+ granted: 'granted',
8665
+ message: 'message',
8666
+ name: 'name',
8667
+ };
8668
+ }
8669
+
8670
+ static types(): { [key: string]: any } {
8671
+ return {
8672
+ granted: 'boolean',
8673
+ message: 'string',
8674
+ name: 'string',
8675
+ };
8676
+ }
8677
+
8678
+ constructor(map?: { [key: string]: any }) {
8679
+ super(map);
8680
+ }
8681
+ }
8682
+
8573
8683
  export class CreateClusterRequestWorkerDataDisks extends $tea.Model {
8574
8684
  category?: string;
8575
8685
  encrypted?: string;
@@ -13105,6 +13215,28 @@ export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
13105
13215
  }
13106
13216
  }
13107
13217
 
13218
+ export class RepairClusterNodePoolRequestOperations extends $tea.Model {
13219
+ args?: string[];
13220
+ operationId?: string;
13221
+ static names(): { [key: string]: string } {
13222
+ return {
13223
+ args: 'args',
13224
+ operationId: 'operation_id',
13225
+ };
13226
+ }
13227
+
13228
+ static types(): { [key: string]: any } {
13229
+ return {
13230
+ args: { 'type': 'array', 'itemType': 'string' },
13231
+ operationId: 'string',
13232
+ };
13233
+ }
13234
+
13235
+ constructor(map?: { [key: string]: any }) {
13236
+ super(map);
13237
+ }
13238
+ }
13239
+
13108
13240
  export class ScaleClusterRequestTags extends $tea.Model {
13109
13241
  key?: string;
13110
13242
  static names(): { [key: string]: string } {
@@ -13751,6 +13883,51 @@ export default class Client extends OpenApi {
13751
13883
  return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
13752
13884
  }
13753
13885
 
13886
+ /**
13887
+ * @summary 检查是否授权指定服务角色
13888
+ *
13889
+ * @param request CheckServiceRoleRequest
13890
+ * @param headers map
13891
+ * @param runtime runtime options for this request RuntimeOptions
13892
+ * @return CheckServiceRoleResponse
13893
+ */
13894
+ async checkServiceRoleWithOptions(request: CheckServiceRoleRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckServiceRoleResponse> {
13895
+ Util.validateModel(request);
13896
+ let body : {[key: string ]: any} = { };
13897
+ if (!Util.isUnset(request.roles)) {
13898
+ body["roles"] = request.roles;
13899
+ }
13900
+
13901
+ let req = new $OpenApi.OpenApiRequest({
13902
+ headers: headers,
13903
+ body: OpenApiUtil.parseToMap(body),
13904
+ });
13905
+ let params = new $OpenApi.Params({
13906
+ action: "CheckServiceRole",
13907
+ version: "2015-12-15",
13908
+ protocol: "HTTPS",
13909
+ pathname: `/ram/check-service-role`,
13910
+ method: "POST",
13911
+ authType: "AK",
13912
+ style: "ROA",
13913
+ reqBodyType: "json",
13914
+ bodyType: "json",
13915
+ });
13916
+ return $tea.cast<CheckServiceRoleResponse>(await this.callApi(params, req, runtime), new CheckServiceRoleResponse({}));
13917
+ }
13918
+
13919
+ /**
13920
+ * @summary 检查是否授权指定服务角色
13921
+ *
13922
+ * @param request CheckServiceRoleRequest
13923
+ * @return CheckServiceRoleResponse
13924
+ */
13925
+ async checkServiceRole(request: CheckServiceRoleRequest): Promise<CheckServiceRoleResponse> {
13926
+ let runtime = new $Util.RuntimeOptions({ });
13927
+ let headers : {[key: string ]: string} = { };
13928
+ return await this.checkServiceRoleWithOptions(request, headers, runtime);
13929
+ }
13930
+
13754
13931
  /**
13755
13932
  * @summary Creates a scaling configuration to allow the system to scale resources based on the given scaling rules. When you create a scaling configuration, you can specify the scaling metrics, thresholds, scaling order, and scaling interval.
13756
13933
  *
@@ -14270,7 +14447,7 @@ export default class Client extends OpenApi {
14270
14447
  }
14271
14448
 
14272
14449
  /**
14273
- * @summary You can call the CreateClusterNodePool operation to create a node pool for a Container Service for Kubernetes (ACK) cluster.
14450
+ * @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
14274
14451
  *
14275
14452
  * @param request CreateClusterNodePoolRequest
14276
14453
  * @param headers map
@@ -14343,7 +14520,7 @@ export default class Client extends OpenApi {
14343
14520
  }
14344
14521
 
14345
14522
  /**
14346
- * @summary You can call the CreateClusterNodePool operation to create a node pool for a Container Service for Kubernetes (ACK) cluster.
14523
+ * @summary Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
14347
14524
  *
14348
14525
  * @param request CreateClusterNodePoolRequest
14349
14526
  * @return CreateClusterNodePoolResponse
@@ -18668,6 +18845,10 @@ export default class Client extends OpenApi {
18668
18845
  body["nodes"] = request.nodes;
18669
18846
  }
18670
18847
 
18848
+ if (!Util.isUnset(request.operations)) {
18849
+ body["operations"] = request.operations;
18850
+ }
18851
+
18671
18852
  let req = new $OpenApi.OpenApiRequest({
18672
18853
  headers: headers,
18673
18854
  body: OpenApiUtil.parseToMap(body),
@@ -19707,9 +19888,8 @@ export default class Client extends OpenApi {
19707
19888
  /**
19708
19889
  * @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
19709
19890
  *
19710
- * @description **
19711
- * ****
19712
- * * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
19891
+ * @description - You can call this operation only with an Alibaba Cloud account.
19892
+ * - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
19713
19893
  *
19714
19894
  * @param request UpdateK8sClusterUserConfigExpireRequest
19715
19895
  * @param headers map
@@ -19748,9 +19928,8 @@ export default class Client extends OpenApi {
19748
19928
  /**
19749
19929
  * @summary Sets the validity period of a kubeconfig file used by a Resource Access Management (RAM) user or RAM role to connect to a Container Service for Kubernetes (ACK) cluster. The validity period ranges from 1 to 876,000 hours. You can call this API operation when you customize configurations by using an Alibaba Cloud account. The default validity period of a kubeconfig file is three years.
19750
19930
  *
19751
- * @description **
19752
- * ****
19753
- * * You can call this operation only with an Alibaba Cloud account. - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
19931
+ * @description - You can call this operation only with an Alibaba Cloud account.
19932
+ * - If the kubeconfig file used by your cluster is revoked, the custom validity period of the kubeconfig file is reset. In this case, you need to call this API operation to reconfigure the validity period of the kubeconfig file.
19754
19933
  *
19755
19934
  * @param request UpdateK8sClusterUserConfigExpireRequest
19756
19935
  * @return UpdateK8sClusterUserConfigExpireResponse