@alicloud/ga20191120 1.0.5 → 1.0.6
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 +97 -0
- package/dist/client.js +189 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +228 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/ga20191120",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
23
|
"@alicloud/tea-util": "^1.4.0",
|
|
24
|
-
"@alicloud/openapi-client": "^0.3.
|
|
24
|
+
"@alicloud/openapi-client": "^0.3.8",
|
|
25
25
|
"@alicloud/endpoint-util": "^0.0.1",
|
|
26
26
|
"@alicloud/openapi-util": "^0.2.4"
|
|
27
27
|
},
|
package/src/client.ts
CHANGED
|
@@ -898,6 +898,8 @@ export class CreateBandwidthPackageResponse extends $tea.Model {
|
|
|
898
898
|
|
|
899
899
|
export class CreateBasicAcceleratorRequest extends $tea.Model {
|
|
900
900
|
autoPay?: boolean;
|
|
901
|
+
autoRenew?: boolean;
|
|
902
|
+
autoRenewDuration?: number;
|
|
901
903
|
autoUseCoupon?: string;
|
|
902
904
|
clientToken?: string;
|
|
903
905
|
duration?: number;
|
|
@@ -906,6 +908,8 @@ export class CreateBasicAcceleratorRequest extends $tea.Model {
|
|
|
906
908
|
static names(): { [key: string]: string } {
|
|
907
909
|
return {
|
|
908
910
|
autoPay: 'AutoPay',
|
|
911
|
+
autoRenew: 'AutoRenew',
|
|
912
|
+
autoRenewDuration: 'AutoRenewDuration',
|
|
909
913
|
autoUseCoupon: 'AutoUseCoupon',
|
|
910
914
|
clientToken: 'ClientToken',
|
|
911
915
|
duration: 'Duration',
|
|
@@ -917,6 +921,8 @@ export class CreateBasicAcceleratorRequest extends $tea.Model {
|
|
|
917
921
|
static types(): { [key: string]: any } {
|
|
918
922
|
return {
|
|
919
923
|
autoPay: 'boolean',
|
|
924
|
+
autoRenew: 'boolean',
|
|
925
|
+
autoRenewDuration: 'number',
|
|
920
926
|
autoUseCoupon: 'string',
|
|
921
927
|
clientToken: 'string',
|
|
922
928
|
duration: 'number',
|
|
@@ -2633,6 +2639,81 @@ export class DescribeAcceleratorResponse extends $tea.Model {
|
|
|
2633
2639
|
}
|
|
2634
2640
|
}
|
|
2635
2641
|
|
|
2642
|
+
export class DescribeAcceleratorAutoRenewAttributeRequest extends $tea.Model {
|
|
2643
|
+
acceleratorId?: string;
|
|
2644
|
+
regionId?: string;
|
|
2645
|
+
static names(): { [key: string]: string } {
|
|
2646
|
+
return {
|
|
2647
|
+
acceleratorId: 'AcceleratorId',
|
|
2648
|
+
regionId: 'RegionId',
|
|
2649
|
+
};
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
static types(): { [key: string]: any } {
|
|
2653
|
+
return {
|
|
2654
|
+
acceleratorId: 'string',
|
|
2655
|
+
regionId: 'string',
|
|
2656
|
+
};
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
constructor(map?: { [key: string]: any }) {
|
|
2660
|
+
super(map);
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
export class DescribeAcceleratorAutoRenewAttributeResponseBody extends $tea.Model {
|
|
2665
|
+
acceleratorId?: string;
|
|
2666
|
+
autoRenew?: boolean;
|
|
2667
|
+
autoRenewDuration?: number;
|
|
2668
|
+
renewalStatus?: string;
|
|
2669
|
+
requestId?: string;
|
|
2670
|
+
static names(): { [key: string]: string } {
|
|
2671
|
+
return {
|
|
2672
|
+
acceleratorId: 'AcceleratorId',
|
|
2673
|
+
autoRenew: 'AutoRenew',
|
|
2674
|
+
autoRenewDuration: 'AutoRenewDuration',
|
|
2675
|
+
renewalStatus: 'RenewalStatus',
|
|
2676
|
+
requestId: 'RequestId',
|
|
2677
|
+
};
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
static types(): { [key: string]: any } {
|
|
2681
|
+
return {
|
|
2682
|
+
acceleratorId: 'string',
|
|
2683
|
+
autoRenew: 'boolean',
|
|
2684
|
+
autoRenewDuration: 'number',
|
|
2685
|
+
renewalStatus: 'string',
|
|
2686
|
+
requestId: 'string',
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
constructor(map?: { [key: string]: any }) {
|
|
2691
|
+
super(map);
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
export class DescribeAcceleratorAutoRenewAttributeResponse extends $tea.Model {
|
|
2696
|
+
headers: { [key: string]: string };
|
|
2697
|
+
body: DescribeAcceleratorAutoRenewAttributeResponseBody;
|
|
2698
|
+
static names(): { [key: string]: string } {
|
|
2699
|
+
return {
|
|
2700
|
+
headers: 'headers',
|
|
2701
|
+
body: 'body',
|
|
2702
|
+
};
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
static types(): { [key: string]: any } {
|
|
2706
|
+
return {
|
|
2707
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2708
|
+
body: DescribeAcceleratorAutoRenewAttributeResponseBody,
|
|
2709
|
+
};
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
constructor(map?: { [key: string]: any }) {
|
|
2713
|
+
super(map);
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2636
2717
|
export class DescribeBandwidthPackageRequest extends $tea.Model {
|
|
2637
2718
|
bandwidthPackageId?: string;
|
|
2638
2719
|
regionId?: string;
|
|
@@ -5432,6 +5513,87 @@ export class UpdateAcceleratorResponse extends $tea.Model {
|
|
|
5432
5513
|
}
|
|
5433
5514
|
}
|
|
5434
5515
|
|
|
5516
|
+
export class UpdateAcceleratorAutoRenewAttributeRequest extends $tea.Model {
|
|
5517
|
+
acceleratorId?: string;
|
|
5518
|
+
autoRenew?: boolean;
|
|
5519
|
+
autoRenewDuration?: number;
|
|
5520
|
+
clientToken?: string;
|
|
5521
|
+
name?: string;
|
|
5522
|
+
regionId?: string;
|
|
5523
|
+
renewalStatus?: string;
|
|
5524
|
+
static names(): { [key: string]: string } {
|
|
5525
|
+
return {
|
|
5526
|
+
acceleratorId: 'AcceleratorId',
|
|
5527
|
+
autoRenew: 'AutoRenew',
|
|
5528
|
+
autoRenewDuration: 'AutoRenewDuration',
|
|
5529
|
+
clientToken: 'ClientToken',
|
|
5530
|
+
name: 'Name',
|
|
5531
|
+
regionId: 'RegionId',
|
|
5532
|
+
renewalStatus: 'RenewalStatus',
|
|
5533
|
+
};
|
|
5534
|
+
}
|
|
5535
|
+
|
|
5536
|
+
static types(): { [key: string]: any } {
|
|
5537
|
+
return {
|
|
5538
|
+
acceleratorId: 'string',
|
|
5539
|
+
autoRenew: 'boolean',
|
|
5540
|
+
autoRenewDuration: 'number',
|
|
5541
|
+
clientToken: 'string',
|
|
5542
|
+
name: 'string',
|
|
5543
|
+
regionId: 'string',
|
|
5544
|
+
renewalStatus: 'string',
|
|
5545
|
+
};
|
|
5546
|
+
}
|
|
5547
|
+
|
|
5548
|
+
constructor(map?: { [key: string]: any }) {
|
|
5549
|
+
super(map);
|
|
5550
|
+
}
|
|
5551
|
+
}
|
|
5552
|
+
|
|
5553
|
+
export class UpdateAcceleratorAutoRenewAttributeResponseBody extends $tea.Model {
|
|
5554
|
+
acceleratorId?: string;
|
|
5555
|
+
requestId?: string;
|
|
5556
|
+
static names(): { [key: string]: string } {
|
|
5557
|
+
return {
|
|
5558
|
+
acceleratorId: 'AcceleratorId',
|
|
5559
|
+
requestId: 'RequestId',
|
|
5560
|
+
};
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
static types(): { [key: string]: any } {
|
|
5564
|
+
return {
|
|
5565
|
+
acceleratorId: 'string',
|
|
5566
|
+
requestId: 'string',
|
|
5567
|
+
};
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
constructor(map?: { [key: string]: any }) {
|
|
5571
|
+
super(map);
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
export class UpdateAcceleratorAutoRenewAttributeResponse extends $tea.Model {
|
|
5576
|
+
headers: { [key: string]: string };
|
|
5577
|
+
body: UpdateAcceleratorAutoRenewAttributeResponseBody;
|
|
5578
|
+
static names(): { [key: string]: string } {
|
|
5579
|
+
return {
|
|
5580
|
+
headers: 'headers',
|
|
5581
|
+
body: 'body',
|
|
5582
|
+
};
|
|
5583
|
+
}
|
|
5584
|
+
|
|
5585
|
+
static types(): { [key: string]: any } {
|
|
5586
|
+
return {
|
|
5587
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5588
|
+
body: UpdateAcceleratorAutoRenewAttributeResponseBody,
|
|
5589
|
+
};
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5592
|
+
constructor(map?: { [key: string]: any }) {
|
|
5593
|
+
super(map);
|
|
5594
|
+
}
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5435
5597
|
export class UpdateAcceleratorConfirmRequest extends $tea.Model {
|
|
5436
5598
|
acceleratorId?: string;
|
|
5437
5599
|
regionId?: string;
|
|
@@ -7547,10 +7709,12 @@ export class ListAvailableAccelerateAreasResponseBodyAreas extends $tea.Model {
|
|
|
7547
7709
|
|
|
7548
7710
|
export class ListAvailableBusiRegionsResponseBodyRegions extends $tea.Model {
|
|
7549
7711
|
localName?: string;
|
|
7712
|
+
pop?: boolean;
|
|
7550
7713
|
regionId?: string;
|
|
7551
7714
|
static names(): { [key: string]: string } {
|
|
7552
7715
|
return {
|
|
7553
7716
|
localName: 'LocalName',
|
|
7717
|
+
pop: 'Pop',
|
|
7554
7718
|
regionId: 'RegionId',
|
|
7555
7719
|
};
|
|
7556
7720
|
}
|
|
@@ -7558,6 +7722,7 @@ export class ListAvailableBusiRegionsResponseBodyRegions extends $tea.Model {
|
|
|
7558
7722
|
static types(): { [key: string]: any } {
|
|
7559
7723
|
return {
|
|
7560
7724
|
localName: 'string',
|
|
7725
|
+
pop: 'boolean',
|
|
7561
7726
|
regionId: 'string',
|
|
7562
7727
|
};
|
|
7563
7728
|
}
|
|
@@ -9217,6 +9382,8 @@ export default class Client extends OpenApi {
|
|
|
9217
9382
|
Util.validateModel(request);
|
|
9218
9383
|
let query = { };
|
|
9219
9384
|
query["AutoPay"] = request.autoPay;
|
|
9385
|
+
query["AutoRenew"] = request.autoRenew;
|
|
9386
|
+
query["AutoRenewDuration"] = request.autoRenewDuration;
|
|
9220
9387
|
query["AutoUseCoupon"] = request.autoUseCoupon;
|
|
9221
9388
|
query["ClientToken"] = request.clientToken;
|
|
9222
9389
|
query["Duration"] = request.duration;
|
|
@@ -9923,6 +10090,34 @@ export default class Client extends OpenApi {
|
|
|
9923
10090
|
return await this.describeAcceleratorWithOptions(request, runtime);
|
|
9924
10091
|
}
|
|
9925
10092
|
|
|
10093
|
+
async describeAcceleratorAutoRenewAttributeWithOptions(request: DescribeAcceleratorAutoRenewAttributeRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAcceleratorAutoRenewAttributeResponse> {
|
|
10094
|
+
Util.validateModel(request);
|
|
10095
|
+
let query = { };
|
|
10096
|
+
query["AcceleratorId"] = request.acceleratorId;
|
|
10097
|
+
query["RegionId"] = request.regionId;
|
|
10098
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10099
|
+
query: OpenApiUtil.query(query),
|
|
10100
|
+
body: Util.toMap(request),
|
|
10101
|
+
});
|
|
10102
|
+
let params = new $OpenApi.Params({
|
|
10103
|
+
action: "DescribeAcceleratorAutoRenewAttribute",
|
|
10104
|
+
version: "2019-11-20",
|
|
10105
|
+
protocol: "HTTPS",
|
|
10106
|
+
pathname: "/",
|
|
10107
|
+
method: "POST",
|
|
10108
|
+
authType: "AK",
|
|
10109
|
+
style: "RPC",
|
|
10110
|
+
reqBodyType: "json",
|
|
10111
|
+
bodyType: "json",
|
|
10112
|
+
});
|
|
10113
|
+
return $tea.cast<DescribeAcceleratorAutoRenewAttributeResponse>(await this.callApi(params, req, runtime), new DescribeAcceleratorAutoRenewAttributeResponse({}));
|
|
10114
|
+
}
|
|
10115
|
+
|
|
10116
|
+
async describeAcceleratorAutoRenewAttribute(request: DescribeAcceleratorAutoRenewAttributeRequest): Promise<DescribeAcceleratorAutoRenewAttributeResponse> {
|
|
10117
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10118
|
+
return await this.describeAcceleratorAutoRenewAttributeWithOptions(request, runtime);
|
|
10119
|
+
}
|
|
10120
|
+
|
|
9926
10121
|
async describeBandwidthPackageWithOptions(request: DescribeBandwidthPackageRequest, runtime: $Util.RuntimeOptions): Promise<DescribeBandwidthPackageResponse> {
|
|
9927
10122
|
Util.validateModel(request);
|
|
9928
10123
|
let query = { };
|
|
@@ -10936,6 +11131,39 @@ export default class Client extends OpenApi {
|
|
|
10936
11131
|
return await this.updateAcceleratorWithOptions(request, runtime);
|
|
10937
11132
|
}
|
|
10938
11133
|
|
|
11134
|
+
async updateAcceleratorAutoRenewAttributeWithOptions(request: UpdateAcceleratorAutoRenewAttributeRequest, runtime: $Util.RuntimeOptions): Promise<UpdateAcceleratorAutoRenewAttributeResponse> {
|
|
11135
|
+
Util.validateModel(request);
|
|
11136
|
+
let query = { };
|
|
11137
|
+
query["AcceleratorId"] = request.acceleratorId;
|
|
11138
|
+
query["AutoRenew"] = request.autoRenew;
|
|
11139
|
+
query["AutoRenewDuration"] = request.autoRenewDuration;
|
|
11140
|
+
query["ClientToken"] = request.clientToken;
|
|
11141
|
+
query["Name"] = request.name;
|
|
11142
|
+
query["RegionId"] = request.regionId;
|
|
11143
|
+
query["RenewalStatus"] = request.renewalStatus;
|
|
11144
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11145
|
+
query: OpenApiUtil.query(query),
|
|
11146
|
+
body: Util.toMap(request),
|
|
11147
|
+
});
|
|
11148
|
+
let params = new $OpenApi.Params({
|
|
11149
|
+
action: "UpdateAcceleratorAutoRenewAttribute",
|
|
11150
|
+
version: "2019-11-20",
|
|
11151
|
+
protocol: "HTTPS",
|
|
11152
|
+
pathname: "/",
|
|
11153
|
+
method: "POST",
|
|
11154
|
+
authType: "AK",
|
|
11155
|
+
style: "RPC",
|
|
11156
|
+
reqBodyType: "json",
|
|
11157
|
+
bodyType: "json",
|
|
11158
|
+
});
|
|
11159
|
+
return $tea.cast<UpdateAcceleratorAutoRenewAttributeResponse>(await this.callApi(params, req, runtime), new UpdateAcceleratorAutoRenewAttributeResponse({}));
|
|
11160
|
+
}
|
|
11161
|
+
|
|
11162
|
+
async updateAcceleratorAutoRenewAttribute(request: UpdateAcceleratorAutoRenewAttributeRequest): Promise<UpdateAcceleratorAutoRenewAttributeResponse> {
|
|
11163
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11164
|
+
return await this.updateAcceleratorAutoRenewAttributeWithOptions(request, runtime);
|
|
11165
|
+
}
|
|
11166
|
+
|
|
10939
11167
|
async updateAcceleratorConfirmWithOptions(request: UpdateAcceleratorConfirmRequest, runtime: $Util.RuntimeOptions): Promise<UpdateAcceleratorConfirmResponse> {
|
|
10940
11168
|
Util.validateModel(request);
|
|
10941
11169
|
let query = { };
|