@alicloud/vpc20160428 5.0.2 → 5.1.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 +71 -20
- package/dist/client.js +135 -20
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +163 -20
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12218,6 +12218,84 @@ export class DeleteVSwitchResponse extends $tea.Model {
|
|
|
12218
12218
|
}
|
|
12219
12219
|
}
|
|
12220
12220
|
|
|
12221
|
+
export class DeleteVSwitchCidrReservationRequest extends $tea.Model {
|
|
12222
|
+
ownerAccount?: string;
|
|
12223
|
+
ownerId?: number;
|
|
12224
|
+
regionId?: string;
|
|
12225
|
+
resourceOwnerAccount?: string;
|
|
12226
|
+
resourceOwnerId?: number;
|
|
12227
|
+
vSwitchCidrReservationId?: string;
|
|
12228
|
+
static names(): { [key: string]: string } {
|
|
12229
|
+
return {
|
|
12230
|
+
ownerAccount: 'OwnerAccount',
|
|
12231
|
+
ownerId: 'OwnerId',
|
|
12232
|
+
regionId: 'RegionId',
|
|
12233
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
12234
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
12235
|
+
vSwitchCidrReservationId: 'VSwitchCidrReservationId',
|
|
12236
|
+
};
|
|
12237
|
+
}
|
|
12238
|
+
|
|
12239
|
+
static types(): { [key: string]: any } {
|
|
12240
|
+
return {
|
|
12241
|
+
ownerAccount: 'string',
|
|
12242
|
+
ownerId: 'number',
|
|
12243
|
+
regionId: 'string',
|
|
12244
|
+
resourceOwnerAccount: 'string',
|
|
12245
|
+
resourceOwnerId: 'number',
|
|
12246
|
+
vSwitchCidrReservationId: 'string',
|
|
12247
|
+
};
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
constructor(map?: { [key: string]: any }) {
|
|
12251
|
+
super(map);
|
|
12252
|
+
}
|
|
12253
|
+
}
|
|
12254
|
+
|
|
12255
|
+
export class DeleteVSwitchCidrReservationResponseBody extends $tea.Model {
|
|
12256
|
+
requestId?: string;
|
|
12257
|
+
static names(): { [key: string]: string } {
|
|
12258
|
+
return {
|
|
12259
|
+
requestId: 'RequestId',
|
|
12260
|
+
};
|
|
12261
|
+
}
|
|
12262
|
+
|
|
12263
|
+
static types(): { [key: string]: any } {
|
|
12264
|
+
return {
|
|
12265
|
+
requestId: 'string',
|
|
12266
|
+
};
|
|
12267
|
+
}
|
|
12268
|
+
|
|
12269
|
+
constructor(map?: { [key: string]: any }) {
|
|
12270
|
+
super(map);
|
|
12271
|
+
}
|
|
12272
|
+
}
|
|
12273
|
+
|
|
12274
|
+
export class DeleteVSwitchCidrReservationResponse extends $tea.Model {
|
|
12275
|
+
headers: { [key: string]: string };
|
|
12276
|
+
statusCode: number;
|
|
12277
|
+
body: DeleteVSwitchCidrReservationResponseBody;
|
|
12278
|
+
static names(): { [key: string]: string } {
|
|
12279
|
+
return {
|
|
12280
|
+
headers: 'headers',
|
|
12281
|
+
statusCode: 'statusCode',
|
|
12282
|
+
body: 'body',
|
|
12283
|
+
};
|
|
12284
|
+
}
|
|
12285
|
+
|
|
12286
|
+
static types(): { [key: string]: any } {
|
|
12287
|
+
return {
|
|
12288
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12289
|
+
statusCode: 'number',
|
|
12290
|
+
body: DeleteVSwitchCidrReservationResponseBody,
|
|
12291
|
+
};
|
|
12292
|
+
}
|
|
12293
|
+
|
|
12294
|
+
constructor(map?: { [key: string]: any }) {
|
|
12295
|
+
super(map);
|
|
12296
|
+
}
|
|
12297
|
+
}
|
|
12298
|
+
|
|
12221
12299
|
export class DeleteVbrHaRequest extends $tea.Model {
|
|
12222
12300
|
clientToken?: string;
|
|
12223
12301
|
instanceId?: string;
|
|
@@ -27709,6 +27787,8 @@ export class ModifyPhysicalConnectionAttributeResponse extends $tea.Model {
|
|
|
27709
27787
|
|
|
27710
27788
|
export class ModifyRouteEntryRequest extends $tea.Model {
|
|
27711
27789
|
description?: string;
|
|
27790
|
+
newNextHopId?: string;
|
|
27791
|
+
newNextHopType?: string;
|
|
27712
27792
|
ownerAccount?: string;
|
|
27713
27793
|
ownerId?: number;
|
|
27714
27794
|
regionId?: string;
|
|
@@ -27719,6 +27799,8 @@ export class ModifyRouteEntryRequest extends $tea.Model {
|
|
|
27719
27799
|
static names(): { [key: string]: string } {
|
|
27720
27800
|
return {
|
|
27721
27801
|
description: 'Description',
|
|
27802
|
+
newNextHopId: 'NewNextHopId',
|
|
27803
|
+
newNextHopType: 'NewNextHopType',
|
|
27722
27804
|
ownerAccount: 'OwnerAccount',
|
|
27723
27805
|
ownerId: 'OwnerId',
|
|
27724
27806
|
regionId: 'RegionId',
|
|
@@ -27732,6 +27814,8 @@ export class ModifyRouteEntryRequest extends $tea.Model {
|
|
|
27732
27814
|
static types(): { [key: string]: any } {
|
|
27733
27815
|
return {
|
|
27734
27816
|
description: 'string',
|
|
27817
|
+
newNextHopId: 'string',
|
|
27818
|
+
newNextHopType: 'string',
|
|
27735
27819
|
ownerAccount: 'string',
|
|
27736
27820
|
ownerId: 'number',
|
|
27737
27821
|
regionId: 'string',
|
|
@@ -47048,7 +47132,7 @@ export default class Client extends OpenApi {
|
|
|
47048
47132
|
* Before you call this operation, take note of the following limits:
|
|
47049
47133
|
* * The CIDR block and the IP address pool must belong to the same region.
|
|
47050
47134
|
* * The CIDR block and the IP address pool must use the same line type.
|
|
47051
|
-
* *
|
|
47135
|
+
* * **AddPublicIpAddressPoolCidrBlock** 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 [ListPublicIpAddressPoolCidrBlocks](~~429436~~) operation to query the status of the task.
|
|
47052
47136
|
* * If the CIDR block is in the **Modifying** state, the CIDR block is being added. In this state, you can only query the CIDR block and cannot perform other operations.
|
|
47053
47137
|
* * If the CIDR block is in the **Created** state, the CIDR block is added.
|
|
47054
47138
|
* * You cannot repeatedly call the **AddPublicIpAddressPoolCidrBlock** operation to add a CIDR block to an IP address pool within the specified period of time.
|
|
@@ -47121,7 +47205,7 @@ export default class Client extends OpenApi {
|
|
|
47121
47205
|
* Before you call this operation, take note of the following limits:
|
|
47122
47206
|
* * The CIDR block and the IP address pool must belong to the same region.
|
|
47123
47207
|
* * The CIDR block and the IP address pool must use the same line type.
|
|
47124
|
-
* *
|
|
47208
|
+
* * **AddPublicIpAddressPoolCidrBlock** 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 [ListPublicIpAddressPoolCidrBlocks](~~429436~~) operation to query the status of the task.
|
|
47125
47209
|
* * If the CIDR block is in the **Modifying** state, the CIDR block is being added. In this state, you can only query the CIDR block and cannot perform other operations.
|
|
47126
47210
|
* * If the CIDR block is in the **Created** state, the CIDR block is added.
|
|
47127
47211
|
* * You cannot repeatedly call the **AddPublicIpAddressPoolCidrBlock** operation to add a CIDR block to an IP address pool within the specified period of time.
|
|
@@ -48866,8 +48950,9 @@ export default class Client extends OpenApi {
|
|
|
48866
48950
|
}
|
|
48867
48951
|
|
|
48868
48952
|
/**
|
|
48869
|
-
*
|
|
48870
|
-
* *
|
|
48953
|
+
* Before you call this operation, take note of the following items:
|
|
48954
|
+
* * After this operation is performed, the maximum bandwidth of the EIP equals that of the Internet Shared Bandwidth instance.
|
|
48955
|
+
* * You cannot repeatedly call the **CancelCommonBandwidthPackageIpBandwidth** operation within a specific time period.
|
|
48871
48956
|
*
|
|
48872
48957
|
* @param request CancelCommonBandwidthPackageIpBandwidthRequest
|
|
48873
48958
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -48922,8 +49007,9 @@ export default class Client extends OpenApi {
|
|
|
48922
49007
|
}
|
|
48923
49008
|
|
|
48924
49009
|
/**
|
|
48925
|
-
*
|
|
48926
|
-
* *
|
|
49010
|
+
* Before you call this operation, take note of the following items:
|
|
49011
|
+
* * After this operation is performed, the maximum bandwidth of the EIP equals that of the Internet Shared Bandwidth instance.
|
|
49012
|
+
* * You cannot repeatedly call the **CancelCommonBandwidthPackageIpBandwidth** operation within a specific time period.
|
|
48927
49013
|
*
|
|
48928
49014
|
* @param request CancelCommonBandwidthPackageIpBandwidthRequest
|
|
48929
49015
|
* @return CancelCommonBandwidthPackageIpBandwidthResponse
|
|
@@ -54892,7 +54978,7 @@ export default class Client extends OpenApi {
|
|
|
54892
54978
|
}
|
|
54893
54979
|
|
|
54894
54980
|
/**
|
|
54895
|
-
* You cannot repeatedly call the **DeleteCommonBandwidthPackage** operation to delete an
|
|
54981
|
+
* You cannot repeatedly call the **DeleteCommonBandwidthPackage** operation to delete an Internet Shared Bandwidth instance within the specified period of time.
|
|
54896
54982
|
*
|
|
54897
54983
|
* @param request DeleteCommonBandwidthPackageRequest
|
|
54898
54984
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -54947,7 +55033,7 @@ export default class Client extends OpenApi {
|
|
|
54947
55033
|
}
|
|
54948
55034
|
|
|
54949
55035
|
/**
|
|
54950
|
-
* You cannot repeatedly call the **DeleteCommonBandwidthPackage** operation to delete an
|
|
55036
|
+
* You cannot repeatedly call the **DeleteCommonBandwidthPackage** operation to delete an Internet Shared Bandwidth instance within the specified period of time.
|
|
54951
55037
|
*
|
|
54952
55038
|
* @param request DeleteCommonBandwidthPackageRequest
|
|
54953
55039
|
* @return DeleteCommonBandwidthPackageResponse
|
|
@@ -56464,12 +56550,12 @@ export default class Client extends OpenApi {
|
|
|
56464
56550
|
}
|
|
56465
56551
|
|
|
56466
56552
|
/**
|
|
56467
|
-
*
|
|
56553
|
+
* Before you call this operation, take note of the following items:
|
|
56554
|
+
* * Before you delete a CIDR block, make sure that it is not being used.
|
|
56555
|
+
* * **DeletePublicIpAddressPoolCidrBlock** 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 [ListPublicIpAddressPoolCidrBlocks](~~429436~~) operation to query the status of the task.
|
|
56468
56556
|
* * If the CIDR block is in the **Deleting** state, the CIDR block is being deleted. In this state, you can only query the CIDR block and cannot perform other operations.
|
|
56469
56557
|
* * If you cannot query the CIDR block, the CIDR block is deleted.
|
|
56470
56558
|
* * You cannot repeatedly call the **DeletePublicIpAddressPoolCidrBlock** operation to delete a CIDR block within the specified period of time.
|
|
56471
|
-
* ## Prerequisites
|
|
56472
|
-
* Before you delete a CIDR block, make sure that it is not being used.
|
|
56473
56559
|
*
|
|
56474
56560
|
* @param request DeletePublicIpAddressPoolCidrBlockRequest
|
|
56475
56561
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -56532,12 +56618,12 @@ export default class Client extends OpenApi {
|
|
|
56532
56618
|
}
|
|
56533
56619
|
|
|
56534
56620
|
/**
|
|
56535
|
-
*
|
|
56621
|
+
* Before you call this operation, take note of the following items:
|
|
56622
|
+
* * Before you delete a CIDR block, make sure that it is not being used.
|
|
56623
|
+
* * **DeletePublicIpAddressPoolCidrBlock** 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 [ListPublicIpAddressPoolCidrBlocks](~~429436~~) operation to query the status of the task.
|
|
56536
56624
|
* * If the CIDR block is in the **Deleting** state, the CIDR block is being deleted. In this state, you can only query the CIDR block and cannot perform other operations.
|
|
56537
56625
|
* * If you cannot query the CIDR block, the CIDR block is deleted.
|
|
56538
56626
|
* * You cannot repeatedly call the **DeletePublicIpAddressPoolCidrBlock** operation to delete a CIDR block within the specified period of time.
|
|
56539
|
-
* ## Prerequisites
|
|
56540
|
-
* Before you delete a CIDR block, make sure that it is not being used.
|
|
56541
56627
|
*
|
|
56542
56628
|
* @param request DeletePublicIpAddressPoolCidrBlockRequest
|
|
56543
56629
|
* @return DeletePublicIpAddressPoolCidrBlockResponse
|
|
@@ -57387,6 +57473,55 @@ export default class Client extends OpenApi {
|
|
|
57387
57473
|
return await this.deleteVSwitchWithOptions(request, runtime);
|
|
57388
57474
|
}
|
|
57389
57475
|
|
|
57476
|
+
async deleteVSwitchCidrReservationWithOptions(request: DeleteVSwitchCidrReservationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteVSwitchCidrReservationResponse> {
|
|
57477
|
+
Util.validateModel(request);
|
|
57478
|
+
let query = { };
|
|
57479
|
+
if (!Util.isUnset(request.ownerAccount)) {
|
|
57480
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
57481
|
+
}
|
|
57482
|
+
|
|
57483
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
57484
|
+
query["OwnerId"] = request.ownerId;
|
|
57485
|
+
}
|
|
57486
|
+
|
|
57487
|
+
if (!Util.isUnset(request.regionId)) {
|
|
57488
|
+
query["RegionId"] = request.regionId;
|
|
57489
|
+
}
|
|
57490
|
+
|
|
57491
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
57492
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
57493
|
+
}
|
|
57494
|
+
|
|
57495
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
57496
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
57497
|
+
}
|
|
57498
|
+
|
|
57499
|
+
if (!Util.isUnset(request.vSwitchCidrReservationId)) {
|
|
57500
|
+
query["VSwitchCidrReservationId"] = request.vSwitchCidrReservationId;
|
|
57501
|
+
}
|
|
57502
|
+
|
|
57503
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
57504
|
+
query: OpenApiUtil.query(query),
|
|
57505
|
+
});
|
|
57506
|
+
let params = new $OpenApi.Params({
|
|
57507
|
+
action: "DeleteVSwitchCidrReservation",
|
|
57508
|
+
version: "2016-04-28",
|
|
57509
|
+
protocol: "HTTPS",
|
|
57510
|
+
pathname: "/",
|
|
57511
|
+
method: "POST",
|
|
57512
|
+
authType: "AK",
|
|
57513
|
+
style: "RPC",
|
|
57514
|
+
reqBodyType: "formData",
|
|
57515
|
+
bodyType: "json",
|
|
57516
|
+
});
|
|
57517
|
+
return $tea.cast<DeleteVSwitchCidrReservationResponse>(await this.callApi(params, req, runtime), new DeleteVSwitchCidrReservationResponse({}));
|
|
57518
|
+
}
|
|
57519
|
+
|
|
57520
|
+
async deleteVSwitchCidrReservation(request: DeleteVSwitchCidrReservationRequest): Promise<DeleteVSwitchCidrReservationResponse> {
|
|
57521
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
57522
|
+
return await this.deleteVSwitchCidrReservationWithOptions(request, runtime);
|
|
57523
|
+
}
|
|
57524
|
+
|
|
57390
57525
|
async deleteVbrHaWithOptions(request: DeleteVbrHaRequest, runtime: $Util.RuntimeOptions): Promise<DeleteVbrHaResponse> {
|
|
57391
57526
|
Util.validateModel(request);
|
|
57392
57527
|
let query = { };
|
|
@@ -68234,6 +68369,14 @@ export default class Client extends OpenApi {
|
|
|
68234
68369
|
query["Description"] = request.description;
|
|
68235
68370
|
}
|
|
68236
68371
|
|
|
68372
|
+
if (!Util.isUnset(request.newNextHopId)) {
|
|
68373
|
+
query["NewNextHopId"] = request.newNextHopId;
|
|
68374
|
+
}
|
|
68375
|
+
|
|
68376
|
+
if (!Util.isUnset(request.newNextHopType)) {
|
|
68377
|
+
query["NewNextHopType"] = request.newNextHopType;
|
|
68378
|
+
}
|
|
68379
|
+
|
|
68237
68380
|
if (!Util.isUnset(request.ownerAccount)) {
|
|
68238
68381
|
query["OwnerAccount"] = request.ownerAccount;
|
|
68239
68382
|
}
|
|
@@ -70663,7 +70806,7 @@ export default class Client extends OpenApi {
|
|
|
70663
70806
|
|
|
70664
70807
|
/**
|
|
70665
70808
|
* * After you call the **ReleaseEipSegmentAddress** operation, all EIPs in the specified group are released.
|
|
70666
|
-
* *
|
|
70809
|
+
* * **ReleaseEipSegmentAddress** 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 [DescribeEipSegment](~~156063~~) operation to query the status of the task.
|
|
70667
70810
|
* * If the group is in the **Releasing** state, EIPs in the group are being released. In this state, you can only query the group and cannot perform other operations.
|
|
70668
70811
|
* * If you cannot query the group of contiguous EIPs, the contiguous EIPs are released.
|
|
70669
70812
|
* * You cannot repeatedly call the **ReleaseEipSegmentAddress** operation to release a group of contiguous EIPs within the specified period of time.
|
|
@@ -70722,7 +70865,7 @@ export default class Client extends OpenApi {
|
|
|
70722
70865
|
|
|
70723
70866
|
/**
|
|
70724
70867
|
* * After you call the **ReleaseEipSegmentAddress** operation, all EIPs in the specified group are released.
|
|
70725
|
-
* *
|
|
70868
|
+
* * **ReleaseEipSegmentAddress** 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 [DescribeEipSegment](~~156063~~) operation to query the status of the task.
|
|
70726
70869
|
* * If the group is in the **Releasing** state, EIPs in the group are being released. In this state, you can only query the group and cannot perform other operations.
|
|
70727
70870
|
* * If you cannot query the group of contiguous EIPs, the contiguous EIPs are released.
|
|
70728
70871
|
* * You cannot repeatedly call the **ReleaseEipSegmentAddress** operation to release a group of contiguous EIPs within the specified period of time.
|
|
@@ -71816,10 +71959,10 @@ export default class Client extends OpenApi {
|
|
|
71816
71959
|
}
|
|
71817
71960
|
|
|
71818
71961
|
/**
|
|
71819
|
-
* * **UnassociateEipAddress** is an asynchronous operation. After
|
|
71962
|
+
* * **UnassociateEipAddress** 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 [DescribeEipAddresses](~~120193~~) operation to query the status of the task.
|
|
71820
71963
|
* * If the EIP is in the **Unassociating** state, the EIP is being disassociated. In this state, you can only query the EIP and cannot perform other operations.
|
|
71821
71964
|
* * If the EIP is in the **Available** state, the EIP is disassociated.
|
|
71822
|
-
* * You cannot repeatedly call the **UnassociateEipAddress** operation
|
|
71965
|
+
* * You cannot repeatedly call the **UnassociateEipAddress** operation within the specified period of time.
|
|
71823
71966
|
*
|
|
71824
71967
|
* @param request UnassociateEipAddressRequest
|
|
71825
71968
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -71890,10 +72033,10 @@ export default class Client extends OpenApi {
|
|
|
71890
72033
|
}
|
|
71891
72034
|
|
|
71892
72035
|
/**
|
|
71893
|
-
* * **UnassociateEipAddress** is an asynchronous operation. After
|
|
72036
|
+
* * **UnassociateEipAddress** 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 [DescribeEipAddresses](~~120193~~) operation to query the status of the task.
|
|
71894
72037
|
* * If the EIP is in the **Unassociating** state, the EIP is being disassociated. In this state, you can only query the EIP and cannot perform other operations.
|
|
71895
72038
|
* * If the EIP is in the **Available** state, the EIP is disassociated.
|
|
71896
|
-
* * You cannot repeatedly call the **UnassociateEipAddress** operation
|
|
72039
|
+
* * You cannot repeatedly call the **UnassociateEipAddress** operation within the specified period of time.
|
|
71897
72040
|
*
|
|
71898
72041
|
* @param request UnassociateEipAddressRequest
|
|
71899
72042
|
* @return UnassociateEipAddressResponse
|