@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,346 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListRouteTargetGroupsResponseBodyRouteTargetGroupsRouteTargetMemberList 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
+ * The health check status of the route target group member. Values:
22
+ *
23
+ * - **Normal**: Normal
24
+ * - **Abnormal**: Abnormal
25
+ *
26
+ * @example
27
+ * Normal
28
+ */
29
+ healthCheckStatus?: string;
30
+ /**
31
+ * @remarks
32
+ * The ID of the route target group member instance.
33
+ *
34
+ * @example
35
+ * ep-xxxx
36
+ */
37
+ memberId?: string;
38
+ /**
39
+ * @remarks
40
+ * The type of the route target group member.
41
+ *
42
+ * Currently supported types:
43
+ *
44
+ * - **GatewayLoadBalancerEndpoint**
45
+ *
46
+ * @example
47
+ * GatewayLoadBalancerEndpoint
48
+ */
49
+ memberType?: string;
50
+ /**
51
+ * @remarks
52
+ * The weight value of the route target group member. Values:
53
+ *
54
+ * - **100**: Indicates that the member is the primary instance.
55
+ * - **0**: Indicates that the member is the backup instance.
56
+ *
57
+ * The weight value can only be set during creation and cannot be modified.
58
+ *
59
+ * @example
60
+ * 100
61
+ */
62
+ weight?: number;
63
+ static names(): { [key: string]: string } {
64
+ return {
65
+ enableStatus: 'EnableStatus',
66
+ healthCheckStatus: 'HealthCheckStatus',
67
+ memberId: 'MemberId',
68
+ memberType: 'MemberType',
69
+ weight: 'Weight',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ enableStatus: 'string',
76
+ healthCheckStatus: 'string',
77
+ memberId: 'string',
78
+ memberType: 'string',
79
+ weight: 'number',
80
+ };
81
+ }
82
+
83
+ validate() {
84
+ super.validate();
85
+ }
86
+
87
+ constructor(map?: { [key: string]: any }) {
88
+ super(map);
89
+ }
90
+ }
91
+
92
+ export class ListRouteTargetGroupsResponseBodyRouteTargetGroupsTags extends $dara.Model {
93
+ /**
94
+ * @remarks
95
+ * The key of the resource tag.
96
+ *
97
+ * @example
98
+ * image/upload/cbbec42e0be33abb27babefcbe0397f0
99
+ */
100
+ key?: string;
101
+ /**
102
+ * @remarks
103
+ * The value of the resource tag. Up to 20 tag values are supported. If you need to pass this value, you can input an empty string. A maximum of 128 characters is allowed. The value cannot start with `aliyun` or `acs:`, and it must not contain `http://` or `https://`.
104
+ *
105
+ * @example
106
+ * 8
107
+ */
108
+ value?: string;
109
+ static names(): { [key: string]: string } {
110
+ return {
111
+ key: 'Key',
112
+ value: 'Value',
113
+ };
114
+ }
115
+
116
+ static types(): { [key: string]: any } {
117
+ return {
118
+ key: 'string',
119
+ value: 'string',
120
+ };
121
+ }
122
+
123
+ validate() {
124
+ super.validate();
125
+ }
126
+
127
+ constructor(map?: { [key: string]: any }) {
128
+ super(map);
129
+ }
130
+ }
131
+
132
+ export class ListRouteTargetGroupsResponseBodyRouteTargetGroups extends $dara.Model {
133
+ /**
134
+ * @remarks
135
+ * The configuration mode of the route target group. Supported modes are as follows:
136
+ *
137
+ * - **Active-Standby**: Active-standby mode.
138
+ *
139
+ * @example
140
+ * Active-Standby
141
+ */
142
+ configMode?: string;
143
+ /**
144
+ * @remarks
145
+ * The time when the route target group was created.
146
+ *
147
+ * @example
148
+ * 2025-12-30T06:40:50Z
149
+ */
150
+ createTime?: string;
151
+ /**
152
+ * @remarks
153
+ * The region ID of the VPC to which the route target group belongs.
154
+ *
155
+ * You can obtain the region ID by calling the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) interface.
156
+ *
157
+ * @example
158
+ * cn-hangzhou
159
+ */
160
+ regionId?: string;
161
+ /**
162
+ * @remarks
163
+ * The ID of the resource group to which the route target group belongs.
164
+ *
165
+ * @example
166
+ * rg-acfm3swh6ta56ri
167
+ */
168
+ resourceGroupId?: string;
169
+ /**
170
+ * @remarks
171
+ * Description of the route target group.
172
+ *
173
+ * @example
174
+ * myRouteTargetGroupDescription
175
+ */
176
+ routeTargetGroupDescription?: string;
177
+ /**
178
+ * @remarks
179
+ * The ID of the route target group instance.
180
+ *
181
+ * @example
182
+ * rtg-xxxx
183
+ */
184
+ routeTargetGroupId?: string;
185
+ /**
186
+ * @remarks
187
+ * The name of the route target group.
188
+ *
189
+ * @example
190
+ * myRouteTargetGroupName
191
+ */
192
+ routeTargetGroupName?: string;
193
+ /**
194
+ * @remarks
195
+ * The list of route target group members.
196
+ */
197
+ routeTargetMemberList?: ListRouteTargetGroupsResponseBodyRouteTargetGroupsRouteTargetMemberList[];
198
+ /**
199
+ * @remarks
200
+ * Status of the route target group. Values:
201
+ *
202
+ * - **Recovering**: Active-Standby rollback in progress
203
+ * - **Switched**: Active-Standby switched
204
+ * - **Available**: Available
205
+ * - **Abnormal**: Standby instance abnormal
206
+ * - **Pending**: Creating
207
+ * - **Switching**: Active-Standby switching in progress
208
+ * - **Deleting**: Deleting
209
+ * - **Unavailable**: Both primary and standby instances are abnormal
210
+ *
211
+ * @example
212
+ * Available
213
+ */
214
+ status?: string;
215
+ /**
216
+ * @remarks
217
+ * The tag values. A maximum of 20 tag values are supported. If you need to pass this value, you can input an empty string.
218
+ *
219
+ * A maximum of 128 characters are supported. The value cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.
220
+ */
221
+ tags?: ListRouteTargetGroupsResponseBodyRouteTargetGroupsTags[];
222
+ /**
223
+ * @remarks
224
+ * The ID of the VPC to which the route target group belongs.
225
+ *
226
+ * @example
227
+ * vpc-uf60y8uzhsvbhmuh3l654
228
+ */
229
+ vpcId?: string;
230
+ static names(): { [key: string]: string } {
231
+ return {
232
+ configMode: 'ConfigMode',
233
+ createTime: 'CreateTime',
234
+ regionId: 'RegionId',
235
+ resourceGroupId: 'ResourceGroupId',
236
+ routeTargetGroupDescription: 'RouteTargetGroupDescription',
237
+ routeTargetGroupId: 'RouteTargetGroupId',
238
+ routeTargetGroupName: 'RouteTargetGroupName',
239
+ routeTargetMemberList: 'RouteTargetMemberList',
240
+ status: 'Status',
241
+ tags: 'Tags',
242
+ vpcId: 'VpcId',
243
+ };
244
+ }
245
+
246
+ static types(): { [key: string]: any } {
247
+ return {
248
+ configMode: 'string',
249
+ createTime: 'string',
250
+ regionId: 'string',
251
+ resourceGroupId: 'string',
252
+ routeTargetGroupDescription: 'string',
253
+ routeTargetGroupId: 'string',
254
+ routeTargetGroupName: 'string',
255
+ routeTargetMemberList: { 'type': 'array', 'itemType': ListRouteTargetGroupsResponseBodyRouteTargetGroupsRouteTargetMemberList },
256
+ status: 'string',
257
+ tags: { 'type': 'array', 'itemType': ListRouteTargetGroupsResponseBodyRouteTargetGroupsTags },
258
+ vpcId: 'string',
259
+ };
260
+ }
261
+
262
+ validate() {
263
+ if(Array.isArray(this.routeTargetMemberList)) {
264
+ $dara.Model.validateArray(this.routeTargetMemberList);
265
+ }
266
+ if(Array.isArray(this.tags)) {
267
+ $dara.Model.validateArray(this.tags);
268
+ }
269
+ super.validate();
270
+ }
271
+
272
+ constructor(map?: { [key: string]: any }) {
273
+ super(map);
274
+ }
275
+ }
276
+
277
+ export class ListRouteTargetGroupsResponseBody extends $dara.Model {
278
+ /**
279
+ * @remarks
280
+ * The page size.
281
+ *
282
+ * @example
283
+ * 50
284
+ */
285
+ maxResults?: number;
286
+ /**
287
+ * @remarks
288
+ * Token for the next query. Value: If NextToken is empty, it indicates there is no next query. If NextToken has a return value, it indicates the token for the next query.
289
+ *
290
+ * @example
291
+ * FFmyTO70tTpLG6I3FmYAXGKPd****
292
+ */
293
+ nextToken?: string;
294
+ /**
295
+ * @remarks
296
+ * ID of the request
297
+ *
298
+ * @example
299
+ * DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6
300
+ */
301
+ requestId?: string;
302
+ /**
303
+ * @remarks
304
+ * List of route target groups.
305
+ */
306
+ routeTargetGroups?: ListRouteTargetGroupsResponseBodyRouteTargetGroups[];
307
+ /**
308
+ * @remarks
309
+ * Number of items in the list.
310
+ *
311
+ * @example
312
+ * 1
313
+ */
314
+ totalCount?: number;
315
+ static names(): { [key: string]: string } {
316
+ return {
317
+ maxResults: 'MaxResults',
318
+ nextToken: 'NextToken',
319
+ requestId: 'RequestId',
320
+ routeTargetGroups: 'RouteTargetGroups',
321
+ totalCount: 'TotalCount',
322
+ };
323
+ }
324
+
325
+ static types(): { [key: string]: any } {
326
+ return {
327
+ maxResults: 'number',
328
+ nextToken: 'string',
329
+ requestId: 'string',
330
+ routeTargetGroups: { 'type': 'array', 'itemType': ListRouteTargetGroupsResponseBodyRouteTargetGroups },
331
+ totalCount: 'number',
332
+ };
333
+ }
334
+
335
+ validate() {
336
+ if(Array.isArray(this.routeTargetGroups)) {
337
+ $dara.Model.validateArray(this.routeTargetGroups);
338
+ }
339
+ super.validate();
340
+ }
341
+
342
+ constructor(map?: { [key: string]: any }) {
343
+ super(map);
344
+ }
345
+ }
346
+
@@ -0,0 +1,112 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SwitchActiveRouteTargetRequestTag extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The key of the resource tag. Up to 20 tag keys are supported. If you need to pass this value, you cannot input an empty string.
9
+ *
10
+ * Each tag key can have up to 128 characters and cannot start with `aliyun` or `acs:`. It also cannot contain `http://` or `https://`.
11
+ *
12
+ * @example
13
+ * FinanceDept
14
+ */
15
+ key?: string;
16
+ /**
17
+ * @remarks
18
+ * The value of the resource tag. Up to 20 tag values are supported. If you need to pass this value, you can input an empty string. A maximum of 128 characters is allowed. The value cannot start with `aliyun` or `acs:`, and it must not contain `http://` or `https://`.
19
+ *
20
+ * @example
21
+ * FinanceJoshua
22
+ */
23
+ value?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ key: 'Key',
27
+ value: 'Value',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ key: 'string',
34
+ value: 'string',
35
+ };
36
+ }
37
+
38
+ validate() {
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
47
+ export class SwitchActiveRouteTargetRequest extends $dara.Model {
48
+ /**
49
+ * @remarks
50
+ * Client token, used to ensure the idempotence of the request. Generate a unique value for this parameter from your client to ensure that it is unique across different requests. The 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 may differ for each API request.
51
+ *
52
+ * @example
53
+ * 0c593ea1-3bea-11e9-b96b-88e9fe6****
54
+ */
55
+ clientToken?: string;
56
+ /**
57
+ * @remarks
58
+ * The region ID where the RouteTargetGroup is located.
59
+ *
60
+ * You can obtain the region ID by calling the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) API.
61
+ *
62
+ * This parameter is required.
63
+ *
64
+ * @example
65
+ * cn-hangzhou
66
+ */
67
+ regionId?: string;
68
+ /**
69
+ * @remarks
70
+ * The instance ID of the RouteTargetGroup.
71
+ *
72
+ * This parameter is required.
73
+ *
74
+ * @example
75
+ * rtg-xxxx
76
+ */
77
+ routeTargetGroupId?: string;
78
+ /**
79
+ * @remarks
80
+ * Resource tags.
81
+ */
82
+ tag?: SwitchActiveRouteTargetRequestTag[];
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ clientToken: 'ClientToken',
86
+ regionId: 'RegionId',
87
+ routeTargetGroupId: 'RouteTargetGroupId',
88
+ tag: 'Tag',
89
+ };
90
+ }
91
+
92
+ static types(): { [key: string]: any } {
93
+ return {
94
+ clientToken: 'string',
95
+ regionId: 'string',
96
+ routeTargetGroupId: 'string',
97
+ tag: { 'type': 'array', 'itemType': SwitchActiveRouteTargetRequestTag },
98
+ };
99
+ }
100
+
101
+ validate() {
102
+ if(Array.isArray(this.tag)) {
103
+ $dara.Model.validateArray(this.tag);
104
+ }
105
+ super.validate();
106
+ }
107
+
108
+ constructor(map?: { [key: string]: any }) {
109
+ super(map);
110
+ }
111
+ }
112
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { SwitchActiveRouteTargetResponseBody } from "./SwitchActiveRouteTargetResponseBody";
4
+
5
+
6
+ export class SwitchActiveRouteTargetResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: SwitchActiveRouteTargetResponseBody;
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: SwitchActiveRouteTargetResponseBody,
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
+
@@ -0,0 +1,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class SwitchActiveRouteTargetResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Request ID.
9
+ *
10
+ * @example
11
+ * C1221A1F-2ACD-4592-8F27-474E02883159
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
+
@@ -0,0 +1,152 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateRouteTargetGroupRequestRouteTargetMemberList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * ID of the route target group member instance.
9
+ *
10
+ * @example
11
+ * ep-xxxx
12
+ */
13
+ memberId?: string;
14
+ /**
15
+ * @remarks
16
+ * The member type of the route target group.
17
+ *
18
+ * Currently supported types: - **GatewayLoadBalancerEndpoint**
19
+ *
20
+ * In active-standby mode, all members of the route target group must be of the same type.
21
+ *
22
+ * @example
23
+ * GatewayLoadBalancerEndpoint
24
+ */
25
+ memberType?: string;
26
+ /**
27
+ * @remarks
28
+ * The weight value of the route target group member. Values:
29
+ * - 100: indicates the member is the primary instance.
30
+ * - 0: indicates the member is the backup instance.
31
+ * The weight value can only be set during creation and cannot be modified.
32
+ *
33
+ * @example
34
+ * 100
35
+ */
36
+ weight?: number;
37
+ static names(): { [key: string]: string } {
38
+ return {
39
+ memberId: 'MemberId',
40
+ memberType: 'MemberType',
41
+ weight: 'Weight',
42
+ };
43
+ }
44
+
45
+ static types(): { [key: string]: any } {
46
+ return {
47
+ memberId: 'string',
48
+ memberType: 'string',
49
+ weight: 'number',
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
62
+ export class UpdateRouteTargetGroupRequest extends $dara.Model {
63
+ /**
64
+ * @remarks
65
+ * Client Token, used to ensure the idempotence of requests. Generate a unique value for this parameter from your client for each request. ClientToken supports only ASCII characters. Note that if you do not specify this, the system will automatically use the RequestId of the API request as the ClientToken identifier. The RequestId may differ for each API request.
66
+ *
67
+ * @example
68
+ * 123e4567-e89b-12d3-a456-426655440000
69
+ */
70
+ clientToken?: string;
71
+ /**
72
+ * @remarks
73
+ * The ID of the region to which the route target group instance belongs. You can obtain the region ID by calling the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) interface.
74
+ *
75
+ * This parameter is required.
76
+ *
77
+ * @example
78
+ * cn-hangzhou
79
+ */
80
+ regionId?: string;
81
+ /**
82
+ * @remarks
83
+ * Description of the route target group.
84
+ *
85
+ * The description length should be between 1 to 256 characters and must not start with http:// or https://.
86
+ *
87
+ * @example
88
+ * myRouteTargetGroupDescription
89
+ */
90
+ routeTargetGroupDescription?: string;
91
+ /**
92
+ * @remarks
93
+ * The ID of the route target group instance.
94
+ *
95
+ * This parameter is required.
96
+ *
97
+ * @example
98
+ * rtg-xxx
99
+ */
100
+ routeTargetGroupId?: string;
101
+ /**
102
+ * @remarks
103
+ * The name of the route target group.
104
+ *
105
+ * The name length should be between 1 and 128 characters, and cannot start with http:// or https://.
106
+ *
107
+ * @example
108
+ * myRouteTargetGroupName
109
+ */
110
+ routeTargetGroupName?: string;
111
+ /**
112
+ * @remarks
113
+ * List of members in the route target group.
114
+ * Under the primary-standby mode, there are the following restrictions on the members of the route target group:
115
+ * 1. The number of members in the route target group must be 2.
116
+ * 2. The members of the route target group must belong to different availability zones.
117
+ */
118
+ routeTargetMemberList?: UpdateRouteTargetGroupRequestRouteTargetMemberList[];
119
+ static names(): { [key: string]: string } {
120
+ return {
121
+ clientToken: 'ClientToken',
122
+ regionId: 'RegionId',
123
+ routeTargetGroupDescription: 'RouteTargetGroupDescription',
124
+ routeTargetGroupId: 'RouteTargetGroupId',
125
+ routeTargetGroupName: 'RouteTargetGroupName',
126
+ routeTargetMemberList: 'RouteTargetMemberList',
127
+ };
128
+ }
129
+
130
+ static types(): { [key: string]: any } {
131
+ return {
132
+ clientToken: 'string',
133
+ regionId: 'string',
134
+ routeTargetGroupDescription: 'string',
135
+ routeTargetGroupId: 'string',
136
+ routeTargetGroupName: 'string',
137
+ routeTargetMemberList: { 'type': 'array', 'itemType': UpdateRouteTargetGroupRequestRouteTargetMemberList },
138
+ };
139
+ }
140
+
141
+ validate() {
142
+ if(Array.isArray(this.routeTargetMemberList)) {
143
+ $dara.Model.validateArray(this.routeTargetMemberList);
144
+ }
145
+ super.validate();
146
+ }
147
+
148
+ constructor(map?: { [key: string]: any }) {
149
+ super(map);
150
+ }
151
+ }
152
+