@alicloud/ga20191120 2.1.6 → 2.1.7
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 +35 -22
- package/dist/client.js +2068 -2030
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +57 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/ga20191120",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,11 +12,11 @@
|
|
|
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",
|
package/src/client.ts
CHANGED
|
@@ -20395,20 +20395,20 @@ export default class Client extends OpenApi {
|
|
|
20395
20395
|
}
|
|
20396
20396
|
|
|
20397
20397
|
/**
|
|
20398
|
-
* This operation takes effect only when the traffic access policy of an endpoint allows traffic to specified destinations. You can call the [DescribeCustomRoutingEndpoint](~~449386~~) operation to query the traffic access policy of an endpoint.
|
|
20398
|
+
* This operation takes effect only when the traffic access policy of an endpoint allows traffic to specified destinations. You can call the [DescribeCustomRoutingEndpoint](~~449386~~) operation to query the traffic access policy of an endpoint. This operation takes effect only if the value of **TrafficToEndpointPolicy** is set to **AllowCustom**, which allows traffic to specific destinations.
|
|
20399
20399
|
* When you call this operation, take note of the following items:
|
|
20400
|
-
* * **CreateCustomRoutingEndpointTrafficPolicies** is an asynchronous operation. After
|
|
20401
|
-
* * If the endpoint group is in the **updating** state, traffic destinations are being created. In this
|
|
20402
|
-
* * If the endpoint group is in the **active** state, traffic destinations are created.
|
|
20403
|
-
* * You cannot
|
|
20404
|
-
* ### Prerequisites
|
|
20400
|
+
* * **CreateCustomRoutingEndpointTrafficPolicies** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeCustomRoutingEndpointGroup](~~449373~~) operation to query the status of the task.
|
|
20401
|
+
* * If the endpoint group is in the **updating** state, the traffic destinations are being created. In this state, you can only query the traffic destinations.
|
|
20402
|
+
* * If the endpoint group is in the **active** state, the traffic destinations are created.
|
|
20403
|
+
* * You cannot call the **CreateCustomRoutingEndpointTrafficPolicies** operation repeatedly for the same GA instance in a specific period of time.
|
|
20404
|
+
* ### [](#)Prerequisites
|
|
20405
20405
|
* Before you call this operation, make sure that the following requirements are met:
|
|
20406
20406
|
* * A standard GA instance is created. For more information, see [CreateAccelerator](~~206786~~).
|
|
20407
|
-
* *
|
|
20408
|
-
* * An application is deployed to receive requests that are forwarded from GA. You can specify only vSwitches as endpoints for custom routing listeners.
|
|
20409
|
-
* * The permissions to use custom routing listeners are acquired and a custom routing listener is created
|
|
20410
|
-
* *
|
|
20411
|
-
* *
|
|
20407
|
+
* * If the bandwidth metering method of the standard GA instance is **pay-by-bandwidth**, a bandwidth plan must be associated with the standard GA instance. For more information, see [BandwidthPackageAddAccelerator](~~153239~~).
|
|
20408
|
+
* * An application that serves as the endpoint of the standard GA instance is deployed to receive requests that are forwarded from GA. You can specify only vSwitches as endpoints for custom routing listeners.
|
|
20409
|
+
* * The permissions to use custom routing listeners are acquired, and a custom routing listener is created. Custom routing listeners are in invitational preview. To use custom routing listeners, contact your account manager. For more information about how to create a custom routing listener, see [CreateListener](~~153253~~).
|
|
20410
|
+
* * Endpoint groups are created for the custom routing listener. For more information, see [CreateCustomRoutingEndpointGroups](~~449363~~).
|
|
20411
|
+
* * Endpoints are created for the custom routing listener. For more information, see [CreateCustomRoutingEndpoints](~~449382~~).
|
|
20412
20412
|
*
|
|
20413
20413
|
* @param request CreateCustomRoutingEndpointTrafficPoliciesRequest
|
|
20414
20414
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -20451,20 +20451,20 @@ export default class Client extends OpenApi {
|
|
|
20451
20451
|
}
|
|
20452
20452
|
|
|
20453
20453
|
/**
|
|
20454
|
-
* This operation takes effect only when the traffic access policy of an endpoint allows traffic to specified destinations. You can call the [DescribeCustomRoutingEndpoint](~~449386~~) operation to query the traffic access policy of an endpoint.
|
|
20454
|
+
* This operation takes effect only when the traffic access policy of an endpoint allows traffic to specified destinations. You can call the [DescribeCustomRoutingEndpoint](~~449386~~) operation to query the traffic access policy of an endpoint. This operation takes effect only if the value of **TrafficToEndpointPolicy** is set to **AllowCustom**, which allows traffic to specific destinations.
|
|
20455
20455
|
* When you call this operation, take note of the following items:
|
|
20456
|
-
* * **CreateCustomRoutingEndpointTrafficPolicies** is an asynchronous operation. After
|
|
20457
|
-
* * If the endpoint group is in the **updating** state, traffic destinations are being created. In this
|
|
20458
|
-
* * If the endpoint group is in the **active** state, traffic destinations are created.
|
|
20459
|
-
* * You cannot
|
|
20460
|
-
* ### Prerequisites
|
|
20456
|
+
* * **CreateCustomRoutingEndpointTrafficPolicies** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeCustomRoutingEndpointGroup](~~449373~~) operation to query the status of the task.
|
|
20457
|
+
* * If the endpoint group is in the **updating** state, the traffic destinations are being created. In this state, you can only query the traffic destinations.
|
|
20458
|
+
* * If the endpoint group is in the **active** state, the traffic destinations are created.
|
|
20459
|
+
* * You cannot call the **CreateCustomRoutingEndpointTrafficPolicies** operation repeatedly for the same GA instance in a specific period of time.
|
|
20460
|
+
* ### [](#)Prerequisites
|
|
20461
20461
|
* Before you call this operation, make sure that the following requirements are met:
|
|
20462
20462
|
* * A standard GA instance is created. For more information, see [CreateAccelerator](~~206786~~).
|
|
20463
|
-
* *
|
|
20464
|
-
* * An application is deployed to receive requests that are forwarded from GA. You can specify only vSwitches as endpoints for custom routing listeners.
|
|
20465
|
-
* * The permissions to use custom routing listeners are acquired and a custom routing listener is created
|
|
20466
|
-
* *
|
|
20467
|
-
* *
|
|
20463
|
+
* * If the bandwidth metering method of the standard GA instance is **pay-by-bandwidth**, a bandwidth plan must be associated with the standard GA instance. For more information, see [BandwidthPackageAddAccelerator](~~153239~~).
|
|
20464
|
+
* * An application that serves as the endpoint of the standard GA instance is deployed to receive requests that are forwarded from GA. You can specify only vSwitches as endpoints for custom routing listeners.
|
|
20465
|
+
* * The permissions to use custom routing listeners are acquired, and a custom routing listener is created. Custom routing listeners are in invitational preview. To use custom routing listeners, contact your account manager. For more information about how to create a custom routing listener, see [CreateListener](~~153253~~).
|
|
20466
|
+
* * Endpoint groups are created for the custom routing listener. For more information, see [CreateCustomRoutingEndpointGroups](~~449363~~).
|
|
20467
|
+
* * Endpoints are created for the custom routing listener. For more information, see [CreateCustomRoutingEndpoints](~~449382~~).
|
|
20468
20468
|
*
|
|
20469
20469
|
* @param request CreateCustomRoutingEndpointTrafficPoliciesRequest
|
|
20470
20470
|
* @return CreateCustomRoutingEndpointTrafficPoliciesResponse
|
|
@@ -20757,10 +20757,6 @@ export default class Client extends OpenApi {
|
|
|
20757
20757
|
query["DryRun"] = request.dryRun;
|
|
20758
20758
|
}
|
|
20759
20759
|
|
|
20760
|
-
if (!Util.isUnset(request.endpointGroupConfigurations)) {
|
|
20761
|
-
query["EndpointGroupConfigurations"] = request.endpointGroupConfigurations;
|
|
20762
|
-
}
|
|
20763
|
-
|
|
20764
20760
|
if (!Util.isUnset(request.listenerId)) {
|
|
20765
20761
|
query["ListenerId"] = request.listenerId;
|
|
20766
20762
|
}
|
|
@@ -20769,8 +20765,19 @@ export default class Client extends OpenApi {
|
|
|
20769
20765
|
query["RegionId"] = request.regionId;
|
|
20770
20766
|
}
|
|
20771
20767
|
|
|
20768
|
+
let body : {[key: string ]: any} = { };
|
|
20769
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
20770
|
+
if (!Util.isUnset(request.endpointGroupConfigurations)) {
|
|
20771
|
+
bodyFlat["EndpointGroupConfigurations"] = request.endpointGroupConfigurations;
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
body = {
|
|
20775
|
+
...body,
|
|
20776
|
+
...OpenApiUtil.query(bodyFlat),
|
|
20777
|
+
};
|
|
20772
20778
|
let req = new $OpenApi.OpenApiRequest({
|
|
20773
20779
|
query: OpenApiUtil.query(query),
|
|
20780
|
+
body: OpenApiUtil.parseToMap(body),
|
|
20774
20781
|
});
|
|
20775
20782
|
let params = new $OpenApi.Params({
|
|
20776
20783
|
action: "CreateEndpointGroups",
|
|
@@ -20823,10 +20830,6 @@ export default class Client extends OpenApi {
|
|
|
20823
20830
|
query["ClientToken"] = request.clientToken;
|
|
20824
20831
|
}
|
|
20825
20832
|
|
|
20826
|
-
if (!Util.isUnset(request.forwardingRules)) {
|
|
20827
|
-
query["ForwardingRules"] = request.forwardingRules;
|
|
20828
|
-
}
|
|
20829
|
-
|
|
20830
20833
|
if (!Util.isUnset(request.listenerId)) {
|
|
20831
20834
|
query["ListenerId"] = request.listenerId;
|
|
20832
20835
|
}
|
|
@@ -20835,8 +20838,19 @@ export default class Client extends OpenApi {
|
|
|
20835
20838
|
query["RegionId"] = request.regionId;
|
|
20836
20839
|
}
|
|
20837
20840
|
|
|
20841
|
+
let body : {[key: string ]: any} = { };
|
|
20842
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
20843
|
+
if (!Util.isUnset(request.forwardingRules)) {
|
|
20844
|
+
bodyFlat["ForwardingRules"] = request.forwardingRules;
|
|
20845
|
+
}
|
|
20846
|
+
|
|
20847
|
+
body = {
|
|
20848
|
+
...body,
|
|
20849
|
+
...OpenApiUtil.query(bodyFlat),
|
|
20850
|
+
};
|
|
20838
20851
|
let req = new $OpenApi.OpenApiRequest({
|
|
20839
20852
|
query: OpenApiUtil.query(query),
|
|
20853
|
+
body: OpenApiUtil.parseToMap(body),
|
|
20840
20854
|
});
|
|
20841
20855
|
let params = new $OpenApi.Params({
|
|
20842
20856
|
action: "CreateForwardingRules",
|
|
@@ -24188,6 +24202,13 @@ export default class Client extends OpenApi {
|
|
|
24188
24202
|
return await this.listBandwidthPackagesWithOptions(request, runtime);
|
|
24189
24203
|
}
|
|
24190
24204
|
|
|
24205
|
+
/**
|
|
24206
|
+
* To query the detailed information about a bandwidth plan, call the **ListBandwidthPackages** operation. For more information, see [ListBandwidthPackages](~~2253239~~).
|
|
24207
|
+
*
|
|
24208
|
+
* @param request ListBandwidthackagesRequest
|
|
24209
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
24210
|
+
* @return ListBandwidthackagesResponse
|
|
24211
|
+
*/
|
|
24191
24212
|
async listBandwidthackagesWithOptions(request: ListBandwidthackagesRequest, runtime: $Util.RuntimeOptions): Promise<ListBandwidthackagesResponse> {
|
|
24192
24213
|
Util.validateModel(request);
|
|
24193
24214
|
let query = { };
|
|
@@ -24220,6 +24241,12 @@ export default class Client extends OpenApi {
|
|
|
24220
24241
|
return $tea.cast<ListBandwidthackagesResponse>(await this.callApi(params, req, runtime), new ListBandwidthackagesResponse({}));
|
|
24221
24242
|
}
|
|
24222
24243
|
|
|
24244
|
+
/**
|
|
24245
|
+
* To query the detailed information about a bandwidth plan, call the **ListBandwidthPackages** operation. For more information, see [ListBandwidthPackages](~~2253239~~).
|
|
24246
|
+
*
|
|
24247
|
+
* @param request ListBandwidthackagesRequest
|
|
24248
|
+
* @return ListBandwidthackagesResponse
|
|
24249
|
+
*/
|
|
24223
24250
|
async listBandwidthackages(request: ListBandwidthackagesRequest): Promise<ListBandwidthackagesResponse> {
|
|
24224
24251
|
let runtime = new $Util.RuntimeOptions({ });
|
|
24225
24252
|
return await this.listBandwidthackagesWithOptions(request, runtime);
|