@alicloud/vpc20160428 6.10.2 → 6.11.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.
Files changed (85) hide show
  1. package/dist/client.d.ts +144 -0
  2. package/dist/client.js +381 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateRouteTargetGroupRequest.d.ts +185 -0
  5. package/dist/models/CreateRouteTargetGroupRequest.js +124 -0
  6. package/dist/models/CreateRouteTargetGroupRequest.js.map +1 -0
  7. package/dist/models/CreateRouteTargetGroupResponse.d.ts +19 -0
  8. package/dist/models/CreateRouteTargetGroupResponse.js +69 -0
  9. package/dist/models/CreateRouteTargetGroupResponse.js.map +1 -0
  10. package/dist/models/CreateRouteTargetGroupResponseBody.d.ts +29 -0
  11. package/dist/models/CreateRouteTargetGroupResponseBody.js +60 -0
  12. package/dist/models/CreateRouteTargetGroupResponseBody.js.map +1 -0
  13. package/dist/models/DeleteRouteTargetGroupRequest.d.ts +84 -0
  14. package/dist/models/DeleteRouteTargetGroupRequest.js +88 -0
  15. package/dist/models/DeleteRouteTargetGroupRequest.js.map +1 -0
  16. package/dist/models/DeleteRouteTargetGroupResponse.d.ts +19 -0
  17. package/dist/models/DeleteRouteTargetGroupResponse.js +69 -0
  18. package/dist/models/DeleteRouteTargetGroupResponse.js.map +1 -0
  19. package/dist/models/DeleteRouteTargetGroupResponseBody.d.ts +21 -0
  20. package/dist/models/DeleteRouteTargetGroupResponseBody.js +58 -0
  21. package/dist/models/DeleteRouteTargetGroupResponseBody.js.map +1 -0
  22. package/dist/models/GetRouteTargetGroupRequest.d.ts +82 -0
  23. package/dist/models/GetRouteTargetGroupRequest.js +88 -0
  24. package/dist/models/GetRouteTargetGroupRequest.js.map +1 -0
  25. package/dist/models/GetRouteTargetGroupResponse.d.ts +19 -0
  26. package/dist/models/GetRouteTargetGroupResponse.js +69 -0
  27. package/dist/models/GetRouteTargetGroupResponse.js.map +1 -0
  28. package/dist/models/GetRouteTargetGroupResponseBody.d.ts +209 -0
  29. package/dist/models/GetRouteTargetGroupResponseBody.js +134 -0
  30. package/dist/models/GetRouteTargetGroupResponseBody.js.map +1 -0
  31. package/dist/models/ListNatIpsRequest.d.ts +1 -0
  32. package/dist/models/ListNatIpsRequest.js +2 -0
  33. package/dist/models/ListNatIpsRequest.js.map +1 -1
  34. package/dist/models/ListRouteTargetGroupsRequest.d.ts +116 -0
  35. package/dist/models/ListRouteTargetGroupsRequest.js +101 -0
  36. package/dist/models/ListRouteTargetGroupsRequest.js.map +1 -0
  37. package/dist/models/ListRouteTargetGroupsResponse.d.ts +19 -0
  38. package/dist/models/ListRouteTargetGroupsResponse.js +69 -0
  39. package/dist/models/ListRouteTargetGroupsResponse.js.map +1 -0
  40. package/dist/models/ListRouteTargetGroupsResponseBody.d.ts +256 -0
  41. package/dist/models/ListRouteTargetGroupsResponseBody.js +162 -0
  42. package/dist/models/ListRouteTargetGroupsResponseBody.js.map +1 -0
  43. package/dist/models/SwitchActiveRouteTargetRequest.d.ts +78 -0
  44. package/dist/models/SwitchActiveRouteTargetRequest.js +88 -0
  45. package/dist/models/SwitchActiveRouteTargetRequest.js.map +1 -0
  46. package/dist/models/SwitchActiveRouteTargetResponse.d.ts +19 -0
  47. package/dist/models/SwitchActiveRouteTargetResponse.js +69 -0
  48. package/dist/models/SwitchActiveRouteTargetResponse.js.map +1 -0
  49. package/dist/models/SwitchActiveRouteTargetResponseBody.d.ts +21 -0
  50. package/dist/models/SwitchActiveRouteTargetResponseBody.js +58 -0
  51. package/dist/models/SwitchActiveRouteTargetResponseBody.js.map +1 -0
  52. package/dist/models/UpdateRouteTargetGroupRequest.d.ts +112 -0
  53. package/dist/models/UpdateRouteTargetGroupRequest.js +94 -0
  54. package/dist/models/UpdateRouteTargetGroupRequest.js.map +1 -0
  55. package/dist/models/UpdateRouteTargetGroupResponse.d.ts +19 -0
  56. package/dist/models/UpdateRouteTargetGroupResponse.js +69 -0
  57. package/dist/models/UpdateRouteTargetGroupResponse.js.map +1 -0
  58. package/dist/models/UpdateRouteTargetGroupResponseBody.d.ts +21 -0
  59. package/dist/models/UpdateRouteTargetGroupResponseBody.js +58 -0
  60. package/dist/models/UpdateRouteTargetGroupResponseBody.js.map +1 -0
  61. package/dist/models/model.d.ts +30 -0
  62. package/dist/models/model.js +95 -34
  63. package/dist/models/model.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/client.ts +430 -0
  66. package/src/models/CreateRouteTargetGroupRequest.ts +246 -0
  67. package/src/models/CreateRouteTargetGroupResponse.ts +40 -0
  68. package/src/models/CreateRouteTargetGroupResponseBody.ts +44 -0
  69. package/src/models/DeleteRouteTargetGroupRequest.ts +118 -0
  70. package/src/models/DeleteRouteTargetGroupResponse.ts +40 -0
  71. package/src/models/DeleteRouteTargetGroupResponseBody.ts +34 -0
  72. package/src/models/GetRouteTargetGroupRequest.ts +116 -0
  73. package/src/models/GetRouteTargetGroupResponse.ts +40 -0
  74. package/src/models/GetRouteTargetGroupResponseBody.ts +280 -0
  75. package/src/models/ListNatIpsRequest.ts +3 -0
  76. package/src/models/ListRouteTargetGroupsRequest.ts +163 -0
  77. package/src/models/ListRouteTargetGroupsResponse.ts +40 -0
  78. package/src/models/ListRouteTargetGroupsResponseBody.ts +346 -0
  79. package/src/models/SwitchActiveRouteTargetRequest.ts +112 -0
  80. package/src/models/SwitchActiveRouteTargetResponse.ts +40 -0
  81. package/src/models/SwitchActiveRouteTargetResponseBody.ts +34 -0
  82. package/src/models/UpdateRouteTargetGroupRequest.ts +152 -0
  83. package/src/models/UpdateRouteTargetGroupResponse.ts +40 -0
  84. package/src/models/UpdateRouteTargetGroupResponseBody.ts +34 -0
  85. package/src/models/model.ts +30 -0
@@ -0,0 +1,280 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetRouteTargetGroupResponseBodyRouteTargetMemberList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The enable status of the route target group member. Values:
9
+ *
10
+ * - **Enable**: Enabled.
11
+ * - **Disable**: Disabled.
12
+ *
13
+ * Only disabled route target group members can be modified to other instances. Enabled route target group members cannot be modified.
14
+ *
15
+ * @example
16
+ * Enable
17
+ */
18
+ enableStatus?: string;
19
+ /**
20
+ * @remarks
21
+ * Route target group member health check status. Values:
22
+ * - **Normal**: Normal
23
+ * - **Abnormal**: Abnormal
24
+ *
25
+ * @example
26
+ * Normal
27
+ */
28
+ healthCheckStatus?: string;
29
+ /**
30
+ * @remarks
31
+ * ID of the route target group member instance.
32
+ *
33
+ * @example
34
+ * ep-xxxx
35
+ */
36
+ memberId?: string;
37
+ /**
38
+ * @remarks
39
+ * Type of the route target group member.
40
+ *
41
+ * Currently supported types:
42
+ *
43
+ * - **GatewayLoadBalancerEndpoint**
44
+ *
45
+ * @example
46
+ * GatewayLoadBalancerEndpoint
47
+ */
48
+ memberType?: string;
49
+ /**
50
+ * @remarks
51
+ * Weight value of the route target group member. Values:
52
+ *
53
+ * - **100**: Indicates the member is the primary instance.
54
+ * - **0**: Indicates the member is the standby instance.
55
+ *
56
+ * The weight value can only be set during creation and cannot be modified.
57
+ *
58
+ * @example
59
+ * 100
60
+ */
61
+ weight?: number;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ enableStatus: 'EnableStatus',
65
+ healthCheckStatus: 'HealthCheckStatus',
66
+ memberId: 'MemberId',
67
+ memberType: 'MemberType',
68
+ weight: 'Weight',
69
+ };
70
+ }
71
+
72
+ static types(): { [key: string]: any } {
73
+ return {
74
+ enableStatus: 'string',
75
+ healthCheckStatus: 'string',
76
+ memberId: 'string',
77
+ memberType: 'string',
78
+ weight: 'number',
79
+ };
80
+ }
81
+
82
+ validate() {
83
+ super.validate();
84
+ }
85
+
86
+ constructor(map?: { [key: string]: any }) {
87
+ super(map);
88
+ }
89
+ }
90
+
91
+ export class GetRouteTargetGroupResponseBodyTags extends $dara.Model {
92
+ /**
93
+ * @remarks
94
+ * Tag key.
95
+ *
96
+ * @example
97
+ * FinanceDept
98
+ */
99
+ key?: string;
100
+ /**
101
+ * @remarks
102
+ * Tag value.
103
+ *
104
+ * @example
105
+ * FinanceJoshua
106
+ */
107
+ value?: string;
108
+ static names(): { [key: string]: string } {
109
+ return {
110
+ key: 'Key',
111
+ value: 'Value',
112
+ };
113
+ }
114
+
115
+ static types(): { [key: string]: any } {
116
+ return {
117
+ key: 'string',
118
+ value: 'string',
119
+ };
120
+ }
121
+
122
+ validate() {
123
+ super.validate();
124
+ }
125
+
126
+ constructor(map?: { [key: string]: any }) {
127
+ super(map);
128
+ }
129
+ }
130
+
131
+ export class GetRouteTargetGroupResponseBody extends $dara.Model {
132
+ /**
133
+ * @remarks
134
+ * Configuration mode of the route target group. Supported modes are as follows:
135
+ *
136
+ * - **Active-Standby**: Active-standby mode.
137
+ *
138
+ * @example
139
+ * Active-Standby
140
+ */
141
+ configMode?: string;
142
+ /**
143
+ * @remarks
144
+ * The time when the route target group was created.
145
+ *
146
+ * @example
147
+ * 2025-12-30T06:40:50Z
148
+ */
149
+ createTime?: string;
150
+ /**
151
+ * @remarks
152
+ * The region ID of the VPC to which the route target group belongs. You can obtain the region ID by calling the DescribeRegions interface.
153
+ *
154
+ * @example
155
+ * cn-qingdao
156
+ */
157
+ regionId?: string;
158
+ /**
159
+ * @remarks
160
+ * The request ID.
161
+ *
162
+ * @example
163
+ * 1AE05898-06E5-4782-xxxxx
164
+ */
165
+ requestId?: string;
166
+ /**
167
+ * @remarks
168
+ * The ID of the resource group to which the route target group belongs.
169
+ *
170
+ * @example
171
+ * rg-acfmxazdjdhd****
172
+ */
173
+ resourceGroupId?: string;
174
+ /**
175
+ * @remarks
176
+ * Description of the route target group.
177
+ *
178
+ * @example
179
+ * myRouteTargetGroupDescription
180
+ */
181
+ routeTargetGroupDescription?: string;
182
+ /**
183
+ * @remarks
184
+ * ID of the route target group instance.
185
+ *
186
+ * @example
187
+ * rtg-xxxx
188
+ */
189
+ routeTargetGroupId?: string;
190
+ /**
191
+ * @remarks
192
+ * Name of the route target group.
193
+ *
194
+ * @example
195
+ * myRouteTargetGroupName
196
+ */
197
+ routeTargetGroupName?: string;
198
+ /**
199
+ * @remarks
200
+ * List of members in the route target group.
201
+ */
202
+ routeTargetMemberList?: GetRouteTargetGroupResponseBodyRouteTargetMemberList[];
203
+ /**
204
+ * @remarks
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
214
+ *
215
+ * @example
216
+ * Available
217
+ */
218
+ status?: string;
219
+ /**
220
+ * @remarks
221
+ * Tags of the route target group.
222
+ */
223
+ tags?: GetRouteTargetGroupResponseBodyTags[];
224
+ /**
225
+ * @remarks
226
+ * ID of the VPC to which the route target group belongs.
227
+ *
228
+ * @example
229
+ * vpc-xxxx
230
+ */
231
+ vpcId?: string;
232
+ static names(): { [key: string]: string } {
233
+ return {
234
+ configMode: 'ConfigMode',
235
+ createTime: 'CreateTime',
236
+ regionId: 'RegionId',
237
+ requestId: 'RequestId',
238
+ resourceGroupId: 'ResourceGroupId',
239
+ routeTargetGroupDescription: 'RouteTargetGroupDescription',
240
+ routeTargetGroupId: 'RouteTargetGroupId',
241
+ routeTargetGroupName: 'RouteTargetGroupName',
242
+ routeTargetMemberList: 'RouteTargetMemberList',
243
+ status: 'Status',
244
+ tags: 'Tags',
245
+ vpcId: 'VpcId',
246
+ };
247
+ }
248
+
249
+ static types(): { [key: string]: any } {
250
+ return {
251
+ configMode: 'string',
252
+ createTime: 'string',
253
+ regionId: 'string',
254
+ requestId: 'string',
255
+ resourceGroupId: 'string',
256
+ routeTargetGroupDescription: 'string',
257
+ routeTargetGroupId: 'string',
258
+ routeTargetGroupName: 'string',
259
+ routeTargetMemberList: { 'type': 'array', 'itemType': GetRouteTargetGroupResponseBodyRouteTargetMemberList },
260
+ status: 'string',
261
+ tags: { 'type': 'array', 'itemType': GetRouteTargetGroupResponseBodyTags },
262
+ vpcId: 'string',
263
+ };
264
+ }
265
+
266
+ validate() {
267
+ if(Array.isArray(this.routeTargetMemberList)) {
268
+ $dara.Model.validateArray(this.routeTargetMemberList);
269
+ }
270
+ if(Array.isArray(this.tags)) {
271
+ $dara.Model.validateArray(this.tags);
272
+ }
273
+ super.validate();
274
+ }
275
+
276
+ constructor(map?: { [key: string]: any }) {
277
+ super(map);
278
+ }
279
+ }
280
+
@@ -31,6 +31,7 @@ export class ListNatIpsRequest extends $dara.Model {
31
31
  * cidr
32
32
  */
33
33
  ipOrigin?: string;
34
+ ipv4Prefix?: string;
34
35
  /**
35
36
  * @remarks
36
37
  * The number of entries to return on each page. Valid values: **1** to **100**. Default value: **20**.
@@ -117,6 +118,7 @@ export class ListNatIpsRequest extends $dara.Model {
117
118
  clientToken: 'ClientToken',
118
119
  dryRun: 'DryRun',
119
120
  ipOrigin: 'IpOrigin',
121
+ ipv4Prefix: 'Ipv4Prefix',
120
122
  maxResults: 'MaxResults',
121
123
  natGatewayId: 'NatGatewayId',
122
124
  natIpCidr: 'NatIpCidr',
@@ -137,6 +139,7 @@ export class ListNatIpsRequest extends $dara.Model {
137
139
  clientToken: 'string',
138
140
  dryRun: 'boolean',
139
141
  ipOrigin: 'string',
142
+ ipv4Prefix: 'string',
140
143
  maxResults: 'string',
141
144
  natGatewayId: 'string',
142
145
  natIpCidr: 'string',
@@ -0,0 +1,163 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListRouteTargetGroupsRequestTag extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Resource tag key. Up to 20 tag keys are supported. If you need to pass this value, you cannot input an empty string.
9
+ *
10
+ * A tag key can have up to 128 characters and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`.
11
+ *
12
+ * @example
13
+ * FinanceJoshua
14
+ */
15
+ key?: string;
16
+ /**
17
+ * @remarks
18
+ * Resource tag value. Up to 20 tag values are supported. If you need to pass this value, you can input an empty string.
19
+ *
20
+ * A tag value can have up to 128 characters and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`.
21
+ *
22
+ * @example
23
+ * FinanceJoshua
24
+ */
25
+ value?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ key: 'Key',
29
+ value: 'Value',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ key: 'string',
36
+ value: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
49
+ export class ListRouteTargetGroupsRequest extends $dara.Model {
50
+ /**
51
+ * @remarks
52
+ * Client token used to ensure idempotence of the request. Generate a unique parameter value from your client to ensure uniqueness across different requests. ClientToken only supports ASCII characters. Note: If you do not specify this, the system will automatically use the RequestId of the API request as the ClientToken identifier. The RequestId is different for each API request.
53
+ *
54
+ * @example
55
+ * 123e4567-e89b-12d3-a456-426655440000
56
+ */
57
+ clientToken?: string;
58
+ /**
59
+ * @remarks
60
+ * Page size, with a range of **1** to **50**. Default value: **50**.
61
+ *
62
+ * @example
63
+ * 50
64
+ */
65
+ maxResults?: number;
66
+ /**
67
+ * @remarks
68
+ * Route target group member instance ID.
69
+ * Filters the route target groups that contain the specified member instance ID.
70
+ *
71
+ * @example
72
+ * ep-xxxx
73
+ */
74
+ memberId?: string;
75
+ /**
76
+ * @remarks
77
+ * Token for the next query. Value: If it is the first query or there is no next query, this field does not need to be filled. If there is a next query, the value should be the NextToken returned from the previous API call.
78
+ *
79
+ * @example
80
+ * FFmyTO70tTpLG6I3FmYAXGKPd****
81
+ */
82
+ nextToken?: string;
83
+ /**
84
+ * @remarks
85
+ * The region ID of the VPC to which the route target group belongs. You can obtain the region ID by calling the DescribeRegions interface.
86
+ *
87
+ * This parameter is required.
88
+ *
89
+ * @example
90
+ * cn-hangzhou
91
+ */
92
+ regionId?: string;
93
+ /**
94
+ * @remarks
95
+ * Resource group ID. For more information about resource groups, see What is a Resource Group?
96
+ *
97
+ * @example
98
+ * rg-acfmxazdjdhd****
99
+ */
100
+ resourceGroupId?: string;
101
+ /**
102
+ * @remarks
103
+ * List of route target group instance IDs.
104
+ *
105
+ * Up to 50 instance IDs can be queried at a time.
106
+ */
107
+ routeTargetGroupIds?: string[];
108
+ /**
109
+ * @remarks
110
+ * List of tags.
111
+ */
112
+ tag?: ListRouteTargetGroupsRequestTag[];
113
+ /**
114
+ * @remarks
115
+ * The ID of the VPC to which the route target group belongs.
116
+ *
117
+ * @example
118
+ * vpc-xxxx
119
+ */
120
+ vpcId?: string;
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ clientToken: 'ClientToken',
124
+ maxResults: 'MaxResults',
125
+ memberId: 'MemberId',
126
+ nextToken: 'NextToken',
127
+ regionId: 'RegionId',
128
+ resourceGroupId: 'ResourceGroupId',
129
+ routeTargetGroupIds: 'RouteTargetGroupIds',
130
+ tag: 'Tag',
131
+ vpcId: 'VpcId',
132
+ };
133
+ }
134
+
135
+ static types(): { [key: string]: any } {
136
+ return {
137
+ clientToken: 'string',
138
+ maxResults: 'number',
139
+ memberId: 'string',
140
+ nextToken: 'string',
141
+ regionId: 'string',
142
+ resourceGroupId: 'string',
143
+ routeTargetGroupIds: { 'type': 'array', 'itemType': 'string' },
144
+ tag: { 'type': 'array', 'itemType': ListRouteTargetGroupsRequestTag },
145
+ vpcId: 'string',
146
+ };
147
+ }
148
+
149
+ validate() {
150
+ if(Array.isArray(this.routeTargetGroupIds)) {
151
+ $dara.Model.validateArray(this.routeTargetGroupIds);
152
+ }
153
+ if(Array.isArray(this.tag)) {
154
+ $dara.Model.validateArray(this.tag);
155
+ }
156
+ super.validate();
157
+ }
158
+
159
+ constructor(map?: { [key: string]: any }) {
160
+ super(map);
161
+ }
162
+ }
163
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListRouteTargetGroupsResponseBody } from "./ListRouteTargetGroupsResponseBody";
4
+
5
+
6
+ export class ListRouteTargetGroupsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListRouteTargetGroupsResponseBody;
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: ListRouteTargetGroupsResponseBody,
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
+