@alicloud/vpc20160428 6.8.1 → 6.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/vpc20160428",
3
- "version": "6.8.1",
3
+ "version": "6.8.3",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5,6 +5,58 @@ import OpenApi from '@alicloud/openapi-core';
5
5
  import { OpenApiUtil, $OpenApiUtil } from '@alicloud/openapi-core';
6
6
  import * as $dara from '@darabonba/typescript';
7
7
 
8
+ export class AllocateEipAddressRequestTag extends $dara.Model {
9
+ key?: string;
10
+ value?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ key: 'Key',
14
+ value: 'Value',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ key: 'string',
21
+ value: 'string',
22
+ };
23
+ }
24
+
25
+ validate() {
26
+ super.validate();
27
+ }
28
+
29
+ constructor(map?: { [key: string]: any }) {
30
+ super(map);
31
+ }
32
+ }
33
+
34
+ export class AllocateEipAddressProRequestTag extends $dara.Model {
35
+ key?: string;
36
+ value?: string;
37
+ static names(): { [key: string]: string } {
38
+ return {
39
+ key: 'Key',
40
+ value: 'Value',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ key: 'string',
47
+ value: 'string',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
8
60
  export class AllocateIpv6AddressRequestTag extends $dara.Model {
9
61
  /**
10
62
  * @remarks
@@ -166,6 +218,32 @@ export class AssociateNetworkAclRequestResource extends $dara.Model {
166
218
  }
167
219
  }
168
220
 
221
+ export class CreateCommonBandwidthPackageRequestTag extends $dara.Model {
222
+ key?: string;
223
+ value?: string;
224
+ static names(): { [key: string]: string } {
225
+ return {
226
+ key: 'Key',
227
+ value: 'Value',
228
+ };
229
+ }
230
+
231
+ static types(): { [key: string]: any } {
232
+ return {
233
+ key: 'string',
234
+ value: 'string',
235
+ };
236
+ }
237
+
238
+ validate() {
239
+ super.validate();
240
+ }
241
+
242
+ constructor(map?: { [key: string]: any }) {
243
+ super(map);
244
+ }
245
+ }
246
+
169
247
  export class CreateCustomerGatewayRequestTags extends $dara.Model {
170
248
  /**
171
249
  * @remarks
@@ -11067,6 +11145,7 @@ export class DescribeIpv6GatewaysResponseBodyIpv6GatewaysIpv6Gateway extends $da
11067
11145
  * ipv6GW
11068
11146
  */
11069
11147
  name?: string;
11148
+ ownerId?: string;
11070
11149
  /**
11071
11150
  * @remarks
11072
11151
  * The ID of the region in which the IPv6 gateway is deployed.
@@ -11116,6 +11195,7 @@ export class DescribeIpv6GatewaysResponseBodyIpv6GatewaysIpv6Gateway extends $da
11116
11195
  instanceChargeType: 'InstanceChargeType',
11117
11196
  ipv6GatewayId: 'Ipv6GatewayId',
11118
11197
  name: 'Name',
11198
+ ownerId: 'OwnerId',
11119
11199
  regionId: 'RegionId',
11120
11200
  resourceGroupId: 'ResourceGroupId',
11121
11201
  status: 'Status',
@@ -11133,6 +11213,7 @@ export class DescribeIpv6GatewaysResponseBodyIpv6GatewaysIpv6Gateway extends $da
11133
11213
  instanceChargeType: 'string',
11134
11214
  ipv6GatewayId: 'string',
11135
11215
  name: 'string',
11216
+ ownerId: 'string',
11136
11217
  regionId: 'string',
11137
11218
  resourceGroupId: 'string',
11138
11219
  status: 'string',
@@ -34364,6 +34445,8 @@ export class UpdateNetworkAclEntriesRequestIngressAclEntries extends $dara.Model
34364
34445
  export class WithdrawVpcPublishedRouteEntriesRequestRouteEntries extends $dara.Model {
34365
34446
  /**
34366
34447
  * @remarks
34448
+ * The destination CIDR block
34449
+ *
34367
34450
  * This parameter is required.
34368
34451
  *
34369
34452
  * @example
@@ -34372,6 +34455,8 @@ export class WithdrawVpcPublishedRouteEntriesRequestRouteEntries extends $dara.M
34372
34455
  destinationCidrBlock?: string;
34373
34456
  /**
34374
34457
  * @remarks
34458
+ * The ID of the route table.
34459
+ *
34375
34460
  * This parameter is required.
34376
34461
  *
34377
34462
  * @example
@@ -36007,6 +36092,7 @@ export class AllocateEipAddressRequest extends $dara.Model {
36007
36092
  * AntiDDoS_Enhanced
36008
36093
  */
36009
36094
  securityProtectionTypes?: string[];
36095
+ tag?: AllocateEipAddressRequestTag[];
36010
36096
  /**
36011
36097
  * @remarks
36012
36098
  * The zone of the EIP.
@@ -36043,6 +36129,7 @@ export class AllocateEipAddressRequest extends $dara.Model {
36043
36129
  resourceOwnerAccount: 'ResourceOwnerAccount',
36044
36130
  resourceOwnerId: 'ResourceOwnerId',
36045
36131
  securityProtectionTypes: 'SecurityProtectionTypes',
36132
+ tag: 'Tag',
36046
36133
  zone: 'Zone',
36047
36134
  };
36048
36135
  }
@@ -36071,6 +36158,7 @@ export class AllocateEipAddressRequest extends $dara.Model {
36071
36158
  resourceOwnerAccount: 'string',
36072
36159
  resourceOwnerId: 'number',
36073
36160
  securityProtectionTypes: { 'type': 'array', 'itemType': 'string' },
36161
+ tag: { 'type': 'array', 'itemType': AllocateEipAddressRequestTag },
36074
36162
  zone: 'string',
36075
36163
  };
36076
36164
  }
@@ -36079,6 +36167,9 @@ export class AllocateEipAddressRequest extends $dara.Model {
36079
36167
  if(Array.isArray(this.securityProtectionTypes)) {
36080
36168
  $dara.Model.validateArray(this.securityProtectionTypes);
36081
36169
  }
36170
+ if(Array.isArray(this.tag)) {
36171
+ $dara.Model.validateArray(this.tag);
36172
+ }
36082
36173
  super.validate();
36083
36174
  }
36084
36175
 
@@ -36388,6 +36479,7 @@ export class AllocateEipAddressProRequest extends $dara.Model {
36388
36479
  * You can configure Anti-DDoS editions for up to 10 EIPs.
36389
36480
  */
36390
36481
  securityProtectionTypes?: string[];
36482
+ tag?: AllocateEipAddressProRequestTag[];
36391
36483
  static names(): { [key: string]: string } {
36392
36484
  return {
36393
36485
  autoPay: 'AutoPay',
@@ -36409,6 +36501,7 @@ export class AllocateEipAddressProRequest extends $dara.Model {
36409
36501
  resourceOwnerAccount: 'ResourceOwnerAccount',
36410
36502
  resourceOwnerId: 'ResourceOwnerId',
36411
36503
  securityProtectionTypes: 'SecurityProtectionTypes',
36504
+ tag: 'Tag',
36412
36505
  };
36413
36506
  }
36414
36507
 
@@ -36433,6 +36526,7 @@ export class AllocateEipAddressProRequest extends $dara.Model {
36433
36526
  resourceOwnerAccount: 'string',
36434
36527
  resourceOwnerId: 'number',
36435
36528
  securityProtectionTypes: { 'type': 'array', 'itemType': 'string' },
36529
+ tag: { 'type': 'array', 'itemType': AllocateEipAddressProRequestTag },
36436
36530
  };
36437
36531
  }
36438
36532
 
@@ -36440,6 +36534,9 @@ export class AllocateEipAddressProRequest extends $dara.Model {
36440
36534
  if(Array.isArray(this.securityProtectionTypes)) {
36441
36535
  $dara.Model.validateArray(this.securityProtectionTypes);
36442
36536
  }
36537
+ if(Array.isArray(this.tag)) {
36538
+ $dara.Model.validateArray(this.tag);
36539
+ }
36443
36540
  super.validate();
36444
36541
  }
36445
36542
 
@@ -41505,9 +41602,9 @@ export class CreateBgpPeerRequest extends $dara.Model {
41505
41602
  * @remarks
41506
41603
  * The BFD hop count. Valid values: **1** to **255**.
41507
41604
  *
41508
- * This parameter is required only if you enable BFD.
41605
+ * This parameter is required only if you enable BFD. The parameter specifies the maximum number of network devices that a packet can traverse from the source to the destination. Set a value based on your network topology.
41509
41606
  *
41510
- * The parameter specifies the maximum number of network devices that a packet can traverse from the source to the destination. Set a value based on your network topology.
41607
+ * > If you use BFD in a multi-cloud environment or a fiber-optic direct connection network without any bridge device, you need to change the default BFD hop count from **255** to **1**.
41511
41608
  *
41512
41609
  * @example
41513
41610
  * 3
@@ -41808,6 +41905,7 @@ export class CreateCommonBandwidthPackageRequest extends $dara.Model {
41808
41905
  * AntiDDoS_Enhanced
41809
41906
  */
41810
41907
  securityProtectionTypes?: string[];
41908
+ tag?: CreateCommonBandwidthPackageRequestTag[];
41811
41909
  /**
41812
41910
  * @remarks
41813
41911
  * The zone of the Internet Shared Bandwidth instance. This parameter is required if you create an Internet Shared Bandwidth instance for a cloud box.
@@ -41832,6 +41930,7 @@ export class CreateCommonBandwidthPackageRequest extends $dara.Model {
41832
41930
  resourceOwnerAccount: 'ResourceOwnerAccount',
41833
41931
  resourceOwnerId: 'ResourceOwnerId',
41834
41932
  securityProtectionTypes: 'SecurityProtectionTypes',
41933
+ tag: 'Tag',
41835
41934
  zone: 'Zone',
41836
41935
  };
41837
41936
  }
@@ -41852,6 +41951,7 @@ export class CreateCommonBandwidthPackageRequest extends $dara.Model {
41852
41951
  resourceOwnerAccount: 'string',
41853
41952
  resourceOwnerId: 'number',
41854
41953
  securityProtectionTypes: { 'type': 'array', 'itemType': 'string' },
41954
+ tag: { 'type': 'array', 'itemType': CreateCommonBandwidthPackageRequestTag },
41855
41955
  zone: 'string',
41856
41956
  };
41857
41957
  }
@@ -41860,6 +41960,9 @@ export class CreateCommonBandwidthPackageRequest extends $dara.Model {
41860
41960
  if(Array.isArray(this.securityProtectionTypes)) {
41861
41961
  $dara.Model.validateArray(this.securityProtectionTypes);
41862
41962
  }
41963
+ if(Array.isArray(this.tag)) {
41964
+ $dara.Model.validateArray(this.tag);
41965
+ }
41863
41966
  super.validate();
41864
41967
  }
41865
41968
 
@@ -60860,6 +60963,8 @@ export class DeleteRouteEntriesRequest extends $dara.Model {
60860
60963
  *
60861
60964
  * You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
60862
60965
  *
60966
+ * This parameter is required.
60967
+ *
60863
60968
  * @example
60864
60969
  * cn-hangzhou
60865
60970
  */
@@ -62305,6 +62410,7 @@ export class DeleteTrafficMirrorSessionResponse extends $dara.Model {
62305
62410
  }
62306
62411
 
62307
62412
  export class DeleteVSwitchRequest extends $dara.Model {
62413
+ dryRun?: boolean;
62308
62414
  ownerAccount?: string;
62309
62415
  ownerId?: number;
62310
62416
  /**
@@ -62331,6 +62437,7 @@ export class DeleteVSwitchRequest extends $dara.Model {
62331
62437
  vSwitchId?: string;
62332
62438
  static names(): { [key: string]: string } {
62333
62439
  return {
62440
+ dryRun: 'DryRun',
62334
62441
  ownerAccount: 'OwnerAccount',
62335
62442
  ownerId: 'OwnerId',
62336
62443
  regionId: 'RegionId',
@@ -62342,6 +62449,7 @@ export class DeleteVSwitchRequest extends $dara.Model {
62342
62449
 
62343
62450
  static types(): { [key: string]: any } {
62344
62451
  return {
62452
+ dryRun: 'boolean',
62345
62453
  ownerAccount: 'string',
62346
62454
  ownerId: 'number',
62347
62455
  regionId: 'string',
@@ -65015,7 +65123,7 @@ export class DescribeBgpNetworksRequest extends $dara.Model {
65015
65123
  ownerId?: number;
65016
65124
  /**
65017
65125
  * @remarks
65018
- * The page number. Default value: **1**.
65126
+ * The number of the returned page. Default value: **1**.
65019
65127
  *
65020
65128
  * @example
65021
65129
  * 1
@@ -65023,7 +65131,7 @@ export class DescribeBgpNetworksRequest extends $dara.Model {
65023
65131
  pageNumber?: number;
65024
65132
  /**
65025
65133
  * @remarks
65026
- * The number of entries per page. Maximum value: **50**. Default value: **10**.
65134
+ * The number of entries per page. The maximum value is **50**. Default value: **10**.
65027
65135
  *
65028
65136
  * @example
65029
65137
  * 10
@@ -65089,7 +65197,7 @@ export class DescribeBgpNetworksRequest extends $dara.Model {
65089
65197
  export class DescribeBgpNetworksResponseBody extends $dara.Model {
65090
65198
  /**
65091
65199
  * @remarks
65092
- * The BGP network.
65200
+ * BGP networks.
65093
65201
  */
65094
65202
  bgpNetworks?: DescribeBgpNetworksResponseBodyBgpNetworks;
65095
65203
  /**
@@ -71228,6 +71336,7 @@ export class DescribeIpv6GatewayAttributeResponseBody extends $dara.Model {
71228
71336
  * test
71229
71337
  */
71230
71338
  name?: string;
71339
+ ownerId?: string;
71231
71340
  /**
71232
71341
  * @remarks
71233
71342
  * The ID of the region where the IPv6 gateway is deployed.
@@ -71286,6 +71395,7 @@ export class DescribeIpv6GatewayAttributeResponseBody extends $dara.Model {
71286
71395
  instanceChargeType: 'InstanceChargeType',
71287
71396
  ipv6GatewayId: 'Ipv6GatewayId',
71288
71397
  name: 'Name',
71398
+ ownerId: 'OwnerId',
71289
71399
  regionId: 'RegionId',
71290
71400
  requestId: 'RequestId',
71291
71401
  resourceGroupId: 'ResourceGroupId',
@@ -71305,6 +71415,7 @@ export class DescribeIpv6GatewayAttributeResponseBody extends $dara.Model {
71305
71415
  instanceChargeType: 'string',
71306
71416
  ipv6GatewayId: 'string',
71307
71417
  name: 'string',
71418
+ ownerId: 'string',
71308
71419
  regionId: 'string',
71309
71420
  requestId: 'string',
71310
71421
  resourceGroupId: 'string',
@@ -113322,6 +113433,12 @@ export class VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResponse extends $dara
113322
113433
 
113323
113434
  export class WithdrawVpcPublishedRouteEntriesRequest extends $dara.Model {
113324
113435
  /**
113436
+ * @remarks
113437
+ * Specifies whether to perform only a dry run, without performing the actual request. Valid values:
113438
+ *
113439
+ * * **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
113440
+ * * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
113441
+ *
113325
113442
  * @example
113326
113443
  * false
113327
113444
  */
@@ -113329,15 +113446,24 @@ export class WithdrawVpcPublishedRouteEntriesRequest extends $dara.Model {
113329
113446
  ownerAccount?: string;
113330
113447
  ownerId?: number;
113331
113448
  /**
113449
+ * @remarks
113450
+ * The ID of the region. Call the DescribeRegions operation to access it.
113451
+ *
113332
113452
  * @example
113333
113453
  * cn-hangzhou
113334
113454
  */
113335
113455
  regionId?: string;
113336
113456
  resourceOwnerAccount?: string;
113337
113457
  resourceOwnerId?: number;
113458
+ /**
113459
+ * @remarks
113460
+ * The route entries to be withdrawn. Maximum value: 50.
113461
+ */
113338
113462
  routeEntries?: WithdrawVpcPublishedRouteEntriesRequestRouteEntries[];
113339
113463
  /**
113340
113464
  * @remarks
113465
+ * Target instance ID.
113466
+ *
113341
113467
  * This parameter is required.
113342
113468
  *
113343
113469
  * @example
@@ -113346,6 +113472,8 @@ export class WithdrawVpcPublishedRouteEntriesRequest extends $dara.Model {
113346
113472
  targetInstanceId?: string;
113347
113473
  /**
113348
113474
  * @remarks
113475
+ * The type of target instance.
113476
+ *
113349
113477
  * This parameter is required.
113350
113478
  *
113351
113479
  * @example
@@ -113394,6 +113522,9 @@ export class WithdrawVpcPublishedRouteEntriesRequest extends $dara.Model {
113394
113522
 
113395
113523
  export class WithdrawVpcPublishedRouteEntriesResponseBody extends $dara.Model {
113396
113524
  /**
113525
+ * @remarks
113526
+ * The request ID.
113527
+ *
113397
113528
  * @example
113398
113529
  * 0ED8D006-F706-4D23-88ED-E11ED28DCAC0
113399
113530
  */
@@ -114386,6 +114517,10 @@ export default class Client extends OpenApi {
114386
114517
  query["SecurityProtectionTypes"] = request.securityProtectionTypes;
114387
114518
  }
114388
114519
 
114520
+ if (!$dara.isNull(request.tag)) {
114521
+ query["Tag"] = request.tag;
114522
+ }
114523
+
114389
114524
  if (!$dara.isNull(request.zone)) {
114390
114525
  query["Zone"] = request.zone;
114391
114526
  }
@@ -114513,6 +114648,10 @@ export default class Client extends OpenApi {
114513
114648
  query["SecurityProtectionTypes"] = request.securityProtectionTypes;
114514
114649
  }
114515
114650
 
114651
+ if (!$dara.isNull(request.tag)) {
114652
+ query["Tag"] = request.tag;
114653
+ }
114654
+
114516
114655
  let req = new $OpenApiUtil.OpenApiRequest({
114517
114656
  query: OpenApiUtil.query(query),
114518
114657
  });
@@ -114554,10 +114693,13 @@ export default class Client extends OpenApi {
114554
114693
  * * If the contiguous EIP group is in the **Allocating** state, the EIPs are being allocated. In this case, you can only perform the query operation and cannot perform other operations.
114555
114694
  * * If the contiguous EIP group is in the **Allocated** state, the EIPs are allocated.
114556
114695
  *
114696
+ * @deprecated OpenAPI AllocateEipSegmentAddress is deprecated
114697
+ *
114557
114698
  * @param request - AllocateEipSegmentAddressRequest
114558
114699
  * @param runtime - runtime options for this request RuntimeOptions
114559
114700
  * @returns AllocateEipSegmentAddressResponse
114560
114701
  */
114702
+ // Deprecated
114561
114703
  async allocateEipSegmentAddressWithOptions(request: AllocateEipSegmentAddressRequest, runtime: $dara.RuntimeOptions): Promise<AllocateEipSegmentAddressResponse> {
114562
114704
  request.validate();
114563
114705
  let query = { };
@@ -114643,9 +114785,12 @@ export default class Client extends OpenApi {
114643
114785
  * * If the contiguous EIP group is in the **Allocating** state, the EIPs are being allocated. In this case, you can only perform the query operation and cannot perform other operations.
114644
114786
  * * If the contiguous EIP group is in the **Allocated** state, the EIPs are allocated.
114645
114787
  *
114788
+ * @deprecated OpenAPI AllocateEipSegmentAddress is deprecated
114789
+ *
114646
114790
  * @param request - AllocateEipSegmentAddressRequest
114647
114791
  * @returns AllocateEipSegmentAddressResponse
114648
114792
  */
114793
+ // Deprecated
114649
114794
  async allocateEipSegmentAddress(request: AllocateEipSegmentAddressRequest): Promise<AllocateEipSegmentAddressResponse> {
114650
114795
  let runtime = new $dara.RuntimeOptions({ });
114651
114796
  return await this.allocateEipSegmentAddressWithOptions(request, runtime);
@@ -117265,6 +117410,10 @@ export default class Client extends OpenApi {
117265
117410
  query["SecurityProtectionTypes"] = request.securityProtectionTypes;
117266
117411
  }
117267
117412
 
117413
+ if (!$dara.isNull(request.tag)) {
117414
+ query["Tag"] = request.tag;
117415
+ }
117416
+
117268
117417
  if (!$dara.isNull(request.zone)) {
117269
117418
  query["Zone"] = request.zone;
117270
117419
  }
@@ -127037,6 +127186,10 @@ export default class Client extends OpenApi {
127037
127186
  async deleteVSwitchWithOptions(request: DeleteVSwitchRequest, runtime: $dara.RuntimeOptions): Promise<DeleteVSwitchResponse> {
127038
127187
  request.validate();
127039
127188
  let query = { };
127189
+ if (!$dara.isNull(request.dryRun)) {
127190
+ query["DryRun"] = request.dryRun;
127191
+ }
127192
+
127040
127193
  if (!$dara.isNull(request.ownerAccount)) {
127041
127194
  query["OwnerAccount"] = request.ownerAccount;
127042
127195
  }
@@ -148962,7 +149115,7 @@ export default class Client extends OpenApi {
148962
149115
  }
148963
149116
 
148964
149117
  /**
148965
- * 撤回VPC已发布路由
149118
+ * Withdraw advertised Virtual Private Cloud (VPC) routes.
148966
149119
  *
148967
149120
  * @param request - WithdrawVpcPublishedRouteEntriesRequest
148968
149121
  * @param runtime - runtime options for this request RuntimeOptions
@@ -149034,7 +149187,7 @@ export default class Client extends OpenApi {
149034
149187
  }
149035
149188
 
149036
149189
  /**
149037
- * 撤回VPC已发布路由
149190
+ * Withdraw advertised Virtual Private Cloud (VPC) routes.
149038
149191
  *
149039
149192
  * @param request - WithdrawVpcPublishedRouteEntriesRequest
149040
149193
  * @returns WithdrawVpcPublishedRouteEntriesResponse