@alicloud/cs20151215 4.0.10 → 4.1.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.0.10",
3
+ "version": "4.1.0",
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;
@@ -8570,6 +8633,50 @@ export class AttachInstancesResponseBodyList extends $tea.Model {
8570
8633
  }
8571
8634
  }
8572
8635
 
8636
+ export class CheckServiceRoleRequestRoles extends $tea.Model {
8637
+ name?: string;
8638
+ static names(): { [key: string]: string } {
8639
+ return {
8640
+ name: 'name',
8641
+ };
8642
+ }
8643
+
8644
+ static types(): { [key: string]: any } {
8645
+ return {
8646
+ name: 'string',
8647
+ };
8648
+ }
8649
+
8650
+ constructor(map?: { [key: string]: any }) {
8651
+ super(map);
8652
+ }
8653
+ }
8654
+
8655
+ export class CheckServiceRoleResponseBodyRoles extends $tea.Model {
8656
+ granted?: boolean;
8657
+ message?: string;
8658
+ name?: string;
8659
+ static names(): { [key: string]: string } {
8660
+ return {
8661
+ granted: 'granted',
8662
+ message: 'message',
8663
+ name: 'name',
8664
+ };
8665
+ }
8666
+
8667
+ static types(): { [key: string]: any } {
8668
+ return {
8669
+ granted: 'boolean',
8670
+ message: 'string',
8671
+ name: 'string',
8672
+ };
8673
+ }
8674
+
8675
+ constructor(map?: { [key: string]: any }) {
8676
+ super(map);
8677
+ }
8678
+ }
8679
+
8573
8680
  export class CreateClusterRequestWorkerDataDisks extends $tea.Model {
8574
8681
  category?: string;
8575
8682
  encrypted?: string;
@@ -13751,6 +13858,51 @@ export default class Client extends OpenApi {
13751
13858
  return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
13752
13859
  }
13753
13860
 
13861
+ /**
13862
+ * @summary 检查是否授权指定服务角色
13863
+ *
13864
+ * @param request CheckServiceRoleRequest
13865
+ * @param headers map
13866
+ * @param runtime runtime options for this request RuntimeOptions
13867
+ * @return CheckServiceRoleResponse
13868
+ */
13869
+ async checkServiceRoleWithOptions(request: CheckServiceRoleRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckServiceRoleResponse> {
13870
+ Util.validateModel(request);
13871
+ let body : {[key: string ]: any} = { };
13872
+ if (!Util.isUnset(request.roles)) {
13873
+ body["roles"] = request.roles;
13874
+ }
13875
+
13876
+ let req = new $OpenApi.OpenApiRequest({
13877
+ headers: headers,
13878
+ body: OpenApiUtil.parseToMap(body),
13879
+ });
13880
+ let params = new $OpenApi.Params({
13881
+ action: "CheckServiceRole",
13882
+ version: "2015-12-15",
13883
+ protocol: "HTTPS",
13884
+ pathname: `/ram/check-service-role`,
13885
+ method: "POST",
13886
+ authType: "AK",
13887
+ style: "ROA",
13888
+ reqBodyType: "json",
13889
+ bodyType: "json",
13890
+ });
13891
+ return $tea.cast<CheckServiceRoleResponse>(await this.callApi(params, req, runtime), new CheckServiceRoleResponse({}));
13892
+ }
13893
+
13894
+ /**
13895
+ * @summary 检查是否授权指定服务角色
13896
+ *
13897
+ * @param request CheckServiceRoleRequest
13898
+ * @return CheckServiceRoleResponse
13899
+ */
13900
+ async checkServiceRole(request: CheckServiceRoleRequest): Promise<CheckServiceRoleResponse> {
13901
+ let runtime = new $Util.RuntimeOptions({ });
13902
+ let headers : {[key: string ]: string} = { };
13903
+ return await this.checkServiceRoleWithOptions(request, headers, runtime);
13904
+ }
13905
+
13754
13906
  /**
13755
13907
  * @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
13908
  *
@@ -14270,7 +14422,7 @@ export default class Client extends OpenApi {
14270
14422
  }
14271
14423
 
14272
14424
  /**
14273
- * @summary You can call the CreateClusterNodePool operation to create a node pool for a Container Service for Kubernetes (ACK) cluster.
14425
+ * @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
14426
  *
14275
14427
  * @param request CreateClusterNodePoolRequest
14276
14428
  * @param headers map
@@ -14343,7 +14495,7 @@ export default class Client extends OpenApi {
14343
14495
  }
14344
14496
 
14345
14497
  /**
14346
- * @summary You can call the CreateClusterNodePool operation to create a node pool for a Container Service for Kubernetes (ACK) cluster.
14498
+ * @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
14499
  *
14348
14500
  * @param request CreateClusterNodePoolRequest
14349
14501
  * @return CreateClusterNodePoolResponse
@@ -19707,9 +19859,8 @@ export default class Client extends OpenApi {
19707
19859
  /**
19708
19860
  * @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
19861
  *
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.
19862
+ * @description - You can call this operation only with an Alibaba Cloud account.
19863
+ * - 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
19864
  *
19714
19865
  * @param request UpdateK8sClusterUserConfigExpireRequest
19715
19866
  * @param headers map
@@ -19748,9 +19899,8 @@ export default class Client extends OpenApi {
19748
19899
  /**
19749
19900
  * @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
19901
  *
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.
19902
+ * @description - You can call this operation only with an Alibaba Cloud account.
19903
+ * - 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
19904
  *
19755
19905
  * @param request UpdateK8sClusterUserConfigExpireRequest
19756
19906
  * @return UpdateK8sClusterUserConfigExpireResponse