@alicloud/vpc20160428 6.11.1 → 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 (153) hide show
  1. package/dist/client.d.ts +2 -71
  2. package/dist/client.js +14 -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/ListFullNatEntriesResponseBody.d.ts +2 -0
  63. package/dist/models/ListFullNatEntriesResponseBody.js +4 -0
  64. package/dist/models/ListFullNatEntriesResponseBody.js.map +1 -1
  65. package/dist/models/ListNatIpsRequest.d.ts +10 -0
  66. package/dist/models/ListNatIpsRequest.js.map +1 -1
  67. package/dist/models/ListNatIpsResponseBody.d.ts +7 -0
  68. package/dist/models/ListNatIpsResponseBody.js.map +1 -1
  69. package/dist/models/ModifyForwardEntryRequest.d.ts +11 -0
  70. package/dist/models/ModifyForwardEntryRequest.js.map +1 -1
  71. package/dist/models/ModifyFullNatEntryAttributeRequest.d.ts +1 -0
  72. package/dist/models/ModifyFullNatEntryAttributeRequest.js +2 -0
  73. package/dist/models/ModifyFullNatEntryAttributeRequest.js.map +1 -1
  74. package/dist/models/ModifyNatGatewayAttributeRequest.d.ts +32 -7
  75. package/dist/models/ModifyNatGatewayAttributeRequest.js.map +1 -1
  76. package/dist/models/ModifyNatGatewayAttributeShrinkRequest.d.ts +18 -7
  77. package/dist/models/ModifyNatGatewayAttributeShrinkRequest.js.map +1 -1
  78. package/dist/models/ModifySnatEntryRequest.d.ts +26 -0
  79. package/dist/models/ModifySnatEntryRequest.js.map +1 -1
  80. package/dist/models/model.d.ts +0 -9
  81. package/dist/models/model.js +23 -41
  82. package/dist/models/model.js.map +1 -1
  83. package/package.json +1 -1
  84. package/src/client.ts +18 -203
  85. package/src/models/CreateForwardEntryRequest.ts +13 -6
  86. package/src/models/CreateFullNatEntryRequest.ts +3 -2
  87. package/src/models/CreateNatGatewayRequest.ts +23 -0
  88. package/src/models/CreateNatGatewayShrinkRequest.ts +20 -0
  89. package/src/models/CreateNatIpRequest.ts +10 -0
  90. package/src/models/CreateNatIpResponseBody.ts +16 -0
  91. package/src/models/CreateSnatEntryRequest.ts +17 -0
  92. package/src/models/CreateVpnAttachmentRequest.ts +3 -0
  93. package/src/models/DeleteNatIpRequest.ts +14 -0
  94. package/src/models/DescribeNatGatewayAssociateNetworkInterfacesResponseBody.ts +7 -0
  95. package/src/models/DescribeNatGatewaysRequest.ts +2 -2
  96. package/src/models/DescribeNatGatewaysResponseBody.ts +41 -0
  97. package/src/models/DescribePhysicalConnectionLoaresponseBody.ts +3 -0
  98. package/src/models/DescribeSnatTableEntriesRequest.ts +4 -0
  99. package/src/models/DescribeSnatTableEntriesResponseBody.ts +16 -0
  100. package/src/models/DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody.ts +3 -0
  101. package/src/models/DescribeVpnAttachmentsResponseBody.ts +3 -0
  102. package/src/models/DescribeVpnConnectionResponseBody.ts +3 -0
  103. package/src/models/DescribeVpnConnectionsResponseBody.ts +3 -0
  104. package/src/models/DescribeVpnGatewayAvailableZonesRequest.ts +3 -0
  105. package/src/models/DescribeVpnGatewayResponseBody.ts +3 -0
  106. package/src/models/DescribeVpnGatewaysRequest.ts +3 -0
  107. package/src/models/DescribeVpnGatewaysResponseBody.ts +3 -0
  108. package/src/models/GetNatGatewayAttributeResponseBody.ts +64 -0
  109. package/src/models/ListFullNatEntriesResponseBody.ts +6 -0
  110. package/src/models/ListNatIpsRequest.ts +10 -0
  111. package/src/models/ListNatIpsResponseBody.ts +7 -0
  112. package/src/models/ModifyForwardEntryRequest.ts +11 -0
  113. package/src/models/ModifyFullNatEntryAttributeRequest.ts +3 -0
  114. package/src/models/ModifyNatGatewayAttributeRequest.ts +32 -7
  115. package/src/models/ModifyNatGatewayAttributeShrinkRequest.ts +18 -7
  116. package/src/models/ModifySnatEntryRequest.ts +26 -0
  117. package/src/models/model.ts +0 -9
  118. package/dist/models/ConvertBandwidthPackageRequest.d.ts +0 -44
  119. package/dist/models/ConvertBandwidthPackageRequest.js +0 -68
  120. package/dist/models/ConvertBandwidthPackageRequest.js.map +0 -1
  121. package/dist/models/ConvertBandwidthPackageResponse.d.ts +0 -19
  122. package/dist/models/ConvertBandwidthPackageResponse.js +0 -69
  123. package/dist/models/ConvertBandwidthPackageResponse.js.map +0 -1
  124. package/dist/models/ConvertBandwidthPackageResponseBody.d.ts +0 -29
  125. package/dist/models/ConvertBandwidthPackageResponseBody.js +0 -60
  126. package/dist/models/ConvertBandwidthPackageResponseBody.js.map +0 -1
  127. package/dist/models/DisableNatGatewayEcsMetricRequest.d.ts +0 -45
  128. package/dist/models/DisableNatGatewayEcsMetricRequest.js +0 -62
  129. package/dist/models/DisableNatGatewayEcsMetricRequest.js.map +0 -1
  130. package/dist/models/DisableNatGatewayEcsMetricResponse.d.ts +0 -19
  131. package/dist/models/DisableNatGatewayEcsMetricResponse.js +0 -69
  132. package/dist/models/DisableNatGatewayEcsMetricResponse.js.map +0 -1
  133. package/dist/models/DisableNatGatewayEcsMetricResponseBody.d.ts +0 -21
  134. package/dist/models/DisableNatGatewayEcsMetricResponseBody.js +0 -58
  135. package/dist/models/DisableNatGatewayEcsMetricResponseBody.js.map +0 -1
  136. package/dist/models/EnableNatGatewayEcsMetricRequest.d.ts +0 -45
  137. package/dist/models/EnableNatGatewayEcsMetricRequest.js +0 -62
  138. package/dist/models/EnableNatGatewayEcsMetricRequest.js.map +0 -1
  139. package/dist/models/EnableNatGatewayEcsMetricResponse.d.ts +0 -19
  140. package/dist/models/EnableNatGatewayEcsMetricResponse.js +0 -69
  141. package/dist/models/EnableNatGatewayEcsMetricResponse.js.map +0 -1
  142. package/dist/models/EnableNatGatewayEcsMetricResponseBody.d.ts +0 -21
  143. package/dist/models/EnableNatGatewayEcsMetricResponseBody.js +0 -58
  144. package/dist/models/EnableNatGatewayEcsMetricResponseBody.js.map +0 -1
  145. package/src/models/ConvertBandwidthPackageRequest.ts +0 -67
  146. package/src/models/ConvertBandwidthPackageResponse.ts +0 -40
  147. package/src/models/ConvertBandwidthPackageResponseBody.ts +0 -44
  148. package/src/models/DisableNatGatewayEcsMetricRequest.ts +0 -62
  149. package/src/models/DisableNatGatewayEcsMetricResponse.ts +0 -40
  150. package/src/models/DisableNatGatewayEcsMetricResponseBody.ts +0 -34
  151. package/src/models/EnableNatGatewayEcsMetricRequest.ts +0 -62
  152. package/src/models/EnableNatGatewayEcsMetricResponse.ts +0 -40
  153. package/src/models/EnableNatGatewayEcsMetricResponseBody.ts +0 -34
@@ -1,67 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class ConvertBandwidthPackageRequest extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The ID of the NAT service plan.
9
- *
10
- * This parameter is required.
11
- *
12
- * @example
13
- * bwp-bp1xea10o8qxw4f****
14
- */
15
- bandwidthPackageId?: string;
16
- /**
17
- * @remarks
18
- * 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).
19
- *
20
- * @example
21
- * 123e4567-e89b-12d3-a456-426655440000
22
- */
23
- clientToken?: string;
24
- ownerId?: number;
25
- /**
26
- * @remarks
27
- * 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.
28
- *
29
- * This parameter is required.
30
- *
31
- * @example
32
- * cn-hangzhou
33
- */
34
- regionId?: string;
35
- resourceOwnerAccount?: string;
36
- resourceOwnerId?: number;
37
- static names(): { [key: string]: string } {
38
- return {
39
- bandwidthPackageId: 'BandwidthPackageId',
40
- clientToken: 'ClientToken',
41
- ownerId: 'OwnerId',
42
- regionId: 'RegionId',
43
- resourceOwnerAccount: 'ResourceOwnerAccount',
44
- resourceOwnerId: 'ResourceOwnerId',
45
- };
46
- }
47
-
48
- static types(): { [key: string]: any } {
49
- return {
50
- bandwidthPackageId: 'string',
51
- clientToken: 'string',
52
- ownerId: 'number',
53
- regionId: 'string',
54
- resourceOwnerAccount: 'string',
55
- resourceOwnerId: 'number',
56
- };
57
- }
58
-
59
- validate() {
60
- super.validate();
61
- }
62
-
63
- constructor(map?: { [key: string]: any }) {
64
- super(map);
65
- }
66
- }
67
-
@@ -1,40 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
- import { ConvertBandwidthPackageResponseBody } from "./ConvertBandwidthPackageResponseBody";
4
-
5
-
6
- export class ConvertBandwidthPackageResponse extends $dara.Model {
7
- headers?: { [key: string]: string };
8
- statusCode?: number;
9
- body?: ConvertBandwidthPackageResponseBody;
10
- static names(): { [key: string]: string } {
11
- return {
12
- headers: 'headers',
13
- statusCode: 'statusCode',
14
- body: 'body',
15
- };
16
- }
17
-
18
- static types(): { [key: string]: any } {
19
- return {
20
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
- statusCode: 'number',
22
- body: ConvertBandwidthPackageResponseBody,
23
- };
24
- }
25
-
26
- validate() {
27
- if(this.headers) {
28
- $dara.Model.validateMap(this.headers);
29
- }
30
- if(this.body && typeof (this.body as any).validate === 'function') {
31
- (this.body as any).validate();
32
- }
33
- super.validate();
34
- }
35
-
36
- constructor(map?: { [key: string]: any }) {
37
- super(map);
38
- }
39
- }
40
-
@@ -1,44 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class ConvertBandwidthPackageResponseBody extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The ID of the Internet Shared Bandwidth instance.
9
- *
10
- * @example
11
- * bwp-s6lmotmkkf567b****
12
- */
13
- convertInstanceId?: string;
14
- /**
15
- * @remarks
16
- * The request ID.
17
- *
18
- * @example
19
- * 455AC20C-7061-446A-BDBD-B3BEE0856304
20
- */
21
- requestId?: string;
22
- static names(): { [key: string]: string } {
23
- return {
24
- convertInstanceId: 'ConvertInstanceId',
25
- requestId: 'RequestId',
26
- };
27
- }
28
-
29
- static types(): { [key: string]: any } {
30
- return {
31
- convertInstanceId: 'string',
32
- requestId: 'string',
33
- };
34
- }
35
-
36
- validate() {
37
- super.validate();
38
- }
39
-
40
- constructor(map?: { [key: string]: any }) {
41
- super(map);
42
- }
43
- }
44
-
@@ -1,62 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class DisableNatGatewayEcsMetricRequest extends $dara.Model {
6
- /**
7
- * @remarks
8
- * Specifies whether to perform only a dry run, without performing the actual request. Valid values:
9
- *
10
- * **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.
11
- *
12
- * **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.
13
- *
14
- * @example
15
- * false
16
- */
17
- dryRun?: boolean;
18
- /**
19
- * @remarks
20
- * The ID of the NAT gateway for which you want to disable ECS traffic monitoring.
21
- *
22
- * This parameter is required.
23
- *
24
- * @example
25
- * ngw-2vc53wynunp35lw1y****
26
- */
27
- natGatewayId?: string;
28
- /**
29
- * @remarks
30
- * The region ID of the NAT gateway. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
31
- *
32
- * This parameter is required.
33
- *
34
- * @example
35
- * cn-chengdu
36
- */
37
- regionId?: string;
38
- static names(): { [key: string]: string } {
39
- return {
40
- dryRun: 'DryRun',
41
- natGatewayId: 'NatGatewayId',
42
- regionId: 'RegionId',
43
- };
44
- }
45
-
46
- static types(): { [key: string]: any } {
47
- return {
48
- dryRun: 'boolean',
49
- natGatewayId: 'string',
50
- regionId: 'string',
51
- };
52
- }
53
-
54
- validate() {
55
- super.validate();
56
- }
57
-
58
- constructor(map?: { [key: string]: any }) {
59
- super(map);
60
- }
61
- }
62
-
@@ -1,40 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
- import { DisableNatGatewayEcsMetricResponseBody } from "./DisableNatGatewayEcsMetricResponseBody";
4
-
5
-
6
- export class DisableNatGatewayEcsMetricResponse extends $dara.Model {
7
- headers?: { [key: string]: string };
8
- statusCode?: number;
9
- body?: DisableNatGatewayEcsMetricResponseBody;
10
- static names(): { [key: string]: string } {
11
- return {
12
- headers: 'headers',
13
- statusCode: 'statusCode',
14
- body: 'body',
15
- };
16
- }
17
-
18
- static types(): { [key: string]: any } {
19
- return {
20
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
- statusCode: 'number',
22
- body: DisableNatGatewayEcsMetricResponseBody,
23
- };
24
- }
25
-
26
- validate() {
27
- if(this.headers) {
28
- $dara.Model.validateMap(this.headers);
29
- }
30
- if(this.body && typeof (this.body as any).validate === 'function') {
31
- (this.body as any).validate();
32
- }
33
- super.validate();
34
- }
35
-
36
- constructor(map?: { [key: string]: any }) {
37
- super(map);
38
- }
39
- }
40
-
@@ -1,34 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class DisableNatGatewayEcsMetricResponseBody extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The request ID.
9
- *
10
- * @example
11
- * 0ED8D006-F706-4D23-88ED-E11ED28DCAC0
12
- */
13
- requestId?: string;
14
- static names(): { [key: string]: string } {
15
- return {
16
- requestId: 'RequestId',
17
- };
18
- }
19
-
20
- static types(): { [key: string]: any } {
21
- return {
22
- requestId: 'string',
23
- };
24
- }
25
-
26
- validate() {
27
- super.validate();
28
- }
29
-
30
- constructor(map?: { [key: string]: any }) {
31
- super(map);
32
- }
33
- }
34
-
@@ -1,62 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class EnableNatGatewayEcsMetricRequest extends $dara.Model {
6
- /**
7
- * @remarks
8
- * Specifies whether to perform only a dry run, without performing the actual request. Valid values:
9
- *
10
- * **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.
11
- *
12
- * **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.
13
- *
14
- * @example
15
- * false
16
- */
17
- dryRun?: boolean;
18
- /**
19
- * @remarks
20
- * The ID of the NAT gateway for which you want to enable ECS traffic monitoring.
21
- *
22
- * This parameter is required.
23
- *
24
- * @example
25
- * ngw-2vc53wynunp35lw1y****
26
- */
27
- natGatewayId?: string;
28
- /**
29
- * @remarks
30
- * The region ID of the NAT gateway. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the most recent region list.
31
- *
32
- * This parameter is required.
33
- *
34
- * @example
35
- * cn-chengdu
36
- */
37
- regionId?: string;
38
- static names(): { [key: string]: string } {
39
- return {
40
- dryRun: 'DryRun',
41
- natGatewayId: 'NatGatewayId',
42
- regionId: 'RegionId',
43
- };
44
- }
45
-
46
- static types(): { [key: string]: any } {
47
- return {
48
- dryRun: 'boolean',
49
- natGatewayId: 'string',
50
- regionId: 'string',
51
- };
52
- }
53
-
54
- validate() {
55
- super.validate();
56
- }
57
-
58
- constructor(map?: { [key: string]: any }) {
59
- super(map);
60
- }
61
- }
62
-
@@ -1,40 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
- import { EnableNatGatewayEcsMetricResponseBody } from "./EnableNatGatewayEcsMetricResponseBody";
4
-
5
-
6
- export class EnableNatGatewayEcsMetricResponse extends $dara.Model {
7
- headers?: { [key: string]: string };
8
- statusCode?: number;
9
- body?: EnableNatGatewayEcsMetricResponseBody;
10
- static names(): { [key: string]: string } {
11
- return {
12
- headers: 'headers',
13
- statusCode: 'statusCode',
14
- body: 'body',
15
- };
16
- }
17
-
18
- static types(): { [key: string]: any } {
19
- return {
20
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
- statusCode: 'number',
22
- body: EnableNatGatewayEcsMetricResponseBody,
23
- };
24
- }
25
-
26
- validate() {
27
- if(this.headers) {
28
- $dara.Model.validateMap(this.headers);
29
- }
30
- if(this.body && typeof (this.body as any).validate === 'function') {
31
- (this.body as any).validate();
32
- }
33
- super.validate();
34
- }
35
-
36
- constructor(map?: { [key: string]: any }) {
37
- super(map);
38
- }
39
- }
40
-
@@ -1,34 +0,0 @@
1
- // This file is auto-generated, don't edit it
2
- import * as $dara from '@darabonba/typescript';
3
-
4
-
5
- export class EnableNatGatewayEcsMetricResponseBody extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The request ID.
9
- *
10
- * @example
11
- * 0ED8D006-F706-4D23-88ED-E11ED28DCAC0
12
- */
13
- requestId?: string;
14
- static names(): { [key: string]: string } {
15
- return {
16
- requestId: 'RequestId',
17
- };
18
- }
19
-
20
- static types(): { [key: string]: any } {
21
- return {
22
- requestId: 'string',
23
- };
24
- }
25
-
26
- validate() {
27
- super.validate();
28
- }
29
-
30
- constructor(map?: { [key: string]: any }) {
31
- super(map);
32
- }
33
- }
34
-