@alicloud/eas20210701 4.0.3 → 4.2.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 +124 -0
- package/dist/client.js +898 -668
- package/dist/client.js.map +1 -1
- package/package.json +6 -6
- package/src/client.ts +250 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/eas20210701",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"author": "Alibaba Cloud SDK",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/node": "^
|
|
15
|
+
"@types/node": "^16.0.0",
|
|
16
16
|
"nyc": "^15.0.0",
|
|
17
17
|
"source-map-support": "^0.5.16",
|
|
18
|
-
"ts-node": "^
|
|
19
|
-
"typescript": "^
|
|
18
|
+
"ts-node": "^10.0.0",
|
|
19
|
+
"typescript": "^5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.7",
|
|
24
|
-
"@alicloud/openapi-client": "^0.4.
|
|
24
|
+
"@alicloud/openapi-client": "^0.4.8",
|
|
25
25
|
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
"dist",
|
|
30
30
|
"src"
|
|
31
31
|
]
|
|
32
|
-
}
|
|
32
|
+
}
|
package/src/client.ts
CHANGED
|
@@ -516,6 +516,84 @@ export class Service extends $tea.Model {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
+
export class CloneServiceRequest extends $tea.Model {
|
|
520
|
+
body?: string;
|
|
521
|
+
static names(): { [key: string]: string } {
|
|
522
|
+
return {
|
|
523
|
+
body: 'body',
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
static types(): { [key: string]: any } {
|
|
528
|
+
return {
|
|
529
|
+
body: 'string',
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
constructor(map?: { [key: string]: any }) {
|
|
534
|
+
super(map);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export class CloneServiceResponseBody extends $tea.Model {
|
|
539
|
+
internetEndpoint?: string;
|
|
540
|
+
intranetEndpoint?: string;
|
|
541
|
+
requestId?: string;
|
|
542
|
+
serviceId?: string;
|
|
543
|
+
serviceName?: string;
|
|
544
|
+
status?: string;
|
|
545
|
+
static names(): { [key: string]: string } {
|
|
546
|
+
return {
|
|
547
|
+
internetEndpoint: 'InternetEndpoint',
|
|
548
|
+
intranetEndpoint: 'IntranetEndpoint',
|
|
549
|
+
requestId: 'RequestId',
|
|
550
|
+
serviceId: 'ServiceId',
|
|
551
|
+
serviceName: 'ServiceName',
|
|
552
|
+
status: 'Status',
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
static types(): { [key: string]: any } {
|
|
557
|
+
return {
|
|
558
|
+
internetEndpoint: 'string',
|
|
559
|
+
intranetEndpoint: 'string',
|
|
560
|
+
requestId: 'string',
|
|
561
|
+
serviceId: 'string',
|
|
562
|
+
serviceName: 'string',
|
|
563
|
+
status: 'string',
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
constructor(map?: { [key: string]: any }) {
|
|
568
|
+
super(map);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export class CloneServiceResponse extends $tea.Model {
|
|
573
|
+
headers?: { [key: string]: string };
|
|
574
|
+
statusCode?: number;
|
|
575
|
+
body?: CloneServiceResponseBody;
|
|
576
|
+
static names(): { [key: string]: string } {
|
|
577
|
+
return {
|
|
578
|
+
headers: 'headers',
|
|
579
|
+
statusCode: 'statusCode',
|
|
580
|
+
body: 'body',
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
static types(): { [key: string]: any } {
|
|
585
|
+
return {
|
|
586
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
587
|
+
statusCode: 'number',
|
|
588
|
+
body: CloneServiceResponseBody,
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
constructor(map?: { [key: string]: any }) {
|
|
593
|
+
super(map);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
519
597
|
export class CommitServiceResponseBody extends $tea.Model {
|
|
520
598
|
message?: string;
|
|
521
599
|
requestId?: string;
|
|
@@ -3149,6 +3227,75 @@ export class DescribeServiceMirrorResponse extends $tea.Model {
|
|
|
3149
3227
|
}
|
|
3150
3228
|
}
|
|
3151
3229
|
|
|
3230
|
+
export class DescribeSpotDiscountHistoryRequest extends $tea.Model {
|
|
3231
|
+
instanceType?: string;
|
|
3232
|
+
isProtect?: boolean;
|
|
3233
|
+
static names(): { [key: string]: string } {
|
|
3234
|
+
return {
|
|
3235
|
+
instanceType: 'InstanceType',
|
|
3236
|
+
isProtect: 'IsProtect',
|
|
3237
|
+
};
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
static types(): { [key: string]: any } {
|
|
3241
|
+
return {
|
|
3242
|
+
instanceType: 'string',
|
|
3243
|
+
isProtect: 'boolean',
|
|
3244
|
+
};
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
constructor(map?: { [key: string]: any }) {
|
|
3248
|
+
super(map);
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
export class DescribeSpotDiscountHistoryResponseBody extends $tea.Model {
|
|
3253
|
+
requestId?: string;
|
|
3254
|
+
spotDiscounts?: DescribeSpotDiscountHistoryResponseBodySpotDiscounts[];
|
|
3255
|
+
static names(): { [key: string]: string } {
|
|
3256
|
+
return {
|
|
3257
|
+
requestId: 'RequestId',
|
|
3258
|
+
spotDiscounts: 'SpotDiscounts',
|
|
3259
|
+
};
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
static types(): { [key: string]: any } {
|
|
3263
|
+
return {
|
|
3264
|
+
requestId: 'string',
|
|
3265
|
+
spotDiscounts: { 'type': 'array', 'itemType': DescribeSpotDiscountHistoryResponseBodySpotDiscounts },
|
|
3266
|
+
};
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
constructor(map?: { [key: string]: any }) {
|
|
3270
|
+
super(map);
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
export class DescribeSpotDiscountHistoryResponse extends $tea.Model {
|
|
3275
|
+
headers?: { [key: string]: string };
|
|
3276
|
+
statusCode?: number;
|
|
3277
|
+
body?: DescribeSpotDiscountHistoryResponseBody;
|
|
3278
|
+
static names(): { [key: string]: string } {
|
|
3279
|
+
return {
|
|
3280
|
+
headers: 'headers',
|
|
3281
|
+
statusCode: 'statusCode',
|
|
3282
|
+
body: 'body',
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
static types(): { [key: string]: any } {
|
|
3287
|
+
return {
|
|
3288
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3289
|
+
statusCode: 'number',
|
|
3290
|
+
body: DescribeSpotDiscountHistoryResponseBody,
|
|
3291
|
+
};
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
constructor(map?: { [key: string]: any }) {
|
|
3295
|
+
super(map);
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3152
3299
|
export class DevelopServiceRequest extends $tea.Model {
|
|
3153
3300
|
exit?: string;
|
|
3154
3301
|
static names(): { [key: string]: string } {
|
|
@@ -5923,6 +6070,34 @@ export class DescribeServiceInstanceDiagnosisResponseBodyDiagnosis extends $tea.
|
|
|
5923
6070
|
}
|
|
5924
6071
|
}
|
|
5925
6072
|
|
|
6073
|
+
export class DescribeSpotDiscountHistoryResponseBodySpotDiscounts extends $tea.Model {
|
|
6074
|
+
instanceType?: string;
|
|
6075
|
+
spotDiscount?: string;
|
|
6076
|
+
timestamp?: string;
|
|
6077
|
+
zoneId?: string;
|
|
6078
|
+
static names(): { [key: string]: string } {
|
|
6079
|
+
return {
|
|
6080
|
+
instanceType: 'InstanceType',
|
|
6081
|
+
spotDiscount: 'SpotDiscount',
|
|
6082
|
+
timestamp: 'Timestamp',
|
|
6083
|
+
zoneId: 'ZoneId',
|
|
6084
|
+
};
|
|
6085
|
+
}
|
|
6086
|
+
|
|
6087
|
+
static types(): { [key: string]: any } {
|
|
6088
|
+
return {
|
|
6089
|
+
instanceType: 'string',
|
|
6090
|
+
spotDiscount: 'string',
|
|
6091
|
+
timestamp: 'string',
|
|
6092
|
+
zoneId: 'string',
|
|
6093
|
+
};
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
constructor(map?: { [key: string]: any }) {
|
|
6097
|
+
super(map);
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
|
|
5926
6101
|
export class ListBenchmarkTaskResponseBodyTasks extends $tea.Model {
|
|
5927
6102
|
availableAgent?: number;
|
|
5928
6103
|
createTime?: string;
|
|
@@ -6256,6 +6431,32 @@ export default class Client extends OpenApi {
|
|
|
6256
6431
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
6257
6432
|
}
|
|
6258
6433
|
|
|
6434
|
+
async cloneServiceWithOptions(ClusterId: string, ServiceName: string, request: CloneServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CloneServiceResponse> {
|
|
6435
|
+
Util.validateModel(request);
|
|
6436
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6437
|
+
headers: headers,
|
|
6438
|
+
body: request.body,
|
|
6439
|
+
});
|
|
6440
|
+
let params = new $OpenApi.Params({
|
|
6441
|
+
action: "CloneService",
|
|
6442
|
+
version: "2021-07-01",
|
|
6443
|
+
protocol: "HTTPS",
|
|
6444
|
+
pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/clone`,
|
|
6445
|
+
method: "POST",
|
|
6446
|
+
authType: "AK",
|
|
6447
|
+
style: "ROA",
|
|
6448
|
+
reqBodyType: "json",
|
|
6449
|
+
bodyType: "json",
|
|
6450
|
+
});
|
|
6451
|
+
return $tea.cast<CloneServiceResponse>(await this.callApi(params, req, runtime), new CloneServiceResponse({}));
|
|
6452
|
+
}
|
|
6453
|
+
|
|
6454
|
+
async cloneService(ClusterId: string, ServiceName: string, request: CloneServiceRequest): Promise<CloneServiceResponse> {
|
|
6455
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
6456
|
+
let headers : {[key: string ]: string} = { };
|
|
6457
|
+
return await this.cloneServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
6458
|
+
}
|
|
6459
|
+
|
|
6259
6460
|
async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
|
|
6260
6461
|
let req = new $OpenApi.OpenApiRequest({
|
|
6261
6462
|
headers: headers,
|
|
@@ -6451,6 +6652,14 @@ export default class Client extends OpenApi {
|
|
|
6451
6652
|
return await this.createGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
|
|
6452
6653
|
}
|
|
6453
6654
|
|
|
6655
|
+
/**
|
|
6656
|
+
* **Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).
|
|
6657
|
+
*
|
|
6658
|
+
* @param request CreateResourceRequest
|
|
6659
|
+
* @param headers map
|
|
6660
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
6661
|
+
* @return CreateResourceResponse
|
|
6662
|
+
*/
|
|
6454
6663
|
async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
|
|
6455
6664
|
Util.validateModel(request);
|
|
6456
6665
|
let body : {[key: string ]: any} = { };
|
|
@@ -6504,6 +6713,12 @@ export default class Client extends OpenApi {
|
|
|
6504
6713
|
return $tea.cast<CreateResourceResponse>(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
|
|
6505
6714
|
}
|
|
6506
6715
|
|
|
6716
|
+
/**
|
|
6717
|
+
* **Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).
|
|
6718
|
+
*
|
|
6719
|
+
* @param request CreateResourceRequest
|
|
6720
|
+
* @return CreateResourceResponse
|
|
6721
|
+
*/
|
|
6507
6722
|
async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
|
|
6508
6723
|
let runtime = new $Util.RuntimeOptions({ });
|
|
6509
6724
|
let headers : {[key: string ]: string} = { };
|
|
@@ -7554,6 +7769,41 @@ export default class Client extends OpenApi {
|
|
|
7554
7769
|
return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, headers, runtime);
|
|
7555
7770
|
}
|
|
7556
7771
|
|
|
7772
|
+
async describeSpotDiscountHistoryWithOptions(request: DescribeSpotDiscountHistoryRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeSpotDiscountHistoryResponse> {
|
|
7773
|
+
Util.validateModel(request);
|
|
7774
|
+
let query : {[key: string ]: any} = { };
|
|
7775
|
+
if (!Util.isUnset(request.instanceType)) {
|
|
7776
|
+
query["InstanceType"] = request.instanceType;
|
|
7777
|
+
}
|
|
7778
|
+
|
|
7779
|
+
if (!Util.isUnset(request.isProtect)) {
|
|
7780
|
+
query["IsProtect"] = request.isProtect;
|
|
7781
|
+
}
|
|
7782
|
+
|
|
7783
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7784
|
+
headers: headers,
|
|
7785
|
+
query: OpenApiUtil.query(query),
|
|
7786
|
+
});
|
|
7787
|
+
let params = new $OpenApi.Params({
|
|
7788
|
+
action: "DescribeSpotDiscountHistory",
|
|
7789
|
+
version: "2021-07-01",
|
|
7790
|
+
protocol: "HTTPS",
|
|
7791
|
+
pathname: `/api/v2/public/spot_discount`,
|
|
7792
|
+
method: "GET",
|
|
7793
|
+
authType: "AK",
|
|
7794
|
+
style: "ROA",
|
|
7795
|
+
reqBodyType: "json",
|
|
7796
|
+
bodyType: "json",
|
|
7797
|
+
});
|
|
7798
|
+
return $tea.cast<DescribeSpotDiscountHistoryResponse>(await this.callApi(params, req, runtime), new DescribeSpotDiscountHistoryResponse({}));
|
|
7799
|
+
}
|
|
7800
|
+
|
|
7801
|
+
async describeSpotDiscountHistory(request: DescribeSpotDiscountHistoryRequest): Promise<DescribeSpotDiscountHistoryResponse> {
|
|
7802
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
7803
|
+
let headers : {[key: string ]: string} = { };
|
|
7804
|
+
return await this.describeSpotDiscountHistoryWithOptions(request, headers, runtime);
|
|
7805
|
+
}
|
|
7806
|
+
|
|
7557
7807
|
async developServiceWithOptions(ClusterId: string, ServiceName: string, request: DevelopServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DevelopServiceResponse> {
|
|
7558
7808
|
Util.validateModel(request);
|
|
7559
7809
|
let query : {[key: string ]: any} = { };
|