@alicloud/vpc20160428 6.10.2 → 6.11.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 (81) hide show
  1. package/dist/client.d.ts +144 -0
  2. package/dist/client.js +378 -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 +201 -0
  29. package/dist/models/GetRouteTargetGroupResponseBody.js +134 -0
  30. package/dist/models/GetRouteTargetGroupResponseBody.js.map +1 -0
  31. package/dist/models/ListRouteTargetGroupsRequest.d.ts +116 -0
  32. package/dist/models/ListRouteTargetGroupsRequest.js +101 -0
  33. package/dist/models/ListRouteTargetGroupsRequest.js.map +1 -0
  34. package/dist/models/ListRouteTargetGroupsResponse.d.ts +19 -0
  35. package/dist/models/ListRouteTargetGroupsResponse.js +69 -0
  36. package/dist/models/ListRouteTargetGroupsResponse.js.map +1 -0
  37. package/dist/models/ListRouteTargetGroupsResponseBody.d.ts +256 -0
  38. package/dist/models/ListRouteTargetGroupsResponseBody.js +162 -0
  39. package/dist/models/ListRouteTargetGroupsResponseBody.js.map +1 -0
  40. package/dist/models/SwitchActiveRouteTargetRequest.d.ts +78 -0
  41. package/dist/models/SwitchActiveRouteTargetRequest.js +88 -0
  42. package/dist/models/SwitchActiveRouteTargetRequest.js.map +1 -0
  43. package/dist/models/SwitchActiveRouteTargetResponse.d.ts +19 -0
  44. package/dist/models/SwitchActiveRouteTargetResponse.js +69 -0
  45. package/dist/models/SwitchActiveRouteTargetResponse.js.map +1 -0
  46. package/dist/models/SwitchActiveRouteTargetResponseBody.d.ts +21 -0
  47. package/dist/models/SwitchActiveRouteTargetResponseBody.js +58 -0
  48. package/dist/models/SwitchActiveRouteTargetResponseBody.js.map +1 -0
  49. package/dist/models/UpdateRouteTargetGroupRequest.d.ts +112 -0
  50. package/dist/models/UpdateRouteTargetGroupRequest.js +94 -0
  51. package/dist/models/UpdateRouteTargetGroupRequest.js.map +1 -0
  52. package/dist/models/UpdateRouteTargetGroupResponse.d.ts +19 -0
  53. package/dist/models/UpdateRouteTargetGroupResponse.js +69 -0
  54. package/dist/models/UpdateRouteTargetGroupResponse.js.map +1 -0
  55. package/dist/models/UpdateRouteTargetGroupResponseBody.d.ts +21 -0
  56. package/dist/models/UpdateRouteTargetGroupResponseBody.js +58 -0
  57. package/dist/models/UpdateRouteTargetGroupResponseBody.js.map +1 -0
  58. package/dist/models/model.d.ts +30 -0
  59. package/dist/models/model.js +95 -34
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +426 -0
  63. package/src/models/CreateRouteTargetGroupRequest.ts +246 -0
  64. package/src/models/CreateRouteTargetGroupResponse.ts +40 -0
  65. package/src/models/CreateRouteTargetGroupResponseBody.ts +44 -0
  66. package/src/models/DeleteRouteTargetGroupRequest.ts +118 -0
  67. package/src/models/DeleteRouteTargetGroupResponse.ts +40 -0
  68. package/src/models/DeleteRouteTargetGroupResponseBody.ts +34 -0
  69. package/src/models/GetRouteTargetGroupRequest.ts +116 -0
  70. package/src/models/GetRouteTargetGroupResponse.ts +40 -0
  71. package/src/models/GetRouteTargetGroupResponseBody.ts +272 -0
  72. package/src/models/ListRouteTargetGroupsRequest.ts +163 -0
  73. package/src/models/ListRouteTargetGroupsResponse.ts +40 -0
  74. package/src/models/ListRouteTargetGroupsResponseBody.ts +346 -0
  75. package/src/models/SwitchActiveRouteTargetRequest.ts +112 -0
  76. package/src/models/SwitchActiveRouteTargetResponse.ts +40 -0
  77. package/src/models/SwitchActiveRouteTargetResponseBody.ts +34 -0
  78. package/src/models/UpdateRouteTargetGroupRequest.ts +152 -0
  79. package/src/models/UpdateRouteTargetGroupResponse.ts +40 -0
  80. package/src/models/UpdateRouteTargetGroupResponseBody.ts +34 -0
  81. package/src/models/model.ts +30 -0
@@ -0,0 +1,272 @@
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
+ * Status of the route target group.
206
+ *
207
+ * @example
208
+ * Available
209
+ */
210
+ status?: string;
211
+ /**
212
+ * @remarks
213
+ * Tags of the route target group.
214
+ */
215
+ tags?: GetRouteTargetGroupResponseBodyTags[];
216
+ /**
217
+ * @remarks
218
+ * ID of the VPC to which the route target group belongs.
219
+ *
220
+ * @example
221
+ * vpc-xxxx
222
+ */
223
+ vpcId?: string;
224
+ static names(): { [key: string]: string } {
225
+ return {
226
+ configMode: 'ConfigMode',
227
+ createTime: 'CreateTime',
228
+ regionId: 'RegionId',
229
+ requestId: 'RequestId',
230
+ resourceGroupId: 'ResourceGroupId',
231
+ routeTargetGroupDescription: 'RouteTargetGroupDescription',
232
+ routeTargetGroupId: 'RouteTargetGroupId',
233
+ routeTargetGroupName: 'RouteTargetGroupName',
234
+ routeTargetMemberList: 'RouteTargetMemberList',
235
+ status: 'Status',
236
+ tags: 'Tags',
237
+ vpcId: 'VpcId',
238
+ };
239
+ }
240
+
241
+ static types(): { [key: string]: any } {
242
+ return {
243
+ configMode: 'string',
244
+ createTime: 'string',
245
+ regionId: 'string',
246
+ requestId: 'string',
247
+ resourceGroupId: 'string',
248
+ routeTargetGroupDescription: 'string',
249
+ routeTargetGroupId: 'string',
250
+ routeTargetGroupName: 'string',
251
+ routeTargetMemberList: { 'type': 'array', 'itemType': GetRouteTargetGroupResponseBodyRouteTargetMemberList },
252
+ status: 'string',
253
+ tags: { 'type': 'array', 'itemType': GetRouteTargetGroupResponseBodyTags },
254
+ vpcId: 'string',
255
+ };
256
+ }
257
+
258
+ validate() {
259
+ if(Array.isArray(this.routeTargetMemberList)) {
260
+ $dara.Model.validateArray(this.routeTargetMemberList);
261
+ }
262
+ if(Array.isArray(this.tags)) {
263
+ $dara.Model.validateArray(this.tags);
264
+ }
265
+ super.validate();
266
+ }
267
+
268
+ constructor(map?: { [key: string]: any }) {
269
+ super(map);
270
+ }
271
+ }
272
+
@@ -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
+