@alicloud/vpc20160428 7.0.1 → 7.1.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.
- package/dist/client.d.ts +55 -8
- package/dist/client.js +211 -8
- package/dist/client.js.map +1 -1
- package/dist/models/CreateEnhancedVpnGatewayRequest.d.ts +76 -0
- package/dist/models/CreateEnhancedVpnGatewayRequest.js +84 -0
- package/dist/models/CreateEnhancedVpnGatewayRequest.js.map +1 -0
- package/dist/models/CreateEnhancedVpnGatewayResponse.d.ts +19 -0
- package/dist/models/CreateEnhancedVpnGatewayResponse.js +69 -0
- package/dist/models/CreateEnhancedVpnGatewayResponse.js.map +1 -0
- package/dist/models/CreateEnhancedVpnGatewayResponseBody.d.ts +28 -0
- package/dist/models/CreateEnhancedVpnGatewayResponseBody.js +62 -0
- package/dist/models/CreateEnhancedVpnGatewayResponseBody.js.map +1 -0
- package/dist/models/DeleteEnhancedVpnGatewayRequest.d.ts +38 -0
- package/dist/models/DeleteEnhancedVpnGatewayRequest.js +70 -0
- package/dist/models/DeleteEnhancedVpnGatewayRequest.js.map +1 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponse.d.ts +19 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponse.js +69 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponse.js.map +1 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponseBody.d.ts +18 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponseBody.js +58 -0
- package/dist/models/DeleteEnhancedVpnGatewayResponseBody.js.map +1 -0
- package/dist/models/ModifyRouteEntryRequest.d.ts +3 -1
- package/dist/models/ModifyRouteEntryRequest.js.map +1 -1
- package/dist/models/UpdateEnhancedVpnGatewayRequest.d.ts +53 -0
- package/dist/models/UpdateEnhancedVpnGatewayRequest.js +76 -0
- package/dist/models/UpdateEnhancedVpnGatewayRequest.js.map +1 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponse.d.ts +19 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponse.js +69 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponse.js.map +1 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponseBody.d.ts +135 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponseBody.js +163 -0
- package/dist/models/UpdateEnhancedVpnGatewayResponseBody.js.map +1 -0
- package/dist/models/UpdateNetworkAclEntriesRequest.d.ts +26 -22
- package/dist/models/UpdateNetworkAclEntriesRequest.js.map +1 -1
- package/dist/models/model.d.ts +12 -0
- package/dist/models/model.js +49 -25
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +248 -8
- package/src/models/CreateEnhancedVpnGatewayRequest.ts +115 -0
- package/src/models/CreateEnhancedVpnGatewayResponse.ts +40 -0
- package/src/models/CreateEnhancedVpnGatewayResponseBody.ts +45 -0
- package/src/models/DeleteEnhancedVpnGatewayRequest.ts +63 -0
- package/src/models/DeleteEnhancedVpnGatewayResponse.ts +40 -0
- package/src/models/DeleteEnhancedVpnGatewayResponseBody.ts +31 -0
- package/src/models/ModifyRouteEntryRequest.ts +3 -1
- package/src/models/UpdateEnhancedVpnGatewayRequest.ts +84 -0
- package/src/models/UpdateEnhancedVpnGatewayResponse.ts +40 -0
- package/src/models/UpdateEnhancedVpnGatewayResponseBody.ts +226 -0
- package/src/models/UpdateNetworkAclEntriesRequest.ts +26 -22
- package/src/models/model.ts +12 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateEnhancedVpnGatewayRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 02fb3da4****
|
|
9
|
+
*/
|
|
10
|
+
clientToken?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* vsw-p0wiz7obm0tbimu4r****
|
|
14
|
+
*/
|
|
15
|
+
disasterRecoveryVSwitchId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* This parameter is required.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* Enhanced.SiteToSite
|
|
22
|
+
*/
|
|
23
|
+
gatewayType?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* MYVPN
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* public
|
|
32
|
+
*/
|
|
33
|
+
networkType?: string;
|
|
34
|
+
ownerAccount?: string;
|
|
35
|
+
ownerId?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* This parameter is required.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* cn-hangzhou
|
|
42
|
+
*/
|
|
43
|
+
regionId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* rg-acfmzs372yg****
|
|
47
|
+
*/
|
|
48
|
+
resourceGroupId?: string;
|
|
49
|
+
resourceOwnerAccount?: string;
|
|
50
|
+
resourceOwnerId?: number;
|
|
51
|
+
/**
|
|
52
|
+
* @example
|
|
53
|
+
* vsw-bp1j5miw2bae9s2vt****
|
|
54
|
+
*/
|
|
55
|
+
vSwitchId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* This parameter is required.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* vpc-bp1ub1yt9cvakoelj****
|
|
62
|
+
*/
|
|
63
|
+
vpcId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* Normal
|
|
67
|
+
*/
|
|
68
|
+
vpnType?: string;
|
|
69
|
+
static names(): { [key: string]: string } {
|
|
70
|
+
return {
|
|
71
|
+
clientToken: 'ClientToken',
|
|
72
|
+
disasterRecoveryVSwitchId: 'DisasterRecoveryVSwitchId',
|
|
73
|
+
gatewayType: 'GatewayType',
|
|
74
|
+
name: 'Name',
|
|
75
|
+
networkType: 'NetworkType',
|
|
76
|
+
ownerAccount: 'OwnerAccount',
|
|
77
|
+
ownerId: 'OwnerId',
|
|
78
|
+
regionId: 'RegionId',
|
|
79
|
+
resourceGroupId: 'ResourceGroupId',
|
|
80
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
81
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
82
|
+
vSwitchId: 'VSwitchId',
|
|
83
|
+
vpcId: 'VpcId',
|
|
84
|
+
vpnType: 'VpnType',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static types(): { [key: string]: any } {
|
|
89
|
+
return {
|
|
90
|
+
clientToken: 'string',
|
|
91
|
+
disasterRecoveryVSwitchId: 'string',
|
|
92
|
+
gatewayType: 'string',
|
|
93
|
+
name: 'string',
|
|
94
|
+
networkType: 'string',
|
|
95
|
+
ownerAccount: 'string',
|
|
96
|
+
ownerId: 'number',
|
|
97
|
+
regionId: 'string',
|
|
98
|
+
resourceGroupId: 'string',
|
|
99
|
+
resourceOwnerAccount: 'string',
|
|
100
|
+
resourceOwnerId: 'number',
|
|
101
|
+
vSwitchId: 'string',
|
|
102
|
+
vpcId: 'string',
|
|
103
|
+
vpnType: 'string',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
validate() {
|
|
108
|
+
super.validate();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
constructor(map?: { [key: string]: any }) {
|
|
112
|
+
super(map);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateEnhancedVpnGatewayResponseBody } from "./CreateEnhancedVpnGatewayResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateEnhancedVpnGatewayResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateEnhancedVpnGatewayResponseBody;
|
|
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: CreateEnhancedVpnGatewayResponseBody,
|
|
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,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateEnhancedVpnGatewayResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* MYVPN
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* EB2C156A-41F8-49CC-A756-D55AFC8BFD69
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* vpn-uf68lxhgr7ftbqr3p****
|
|
19
|
+
*/
|
|
20
|
+
vpnGatewayId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
name: 'Name',
|
|
24
|
+
requestId: 'RequestId',
|
|
25
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
name: 'string',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
vpnGatewayId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteEnhancedVpnGatewayRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 02fb3da4-130e-11e9-8e44-0016e04115b
|
|
9
|
+
*/
|
|
10
|
+
clientToken?: string;
|
|
11
|
+
ownerAccount?: string;
|
|
12
|
+
ownerId?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* This parameter is required.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* cn-hangzhou
|
|
19
|
+
*/
|
|
20
|
+
regionId?: string;
|
|
21
|
+
resourceOwnerAccount?: string;
|
|
22
|
+
resourceOwnerId?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* This parameter is required.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* vpn-bp1q8bgx4xnkm2ogj****
|
|
29
|
+
*/
|
|
30
|
+
vpnGatewayId?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
clientToken: 'ClientToken',
|
|
34
|
+
ownerAccount: 'OwnerAccount',
|
|
35
|
+
ownerId: 'OwnerId',
|
|
36
|
+
regionId: 'RegionId',
|
|
37
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
38
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
39
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
clientToken: 'string',
|
|
46
|
+
ownerAccount: 'string',
|
|
47
|
+
ownerId: 'number',
|
|
48
|
+
regionId: 'string',
|
|
49
|
+
resourceOwnerAccount: 'string',
|
|
50
|
+
resourceOwnerId: 'number',
|
|
51
|
+
vpnGatewayId: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
validate() {
|
|
56
|
+
super.validate();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
constructor(map?: { [key: string]: any }) {
|
|
60
|
+
super(map);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteEnhancedVpnGatewayResponseBody } from "./DeleteEnhancedVpnGatewayResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteEnhancedVpnGatewayResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteEnhancedVpnGatewayResponseBody;
|
|
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: DeleteEnhancedVpnGatewayResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteEnhancedVpnGatewayResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'RequestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -15,7 +15,9 @@ export class ModifyRouteEntryRequest extends $dara.Model {
|
|
|
15
15
|
description?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The destination CIDR block of the route entry
|
|
18
|
+
* The destination CIDR block of the route entry, which supports IPv4 CIDR blocks and IPv6 CIDR blocks.
|
|
19
|
+
* > When the **RouteEntryId** parameter is not provided, both the **DestinationCidrBlock** and **RouteTableId** parameters are required.
|
|
20
|
+
* When modifying a route whose destination CIDR block points to a prefix list, the **RouteEntryId** parameter is required, and the **DestinationCidrBlock** parameter does not support prefix list CIDR blocks or prefix list instance IDs.
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
23
|
* 192.168.0.0/24
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateEnhancedVpnGatewayRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
9
|
+
*/
|
|
10
|
+
autoPropagate?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 123e4567-e89b-12d3-a456-4266****
|
|
14
|
+
*/
|
|
15
|
+
clientToken?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* test
|
|
19
|
+
*/
|
|
20
|
+
description?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* myvpn
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
ownerAccount?: string;
|
|
27
|
+
ownerId?: number;
|
|
28
|
+
/**
|
|
29
|
+
* @remarks
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* cn-hangzhou
|
|
34
|
+
*/
|
|
35
|
+
regionId?: string;
|
|
36
|
+
resourceOwnerAccount?: string;
|
|
37
|
+
resourceOwnerId?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* This parameter is required.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* vpn-bp1q8bgx4xnkm2ogj****
|
|
44
|
+
*/
|
|
45
|
+
vpnGatewayId?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
autoPropagate: 'AutoPropagate',
|
|
49
|
+
clientToken: 'ClientToken',
|
|
50
|
+
description: 'Description',
|
|
51
|
+
name: 'Name',
|
|
52
|
+
ownerAccount: 'OwnerAccount',
|
|
53
|
+
ownerId: 'OwnerId',
|
|
54
|
+
regionId: 'RegionId',
|
|
55
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
56
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
57
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static types(): { [key: string]: any } {
|
|
62
|
+
return {
|
|
63
|
+
autoPropagate: 'boolean',
|
|
64
|
+
clientToken: 'string',
|
|
65
|
+
description: 'string',
|
|
66
|
+
name: 'string',
|
|
67
|
+
ownerAccount: 'string',
|
|
68
|
+
ownerId: 'number',
|
|
69
|
+
regionId: 'string',
|
|
70
|
+
resourceOwnerAccount: 'string',
|
|
71
|
+
resourceOwnerId: 'number',
|
|
72
|
+
vpnGatewayId: 'string',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { UpdateEnhancedVpnGatewayResponseBody } from "./UpdateEnhancedVpnGatewayResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class UpdateEnhancedVpnGatewayResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: UpdateEnhancedVpnGatewayResponseBody;
|
|
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: UpdateEnhancedVpnGatewayResponseBody,
|
|
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,226 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UpdateEnhancedVpnGatewayResponseBodyEniInstanceIds extends $dara.Model {
|
|
6
|
+
eniInstanceId?: string[];
|
|
7
|
+
static names(): { [key: string]: string } {
|
|
8
|
+
return {
|
|
9
|
+
eniInstanceId: 'EniInstanceId',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static types(): { [key: string]: any } {
|
|
14
|
+
return {
|
|
15
|
+
eniInstanceId: { 'type': 'array', 'itemType': 'string' },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
validate() {
|
|
20
|
+
if(Array.isArray(this.eniInstanceId)) {
|
|
21
|
+
$dara.Model.validateArray(this.eniInstanceId);
|
|
22
|
+
}
|
|
23
|
+
super.validate();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
constructor(map?: { [key: string]: any }) {
|
|
27
|
+
super(map);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class UpdateEnhancedVpnGatewayResponseBodyTagsTag extends $dara.Model {
|
|
32
|
+
key?: string;
|
|
33
|
+
value?: string;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
key: 'Key',
|
|
37
|
+
value: 'Value',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
key: 'string',
|
|
44
|
+
value: 'string',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class UpdateEnhancedVpnGatewayResponseBodyTags extends $dara.Model {
|
|
58
|
+
tag?: UpdateEnhancedVpnGatewayResponseBodyTagsTag[];
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
tag: 'Tag',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
tag: { 'type': 'array', 'itemType': UpdateEnhancedVpnGatewayResponseBodyTagsTag },
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validate() {
|
|
72
|
+
if(Array.isArray(this.tag)) {
|
|
73
|
+
$dara.Model.validateArray(this.tag);
|
|
74
|
+
}
|
|
75
|
+
super.validate();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
constructor(map?: { [key: string]: any }) {
|
|
79
|
+
super(map);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class UpdateEnhancedVpnGatewayResponseBody extends $dara.Model {
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* true
|
|
87
|
+
*/
|
|
88
|
+
autoPropagate?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* 1492753580000
|
|
92
|
+
*/
|
|
93
|
+
createTime?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @example
|
|
96
|
+
* test
|
|
97
|
+
*/
|
|
98
|
+
description?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* vsw-p0w95ql6tmr2ludkt****
|
|
102
|
+
*/
|
|
103
|
+
disasterRecoveryVSwitchId?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @example
|
|
106
|
+
* true
|
|
107
|
+
*/
|
|
108
|
+
enableBgp?: boolean;
|
|
109
|
+
eniInstanceIds?: UpdateEnhancedVpnGatewayResponseBodyEniInstanceIds;
|
|
110
|
+
/**
|
|
111
|
+
* @example
|
|
112
|
+
* Enhanced.SiteToSite
|
|
113
|
+
*/
|
|
114
|
+
gatewayType?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @example
|
|
117
|
+
* test
|
|
118
|
+
*/
|
|
119
|
+
name?: string;
|
|
120
|
+
/**
|
|
121
|
+
* @example
|
|
122
|
+
* public
|
|
123
|
+
*/
|
|
124
|
+
networkType?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @example
|
|
127
|
+
* 54B48E3D-DF70-471B-AA93-08E683A1B457
|
|
128
|
+
*/
|
|
129
|
+
requestId?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* rg-acfmzs372yg****
|
|
133
|
+
*/
|
|
134
|
+
resourceGroupId?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @example
|
|
137
|
+
* active
|
|
138
|
+
*/
|
|
139
|
+
status?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @example
|
|
142
|
+
* {"VpnEnableBgp": true}
|
|
143
|
+
*/
|
|
144
|
+
tag?: string;
|
|
145
|
+
tags?: UpdateEnhancedVpnGatewayResponseBodyTags;
|
|
146
|
+
/**
|
|
147
|
+
* @example
|
|
148
|
+
* vsw-bp1y9ovl1cu9ou4tv****
|
|
149
|
+
*/
|
|
150
|
+
vSwitchId?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @example
|
|
153
|
+
* vpc-bp1ub1yt9cvakoel****
|
|
154
|
+
*/
|
|
155
|
+
vpcId?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @example
|
|
158
|
+
* vpn-bp1q8bgx4xnkm2ogj****
|
|
159
|
+
*/
|
|
160
|
+
vpnGatewayId?: string;
|
|
161
|
+
/**
|
|
162
|
+
* @example
|
|
163
|
+
* Normal
|
|
164
|
+
*/
|
|
165
|
+
vpnType?: string;
|
|
166
|
+
static names(): { [key: string]: string } {
|
|
167
|
+
return {
|
|
168
|
+
autoPropagate: 'AutoPropagate',
|
|
169
|
+
createTime: 'CreateTime',
|
|
170
|
+
description: 'Description',
|
|
171
|
+
disasterRecoveryVSwitchId: 'DisasterRecoveryVSwitchId',
|
|
172
|
+
enableBgp: 'EnableBgp',
|
|
173
|
+
eniInstanceIds: 'EniInstanceIds',
|
|
174
|
+
gatewayType: 'GatewayType',
|
|
175
|
+
name: 'Name',
|
|
176
|
+
networkType: 'NetworkType',
|
|
177
|
+
requestId: 'RequestId',
|
|
178
|
+
resourceGroupId: 'ResourceGroupId',
|
|
179
|
+
status: 'Status',
|
|
180
|
+
tag: 'Tag',
|
|
181
|
+
tags: 'Tags',
|
|
182
|
+
vSwitchId: 'VSwitchId',
|
|
183
|
+
vpcId: 'VpcId',
|
|
184
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
185
|
+
vpnType: 'VpnType',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static types(): { [key: string]: any } {
|
|
190
|
+
return {
|
|
191
|
+
autoPropagate: 'boolean',
|
|
192
|
+
createTime: 'number',
|
|
193
|
+
description: 'string',
|
|
194
|
+
disasterRecoveryVSwitchId: 'string',
|
|
195
|
+
enableBgp: 'boolean',
|
|
196
|
+
eniInstanceIds: UpdateEnhancedVpnGatewayResponseBodyEniInstanceIds,
|
|
197
|
+
gatewayType: 'string',
|
|
198
|
+
name: 'string',
|
|
199
|
+
networkType: 'string',
|
|
200
|
+
requestId: 'string',
|
|
201
|
+
resourceGroupId: 'string',
|
|
202
|
+
status: 'string',
|
|
203
|
+
tag: 'string',
|
|
204
|
+
tags: UpdateEnhancedVpnGatewayResponseBodyTags,
|
|
205
|
+
vSwitchId: 'string',
|
|
206
|
+
vpcId: 'string',
|
|
207
|
+
vpnGatewayId: 'string',
|
|
208
|
+
vpnType: 'string',
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
validate() {
|
|
213
|
+
if(this.eniInstanceIds && typeof (this.eniInstanceIds as any).validate === 'function') {
|
|
214
|
+
(this.eniInstanceIds as any).validate();
|
|
215
|
+
}
|
|
216
|
+
if(this.tags && typeof (this.tags as any).validate === 'function') {
|
|
217
|
+
(this.tags as any).validate();
|
|
218
|
+
}
|
|
219
|
+
super.validate();
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
constructor(map?: { [key: string]: any }) {
|
|
223
|
+
super(map);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|