@alicloud/vpc20160428 4.0.2 → 4.1.1

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.js CHANGED
@@ -10892,6 +10892,7 @@ class DescribeEipAddressesRequest extends $tea.Model {
10892
10892
  securityProtectionEnabled: 'SecurityProtectionEnabled',
10893
10893
  segmentInstanceId: 'SegmentInstanceId',
10894
10894
  status: 'Status',
10895
+ tag: 'Tag',
10895
10896
  };
10896
10897
  }
10897
10898
  static types() {
@@ -10919,6 +10920,7 @@ class DescribeEipAddressesRequest extends $tea.Model {
10919
10920
  securityProtectionEnabled: 'boolean',
10920
10921
  segmentInstanceId: 'string',
10921
10922
  status: 'string',
10923
+ tag: { 'type': 'array', 'itemType': DescribeEipAddressesRequestTag },
10922
10924
  };
10923
10925
  }
10924
10926
  }
@@ -21931,6 +21933,98 @@ class ModifySslVpnServerResponse extends $tea.Model {
21931
21933
  }
21932
21934
  }
21933
21935
  exports.ModifySslVpnServerResponse = ModifySslVpnServerResponse;
21936
+ class ModifyTunnelAttributeRequest extends $tea.Model {
21937
+ constructor(map) {
21938
+ super(map);
21939
+ }
21940
+ static names() {
21941
+ return {
21942
+ clientToken: 'ClientToken',
21943
+ ownerAccount: 'OwnerAccount',
21944
+ ownerId: 'OwnerId',
21945
+ regionId: 'RegionId',
21946
+ resourceOwnerAccount: 'ResourceOwnerAccount',
21947
+ resourceOwnerId: 'ResourceOwnerId',
21948
+ tunnelId: 'TunnelId',
21949
+ tunnelOptionsSpecification: 'TunnelOptionsSpecification',
21950
+ vpnConnectionId: 'VpnConnectionId',
21951
+ };
21952
+ }
21953
+ static types() {
21954
+ return {
21955
+ clientToken: 'string',
21956
+ ownerAccount: 'string',
21957
+ ownerId: 'number',
21958
+ regionId: 'string',
21959
+ resourceOwnerAccount: 'string',
21960
+ resourceOwnerId: 'number',
21961
+ tunnelId: 'string',
21962
+ tunnelOptionsSpecification: ModifyTunnelAttributeRequestTunnelOptionsSpecification,
21963
+ vpnConnectionId: 'string',
21964
+ };
21965
+ }
21966
+ }
21967
+ exports.ModifyTunnelAttributeRequest = ModifyTunnelAttributeRequest;
21968
+ class ModifyTunnelAttributeResponseBody extends $tea.Model {
21969
+ constructor(map) {
21970
+ super(map);
21971
+ }
21972
+ static names() {
21973
+ return {
21974
+ customerGatewayId: 'CustomerGatewayId',
21975
+ enableDpd: 'EnableDpd',
21976
+ enableNatTraversal: 'EnableNatTraversal',
21977
+ internetIp: 'InternetIp',
21978
+ remoteCaCertificate: 'RemoteCaCertificate',
21979
+ requestId: 'RequestId',
21980
+ role: 'Role',
21981
+ state: 'State',
21982
+ tunnelBgpConfig: 'TunnelBgpConfig',
21983
+ tunnelId: 'TunnelId',
21984
+ tunnelIkeConfig: 'TunnelIkeConfig',
21985
+ tunnelIpsecConfig: 'TunnelIpsecConfig',
21986
+ zoneNo: 'ZoneNo',
21987
+ };
21988
+ }
21989
+ static types() {
21990
+ return {
21991
+ customerGatewayId: 'string',
21992
+ enableDpd: 'boolean',
21993
+ enableNatTraversal: 'boolean',
21994
+ internetIp: 'string',
21995
+ remoteCaCertificate: 'string',
21996
+ requestId: 'string',
21997
+ role: 'string',
21998
+ state: 'string',
21999
+ tunnelBgpConfig: ModifyTunnelAttributeResponseBodyTunnelBgpConfig,
22000
+ tunnelId: 'string',
22001
+ tunnelIkeConfig: ModifyTunnelAttributeResponseBodyTunnelIkeConfig,
22002
+ tunnelIpsecConfig: ModifyTunnelAttributeResponseBodyTunnelIpsecConfig,
22003
+ zoneNo: 'string',
22004
+ };
22005
+ }
22006
+ }
22007
+ exports.ModifyTunnelAttributeResponseBody = ModifyTunnelAttributeResponseBody;
22008
+ class ModifyTunnelAttributeResponse extends $tea.Model {
22009
+ constructor(map) {
22010
+ super(map);
22011
+ }
22012
+ static names() {
22013
+ return {
22014
+ headers: 'headers',
22015
+ statusCode: 'statusCode',
22016
+ body: 'body',
22017
+ };
22018
+ }
22019
+ static types() {
22020
+ return {
22021
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
22022
+ statusCode: 'number',
22023
+ body: ModifyTunnelAttributeResponseBody,
22024
+ };
22025
+ }
22026
+ }
22027
+ exports.ModifyTunnelAttributeResponse = ModifyTunnelAttributeResponse;
21934
22028
  class ModifyVRouterAttributeRequest extends $tea.Model {
21935
22029
  constructor(map) {
21936
22030
  super(map);
@@ -27911,6 +28005,24 @@ class DescribeEipAddressesRequestFilter extends $tea.Model {
27911
28005
  }
27912
28006
  }
27913
28007
  exports.DescribeEipAddressesRequestFilter = DescribeEipAddressesRequestFilter;
28008
+ class DescribeEipAddressesRequestTag extends $tea.Model {
28009
+ constructor(map) {
28010
+ super(map);
28011
+ }
28012
+ static names() {
28013
+ return {
28014
+ key: 'Key',
28015
+ value: 'Value',
28016
+ };
28017
+ }
28018
+ static types() {
28019
+ return {
28020
+ key: 'string',
28021
+ value: 'string',
28022
+ };
28023
+ }
28024
+ }
28025
+ exports.DescribeEipAddressesRequestTag = DescribeEipAddressesRequestTag;
27914
28026
  class DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason extends $tea.Model {
27915
28027
  constructor(map) {
27916
28028
  super(map);
@@ -28377,6 +28489,7 @@ class DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntr
28377
28489
  internalIp: 'InternalIp',
28378
28490
  internalPort: 'InternalPort',
28379
28491
  ipProtocol: 'IpProtocol',
28492
+ natGatewayId: 'NatGatewayId',
28380
28493
  status: 'Status',
28381
28494
  };
28382
28495
  }
@@ -28390,6 +28503,7 @@ class DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntr
28390
28503
  internalIp: 'string',
28391
28504
  internalPort: 'string',
28392
28505
  ipProtocol: 'string',
28506
+ natGatewayId: 'string',
28393
28507
  status: 'string',
28394
28508
  };
28395
28509
  }
@@ -30310,14 +30424,20 @@ class DescribeRouteEntryListResponseBodyRouteEntrys extends $tea.Model {
30310
30424
  }
30311
30425
  exports.DescribeRouteEntryListResponseBodyRouteEntrys = DescribeRouteEntryListResponseBodyRouteEntrys;
30312
30426
  class DescribeRouteTableListRequestTag extends $tea.Model {
30427
+ constructor(map) {
30428
+ super(map);
30429
+ }
30313
30430
  static names() {
30314
- return {};
30431
+ return {
30432
+ key: 'Key',
30433
+ value: 'Value',
30434
+ };
30315
30435
  }
30316
30436
  static types() {
30317
- return {};
30318
- }
30319
- constructor(map) {
30320
- super(map);
30437
+ return {
30438
+ key: 'string',
30439
+ value: 'string',
30440
+ };
30321
30441
  }
30322
30442
  }
30323
30443
  exports.DescribeRouteTableListRequestTag = DescribeRouteTableListRequestTag;
@@ -30857,6 +30977,7 @@ class DescribeSnatTableEntriesResponseBodySnatTableEntriesSnatTableEntry extends
30857
30977
  }
30858
30978
  static names() {
30859
30979
  return {
30980
+ natGatewayId: 'NatGatewayId',
30860
30981
  snatEntryId: 'SnatEntryId',
30861
30982
  snatEntryName: 'SnatEntryName',
30862
30983
  snatIp: 'SnatIp',
@@ -30868,6 +30989,7 @@ class DescribeSnatTableEntriesResponseBodySnatTableEntriesSnatTableEntry extends
30868
30989
  }
30869
30990
  static types() {
30870
30991
  return {
30992
+ natGatewayId: 'string',
30871
30993
  snatEntryId: 'string',
30872
30994
  snatEntryName: 'string',
30873
30995
  snatIp: 'string',
@@ -35075,6 +35197,186 @@ class ListVpnCertificateAssociationsResponseBodyVpnCertificateRelations extends
35075
35197
  }
35076
35198
  }
35077
35199
  exports.ListVpnCertificateAssociationsResponseBodyVpnCertificateRelations = ListVpnCertificateAssociationsResponseBodyVpnCertificateRelations;
35200
+ class ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelBgpConfig extends $tea.Model {
35201
+ constructor(map) {
35202
+ super(map);
35203
+ }
35204
+ static names() {
35205
+ return {
35206
+ localAsn: 'LocalAsn',
35207
+ localBgpIp: 'LocalBgpIp',
35208
+ tunnelCidr: 'TunnelCidr',
35209
+ };
35210
+ }
35211
+ static types() {
35212
+ return {
35213
+ localAsn: 'number',
35214
+ localBgpIp: 'string',
35215
+ tunnelCidr: 'string',
35216
+ };
35217
+ }
35218
+ }
35219
+ exports.ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelBgpConfig = ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelBgpConfig;
35220
+ class ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIkeConfig extends $tea.Model {
35221
+ constructor(map) {
35222
+ super(map);
35223
+ }
35224
+ static names() {
35225
+ return {
35226
+ ikeAuthAlg: 'IkeAuthAlg',
35227
+ ikeEncAlg: 'IkeEncAlg',
35228
+ ikeLifetime: 'IkeLifetime',
35229
+ ikeMode: 'IkeMode',
35230
+ ikePfs: 'IkePfs',
35231
+ ikeVersion: 'IkeVersion',
35232
+ localId: 'LocalId',
35233
+ psk: 'Psk',
35234
+ remoteId: 'RemoteId',
35235
+ };
35236
+ }
35237
+ static types() {
35238
+ return {
35239
+ ikeAuthAlg: 'string',
35240
+ ikeEncAlg: 'string',
35241
+ ikeLifetime: 'number',
35242
+ ikeMode: 'string',
35243
+ ikePfs: 'string',
35244
+ ikeVersion: 'string',
35245
+ localId: 'string',
35246
+ psk: 'string',
35247
+ remoteId: 'string',
35248
+ };
35249
+ }
35250
+ }
35251
+ exports.ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIkeConfig = ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIkeConfig;
35252
+ class ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIpsecConfig extends $tea.Model {
35253
+ constructor(map) {
35254
+ super(map);
35255
+ }
35256
+ static names() {
35257
+ return {
35258
+ ipsecAuthAlg: 'IpsecAuthAlg',
35259
+ ipsecEncAlg: 'IpsecEncAlg',
35260
+ ipsecLifetime: 'IpsecLifetime',
35261
+ ipsecPfs: 'IpsecPfs',
35262
+ };
35263
+ }
35264
+ static types() {
35265
+ return {
35266
+ ipsecAuthAlg: 'string',
35267
+ ipsecEncAlg: 'string',
35268
+ ipsecLifetime: 'number',
35269
+ ipsecPfs: 'string',
35270
+ };
35271
+ }
35272
+ }
35273
+ exports.ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIpsecConfig = ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIpsecConfig;
35274
+ class ModifyTunnelAttributeRequestTunnelOptionsSpecification extends $tea.Model {
35275
+ constructor(map) {
35276
+ super(map);
35277
+ }
35278
+ static names() {
35279
+ return {
35280
+ enableDpd: 'EnableDpd',
35281
+ enableNatTraversal: 'EnableNatTraversal',
35282
+ remoteCaCertificate: 'RemoteCaCertificate',
35283
+ tunnelBgpConfig: 'TunnelBgpConfig',
35284
+ tunnelIkeConfig: 'TunnelIkeConfig',
35285
+ tunnelIpsecConfig: 'TunnelIpsecConfig',
35286
+ };
35287
+ }
35288
+ static types() {
35289
+ return {
35290
+ enableDpd: 'boolean',
35291
+ enableNatTraversal: 'boolean',
35292
+ remoteCaCertificate: 'string',
35293
+ tunnelBgpConfig: ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelBgpConfig,
35294
+ tunnelIkeConfig: ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIkeConfig,
35295
+ tunnelIpsecConfig: ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelIpsecConfig,
35296
+ };
35297
+ }
35298
+ }
35299
+ exports.ModifyTunnelAttributeRequestTunnelOptionsSpecification = ModifyTunnelAttributeRequestTunnelOptionsSpecification;
35300
+ class ModifyTunnelAttributeResponseBodyTunnelBgpConfig extends $tea.Model {
35301
+ constructor(map) {
35302
+ super(map);
35303
+ }
35304
+ static names() {
35305
+ return {
35306
+ enableBgp: 'EnableBgp',
35307
+ localAsn: 'LocalAsn',
35308
+ localBgpIp: 'LocalBgpIp',
35309
+ peerAsn: 'PeerAsn',
35310
+ peerBgpIp: 'PeerBgpIp',
35311
+ tunnelCidr: 'TunnelCidr',
35312
+ };
35313
+ }
35314
+ static types() {
35315
+ return {
35316
+ enableBgp: 'boolean',
35317
+ localAsn: 'number',
35318
+ localBgpIp: 'string',
35319
+ peerAsn: 'number',
35320
+ peerBgpIp: 'string',
35321
+ tunnelCidr: 'string',
35322
+ };
35323
+ }
35324
+ }
35325
+ exports.ModifyTunnelAttributeResponseBodyTunnelBgpConfig = ModifyTunnelAttributeResponseBodyTunnelBgpConfig;
35326
+ class ModifyTunnelAttributeResponseBodyTunnelIkeConfig extends $tea.Model {
35327
+ constructor(map) {
35328
+ super(map);
35329
+ }
35330
+ static names() {
35331
+ return {
35332
+ ikeAuthAlg: 'IkeAuthAlg',
35333
+ ikeEncAlg: 'IkeEncAlg',
35334
+ ikeLifetime: 'IkeLifetime',
35335
+ ikeMode: 'IkeMode',
35336
+ ikePfs: 'IkePfs',
35337
+ ikeVersion: 'IkeVersion',
35338
+ localId: 'LocalId',
35339
+ psk: 'Psk',
35340
+ remoteId: 'RemoteId',
35341
+ };
35342
+ }
35343
+ static types() {
35344
+ return {
35345
+ ikeAuthAlg: 'string',
35346
+ ikeEncAlg: 'string',
35347
+ ikeLifetime: 'number',
35348
+ ikeMode: 'string',
35349
+ ikePfs: 'string',
35350
+ ikeVersion: 'string',
35351
+ localId: 'string',
35352
+ psk: 'string',
35353
+ remoteId: 'string',
35354
+ };
35355
+ }
35356
+ }
35357
+ exports.ModifyTunnelAttributeResponseBodyTunnelIkeConfig = ModifyTunnelAttributeResponseBodyTunnelIkeConfig;
35358
+ class ModifyTunnelAttributeResponseBodyTunnelIpsecConfig extends $tea.Model {
35359
+ constructor(map) {
35360
+ super(map);
35361
+ }
35362
+ static names() {
35363
+ return {
35364
+ ipsecAuthAlg: 'IpsecAuthAlg',
35365
+ ipsecEncAlg: 'IpsecEncAlg',
35366
+ ipsecLifetime: 'IpsecLifetime',
35367
+ ipsecPfs: 'IpsecPfs',
35368
+ };
35369
+ }
35370
+ static types() {
35371
+ return {
35372
+ ipsecAuthAlg: 'string',
35373
+ ipsecEncAlg: 'string',
35374
+ ipsecLifetime: 'number',
35375
+ ipsecPfs: 'string',
35376
+ };
35377
+ }
35378
+ }
35379
+ exports.ModifyTunnelAttributeResponseBodyTunnelIpsecConfig = ModifyTunnelAttributeResponseBodyTunnelIpsecConfig;
35078
35380
  class ModifyVpcPrefixListRequestAddPrefixListEntry extends $tea.Model {
35079
35381
  constructor(map) {
35080
35382
  super(map);
@@ -42281,7 +42583,6 @@ class Client extends openapi_client_1.default {
42281
42583
  return await this.createVpnConnectionWithOptions(request, runtime);
42282
42584
  }
42283
42585
  /**
42284
- * ## Usage notes
42285
42586
  * * Before you create a VPN gateway, we recommend that you understand its limits. For more information, see [Limits on VPN gateways](~~65290~~).
42286
42587
  * * The **CreateVpnGateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call [DescribeVpnGateway](~~73720~~) to query the status of a VPN gateway.
42287
42588
  * * If the VPN gateway is in the **provisioning** state, the VPN gateway is being created.
@@ -42368,7 +42669,6 @@ class Client extends openapi_client_1.default {
42368
42669
  return $tea.cast(await this.callApi(params, req, runtime), new CreateVpnGatewayResponse({}));
42369
42670
  }
42370
42671
  /**
42371
- * ## Usage notes
42372
42672
  * * Before you create a VPN gateway, we recommend that you understand its limits. For more information, see [Limits on VPN gateways](~~65290~~).
42373
42673
  * * The **CreateVpnGateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call [DescribeVpnGateway](~~73720~~) to query the status of a VPN gateway.
42374
42674
  * * If the VPN gateway is in the **provisioning** state, the VPN gateway is being created.
@@ -43638,7 +43938,8 @@ class Client extends openapi_client_1.default {
43638
43938
  return await this.deleteIpv6EgressOnlyRuleWithOptions(request, runtime);
43639
43939
  }
43640
43940
  /**
43641
- * - The **DeleteIpv6Gateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the [DescribeIpv6GatewayAttribute](/help/en/virtual-private-cloud/latest/describeipv6gatewayattribute) operation to query the status of an IPv6 gateway: - If the IPv6 gateway is in the **Deleting** state, the IPv6 gateway is being deleted.
43941
+ * - The **DeleteIpv6Gateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the [DescribeIpv6GatewayAttribute](/help/en/virtual-private-cloud/latest/describeipv6gatewayattribute) operation to query the status of an IPv6 gateway:
43942
+ * - If the IPv6 gateway is in the **Deleting** state, the IPv6 gateway is being deleted.
43642
43943
  * - If you cannot query the IPv6 gateway, the IPv6 gateway is deleted.
43643
43944
  * - After you call the **DeleteIpv6Gateway** operation to delete an IPv6 gateway, you cannot call the operation again to delete the IPv6 gateway until the deletion task is complete.
43644
43945
  * ## Prerequisites
@@ -43689,7 +43990,8 @@ class Client extends openapi_client_1.default {
43689
43990
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteIpv6GatewayResponse({}));
43690
43991
  }
43691
43992
  /**
43692
- * - The **DeleteIpv6Gateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the [DescribeIpv6GatewayAttribute](/help/en/virtual-private-cloud/latest/describeipv6gatewayattribute) operation to query the status of an IPv6 gateway: - If the IPv6 gateway is in the **Deleting** state, the IPv6 gateway is being deleted.
43993
+ * - The **DeleteIpv6Gateway** operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the [DescribeIpv6GatewayAttribute](/help/en/virtual-private-cloud/latest/describeipv6gatewayattribute) operation to query the status of an IPv6 gateway:
43994
+ * - If the IPv6 gateway is in the **Deleting** state, the IPv6 gateway is being deleted.
43693
43995
  * - If you cannot query the IPv6 gateway, the IPv6 gateway is deleted.
43694
43996
  * - After you call the **DeleteIpv6Gateway** operation to delete an IPv6 gateway, you cannot call the operation again to delete the IPv6 gateway until the deletion task is complete.
43695
43997
  * ## Prerequisites
@@ -46182,6 +46484,9 @@ class Client extends openapi_client_1.default {
46182
46484
  if (!tea_util_1.default.isUnset(request.status)) {
46183
46485
  query["Status"] = request.status;
46184
46486
  }
46487
+ if (!tea_util_1.default.isUnset(request.tag)) {
46488
+ query["Tag"] = request.tag;
46489
+ }
46185
46490
  if (!tea_util_1.default.isUnset(request.filter)) {
46186
46491
  query["Filter"] = request.filter;
46187
46492
  }
@@ -48234,6 +48539,13 @@ class Client extends openapi_client_1.default {
48234
48539
  let runtime = new $Util.RuntimeOptions({});
48235
48540
  return await this.describeSslVpnClientCertsWithOptions(request, runtime);
48236
48541
  }
48542
+ /**
48543
+ * If your VPN gateway was created before December 10, 2022, you must upgrade your VPN gateway to the latest version before you can view connection information about SSL clients. For more information, see Upgrade a VPN gateway. If your VPN gateway was created after December 10, 2022, you can view connection information about SSL clients by default.
48544
+ *
48545
+ * @param request DescribeSslVpnClientsRequest
48546
+ * @param runtime runtime options for this request RuntimeOptions
48547
+ * @return DescribeSslVpnClientsResponse
48548
+ */
48237
48549
  async describeSslVpnClientsWithOptions(request, runtime) {
48238
48550
  tea_util_1.default.validateModel(request);
48239
48551
  let query = {};
@@ -48277,6 +48589,12 @@ class Client extends openapi_client_1.default {
48277
48589
  });
48278
48590
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeSslVpnClientsResponse({}));
48279
48591
  }
48592
+ /**
48593
+ * If your VPN gateway was created before December 10, 2022, you must upgrade your VPN gateway to the latest version before you can view connection information about SSL clients. For more information, see Upgrade a VPN gateway. If your VPN gateway was created after December 10, 2022, you can view connection information about SSL clients by default.
48594
+ *
48595
+ * @param request DescribeSslVpnClientsRequest
48596
+ * @return DescribeSslVpnClientsResponse
48597
+ */
48280
48598
  async describeSslVpnClients(request) {
48281
48599
  let runtime = new $Util.RuntimeOptions({});
48282
48600
  return await this.describeSslVpnClientsWithOptions(request, runtime);
@@ -54462,6 +54780,56 @@ class Client extends openapi_client_1.default {
54462
54780
  let runtime = new $Util.RuntimeOptions({});
54463
54781
  return await this.modifySslVpnServerWithOptions(request, runtime);
54464
54782
  }
54783
+ async modifyTunnelAttributeWithOptions(request, runtime) {
54784
+ tea_util_1.default.validateModel(request);
54785
+ let query = {};
54786
+ if (!tea_util_1.default.isUnset(request.clientToken)) {
54787
+ query["ClientToken"] = request.clientToken;
54788
+ }
54789
+ if (!tea_util_1.default.isUnset(request.ownerAccount)) {
54790
+ query["OwnerAccount"] = request.ownerAccount;
54791
+ }
54792
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
54793
+ query["OwnerId"] = request.ownerId;
54794
+ }
54795
+ if (!tea_util_1.default.isUnset(request.regionId)) {
54796
+ query["RegionId"] = request.regionId;
54797
+ }
54798
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
54799
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
54800
+ }
54801
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
54802
+ query["ResourceOwnerId"] = request.resourceOwnerId;
54803
+ }
54804
+ if (!tea_util_1.default.isUnset(request.tunnelId)) {
54805
+ query["TunnelId"] = request.tunnelId;
54806
+ }
54807
+ if (!tea_util_1.default.isUnset(request.tunnelOptionsSpecification)) {
54808
+ query["TunnelOptionsSpecification"] = request.tunnelOptionsSpecification;
54809
+ }
54810
+ if (!tea_util_1.default.isUnset(request.vpnConnectionId)) {
54811
+ query["VpnConnectionId"] = request.vpnConnectionId;
54812
+ }
54813
+ let req = new $OpenApi.OpenApiRequest({
54814
+ query: openapi_util_1.default.query(query),
54815
+ });
54816
+ let params = new $OpenApi.Params({
54817
+ action: "ModifyTunnelAttribute",
54818
+ version: "2016-04-28",
54819
+ protocol: "HTTPS",
54820
+ pathname: "/",
54821
+ method: "POST",
54822
+ authType: "AK",
54823
+ style: "RPC",
54824
+ reqBodyType: "formData",
54825
+ bodyType: "json",
54826
+ });
54827
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyTunnelAttributeResponse({}));
54828
+ }
54829
+ async modifyTunnelAttribute(request) {
54830
+ let runtime = new $Util.RuntimeOptions({});
54831
+ return await this.modifyTunnelAttributeWithOptions(request, runtime);
54832
+ }
54465
54833
  /**
54466
54834
  * You cannot repeatedly call the **ModifyVRouterAttribute** operation to modify the name and description of a vRouter within the specified period of time.
54467
54835
  *