@alicloud/vpc20160428 6.11.0 → 7.0.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.
Files changed (157) hide show
  1. package/dist/client.d.ts +2 -71
  2. package/dist/client.js +17 -182
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateForwardEntryRequest.d.ts +13 -6
  5. package/dist/models/CreateForwardEntryRequest.js.map +1 -1
  6. package/dist/models/CreateFullNatEntryRequest.d.ts +1 -2
  7. package/dist/models/CreateFullNatEntryRequest.js +2 -0
  8. package/dist/models/CreateFullNatEntryRequest.js.map +1 -1
  9. package/dist/models/CreateNatGatewayRequest.d.ts +23 -0
  10. package/dist/models/CreateNatGatewayRequest.js.map +1 -1
  11. package/dist/models/CreateNatGatewayShrinkRequest.d.ts +20 -0
  12. package/dist/models/CreateNatGatewayShrinkRequest.js.map +1 -1
  13. package/dist/models/CreateNatIpRequest.d.ts +10 -0
  14. package/dist/models/CreateNatIpRequest.js.map +1 -1
  15. package/dist/models/CreateNatIpResponseBody.d.ts +16 -0
  16. package/dist/models/CreateNatIpResponseBody.js.map +1 -1
  17. package/dist/models/CreateSnatEntryRequest.d.ts +17 -0
  18. package/dist/models/CreateSnatEntryRequest.js.map +1 -1
  19. package/dist/models/CreateVpnAttachmentRequest.d.ts +1 -0
  20. package/dist/models/CreateVpnAttachmentRequest.js +2 -0
  21. package/dist/models/CreateVpnAttachmentRequest.js.map +1 -1
  22. package/dist/models/DeleteNatIpRequest.d.ts +14 -0
  23. package/dist/models/DeleteNatIpRequest.js.map +1 -1
  24. package/dist/models/DescribeNatGatewayAssociateNetworkInterfacesResponseBody.d.ts +7 -0
  25. package/dist/models/DescribeNatGatewayAssociateNetworkInterfacesResponseBody.js.map +1 -1
  26. package/dist/models/DescribeNatGatewaysRequest.d.ts +2 -2
  27. package/dist/models/DescribeNatGatewaysResponseBody.d.ts +41 -0
  28. package/dist/models/DescribeNatGatewaysResponseBody.js.map +1 -1
  29. package/dist/models/DescribePhysicalConnectionLoaresponseBody.d.ts +1 -0
  30. package/dist/models/DescribePhysicalConnectionLoaresponseBody.js +2 -0
  31. package/dist/models/DescribePhysicalConnectionLoaresponseBody.js.map +1 -1
  32. package/dist/models/DescribeSnatTableEntriesRequest.d.ts +4 -0
  33. package/dist/models/DescribeSnatTableEntriesRequest.js.map +1 -1
  34. package/dist/models/DescribeSnatTableEntriesResponseBody.d.ts +16 -0
  35. package/dist/models/DescribeSnatTableEntriesResponseBody.js.map +1 -1
  36. package/dist/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.d.ts +1 -0
  37. package/dist/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.js +2 -0
  38. package/dist/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.js.map +1 -1
  39. package/dist/models/DescribeVpnAttachmentsResponseBody.d.ts +1 -0
  40. package/dist/models/DescribeVpnAttachmentsResponseBody.js +2 -0
  41. package/dist/models/DescribeVpnAttachmentsResponseBody.js.map +1 -1
  42. package/dist/models/DescribeVpnConnectionResponseBody.d.ts +1 -0
  43. package/dist/models/DescribeVpnConnectionResponseBody.js +2 -0
  44. package/dist/models/DescribeVpnConnectionResponseBody.js.map +1 -1
  45. package/dist/models/DescribeVpnConnectionsResponseBody.d.ts +1 -0
  46. package/dist/models/DescribeVpnConnectionsResponseBody.js +2 -0
  47. package/dist/models/DescribeVpnConnectionsResponseBody.js.map +1 -1
  48. package/dist/models/DescribeVpnGatewayAvailableZonesRequest.d.ts +1 -0
  49. package/dist/models/DescribeVpnGatewayAvailableZonesRequest.js +2 -0
  50. package/dist/models/DescribeVpnGatewayAvailableZonesRequest.js.map +1 -1
  51. package/dist/models/DescribeVpnGatewayResponseBody.d.ts +1 -0
  52. package/dist/models/DescribeVpnGatewayResponseBody.js +2 -0
  53. package/dist/models/DescribeVpnGatewayResponseBody.js.map +1 -1
  54. package/dist/models/DescribeVpnGatewaysRequest.d.ts +1 -0
  55. package/dist/models/DescribeVpnGatewaysRequest.js +2 -0
  56. package/dist/models/DescribeVpnGatewaysRequest.js.map +1 -1
  57. package/dist/models/DescribeVpnGatewaysResponseBody.d.ts +1 -0
  58. package/dist/models/DescribeVpnGatewaysResponseBody.js +2 -0
  59. package/dist/models/DescribeVpnGatewaysResponseBody.js.map +1 -1
  60. package/dist/models/GetNatGatewayAttributeResponseBody.d.ts +64 -0
  61. package/dist/models/GetNatGatewayAttributeResponseBody.js.map +1 -1
  62. package/dist/models/GetRouteTargetGroupResponseBody.d.ts +9 -1
  63. package/dist/models/GetRouteTargetGroupResponseBody.js.map +1 -1
  64. package/dist/models/ListFullNatEntriesResponseBody.d.ts +2 -0
  65. package/dist/models/ListFullNatEntriesResponseBody.js +4 -0
  66. package/dist/models/ListFullNatEntriesResponseBody.js.map +1 -1
  67. package/dist/models/ListNatIpsRequest.d.ts +11 -0
  68. package/dist/models/ListNatIpsRequest.js +2 -0
  69. package/dist/models/ListNatIpsRequest.js.map +1 -1
  70. package/dist/models/ListNatIpsResponseBody.d.ts +7 -0
  71. package/dist/models/ListNatIpsResponseBody.js.map +1 -1
  72. package/dist/models/ModifyForwardEntryRequest.d.ts +11 -0
  73. package/dist/models/ModifyForwardEntryRequest.js.map +1 -1
  74. package/dist/models/ModifyFullNatEntryAttributeRequest.d.ts +1 -0
  75. package/dist/models/ModifyFullNatEntryAttributeRequest.js +2 -0
  76. package/dist/models/ModifyFullNatEntryAttributeRequest.js.map +1 -1
  77. package/dist/models/ModifyNatGatewayAttributeRequest.d.ts +32 -7
  78. package/dist/models/ModifyNatGatewayAttributeRequest.js.map +1 -1
  79. package/dist/models/ModifyNatGatewayAttributeShrinkRequest.d.ts +18 -7
  80. package/dist/models/ModifyNatGatewayAttributeShrinkRequest.js.map +1 -1
  81. package/dist/models/ModifySnatEntryRequest.d.ts +26 -0
  82. package/dist/models/ModifySnatEntryRequest.js.map +1 -1
  83. package/dist/models/model.d.ts +0 -9
  84. package/dist/models/model.js +23 -41
  85. package/dist/models/model.js.map +1 -1
  86. package/package.json +1 -1
  87. package/src/client.ts +22 -203
  88. package/src/models/CreateForwardEntryRequest.ts +13 -6
  89. package/src/models/CreateFullNatEntryRequest.ts +3 -2
  90. package/src/models/CreateNatGatewayRequest.ts +23 -0
  91. package/src/models/CreateNatGatewayShrinkRequest.ts +20 -0
  92. package/src/models/CreateNatIpRequest.ts +10 -0
  93. package/src/models/CreateNatIpResponseBody.ts +16 -0
  94. package/src/models/CreateSnatEntryRequest.ts +17 -0
  95. package/src/models/CreateVpnAttachmentRequest.ts +3 -0
  96. package/src/models/DeleteNatIpRequest.ts +14 -0
  97. package/src/models/DescribeNatGatewayAssociateNetworkInterfacesResponseBody.ts +7 -0
  98. package/src/models/DescribeNatGatewaysRequest.ts +2 -2
  99. package/src/models/DescribeNatGatewaysResponseBody.ts +41 -0
  100. package/src/models/DescribePhysicalConnectionLoaresponseBody.ts +3 -0
  101. package/src/models/DescribeSnatTableEntriesRequest.ts +4 -0
  102. package/src/models/DescribeSnatTableEntriesResponseBody.ts +16 -0
  103. package/src/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.ts +3 -0
  104. package/src/models/DescribeVpnAttachmentsResponseBody.ts +3 -0
  105. package/src/models/DescribeVpnConnectionResponseBody.ts +3 -0
  106. package/src/models/DescribeVpnConnectionsResponseBody.ts +3 -0
  107. package/src/models/DescribeVpnGatewayAvailableZonesRequest.ts +3 -0
  108. package/src/models/DescribeVpnGatewayResponseBody.ts +3 -0
  109. package/src/models/DescribeVpnGatewaysRequest.ts +3 -0
  110. package/src/models/DescribeVpnGatewaysResponseBody.ts +3 -0
  111. package/src/models/GetNatGatewayAttributeResponseBody.ts +64 -0
  112. package/src/models/GetRouteTargetGroupResponseBody.ts +9 -1
  113. package/src/models/ListFullNatEntriesResponseBody.ts +6 -0
  114. package/src/models/ListNatIpsRequest.ts +13 -0
  115. package/src/models/ListNatIpsResponseBody.ts +7 -0
  116. package/src/models/ModifyForwardEntryRequest.ts +11 -0
  117. package/src/models/ModifyFullNatEntryAttributeRequest.ts +3 -0
  118. package/src/models/ModifyNatGatewayAttributeRequest.ts +32 -7
  119. package/src/models/ModifyNatGatewayAttributeShrinkRequest.ts +18 -7
  120. package/src/models/ModifySnatEntryRequest.ts +26 -0
  121. package/src/models/model.ts +0 -9
  122. package/dist/models/ConvertBandwidthPackageRequest.d.ts +0 -44
  123. package/dist/models/ConvertBandwidthPackageRequest.js +0 -68
  124. package/dist/models/ConvertBandwidthPackageRequest.js.map +0 -1
  125. package/dist/models/ConvertBandwidthPackageResponse.d.ts +0 -19
  126. package/dist/models/ConvertBandwidthPackageResponse.js +0 -69
  127. package/dist/models/ConvertBandwidthPackageResponse.js.map +0 -1
  128. package/dist/models/ConvertBandwidthPackageResponseBody.d.ts +0 -29
  129. package/dist/models/ConvertBandwidthPackageResponseBody.js +0 -60
  130. package/dist/models/ConvertBandwidthPackageResponseBody.js.map +0 -1
  131. package/dist/models/DisableNatGatewayEcsMetricRequest.d.ts +0 -45
  132. package/dist/models/DisableNatGatewayEcsMetricRequest.js +0 -62
  133. package/dist/models/DisableNatGatewayEcsMetricRequest.js.map +0 -1
  134. package/dist/models/DisableNatGatewayEcsMetricResponse.d.ts +0 -19
  135. package/dist/models/DisableNatGatewayEcsMetricResponse.js +0 -69
  136. package/dist/models/DisableNatGatewayEcsMetricResponse.js.map +0 -1
  137. package/dist/models/DisableNatGatewayEcsMetricResponseBody.d.ts +0 -21
  138. package/dist/models/DisableNatGatewayEcsMetricResponseBody.js +0 -58
  139. package/dist/models/DisableNatGatewayEcsMetricResponseBody.js.map +0 -1
  140. package/dist/models/EnableNatGatewayEcsMetricRequest.d.ts +0 -45
  141. package/dist/models/EnableNatGatewayEcsMetricRequest.js +0 -62
  142. package/dist/models/EnableNatGatewayEcsMetricRequest.js.map +0 -1
  143. package/dist/models/EnableNatGatewayEcsMetricResponse.d.ts +0 -19
  144. package/dist/models/EnableNatGatewayEcsMetricResponse.js +0 -69
  145. package/dist/models/EnableNatGatewayEcsMetricResponse.js.map +0 -1
  146. package/dist/models/EnableNatGatewayEcsMetricResponseBody.d.ts +0 -21
  147. package/dist/models/EnableNatGatewayEcsMetricResponseBody.js +0 -58
  148. package/dist/models/EnableNatGatewayEcsMetricResponseBody.js.map +0 -1
  149. package/src/models/ConvertBandwidthPackageRequest.ts +0 -67
  150. package/src/models/ConvertBandwidthPackageResponse.ts +0 -40
  151. package/src/models/ConvertBandwidthPackageResponseBody.ts +0 -44
  152. package/src/models/DisableNatGatewayEcsMetricRequest.ts +0 -62
  153. package/src/models/DisableNatGatewayEcsMetricResponse.ts +0 -40
  154. package/src/models/DisableNatGatewayEcsMetricResponseBody.ts +0 -34
  155. package/src/models/EnableNatGatewayEcsMetricRequest.ts +0 -62
  156. package/src/models/EnableNatGatewayEcsMetricResponse.ts +0 -40
  157. package/src/models/EnableNatGatewayEcsMetricResponseBody.ts +0 -34
@@ -3,7 +3,24 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class GetNatGatewayAttributeResponseBodyAccessMode extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Access mode values:
9
+ * - **route**: Route mode.
10
+ * - **tunnel**: Tunnel mode.
11
+ *
12
+ * @example
13
+ * route
14
+ */
6
15
  modeValue?: string;
16
+ /**
17
+ * @remarks
18
+ * Tunnel mode type:
19
+ * - **geneve**: Geneve type.
20
+ *
21
+ * @example
22
+ * geneve
23
+ */
7
24
  tunnelType?: string;
8
25
  static names(): { [key: string]: string } {
9
26
  return {
@@ -272,9 +289,39 @@ export class GetNatGatewayAttributeResponseBodyIpList extends $dara.Model {
272
289
  }
273
290
 
274
291
  export class GetNatGatewayAttributeResponseBodyLogDelivery extends $dara.Model {
292
+ /**
293
+ * @remarks
294
+ * Error message for session log write failure.
295
+ *
296
+ * @example
297
+ * LogStoreNotExist: logstore session_log_test does not exist
298
+ */
275
299
  deliverLogsErrorMessage?: string;
300
+ /**
301
+ * @remarks
302
+ * Session log write status. Values:
303
+ * - **Success**: Success.
304
+ * - **Failure**: Failure.
305
+ *
306
+ * @example
307
+ * Failure
308
+ */
276
309
  deliveryStatus?: string;
310
+ /**
311
+ * @remarks
312
+ * Session log delivery destination type. Value: **sls**, Alibaba Cloud Log Service SLS.
313
+ *
314
+ * @example
315
+ * sls
316
+ */
277
317
  logDeliveryType?: string;
318
+ /**
319
+ * @remarks
320
+ * Destination address for session log writing
321
+ *
322
+ * @example
323
+ * acs:log:cn-hangzhou:0000:project/nat_session_log_project/logstore/session_log_test
324
+ */
278
325
  logDestination?: string;
279
326
  static names(): { [key: string]: string } {
280
327
  return {
@@ -414,6 +461,10 @@ export class GetNatGatewayAttributeResponseBodySnatTable extends $dara.Model {
414
461
  }
415
462
 
416
463
  export class GetNatGatewayAttributeResponseBody extends $dara.Model {
464
+ /**
465
+ * @remarks
466
+ * Access mode for reverse access to VPC NAT gateway.
467
+ */
417
468
  accessMode?: GetNatGatewayAttributeResponseBodyAccessMode;
418
469
  /**
419
470
  * @remarks
@@ -463,6 +514,15 @@ export class GetNatGatewayAttributeResponseBody extends $dara.Model {
463
514
  * true
464
515
  */
465
516
  ecsMetricEnabled?: boolean;
517
+ /**
518
+ * @remarks
519
+ * Whether to enable session log, with values:
520
+ * - **true**: Session logging is enabled.
521
+ * - **false**: Session logging is disabled.
522
+ *
523
+ * @example
524
+ * true
525
+ */
466
526
  enableSessionLog?: boolean;
467
527
  /**
468
528
  * @remarks
@@ -487,6 +547,10 @@ export class GetNatGatewayAttributeResponseBody extends $dara.Model {
487
547
  * The elastic IP addresses (EIPs) that are associated with the Internet NAT gateway.
488
548
  */
489
549
  ipList?: GetNatGatewayAttributeResponseBodyIpList[];
550
+ /**
551
+ * @remarks
552
+ * Session log configuration information.
553
+ */
490
554
  logDelivery?: GetNatGatewayAttributeResponseBodyLogDelivery;
491
555
  /**
492
556
  * @remarks
@@ -202,7 +202,15 @@ export class GetRouteTargetGroupResponseBody extends $dara.Model {
202
202
  routeTargetMemberList?: GetRouteTargetGroupResponseBodyRouteTargetMemberList[];
203
203
  /**
204
204
  * @remarks
205
- * Status of the route target group.
205
+ * The status of the route target group. Values:
206
+ * - **Recovering**: In the process of switching back to the primary
207
+ * - **Switched**: The primary and secondary have been switched
208
+ * - **Available**: Available
209
+ * - **Abnormal**: Secondary instance is abnormal
210
+ * - **Pending**: In the process of being created
211
+ * - **Switching**: In the process of switching between primary and secondary
212
+ * - **Deleting**: In the process of being deleted
213
+ * - **Unavailable**: Both primary and secondary instances are abnormal
206
214
  *
207
215
  * @example
208
216
  * Available
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListFullNatEntriesResponseBodyFullNatEntries extends $dara.Model {
6
+ accessDomain?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The backend IP address that is used for FULLNAT address translation in FULLNAT entries.
@@ -27,6 +28,7 @@ export class ListFullNatEntriesResponseBodyFullNatEntries extends $dara.Model {
27
28
  * 2021-10-27T02:44:40Z
28
29
  */
29
30
  creationTime?: string;
31
+ domainResolve?: string;
30
32
  /**
31
33
  * @remarks
32
34
  * The description of the FULLNAT entry.
@@ -121,9 +123,11 @@ export class ListFullNatEntriesResponseBodyFullNatEntries extends $dara.Model {
121
123
  networkInterfaceType?: string;
122
124
  static names(): { [key: string]: string } {
123
125
  return {
126
+ accessDomain: 'AccessDomain',
124
127
  accessIp: 'AccessIp',
125
128
  accessPort: 'AccessPort',
126
129
  creationTime: 'CreationTime',
130
+ domainResolve: 'DomainResolve',
127
131
  fullNatEntryDescription: 'FullNatEntryDescription',
128
132
  fullNatEntryId: 'FullNatEntryId',
129
133
  fullNatEntryName: 'FullNatEntryName',
@@ -139,9 +143,11 @@ export class ListFullNatEntriesResponseBodyFullNatEntries extends $dara.Model {
139
143
 
140
144
  static types(): { [key: string]: any } {
141
145
  return {
146
+ accessDomain: 'string',
142
147
  accessIp: 'string',
143
148
  accessPort: 'string',
144
149
  creationTime: 'string',
150
+ domainResolve: 'string',
145
151
  fullNatEntryDescription: 'string',
146
152
  fullNatEntryId: 'string',
147
153
  fullNatEntryName: 'string',
@@ -27,10 +27,21 @@ export class ListNatIpsRequest extends $dara.Model {
27
27
  */
28
28
  dryRun?: boolean;
29
29
  /**
30
+ * @remarks
31
+ * The enumeration of the fields used to describe the source of the NatIp. Prefix indicates the NatIp that belongs to the IPv4Prefix. The value cidr indicates isolated NatIp. The value control indicates all NatIp.
32
+ *
30
33
  * @example
31
34
  * cidr
32
35
  */
33
36
  ipOrigin?: string;
37
+ /**
38
+ * @remarks
39
+ * The IP prefix address range.
40
+ *
41
+ * @example
42
+ * 192.168.0.0/28
43
+ */
44
+ ipv4Prefix?: string;
34
45
  /**
35
46
  * @remarks
36
47
  * The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.
@@ -117,6 +128,7 @@ export class ListNatIpsRequest extends $dara.Model {
117
128
  clientToken: 'ClientToken',
118
129
  dryRun: 'DryRun',
119
130
  ipOrigin: 'IpOrigin',
131
+ ipv4Prefix: 'Ipv4Prefix',
120
132
  maxResults: 'MaxResults',
121
133
  natGatewayId: 'NatGatewayId',
122
134
  natIpCidr: 'NatIpCidr',
@@ -137,6 +149,7 @@ export class ListNatIpsRequest extends $dara.Model {
137
149
  clientToken: 'string',
138
150
  dryRun: 'boolean',
139
151
  ipOrigin: 'string',
152
+ ipv4Prefix: 'string',
140
153
  maxResults: 'string',
141
154
  natGatewayId: 'string',
142
155
  natIpCidr: 'string',
@@ -3,6 +3,13 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListNatIpsResponseBodyNatIps extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The IP prefix address range to which the queried NAT IP address belongs.
9
+ *
10
+ * @example
11
+ * 192.168.0.0/28
12
+ */
6
13
  ipv4Prefix?: string;
7
14
  /**
8
15
  * @remarks
@@ -15,6 +15,17 @@ export class ModifyForwardEntryRequest extends $dara.Model {
15
15
  * 123e4567-e89b-12d3-a456-426655440000
16
16
  */
17
17
  clientToken?: string;
18
+ /**
19
+ * @remarks
20
+ * Specifies whether to perform only a dry run, without performing the actual request. Valid values:
21
+ *
22
+ * - 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.
23
+ *
24
+ * - 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.
25
+ *
26
+ * @example
27
+ * false
28
+ */
18
29
  dryRun?: boolean;
19
30
  /**
20
31
  * @remarks
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ModifyFullNatEntryAttributeRequest extends $dara.Model {
6
+ accessDomain?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The backend IP address to be modified in FULLNAT address translation.
@@ -135,6 +136,7 @@ export class ModifyFullNatEntryAttributeRequest extends $dara.Model {
135
136
  resourceOwnerId?: number;
136
137
  static names(): { [key: string]: string } {
137
138
  return {
139
+ accessDomain: 'AccessDomain',
138
140
  accessIp: 'AccessIp',
139
141
  accessPort: 'AccessPort',
140
142
  clientToken: 'ClientToken',
@@ -157,6 +159,7 @@ export class ModifyFullNatEntryAttributeRequest extends $dara.Model {
157
159
 
158
160
  static types(): { [key: string]: any } {
159
161
  return {
162
+ accessDomain: 'string',
160
163
  accessIp: 'string',
161
164
  accessPort: 'string',
162
165
  clientToken: 'string',
@@ -3,7 +3,21 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ModifyNatGatewayAttributeRequestLogDelivery extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Session log write type. Value: **sls**, Alibaba Cloud Log Service SLS.
9
+ *
10
+ * @example
11
+ * sls
12
+ */
6
13
  logDeliveryType?: string;
14
+ /**
15
+ * @remarks
16
+ * Session log write address. Value: acs:log:${regionName}:${projectOwnerAliUid}:project/${projectName}/logstore/${logstoreName}
17
+ *
18
+ * @example
19
+ * acs:log:cn-hangzhou:0000:project/nat_session_log_project/logstore/session_log_test
20
+ */
7
21
  logDestination?: string;
8
22
  static names(): { [key: string]: string } {
9
23
  return {
@@ -41,21 +55,28 @@ export class ModifyNatGatewayAttributeRequest extends $dara.Model {
41
55
  description?: string;
42
56
  /**
43
57
  * @remarks
44
- * The mode in which the NAT gateway is associated with an elastic IP address (EIP). You can leave this parameter empty. If you want to specify a value for this parameter, set the value to **NAT**, which indicates that the NAT gateway is associated with the EIP in NAT mode.
58
+ * Modifies the mode in which the EIP is associated with the NAT gateway. The value can be empty or **NAT**, which specifies the NAT mode.
45
59
  *
46
- * **
60
+ * >
47
61
  *
48
- * **Description**
62
+ * * You can only change **MULTI_BINDED** to **NAT**. You cannot change **NAT** to **MULTI_BINDED**. For more information about the **MULTI_BINDED** mode, see [CreateNatGateway](https://help.aliyun.com/document_detail/120219.html).
49
63
  *
50
- * * If EipBindMode is set to MULTI_BINDED when the NAT gateway is created, you can change the value of this parameter from **MULTI_BINDED** to **NAT**. If EipBindMode is set to NAT when the NAT gateway is created, you cannot change the value of this parameter from **NAT** to **MULTI_BINDED**. For more information about **MULTI_BINDED**, see [CreateNatGateway](https://help.aliyun.com/document_detail/120219.html).
51
- *
52
- * * When the mode in which the NAT gateway is associated with an EIP is being changed, a transient connection that lasts a few seconds may occur. If the number of EIPs with which the NAT gateway is associated increases, the transient connection lasts longer. You can change the mode only for a NAT gateway that is associated with up to five EIPs. We recommend that you change the mode during off-peak hours.
53
- * * After the mode is changed to **NAT**, the Internet NAT gateway is compatible with the IPv4 gateway. However, if you associate an EIP with the NAT gateway, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the EIP fails to be associated with the NAT gateway.
64
+ * * When you change the association mode, your network may be interrupted for seconds. The duration increases with the number of EIPs. You can change the association mode for at most 5 EIPs at the same time. We recommend changing the association mode during off-peak hours.
65
+ * * After the association mode is changed to **NAT**, the Internet NAT gateway is compatible with an IPv4 gateway. If an EIP is associated with a NAT gateway in NAT mode, the EIP occupies a private IP address of the vSwitch to which the NAT gateway belongs. Ensure the vSwitch has sufficient private IP addresses for EIPs to be associated with the NAT gateway.
54
66
  *
55
67
  * @example
56
68
  * NAT
57
69
  */
58
70
  eipBindMode?: string;
71
+ /**
72
+ * @remarks
73
+ * Whether to enable session logging, with values:
74
+ * - **true**: Session logging is enabled.
75
+ * - **false**: Session logging is disabled.
76
+ *
77
+ * @example
78
+ * true
79
+ */
59
80
  enableSessionLog?: boolean;
60
81
  /**
61
82
  * @remarks
@@ -68,6 +89,10 @@ export class ModifyNatGatewayAttributeRequest extends $dara.Model {
68
89
  * false
69
90
  */
70
91
  icmpReplyEnabled?: boolean;
92
+ /**
93
+ * @remarks
94
+ * Session log configuration information.
95
+ */
71
96
  logDelivery?: ModifyNatGatewayAttributeRequestLogDelivery;
72
97
  /**
73
98
  * @remarks
@@ -15,21 +15,28 @@ export class ModifyNatGatewayAttributeShrinkRequest extends $dara.Model {
15
15
  description?: string;
16
16
  /**
17
17
  * @remarks
18
- * The mode in which the NAT gateway is associated with an elastic IP address (EIP). You can leave this parameter empty. If you want to specify a value for this parameter, set the value to **NAT**, which indicates that the NAT gateway is associated with the EIP in NAT mode.
18
+ * Modifies the mode in which the EIP is associated with the NAT gateway. The value can be empty or **NAT**, which specifies the NAT mode.
19
19
  *
20
- * **
20
+ * >
21
21
  *
22
- * **Description**
22
+ * * You can only change **MULTI_BINDED** to **NAT**. You cannot change **NAT** to **MULTI_BINDED**. For more information about the **MULTI_BINDED** mode, see [CreateNatGateway](https://help.aliyun.com/document_detail/120219.html).
23
23
  *
24
- * * If EipBindMode is set to MULTI_BINDED when the NAT gateway is created, you can change the value of this parameter from **MULTI_BINDED** to **NAT**. If EipBindMode is set to NAT when the NAT gateway is created, you cannot change the value of this parameter from **NAT** to **MULTI_BINDED**. For more information about **MULTI_BINDED**, see [CreateNatGateway](https://help.aliyun.com/document_detail/120219.html).
25
- *
26
- * * When the mode in which the NAT gateway is associated with an EIP is being changed, a transient connection that lasts a few seconds may occur. If the number of EIPs with which the NAT gateway is associated increases, the transient connection lasts longer. You can change the mode only for a NAT gateway that is associated with up to five EIPs. We recommend that you change the mode during off-peak hours.
27
- * * After the mode is changed to **NAT**, the Internet NAT gateway is compatible with the IPv4 gateway. However, if you associate an EIP with the NAT gateway, the EIP occupies one private IP address on the vSwitch of the NAT gateway. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the EIP fails to be associated with the NAT gateway.
24
+ * * When you change the association mode, your network may be interrupted for seconds. The duration increases with the number of EIPs. You can change the association mode for at most 5 EIPs at the same time. We recommend changing the association mode during off-peak hours.
25
+ * * After the association mode is changed to **NAT**, the Internet NAT gateway is compatible with an IPv4 gateway. If an EIP is associated with a NAT gateway in NAT mode, the EIP occupies a private IP address of the vSwitch to which the NAT gateway belongs. Ensure the vSwitch has sufficient private IP addresses for EIPs to be associated with the NAT gateway.
28
26
  *
29
27
  * @example
30
28
  * NAT
31
29
  */
32
30
  eipBindMode?: string;
31
+ /**
32
+ * @remarks
33
+ * Whether to enable session logging, with values:
34
+ * - **true**: Session logging is enabled.
35
+ * - **false**: Session logging is disabled.
36
+ *
37
+ * @example
38
+ * true
39
+ */
33
40
  enableSessionLog?: boolean;
34
41
  /**
35
42
  * @remarks
@@ -42,6 +49,10 @@ export class ModifyNatGatewayAttributeShrinkRequest extends $dara.Model {
42
49
  * false
43
50
  */
44
51
  icmpReplyEnabled?: boolean;
52
+ /**
53
+ * @remarks
54
+ * Session log configuration information.
55
+ */
45
56
  logDeliveryShrink?: string;
46
57
  /**
47
58
  * @remarks
@@ -15,8 +15,34 @@ export class ModifySnatEntryRequest extends $dara.Model {
15
15
  * 02fb3da4-130e-11e9-8e44-001****
16
16
  */
17
17
  clientToken?: string;
18
+ /**
19
+ * @remarks
20
+ * Whether to perform a dry run of this request, with values:
21
+ * - **true**: Sends a check request without modifying the SNAT entry. The checks include whether the required parameters are filled in, the request format, and business restrictions. If the check fails, the corresponding error is returned. If the check passes, an error code `DryRunOperation` is returned.
22
+ * - **false** (default): Sends a normal request. After passing the check, it returns a 2xx HTTP status code and modifies the SNAT entry.
23
+ *
24
+ * @example
25
+ * false
26
+ */
18
27
  dryRun?: boolean;
28
+ /**
29
+ * @remarks
30
+ * Whether to enable IP affinity. Values:
31
+ * - **0**: Disable IP affinity.
32
+ * - **1**: Enable IP affinity.
33
+ * > After enabling the IP affinity switch, if an SNAT entry is bound to multiple EIPs or NAT IPs, the same client will use the same EIP or NAT IP for access; otherwise, the client will randomly select from the bound EIPs or NAT IPs for access.
34
+ *
35
+ * @example
36
+ * 1
37
+ */
19
38
  eipAffinity?: number;
39
+ /**
40
+ * @remarks
41
+ * Elastic Network Interface ID. The IPv4 address set of the elastic network interface will be used as the SNAT address.
42
+ *
43
+ * @example
44
+ * eni-gw8g131ef2dnbu3k****
45
+ */
20
46
  networkInterfaceId?: string;
21
47
  ownerAccount?: string;
22
48
  ownerId?: number;
@@ -622,9 +622,6 @@ export { ConfirmPhysicalConnectionResponse } from './ConfirmPhysicalConnectionRe
622
622
  export { ConnectRouterInterfaceRequest } from './ConnectRouterInterfaceRequest';
623
623
  export { ConnectRouterInterfaceResponseBody } from './ConnectRouterInterfaceResponseBody';
624
624
  export { ConnectRouterInterfaceResponse } from './ConnectRouterInterfaceResponse';
625
- export { ConvertBandwidthPackageRequest } from './ConvertBandwidthPackageRequest';
626
- export { ConvertBandwidthPackageResponseBody } from './ConvertBandwidthPackageResponseBody';
627
- export { ConvertBandwidthPackageResponse } from './ConvertBandwidthPackageResponse';
628
625
  export { CopyNetworkAclEntriesRequest } from './CopyNetworkAclEntriesRequest';
629
626
  export { CopyNetworkAclEntriesResponseBody } from './CopyNetworkAclEntriesResponseBody';
630
627
  export { CopyNetworkAclEntriesResponse } from './CopyNetworkAclEntriesResponse';
@@ -1220,9 +1217,6 @@ export { DiagnoseVpnConnectionsResponse } from './DiagnoseVpnConnectionsResponse
1220
1217
  export { DiagnoseVpnGatewayRequest } from './DiagnoseVpnGatewayRequest';
1221
1218
  export { DiagnoseVpnGatewayResponseBody } from './DiagnoseVpnGatewayResponseBody';
1222
1219
  export { DiagnoseVpnGatewayResponse } from './DiagnoseVpnGatewayResponse';
1223
- export { DisableNatGatewayEcsMetricRequest } from './DisableNatGatewayEcsMetricRequest';
1224
- export { DisableNatGatewayEcsMetricResponseBody } from './DisableNatGatewayEcsMetricResponseBody';
1225
- export { DisableNatGatewayEcsMetricResponse } from './DisableNatGatewayEcsMetricResponse';
1226
1220
  export { DisableVpcClassicLinkRequest } from './DisableVpcClassicLinkRequest';
1227
1221
  export { DisableVpcClassicLinkResponseBody } from './DisableVpcClassicLinkResponseBody';
1228
1222
  export { DisableVpcClassicLinkResponse } from './DisableVpcClassicLinkResponse';
@@ -1238,9 +1232,6 @@ export { DissociateVpnGatewayWithCertificateResponse } from './DissociateVpnGate
1238
1232
  export { DownloadVpnConnectionConfigRequest } from './DownloadVpnConnectionConfigRequest';
1239
1233
  export { DownloadVpnConnectionConfigResponseBody } from './DownloadVpnConnectionConfigResponseBody';
1240
1234
  export { DownloadVpnConnectionConfigResponse } from './DownloadVpnConnectionConfigResponse';
1241
- export { EnableNatGatewayEcsMetricRequest } from './EnableNatGatewayEcsMetricRequest';
1242
- export { EnableNatGatewayEcsMetricResponseBody } from './EnableNatGatewayEcsMetricResponseBody';
1243
- export { EnableNatGatewayEcsMetricResponse } from './EnableNatGatewayEcsMetricResponse';
1244
1235
  export { EnablePhysicalConnectionRequest } from './EnablePhysicalConnectionRequest';
1245
1236
  export { EnablePhysicalConnectionResponseBody } from './EnablePhysicalConnectionResponseBody';
1246
1237
  export { EnablePhysicalConnectionResponse } from './EnablePhysicalConnectionResponse';
@@ -1,44 +0,0 @@
1
- import * as $dara from '@darabonba/typescript';
2
- export declare class ConvertBandwidthPackageRequest extends $dara.Model {
3
- /**
4
- * @remarks
5
- * The ID of the NAT service plan.
6
- *
7
- * This parameter is required.
8
- *
9
- * @example
10
- * bwp-bp1xea10o8qxw4f****
11
- */
12
- bandwidthPackageId?: string;
13
- /**
14
- * @remarks
15
- * The client token that is used to ensure the idempotency of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The **token** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/36569.html).
16
- *
17
- * @example
18
- * 123e4567-e89b-12d3-a456-426655440000
19
- */
20
- clientToken?: string;
21
- ownerId?: number;
22
- /**
23
- * @remarks
24
- * The region where the NAT gateway resides. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
25
- *
26
- * This parameter is required.
27
- *
28
- * @example
29
- * cn-hangzhou
30
- */
31
- regionId?: string;
32
- resourceOwnerAccount?: string;
33
- resourceOwnerId?: number;
34
- static names(): {
35
- [key: string]: string;
36
- };
37
- static types(): {
38
- [key: string]: any;
39
- };
40
- validate(): void;
41
- constructor(map?: {
42
- [key: string]: any;
43
- });
44
- }
@@ -1,68 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ConvertBandwidthPackageRequest = void 0;
37
- // This file is auto-generated, don't edit it
38
- const $dara = __importStar(require("@darabonba/typescript"));
39
- class ConvertBandwidthPackageRequest extends $dara.Model {
40
- static names() {
41
- return {
42
- bandwidthPackageId: 'BandwidthPackageId',
43
- clientToken: 'ClientToken',
44
- ownerId: 'OwnerId',
45
- regionId: 'RegionId',
46
- resourceOwnerAccount: 'ResourceOwnerAccount',
47
- resourceOwnerId: 'ResourceOwnerId',
48
- };
49
- }
50
- static types() {
51
- return {
52
- bandwidthPackageId: 'string',
53
- clientToken: 'string',
54
- ownerId: 'number',
55
- regionId: 'string',
56
- resourceOwnerAccount: 'string',
57
- resourceOwnerId: 'number',
58
- };
59
- }
60
- validate() {
61
- super.validate();
62
- }
63
- constructor(map) {
64
- super(map);
65
- }
66
- }
67
- exports.ConvertBandwidthPackageRequest = ConvertBandwidthPackageRequest;
68
- //# sourceMappingURL=ConvertBandwidthPackageRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConvertBandwidthPackageRequest.js","sourceRoot":"","sources":["../../src/models/ConvertBandwidthPackageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAgC7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,eAAe,EAAE,iBAAiB;SACnC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,QAAQ;YAC9B,eAAe,EAAE,QAAQ;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,wEA6DC"}
@@ -1,19 +0,0 @@
1
- import * as $dara from '@darabonba/typescript';
2
- import { ConvertBandwidthPackageResponseBody } from "./ConvertBandwidthPackageResponseBody";
3
- export declare class ConvertBandwidthPackageResponse extends $dara.Model {
4
- headers?: {
5
- [key: string]: string;
6
- };
7
- statusCode?: number;
8
- body?: ConvertBandwidthPackageResponseBody;
9
- static names(): {
10
- [key: string]: string;
11
- };
12
- static types(): {
13
- [key: string]: any;
14
- };
15
- validate(): void;
16
- constructor(map?: {
17
- [key: string]: any;
18
- });
19
- }
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ConvertBandwidthPackageResponse = void 0;
37
- // This file is auto-generated, don't edit it
38
- const $dara = __importStar(require("@darabonba/typescript"));
39
- const ConvertBandwidthPackageResponseBody_1 = require("./ConvertBandwidthPackageResponseBody");
40
- class ConvertBandwidthPackageResponse extends $dara.Model {
41
- static names() {
42
- return {
43
- headers: 'headers',
44
- statusCode: 'statusCode',
45
- body: 'body',
46
- };
47
- }
48
- static types() {
49
- return {
50
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
- statusCode: 'number',
52
- body: ConvertBandwidthPackageResponseBody_1.ConvertBandwidthPackageResponseBody,
53
- };
54
- }
55
- validate() {
56
- if (this.headers) {
57
- $dara.Model.validateMap(this.headers);
58
- }
59
- if (this.body && typeof this.body.validate === 'function') {
60
- this.body.validate();
61
- }
62
- super.validate();
63
- }
64
- constructor(map) {
65
- super(map);
66
- }
67
- }
68
- exports.ConvertBandwidthPackageResponse = ConvertBandwidthPackageResponse;
69
- //# sourceMappingURL=ConvertBandwidthPackageResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConvertBandwidthPackageResponse.js","sourceRoot":"","sources":["../../src/models/ConvertBandwidthPackageResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"}