@alicloud/cs20151215 3.0.27 → 3.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": "3.0.27",
3
+ "version": "3.1.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -12,11 +12,13 @@ export class Addon extends $tea.Model {
12
12
  config?: string;
13
13
  disabled?: boolean;
14
14
  name?: string;
15
+ version?: string;
15
16
  static names(): { [key: string]: string } {
16
17
  return {
17
18
  config: 'config',
18
19
  disabled: 'disabled',
19
20
  name: 'name',
21
+ version: 'version',
20
22
  };
21
23
  }
22
24
 
@@ -25,6 +27,7 @@ export class Addon extends $tea.Model {
25
27
  config: 'string',
26
28
  disabled: 'boolean',
27
29
  name: 'string',
30
+ version: 'string',
28
31
  };
29
32
  }
30
33
 
@@ -4556,11 +4559,13 @@ export class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
4556
4559
  }
4557
4560
 
4558
4561
  export class FixNodePoolVulsRequest extends $tea.Model {
4562
+ autoRestart?: boolean;
4559
4563
  nodes?: string[];
4560
4564
  rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
4561
4565
  vuls?: string[];
4562
4566
  static names(): { [key: string]: string } {
4563
4567
  return {
4568
+ autoRestart: 'auto_restart',
4564
4569
  nodes: 'nodes',
4565
4570
  rolloutPolicy: 'rollout_policy',
4566
4571
  vuls: 'vuls',
@@ -4569,6 +4574,7 @@ export class FixNodePoolVulsRequest extends $tea.Model {
4569
4574
 
4570
4575
  static types(): { [key: string]: any } {
4571
4576
  return {
4577
+ autoRestart: 'boolean',
4572
4578
  nodes: { 'type': 'array', 'itemType': 'string' },
4573
4579
  rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
4574
4580
  vuls: { 'type': 'array', 'itemType': 'string' },
@@ -4624,6 +4630,68 @@ export class FixNodePoolVulsResponse extends $tea.Model {
4624
4630
  }
4625
4631
  }
4626
4632
 
4633
+ export class GetClusterCheckResponseBody extends $tea.Model {
4634
+ checkId?: string;
4635
+ checkItems?: { [key: string]: {[key: string ]: any}[] };
4636
+ createdAt?: string;
4637
+ finishedAt?: string;
4638
+ message?: string;
4639
+ status?: string;
4640
+ type?: string;
4641
+ static names(): { [key: string]: string } {
4642
+ return {
4643
+ checkId: 'check_id',
4644
+ checkItems: 'check_items',
4645
+ createdAt: 'created_at',
4646
+ finishedAt: 'finished_at',
4647
+ message: 'message',
4648
+ status: 'status',
4649
+ type: 'type',
4650
+ };
4651
+ }
4652
+
4653
+ static types(): { [key: string]: any } {
4654
+ return {
4655
+ checkId: 'string',
4656
+ checkItems: { 'type': 'map', 'keyType': 'string', 'valueType': { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } } },
4657
+ createdAt: 'string',
4658
+ finishedAt: 'string',
4659
+ message: 'string',
4660
+ status: 'string',
4661
+ type: 'string',
4662
+ };
4663
+ }
4664
+
4665
+ constructor(map?: { [key: string]: any }) {
4666
+ super(map);
4667
+ }
4668
+ }
4669
+
4670
+ export class GetClusterCheckResponse extends $tea.Model {
4671
+ headers: { [key: string]: string };
4672
+ statusCode: number;
4673
+ body: GetClusterCheckResponseBody;
4674
+ static names(): { [key: string]: string } {
4675
+ return {
4676
+ headers: 'headers',
4677
+ statusCode: 'statusCode',
4678
+ body: 'body',
4679
+ };
4680
+ }
4681
+
4682
+ static types(): { [key: string]: any } {
4683
+ return {
4684
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4685
+ statusCode: 'number',
4686
+ body: GetClusterCheckResponseBody,
4687
+ };
4688
+ }
4689
+
4690
+ constructor(map?: { [key: string]: any }) {
4691
+ super(map);
4692
+ }
4693
+ }
4694
+
4627
4695
  export class GetKubernetesTriggerRequest extends $tea.Model {
4628
4696
  name?: string;
4629
4697
  namespace?: string;
@@ -4815,6 +4883,69 @@ export class InstallClusterAddonsResponse extends $tea.Model {
4815
4883
  }
4816
4884
  }
4817
4885
 
4886
+ export class ListClusterChecksRequest extends $tea.Model {
4887
+ type?: string;
4888
+ static names(): { [key: string]: string } {
4889
+ return {
4890
+ type: 'type',
4891
+ };
4892
+ }
4893
+
4894
+ static types(): { [key: string]: any } {
4895
+ return {
4896
+ type: 'string',
4897
+ };
4898
+ }
4899
+
4900
+ constructor(map?: { [key: string]: any }) {
4901
+ super(map);
4902
+ }
4903
+ }
4904
+
4905
+ export class ListClusterChecksResponseBody extends $tea.Model {
4906
+ checks?: ListClusterChecksResponseBodyChecks[];
4907
+ static names(): { [key: string]: string } {
4908
+ return {
4909
+ checks: 'checks',
4910
+ };
4911
+ }
4912
+
4913
+ static types(): { [key: string]: any } {
4914
+ return {
4915
+ checks: { 'type': 'array', 'itemType': ListClusterChecksResponseBodyChecks },
4916
+ };
4917
+ }
4918
+
4919
+ constructor(map?: { [key: string]: any }) {
4920
+ super(map);
4921
+ }
4922
+ }
4923
+
4924
+ export class ListClusterChecksResponse extends $tea.Model {
4925
+ headers: { [key: string]: string };
4926
+ statusCode: number;
4927
+ body: ListClusterChecksResponseBody;
4928
+ static names(): { [key: string]: string } {
4929
+ return {
4930
+ headers: 'headers',
4931
+ statusCode: 'statusCode',
4932
+ body: 'body',
4933
+ };
4934
+ }
4935
+
4936
+ static types(): { [key: string]: any } {
4937
+ return {
4938
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4939
+ statusCode: 'number',
4940
+ body: ListClusterChecksResponseBody,
4941
+ };
4942
+ }
4943
+
4944
+ constructor(map?: { [key: string]: any }) {
4945
+ super(map);
4946
+ }
4947
+ }
4948
+
4818
4949
  export class ListTagResourcesRequest extends $tea.Model {
4819
4950
  nextToken?: string;
4820
4951
  regionId?: string;
@@ -5757,15 +5888,18 @@ export class RemoveWorkflowResponse extends $tea.Model {
5757
5888
  }
5758
5889
 
5759
5890
  export class RepairClusterNodePoolRequest extends $tea.Model {
5891
+ autoRestart?: boolean;
5760
5892
  nodes?: string[];
5761
5893
  static names(): { [key: string]: string } {
5762
5894
  return {
5895
+ autoRestart: 'auto_restart',
5763
5896
  nodes: 'nodes',
5764
5897
  };
5765
5898
  }
5766
5899
 
5767
5900
  static types(): { [key: string]: any } {
5768
5901
  return {
5902
+ autoRestart: 'boolean',
5769
5903
  nodes: { 'type': 'array', 'itemType': 'string' },
5770
5904
  };
5771
5905
  }
@@ -5888,6 +6022,75 @@ export class ResumeUpgradeClusterResponse extends $tea.Model {
5888
6022
  }
5889
6023
  }
5890
6024
 
6025
+ export class RunClusterCheckRequest extends $tea.Model {
6026
+ options?: { [key: string]: string };
6027
+ type?: string;
6028
+ static names(): { [key: string]: string } {
6029
+ return {
6030
+ options: 'options',
6031
+ type: 'type',
6032
+ };
6033
+ }
6034
+
6035
+ static types(): { [key: string]: any } {
6036
+ return {
6037
+ options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6038
+ type: 'string',
6039
+ };
6040
+ }
6041
+
6042
+ constructor(map?: { [key: string]: any }) {
6043
+ super(map);
6044
+ }
6045
+ }
6046
+
6047
+ export class RunClusterCheckResponseBody extends $tea.Model {
6048
+ checkId?: string;
6049
+ requestId?: string;
6050
+ static names(): { [key: string]: string } {
6051
+ return {
6052
+ checkId: 'check_id',
6053
+ requestId: 'request_id',
6054
+ };
6055
+ }
6056
+
6057
+ static types(): { [key: string]: any } {
6058
+ return {
6059
+ checkId: 'string',
6060
+ requestId: 'string',
6061
+ };
6062
+ }
6063
+
6064
+ constructor(map?: { [key: string]: any }) {
6065
+ super(map);
6066
+ }
6067
+ }
6068
+
6069
+ export class RunClusterCheckResponse extends $tea.Model {
6070
+ headers: { [key: string]: string };
6071
+ statusCode: number;
6072
+ body: RunClusterCheckResponseBody;
6073
+ static names(): { [key: string]: string } {
6074
+ return {
6075
+ headers: 'headers',
6076
+ statusCode: 'statusCode',
6077
+ body: 'body',
6078
+ };
6079
+ }
6080
+
6081
+ static types(): { [key: string]: any } {
6082
+ return {
6083
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6084
+ statusCode: 'number',
6085
+ body: RunClusterCheckResponseBody,
6086
+ };
6087
+ }
6088
+
6089
+ constructor(map?: { [key: string]: any }) {
6090
+ super(map);
6091
+ }
6092
+ }
6093
+
5891
6094
  export class ScaleClusterRequest extends $tea.Model {
5892
6095
  cloudMonitorFlags?: boolean;
5893
6096
  count?: number;
@@ -9357,7 +9560,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
9357
9560
  resourceType?: string;
9358
9561
  state?: string;
9359
9562
  autoCreate?: number;
9360
- dependencies?: DescribeClusterResourcesResponseBodyDependencies;
9563
+ dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
9361
9564
  static names(): { [key: string]: string } {
9362
9565
  return {
9363
9566
  clusterId: 'cluster_id',
@@ -9380,7 +9583,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
9380
9583
  resourceType: 'string',
9381
9584
  state: 'string',
9382
9585
  autoCreate: 'number',
9383
- dependencies: DescribeClusterResourcesResponseBodyDependencies,
9586
+ dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
9384
9587
  };
9385
9588
  }
9386
9589
 
@@ -10905,6 +11108,40 @@ export class InstallClusterAddonsRequestBody extends $tea.Model {
10905
11108
  }
10906
11109
  }
10907
11110
 
11111
+ export class ListClusterChecksResponseBodyChecks extends $tea.Model {
11112
+ checkId?: string;
11113
+ createdAt?: string;
11114
+ finishedAt?: string;
11115
+ message?: string;
11116
+ status?: string;
11117
+ type?: string;
11118
+ static names(): { [key: string]: string } {
11119
+ return {
11120
+ checkId: 'check_id',
11121
+ createdAt: 'created_at',
11122
+ finishedAt: 'finished_at',
11123
+ message: 'message',
11124
+ status: 'status',
11125
+ type: 'type',
11126
+ };
11127
+ }
11128
+
11129
+ static types(): { [key: string]: any } {
11130
+ return {
11131
+ checkId: 'string',
11132
+ createdAt: 'string',
11133
+ finishedAt: 'string',
11134
+ message: 'string',
11135
+ status: 'string',
11136
+ type: 'string',
11137
+ };
11138
+ }
11139
+
11140
+ constructor(map?: { [key: string]: any }) {
11141
+ super(map);
11142
+ }
11143
+ }
11144
+
10908
11145
  export class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
10909
11146
  resourceId?: string;
10910
11147
  resourceType?: string;
@@ -14408,9 +14645,24 @@ export default class Client extends OpenApi {
14408
14645
  return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
14409
14646
  }
14410
14647
 
14648
+ /**
14649
+ * 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
14650
+ * 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
14651
+ * 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
14652
+ * 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
14653
+ *
14654
+ * @param request FixNodePoolVulsRequest
14655
+ * @param headers map
14656
+ * @param runtime runtime options for this request RuntimeOptions
14657
+ * @return FixNodePoolVulsResponse
14658
+ */
14411
14659
  async fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse> {
14412
14660
  Util.validateModel(request);
14413
14661
  let body : {[key: string ]: any} = { };
14662
+ if (!Util.isUnset(request.autoRestart)) {
14663
+ body["auto_restart"] = request.autoRestart;
14664
+ }
14665
+
14414
14666
  if (!Util.isUnset(request.nodes)) {
14415
14667
  body["nodes"] = request.nodes;
14416
14668
  }
@@ -14441,12 +14693,45 @@ export default class Client extends OpenApi {
14441
14693
  return $tea.cast<FixNodePoolVulsResponse>(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
14442
14694
  }
14443
14695
 
14696
+ /**
14697
+ * 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
14698
+ * 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
14699
+ * 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
14700
+ * 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
14701
+ *
14702
+ * @param request FixNodePoolVulsRequest
14703
+ * @return FixNodePoolVulsResponse
14704
+ */
14444
14705
  async fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse> {
14445
14706
  let runtime = new $Util.RuntimeOptions({ });
14446
14707
  let headers : {[key: string ]: string} = { };
14447
14708
  return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
14448
14709
  }
14449
14710
 
14711
+ async getClusterCheckWithOptions(clusterId: string, checkId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterCheckResponse> {
14712
+ let req = new $OpenApi.OpenApiRequest({
14713
+ headers: headers,
14714
+ });
14715
+ let params = new $OpenApi.Params({
14716
+ action: "GetClusterCheck",
14717
+ version: "2015-12-15",
14718
+ protocol: "HTTPS",
14719
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/checks/${OpenApiUtil.getEncodeParam(checkId)}`,
14720
+ method: "GET",
14721
+ authType: "AK",
14722
+ style: "ROA",
14723
+ reqBodyType: "json",
14724
+ bodyType: "json",
14725
+ });
14726
+ return $tea.cast<GetClusterCheckResponse>(await this.callApi(params, req, runtime), new GetClusterCheckResponse({}));
14727
+ }
14728
+
14729
+ async getClusterCheck(clusterId: string, checkId: string): Promise<GetClusterCheckResponse> {
14730
+ let runtime = new $Util.RuntimeOptions({ });
14731
+ let headers : {[key: string ]: string} = { };
14732
+ return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
14733
+ }
14734
+
14450
14735
  async getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse> {
14451
14736
  Util.validateModel(request);
14452
14737
  let query : {[key: string ]: any} = { };
@@ -14586,6 +14871,37 @@ export default class Client extends OpenApi {
14586
14871
  return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
14587
14872
  }
14588
14873
 
14874
+ async listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse> {
14875
+ Util.validateModel(request);
14876
+ let query : {[key: string ]: any} = { };
14877
+ if (!Util.isUnset(request.type)) {
14878
+ query["type"] = request.type;
14879
+ }
14880
+
14881
+ let req = new $OpenApi.OpenApiRequest({
14882
+ headers: headers,
14883
+ query: OpenApiUtil.query(query),
14884
+ });
14885
+ let params = new $OpenApi.Params({
14886
+ action: "ListClusterChecks",
14887
+ version: "2015-12-15",
14888
+ protocol: "HTTPS",
14889
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/checks`,
14890
+ method: "GET",
14891
+ authType: "AK",
14892
+ style: "ROA",
14893
+ reqBodyType: "json",
14894
+ bodyType: "json",
14895
+ });
14896
+ return $tea.cast<ListClusterChecksResponse>(await this.callApi(params, req, runtime), new ListClusterChecksResponse({}));
14897
+ }
14898
+
14899
+ async listClusterChecks(clusterId: string, request: ListClusterChecksRequest): Promise<ListClusterChecksResponse> {
14900
+ let runtime = new $Util.RuntimeOptions({ });
14901
+ let headers : {[key: string ]: string} = { };
14902
+ return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
14903
+ }
14904
+
14589
14905
  async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
14590
14906
  Util.validateModel(tmpReq);
14591
14907
  let request = new ListTagResourcesShrinkRequest({ });
@@ -15290,6 +15606,10 @@ export default class Client extends OpenApi {
15290
15606
  async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
15291
15607
  Util.validateModel(request);
15292
15608
  let body : {[key: string ]: any} = { };
15609
+ if (!Util.isUnset(request.autoRestart)) {
15610
+ body["auto_restart"] = request.autoRestart;
15611
+ }
15612
+
15293
15613
  if (!Util.isUnset(request.nodes)) {
15294
15614
  body["nodes"] = request.nodes;
15295
15615
  }
@@ -15390,6 +15710,41 @@ export default class Client extends OpenApi {
15390
15710
  return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
15391
15711
  }
15392
15712
 
15713
+ async runClusterCheckWithOptions(clusterId: string, request: RunClusterCheckRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunClusterCheckResponse> {
15714
+ Util.validateModel(request);
15715
+ let body : {[key: string ]: any} = { };
15716
+ if (!Util.isUnset(request.options)) {
15717
+ body["options"] = request.options;
15718
+ }
15719
+
15720
+ if (!Util.isUnset(request.type)) {
15721
+ body["type"] = request.type;
15722
+ }
15723
+
15724
+ let req = new $OpenApi.OpenApiRequest({
15725
+ headers: headers,
15726
+ body: OpenApiUtil.parseToMap(body),
15727
+ });
15728
+ let params = new $OpenApi.Params({
15729
+ action: "RunClusterCheck",
15730
+ version: "2015-12-15",
15731
+ protocol: "HTTPS",
15732
+ pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/checks`,
15733
+ method: "POST",
15734
+ authType: "AK",
15735
+ style: "ROA",
15736
+ reqBodyType: "json",
15737
+ bodyType: "json",
15738
+ });
15739
+ return $tea.cast<RunClusterCheckResponse>(await this.callApi(params, req, runtime), new RunClusterCheckResponse({}));
15740
+ }
15741
+
15742
+ async runClusterCheck(clusterId: string, request: RunClusterCheckRequest): Promise<RunClusterCheckResponse> {
15743
+ let runtime = new $Util.RuntimeOptions({ });
15744
+ let headers : {[key: string ]: string} = { };
15745
+ return await this.runClusterCheckWithOptions(clusterId, request, headers, runtime);
15746
+ }
15747
+
15393
15748
  /**
15394
15749
  * @deprecated
15395
15750
  *