@alicloud/vpc20160428 7.3.0 → 7.3.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.
- package/dist/client.d.ts +12 -12
- package/dist/client.js +21 -48
- package/dist/client.js.map +1 -1
- package/dist/models/CreateRouteTargetGroupRequest.d.ts +5 -6
- package/dist/models/CreateRouteTargetGroupRequest.js.map +1 -1
- package/dist/models/CreateVswitchRequest.d.ts +26 -9
- package/dist/models/CreateVswitchRequest.js +4 -0
- package/dist/models/CreateVswitchRequest.js.map +1 -1
- package/dist/models/GetVpcPrefixListAssociationsRequest.d.ts +3 -3
- package/dist/models/GetVpcPrefixListAssociationsResponseBody.d.ts +9 -9
- package/dist/models/ModifyVswitchAttributeRequest.d.ts +13 -3
- package/dist/models/ModifyVswitchAttributeRequest.js +2 -0
- package/dist/models/ModifyVswitchAttributeRequest.js.map +1 -1
- package/dist/models/UpdateDhcpOptionsSetAttributeRequest.d.ts +10 -10
- package/package.json +1 -1
- package/src/client.ts +24 -48
- package/src/models/CreateRouteTargetGroupRequest.ts +5 -6
- package/src/models/CreateVswitchRequest.ts +30 -9
- package/src/models/GetVpcPrefixListAssociationsRequest.ts +3 -3
- package/src/models/GetVpcPrefixListAssociationsResponseBody.ts +9 -9
- package/src/models/ModifyVswitchAttributeRequest.ts +15 -3
- package/src/models/UpdateDhcpOptionsSetAttributeRequest.ts +10 -10
|
@@ -49,31 +49,38 @@ export class CreateVSwitchRequestTag extends $dara.Model {
|
|
|
49
49
|
export class CreateVSwitchRequest extends $dara.Model {
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* The CIDR block of the vSwitch. The following requirements
|
|
52
|
+
* The CIDR block of the vSwitch. The vSwitch CIDR block must meet the following requirements:
|
|
53
53
|
*
|
|
54
54
|
* - The mask length of the vSwitch CIDR block must be 16 to 29 bits.
|
|
55
55
|
*
|
|
56
|
-
* - The CIDR block
|
|
56
|
+
* - The vSwitch CIDR block must be a subset of the CIDR block of the VPC to which the vSwitch belongs.
|
|
57
57
|
*
|
|
58
|
-
* - The CIDR block
|
|
58
|
+
* - The vSwitch CIDR block cannot be the same as the destination CIDR block of a route entry in the VPC, but can be a subset of the destination CIDR block.
|
|
59
59
|
*
|
|
60
|
-
* - The CIDR block
|
|
60
|
+
* - The vSwitch CIDR block cannot be within the following reserved address ranges: 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, or 224.0.0.0/4.
|
|
61
61
|
*
|
|
62
62
|
* > After a vSwitch is created, you cannot modify its CIDR block.
|
|
63
63
|
*
|
|
64
|
-
* This parameter is required.
|
|
65
|
-
*
|
|
66
64
|
* @example
|
|
67
65
|
* 172.16.0.0/24
|
|
68
66
|
*/
|
|
69
67
|
cidrBlock?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The mask length of the IPv4 CIDR block of the vSwitch.
|
|
71
|
+
* > The mask length of the vSwitch IPv4 CIDR block must be 16 to 29 bits. You must specify at least one of CidrBlock and CidrMask.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* 24
|
|
75
|
+
*/
|
|
76
|
+
cidrMask?: number;
|
|
70
77
|
/**
|
|
71
78
|
* @remarks
|
|
72
79
|
* The client token that is used to ensure the idempotence of the request.
|
|
73
80
|
*
|
|
74
81
|
* You can use the client to generate the token, but you must make sure that the token is unique among different requests. The ClientToken value can contain only ASCII characters.
|
|
75
82
|
*
|
|
76
|
-
* > If you do not specify this parameter, the system uses the **RequestId** of the API request as the **ClientToken**. The **RequestId** may
|
|
83
|
+
* > If you do not specify this parameter, the system uses the **RequestId** of the API request as the **ClientToken**. The **RequestId** may vary for each API request.
|
|
77
84
|
*
|
|
78
85
|
* @example
|
|
79
86
|
* 0c593ea1-3bea-11e9-b96b-88e9fe63****
|
|
@@ -92,17 +99,27 @@ export class CreateVSwitchRequest extends $dara.Model {
|
|
|
92
99
|
/**
|
|
93
100
|
* @remarks
|
|
94
101
|
* The last 8 bits of the IPv6 CIDR block of the vSwitch. Valid values: **0** to **255**.
|
|
95
|
-
* You can specify this parameter only when the VPC to which the vSwitch belongs has IPv6 enabled.
|
|
102
|
+
* You can specify this parameter to assign an IPv6 CIDR block to the vSwitch only when the VPC to which the vSwitch belongs has IPv6 enabled. After the IPv6 CIDR block is assigned, it cannot be changed to another CIDR block. Make sure that the CIDR block does not overlap with those of other vSwitches in the VPC.
|
|
96
103
|
*
|
|
97
104
|
* @example
|
|
98
105
|
* 12
|
|
99
106
|
*/
|
|
100
107
|
ipv6CidrBlock?: number;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* The subnet mask of the IPv6 CIDR block of the vSwitch. You can specify this parameter to assign an IPv6 CIDR block to the vSwitch only when the VPC to which the vSwitch belongs has IPv6 enabled.
|
|
111
|
+
*
|
|
112
|
+
* > Only 64 is supported.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* 64
|
|
116
|
+
*/
|
|
117
|
+
ipv6CidrMask?: number;
|
|
101
118
|
ownerAccount?: string;
|
|
102
119
|
ownerId?: number;
|
|
103
120
|
/**
|
|
104
121
|
* @remarks
|
|
105
|
-
* The region ID of the vSwitch
|
|
122
|
+
* The region ID of the vSwitch to create.
|
|
106
123
|
*
|
|
107
124
|
* You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the region ID.
|
|
108
125
|
*
|
|
@@ -160,9 +177,11 @@ export class CreateVSwitchRequest extends $dara.Model {
|
|
|
160
177
|
static names(): { [key: string]: string } {
|
|
161
178
|
return {
|
|
162
179
|
cidrBlock: 'CidrBlock',
|
|
180
|
+
cidrMask: 'CidrMask',
|
|
163
181
|
clientToken: 'ClientToken',
|
|
164
182
|
description: 'Description',
|
|
165
183
|
ipv6CidrBlock: 'Ipv6CidrBlock',
|
|
184
|
+
ipv6CidrMask: 'Ipv6CidrMask',
|
|
166
185
|
ownerAccount: 'OwnerAccount',
|
|
167
186
|
ownerId: 'OwnerId',
|
|
168
187
|
regionId: 'RegionId',
|
|
@@ -179,9 +198,11 @@ export class CreateVSwitchRequest extends $dara.Model {
|
|
|
179
198
|
static types(): { [key: string]: any } {
|
|
180
199
|
return {
|
|
181
200
|
cidrBlock: 'string',
|
|
201
|
+
cidrMask: 'number',
|
|
182
202
|
clientToken: 'string',
|
|
183
203
|
description: 'string',
|
|
184
204
|
ipv6CidrBlock: 'number',
|
|
205
|
+
ipv6CidrMask: 'number',
|
|
185
206
|
ownerAccount: 'string',
|
|
186
207
|
ownerId: 'number',
|
|
187
208
|
regionId: 'string',
|
|
@@ -13,9 +13,9 @@ export class GetVpcPrefixListAssociationsRequest extends $dara.Model {
|
|
|
13
13
|
maxResults?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
17
|
-
* - Leave this parameter empty for the first query or if no
|
|
18
|
-
* - If a
|
|
16
|
+
* The token for the next query. Valid values:
|
|
17
|
+
* - Leave this parameter empty for the first query or if no next query exists.
|
|
18
|
+
* - If a next query exists, set this parameter to the NextToken value returned in the previous API call.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* FFmyTO70tTpLG6I3FmYAXGKPd****
|
|
@@ -74,12 +74,12 @@ export class GetVpcPrefixListAssociationsResponseBodyPrefixListAssociation exten
|
|
|
74
74
|
* @remarks
|
|
75
75
|
* The association status of the prefix list. Valid values:
|
|
76
76
|
*
|
|
77
|
-
* - **Created**:
|
|
78
|
-
* - **ModifyFailed**:
|
|
79
|
-
* - **Creating**:
|
|
80
|
-
* - **Modifying**:
|
|
81
|
-
* - **Deleting**:
|
|
82
|
-
* - **Deleted**:
|
|
77
|
+
* - **Created**: Succeeded.
|
|
78
|
+
* - **ModifyFailed**: Not associated with the latest version.
|
|
79
|
+
* - **Creating**: Being created.
|
|
80
|
+
* - **Modifying**: Being modified.
|
|
81
|
+
* - **Deleting**: Being deleted.
|
|
82
|
+
* - **Deleted**: Deleted.
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* Success
|
|
@@ -133,9 +133,9 @@ export class GetVpcPrefixListAssociationsResponseBody extends $dara.Model {
|
|
|
133
133
|
count?: number;
|
|
134
134
|
/**
|
|
135
135
|
* @remarks
|
|
136
|
-
* The
|
|
137
|
-
* - If **NextToken** is empty, no
|
|
138
|
-
* - If **NextToken**
|
|
136
|
+
* The token for the next query. Valid values:
|
|
137
|
+
* - If **NextToken** is empty, no next query exists.
|
|
138
|
+
* - If **NextToken** has a return value, the value is the token for the next query.
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
141
|
* FFmyTO70tTpLG6I3FmYAXGKPd****
|
|
@@ -17,8 +17,8 @@ export class ModifyVSwitchAttributeRequest extends $dara.Model {
|
|
|
17
17
|
* @remarks
|
|
18
18
|
* Specifies whether to enable IPv6 for the vSwitch. Valid values:
|
|
19
19
|
*
|
|
20
|
-
* - **true**:
|
|
21
|
-
* - **false** (default):
|
|
20
|
+
* - **true**: Enables IPv6. IPv6 must be enabled for the VPC to which the vSwitch belongs. You must also specify Ipv6CidrBlock to allocate an IPv6 CIDR block to the vSwitch.
|
|
21
|
+
* - **false** (default): Disables IPv6. Before you disable IPv6 for the vSwitch, make sure that no IPv6 addresses are in use. You cannot specify Ipv6CidrBlock at the same time.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* false
|
|
@@ -28,12 +28,22 @@ export class ModifyVSwitchAttributeRequest extends $dara.Model {
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* The last 8 bits of the IPv6 CIDR block of the vSwitch. Valid values: **0** to **255**.
|
|
30
30
|
*
|
|
31
|
-
* You can
|
|
31
|
+
* You can set this parameter only when IPv6 is enabled for the VPC to which the vSwitch belongs. This parameter allows you to allocate an IPv6 CIDR block to the vSwitch. After the IPv6 CIDR block is allocated, it cannot be changed to another CIDR block. Make sure that the CIDR block does not overlap with those of other vSwitches in the same VPC.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* 10
|
|
35
35
|
*/
|
|
36
36
|
ipv6CidrBlock?: number;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The IPv6 CIDR block mask of the vSwitch. You can set this parameter only when IPv6 is enabled for the VPC to which the vSwitch belongs.
|
|
40
|
+
*
|
|
41
|
+
* > Only 64 is supported.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 64
|
|
45
|
+
*/
|
|
46
|
+
ipv6CidrMask?: number;
|
|
37
47
|
ownerAccount?: string;
|
|
38
48
|
ownerId?: number;
|
|
39
49
|
/**
|
|
@@ -80,6 +90,7 @@ export class ModifyVSwitchAttributeRequest extends $dara.Model {
|
|
|
80
90
|
description: 'Description',
|
|
81
91
|
enableIPv6: 'EnableIPv6',
|
|
82
92
|
ipv6CidrBlock: 'Ipv6CidrBlock',
|
|
93
|
+
ipv6CidrMask: 'Ipv6CidrMask',
|
|
83
94
|
ownerAccount: 'OwnerAccount',
|
|
84
95
|
ownerId: 'OwnerId',
|
|
85
96
|
regionId: 'RegionId',
|
|
@@ -96,6 +107,7 @@ export class ModifyVSwitchAttributeRequest extends $dara.Model {
|
|
|
96
107
|
description: 'string',
|
|
97
108
|
enableIPv6: 'boolean',
|
|
98
109
|
ipv6CidrBlock: 'number',
|
|
110
|
+
ipv6CidrMask: 'number',
|
|
99
111
|
ownerAccount: 'string',
|
|
100
112
|
ownerId: 'number',
|
|
101
113
|
regionId: 'string',
|
|
@@ -19,7 +19,7 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
19
19
|
* @remarks
|
|
20
20
|
* The description of the DHCP options set.
|
|
21
21
|
*
|
|
22
|
-
* The description can be empty or 2 to 256 characters in length. It must start with a letter or Chinese character and cannot start with `http://` or `https://`.
|
|
22
|
+
* The description can be empty or 2 to 256 characters in length. It must start with a letter or a Chinese character and cannot start with `http://` or `https://`.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* description
|
|
@@ -27,7 +27,7 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
27
27
|
dhcpOptionsSetDescription?: string;
|
|
28
28
|
/**
|
|
29
29
|
* @remarks
|
|
30
|
-
* The ID of the DHCP options set to
|
|
30
|
+
* The ID of the DHCP options set to be modified.
|
|
31
31
|
*
|
|
32
32
|
* This parameter is required.
|
|
33
33
|
*
|
|
@@ -39,7 +39,7 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
39
39
|
* @remarks
|
|
40
40
|
* The name of the DHCP options set.
|
|
41
41
|
*
|
|
42
|
-
* The name must be 2 to 128 characters in length and must start with a letter or Chinese character. It can contain digits, underscores (_), and hyphens (-).
|
|
42
|
+
* The name must be 2 to 128 characters in length and must start with a letter or a Chinese character. It can contain digits, underscores (_), and hyphens (-).
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* name
|
|
@@ -49,7 +49,7 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
49
49
|
* @remarks
|
|
50
50
|
* The hostname suffix, such as example.com.
|
|
51
51
|
*
|
|
52
|
-
* After
|
|
52
|
+
* After the DHCP options set is associated with a VPC, the hostname suffix is automatically synchronized to the ECS instances in the VPC.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* example.com
|
|
@@ -57,9 +57,9 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
57
57
|
domainName?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The IP addresses of DNS servers. You can specify up to four DNS server IP addresses
|
|
60
|
+
* The IP addresses of DNS servers. You can specify up to four DNS server IP addresses. Separate multiple IP addresses with commas (,).
|
|
61
61
|
*
|
|
62
|
-
* >If you do not specify any DNS server IP addresses, ECS instances use the DNS server IP addresses provided by Alibaba Cloud (100.100.2.136 and 100.100.2.138)
|
|
62
|
+
* >If you do not specify any DNS server IP addresses, ECS instances use the DNS server IP addresses provided by Alibaba Cloud by default (100.100.2.136 and 100.100.2.138).
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* 192.XX.XX.123
|
|
@@ -67,11 +67,11 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
67
67
|
domainNameServers?: string;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* Specifies whether to perform
|
|
70
|
+
* Specifies whether to perform a dry run. Valid values:
|
|
71
71
|
*
|
|
72
|
-
* **true**: performs
|
|
72
|
+
* **true**: performs a dry run without modifying the DHCP options set configuration. The system checks the required parameters, request format, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the error code `DryRunOperation` is returned.
|
|
73
73
|
*
|
|
74
|
-
* **false** (default): performs a dry run and
|
|
74
|
+
* **false** (default): performs a dry run and sends the request. If the request passes the dry run, an HTTP 2xx status code is returned and the DHCP options set configuration is modified.
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
77
|
* false
|
|
@@ -109,7 +109,7 @@ export class UpdateDhcpOptionsSetAttributeRequest extends $dara.Model {
|
|
|
109
109
|
ownerId?: number;
|
|
110
110
|
/**
|
|
111
111
|
* @remarks
|
|
112
|
-
* The region
|
|
112
|
+
* The region where the DHCP options set to be modified resides. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the region ID.
|
|
113
113
|
*
|
|
114
114
|
* This parameter is required.
|
|
115
115
|
*
|