@alicloud/cs20151215 4.2.1 → 4.3.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/dist/client.d.ts +131 -4
- package/dist/client.js +233 -11
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +273 -8
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -4539,6 +4539,53 @@ export class DescribePolicyInstancesStatusResponse extends $tea.Model {
|
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
4541
|
|
|
4542
|
+
export class DescribeResourcesDeleteProtectionRequest extends $tea.Model {
|
|
4543
|
+
namespace?: string;
|
|
4544
|
+
resources?: string;
|
|
4545
|
+
static names(): { [key: string]: string } {
|
|
4546
|
+
return {
|
|
4547
|
+
namespace: 'namespace',
|
|
4548
|
+
resources: 'resources',
|
|
4549
|
+
};
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
static types(): { [key: string]: any } {
|
|
4553
|
+
return {
|
|
4554
|
+
namespace: 'string',
|
|
4555
|
+
resources: 'string',
|
|
4556
|
+
};
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
constructor(map?: { [key: string]: any }) {
|
|
4560
|
+
super(map);
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
export class DescribeResourcesDeleteProtectionResponse extends $tea.Model {
|
|
4565
|
+
headers?: { [key: string]: string };
|
|
4566
|
+
statusCode?: number;
|
|
4567
|
+
body?: DescribeResourcesDeleteProtectionResponseBody[];
|
|
4568
|
+
static names(): { [key: string]: string } {
|
|
4569
|
+
return {
|
|
4570
|
+
headers: 'headers',
|
|
4571
|
+
statusCode: 'statusCode',
|
|
4572
|
+
body: 'body',
|
|
4573
|
+
};
|
|
4574
|
+
}
|
|
4575
|
+
|
|
4576
|
+
static types(): { [key: string]: any } {
|
|
4577
|
+
return {
|
|
4578
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4579
|
+
statusCode: 'number',
|
|
4580
|
+
body: { 'type': 'array', 'itemType': DescribeResourcesDeleteProtectionResponseBody },
|
|
4581
|
+
};
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
constructor(map?: { [key: string]: any }) {
|
|
4585
|
+
super(map);
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4542
4589
|
export class DescribeSubaccountK8sClusterUserConfigRequest extends $tea.Model {
|
|
4543
4590
|
privateIpAddress?: boolean;
|
|
4544
4591
|
temporaryDurationMinutes?: number;
|
|
@@ -8037,6 +8084,90 @@ export class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
|
|
|
8037
8084
|
}
|
|
8038
8085
|
}
|
|
8039
8086
|
|
|
8087
|
+
export class UpdateResourcesDeleteProtectionRequest extends $tea.Model {
|
|
8088
|
+
enable?: boolean;
|
|
8089
|
+
namespace?: string;
|
|
8090
|
+
resourceType?: string;
|
|
8091
|
+
resources?: string[];
|
|
8092
|
+
static names(): { [key: string]: string } {
|
|
8093
|
+
return {
|
|
8094
|
+
enable: 'enable',
|
|
8095
|
+
namespace: 'namespace',
|
|
8096
|
+
resourceType: 'resource_type',
|
|
8097
|
+
resources: 'resources',
|
|
8098
|
+
};
|
|
8099
|
+
}
|
|
8100
|
+
|
|
8101
|
+
static types(): { [key: string]: any } {
|
|
8102
|
+
return {
|
|
8103
|
+
enable: 'boolean',
|
|
8104
|
+
namespace: 'string',
|
|
8105
|
+
resourceType: 'string',
|
|
8106
|
+
resources: { 'type': 'array', 'itemType': 'string' },
|
|
8107
|
+
};
|
|
8108
|
+
}
|
|
8109
|
+
|
|
8110
|
+
constructor(map?: { [key: string]: any }) {
|
|
8111
|
+
super(map);
|
|
8112
|
+
}
|
|
8113
|
+
}
|
|
8114
|
+
|
|
8115
|
+
export class UpdateResourcesDeleteProtectionResponseBody extends $tea.Model {
|
|
8116
|
+
namespace?: string;
|
|
8117
|
+
protection?: string;
|
|
8118
|
+
requestId?: string;
|
|
8119
|
+
resourceType?: string;
|
|
8120
|
+
resources?: string[];
|
|
8121
|
+
static names(): { [key: string]: string } {
|
|
8122
|
+
return {
|
|
8123
|
+
namespace: 'namespace',
|
|
8124
|
+
protection: 'protection',
|
|
8125
|
+
requestId: 'requestId',
|
|
8126
|
+
resourceType: 'resource_type',
|
|
8127
|
+
resources: 'resources',
|
|
8128
|
+
};
|
|
8129
|
+
}
|
|
8130
|
+
|
|
8131
|
+
static types(): { [key: string]: any } {
|
|
8132
|
+
return {
|
|
8133
|
+
namespace: 'string',
|
|
8134
|
+
protection: 'string',
|
|
8135
|
+
requestId: 'string',
|
|
8136
|
+
resourceType: 'string',
|
|
8137
|
+
resources: { 'type': 'array', 'itemType': 'string' },
|
|
8138
|
+
};
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8141
|
+
constructor(map?: { [key: string]: any }) {
|
|
8142
|
+
super(map);
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
|
|
8146
|
+
export class UpdateResourcesDeleteProtectionResponse extends $tea.Model {
|
|
8147
|
+
headers?: { [key: string]: string };
|
|
8148
|
+
statusCode?: number;
|
|
8149
|
+
body?: UpdateResourcesDeleteProtectionResponseBody;
|
|
8150
|
+
static names(): { [key: string]: string } {
|
|
8151
|
+
return {
|
|
8152
|
+
headers: 'headers',
|
|
8153
|
+
statusCode: 'statusCode',
|
|
8154
|
+
body: 'body',
|
|
8155
|
+
};
|
|
8156
|
+
}
|
|
8157
|
+
|
|
8158
|
+
static types(): { [key: string]: any } {
|
|
8159
|
+
return {
|
|
8160
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8161
|
+
statusCode: 'number',
|
|
8162
|
+
body: UpdateResourcesDeleteProtectionResponseBody,
|
|
8163
|
+
};
|
|
8164
|
+
}
|
|
8165
|
+
|
|
8166
|
+
constructor(map?: { [key: string]: any }) {
|
|
8167
|
+
super(map);
|
|
8168
|
+
}
|
|
8169
|
+
}
|
|
8170
|
+
|
|
8040
8171
|
export class UpdateTemplateRequest extends $tea.Model {
|
|
8041
8172
|
description?: string;
|
|
8042
8173
|
name?: string;
|
|
@@ -9304,7 +9435,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9304
9435
|
imageId?: string;
|
|
9305
9436
|
imageType?: string;
|
|
9306
9437
|
instanceChargeType?: string;
|
|
9307
|
-
instancePatterns?: InstancePatterns;
|
|
9438
|
+
instancePatterns?: InstancePatterns[];
|
|
9308
9439
|
instanceTypes?: string[];
|
|
9309
9440
|
internetChargeType?: string;
|
|
9310
9441
|
internetMaxBandwidthOut?: number;
|
|
@@ -9401,7 +9532,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9401
9532
|
imageId: 'string',
|
|
9402
9533
|
imageType: 'string',
|
|
9403
9534
|
instanceChargeType: 'string',
|
|
9404
|
-
instancePatterns: InstancePatterns,
|
|
9535
|
+
instancePatterns: { 'type': 'array', 'itemType': InstancePatterns },
|
|
9405
9536
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
9406
9537
|
internetChargeType: 'string',
|
|
9407
9538
|
internetMaxBandwidthOut: 'number',
|
|
@@ -10091,7 +10222,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
10091
10222
|
imageId?: string;
|
|
10092
10223
|
imageType?: string;
|
|
10093
10224
|
instanceChargeType?: string;
|
|
10094
|
-
instancePatterns?: InstancePatterns;
|
|
10225
|
+
instancePatterns?: InstancePatterns[];
|
|
10095
10226
|
instanceTypes?: string[];
|
|
10096
10227
|
internetChargeType?: string;
|
|
10097
10228
|
internetMaxBandwidthOut?: number;
|
|
@@ -10192,7 +10323,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
10192
10323
|
imageId: 'string',
|
|
10193
10324
|
imageType: 'string',
|
|
10194
10325
|
instanceChargeType: 'string',
|
|
10195
|
-
instancePatterns: InstancePatterns,
|
|
10326
|
+
instancePatterns: { 'type': 'array', 'itemType': InstancePatterns },
|
|
10196
10327
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
10197
10328
|
internetChargeType: 'string',
|
|
10198
10329
|
internetMaxBandwidthOut: 'number',
|
|
@@ -10649,7 +10780,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
10649
10780
|
imageId?: string;
|
|
10650
10781
|
imageType?: string;
|
|
10651
10782
|
instanceChargeType?: string;
|
|
10652
|
-
instancePatterns?: InstancePatterns;
|
|
10783
|
+
instancePatterns?: InstancePatterns[];
|
|
10653
10784
|
instanceTypes?: string[];
|
|
10654
10785
|
internetChargeType?: string;
|
|
10655
10786
|
internetMaxBandwidthOut?: number;
|
|
@@ -10750,7 +10881,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
10750
10881
|
imageId: 'string',
|
|
10751
10882
|
imageType: 'string',
|
|
10752
10883
|
instanceChargeType: 'string',
|
|
10753
|
-
instancePatterns: InstancePatterns,
|
|
10884
|
+
instancePatterns: { 'type': 'array', 'itemType': InstancePatterns },
|
|
10754
10885
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
10755
10886
|
internetChargeType: 'string',
|
|
10756
10887
|
internetMaxBandwidthOut: 'number',
|
|
@@ -12141,6 +12272,34 @@ export class DescribePolicyInstancesStatusResponseBodyPolicyInstances extends $t
|
|
|
12141
12272
|
}
|
|
12142
12273
|
}
|
|
12143
12274
|
|
|
12275
|
+
export class DescribeResourcesDeleteProtectionResponseBody extends $tea.Model {
|
|
12276
|
+
name?: string;
|
|
12277
|
+
namespace?: string;
|
|
12278
|
+
resource?: string;
|
|
12279
|
+
protection?: boolean;
|
|
12280
|
+
static names(): { [key: string]: string } {
|
|
12281
|
+
return {
|
|
12282
|
+
name: 'name',
|
|
12283
|
+
namespace: 'namespace',
|
|
12284
|
+
resource: 'resource',
|
|
12285
|
+
protection: 'protection',
|
|
12286
|
+
};
|
|
12287
|
+
}
|
|
12288
|
+
|
|
12289
|
+
static types(): { [key: string]: any } {
|
|
12290
|
+
return {
|
|
12291
|
+
name: 'string',
|
|
12292
|
+
namespace: 'string',
|
|
12293
|
+
resource: 'string',
|
|
12294
|
+
protection: 'boolean',
|
|
12295
|
+
};
|
|
12296
|
+
}
|
|
12297
|
+
|
|
12298
|
+
constructor(map?: { [key: string]: any }) {
|
|
12299
|
+
super(map);
|
|
12300
|
+
}
|
|
12301
|
+
}
|
|
12302
|
+
|
|
12144
12303
|
export class DescribeTaskInfoResponseBodyError extends $tea.Model {
|
|
12145
12304
|
code?: string;
|
|
12146
12305
|
message?: string;
|
|
@@ -13319,7 +13478,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
13319
13478
|
imageId?: string;
|
|
13320
13479
|
imageType?: string;
|
|
13321
13480
|
instanceChargeType?: string;
|
|
13322
|
-
instancePatterns?: InstancePatterns;
|
|
13481
|
+
instancePatterns?: InstancePatterns[];
|
|
13323
13482
|
instanceTypes?: string[];
|
|
13324
13483
|
internetChargeType?: string;
|
|
13325
13484
|
internetMaxBandwidthOut?: number;
|
|
@@ -13402,7 +13561,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
13402
13561
|
imageId: 'string',
|
|
13403
13562
|
imageType: 'string',
|
|
13404
13563
|
instanceChargeType: 'string',
|
|
13405
|
-
instancePatterns: InstancePatterns,
|
|
13564
|
+
instancePatterns: { 'type': 'array', 'itemType': InstancePatterns },
|
|
13406
13565
|
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
13407
13566
|
internetChargeType: 'string',
|
|
13408
13567
|
internetMaxBandwidthOut: 'number',
|
|
@@ -17310,6 +17469,55 @@ export default class Client extends OpenApi {
|
|
|
17310
17469
|
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
17311
17470
|
}
|
|
17312
17471
|
|
|
17472
|
+
/**
|
|
17473
|
+
* @summary 修改资源删除保护配置
|
|
17474
|
+
*
|
|
17475
|
+
* @param request DescribeResourcesDeleteProtectionRequest
|
|
17476
|
+
* @param headers map
|
|
17477
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
17478
|
+
* @return DescribeResourcesDeleteProtectionResponse
|
|
17479
|
+
*/
|
|
17480
|
+
async describeResourcesDeleteProtectionWithOptions(ClusterId: string, ResourceType: string, request: DescribeResourcesDeleteProtectionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeResourcesDeleteProtectionResponse> {
|
|
17481
|
+
Util.validateModel(request);
|
|
17482
|
+
let query : {[key: string ]: any} = { };
|
|
17483
|
+
if (!Util.isUnset(request.namespace)) {
|
|
17484
|
+
query["namespace"] = request.namespace;
|
|
17485
|
+
}
|
|
17486
|
+
|
|
17487
|
+
if (!Util.isUnset(request.resources)) {
|
|
17488
|
+
query["resources"] = request.resources;
|
|
17489
|
+
}
|
|
17490
|
+
|
|
17491
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
17492
|
+
headers: headers,
|
|
17493
|
+
query: OpenApiUtil.query(query),
|
|
17494
|
+
});
|
|
17495
|
+
let params = new $OpenApi.Params({
|
|
17496
|
+
action: "DescribeResourcesDeleteProtection",
|
|
17497
|
+
version: "2015-12-15",
|
|
17498
|
+
protocol: "HTTPS",
|
|
17499
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/resources/${OpenApiUtil.getEncodeParam(ResourceType)}/protection`,
|
|
17500
|
+
method: "GET",
|
|
17501
|
+
authType: "AK",
|
|
17502
|
+
style: "ROA",
|
|
17503
|
+
reqBodyType: "json",
|
|
17504
|
+
bodyType: "array",
|
|
17505
|
+
});
|
|
17506
|
+
return $tea.cast<DescribeResourcesDeleteProtectionResponse>(await this.callApi(params, req, runtime), new DescribeResourcesDeleteProtectionResponse({}));
|
|
17507
|
+
}
|
|
17508
|
+
|
|
17509
|
+
/**
|
|
17510
|
+
* @summary 修改资源删除保护配置
|
|
17511
|
+
*
|
|
17512
|
+
* @param request DescribeResourcesDeleteProtectionRequest
|
|
17513
|
+
* @return DescribeResourcesDeleteProtectionResponse
|
|
17514
|
+
*/
|
|
17515
|
+
async describeResourcesDeleteProtection(ClusterId: string, ResourceType: string, request: DescribeResourcesDeleteProtectionRequest): Promise<DescribeResourcesDeleteProtectionResponse> {
|
|
17516
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
17517
|
+
let headers : {[key: string ]: string} = { };
|
|
17518
|
+
return await this.describeResourcesDeleteProtectionWithOptions(ClusterId, ResourceType, request, headers, runtime);
|
|
17519
|
+
}
|
|
17520
|
+
|
|
17313
17521
|
/**
|
|
17314
17522
|
* @summary Queries or issues the kubeconfig credentials of a Resource Access Management (RAM) user or RAM role of the account. If you are the permission manager of a Container Service for Kubernetes (ACK) cluster, you can issue the kubeconfig credentials to a specific RAM user or RAM role of the account by using the Alibaba Cloud account. The kubeconfig credentials, which are used to connect to the ACK cluster, contain the identity information about the RAM user or RAM role.
|
|
17315
17523
|
*
|
|
@@ -20373,6 +20581,63 @@ export default class Client extends OpenApi {
|
|
|
20373
20581
|
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
20374
20582
|
}
|
|
20375
20583
|
|
|
20584
|
+
/**
|
|
20585
|
+
* @summary 修改资源删除保护配置
|
|
20586
|
+
*
|
|
20587
|
+
* @param request UpdateResourcesDeleteProtectionRequest
|
|
20588
|
+
* @param headers map
|
|
20589
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
20590
|
+
* @return UpdateResourcesDeleteProtectionResponse
|
|
20591
|
+
*/
|
|
20592
|
+
async updateResourcesDeleteProtectionWithOptions(ClusterId: string, request: UpdateResourcesDeleteProtectionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateResourcesDeleteProtectionResponse> {
|
|
20593
|
+
Util.validateModel(request);
|
|
20594
|
+
let body : {[key: string ]: any} = { };
|
|
20595
|
+
if (!Util.isUnset(request.enable)) {
|
|
20596
|
+
body["enable"] = request.enable;
|
|
20597
|
+
}
|
|
20598
|
+
|
|
20599
|
+
if (!Util.isUnset(request.namespace)) {
|
|
20600
|
+
body["namespace"] = request.namespace;
|
|
20601
|
+
}
|
|
20602
|
+
|
|
20603
|
+
if (!Util.isUnset(request.resourceType)) {
|
|
20604
|
+
body["resource_type"] = request.resourceType;
|
|
20605
|
+
}
|
|
20606
|
+
|
|
20607
|
+
if (!Util.isUnset(request.resources)) {
|
|
20608
|
+
body["resources"] = request.resources;
|
|
20609
|
+
}
|
|
20610
|
+
|
|
20611
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
20612
|
+
headers: headers,
|
|
20613
|
+
body: OpenApiUtil.parseToMap(body),
|
|
20614
|
+
});
|
|
20615
|
+
let params = new $OpenApi.Params({
|
|
20616
|
+
action: "UpdateResourcesDeleteProtection",
|
|
20617
|
+
version: "2015-12-15",
|
|
20618
|
+
protocol: "HTTPS",
|
|
20619
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/resources/protection`,
|
|
20620
|
+
method: "PUT",
|
|
20621
|
+
authType: "AK",
|
|
20622
|
+
style: "ROA",
|
|
20623
|
+
reqBodyType: "json",
|
|
20624
|
+
bodyType: "json",
|
|
20625
|
+
});
|
|
20626
|
+
return $tea.cast<UpdateResourcesDeleteProtectionResponse>(await this.callApi(params, req, runtime), new UpdateResourcesDeleteProtectionResponse({}));
|
|
20627
|
+
}
|
|
20628
|
+
|
|
20629
|
+
/**
|
|
20630
|
+
* @summary 修改资源删除保护配置
|
|
20631
|
+
*
|
|
20632
|
+
* @param request UpdateResourcesDeleteProtectionRequest
|
|
20633
|
+
* @return UpdateResourcesDeleteProtectionResponse
|
|
20634
|
+
*/
|
|
20635
|
+
async updateResourcesDeleteProtection(ClusterId: string, request: UpdateResourcesDeleteProtectionRequest): Promise<UpdateResourcesDeleteProtectionResponse> {
|
|
20636
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
20637
|
+
let headers : {[key: string ]: string} = { };
|
|
20638
|
+
return await this.updateResourcesDeleteProtectionWithOptions(ClusterId, request, headers, runtime);
|
|
20639
|
+
}
|
|
20640
|
+
|
|
20376
20641
|
/**
|
|
20377
20642
|
* @summary Updates the configurations of an orchestration template. An orchestration template defines and describes a group of Container Service for Kubernetes (ACK) resources. An orchestration template describes the configurations of an application or how an application runs in a declarative manner.
|
|
20378
20643
|
*
|