@alicloud/ecd20200930 4.11.10 → 4.12.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 +15 -0
- package/dist/client.js +57 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDesktopsRequest.d.ts +1 -0
- package/dist/models/CreateDesktopsRequest.js +2 -0
- package/dist/models/CreateDesktopsRequest.js.map +1 -1
- package/dist/models/CreateDesktopsShrinkRequest.d.ts +1 -0
- package/dist/models/CreateDesktopsShrinkRequest.js +2 -0
- package/dist/models/CreateDesktopsShrinkRequest.js.map +1 -1
- package/dist/models/DescribeDesktopGroupSessionsResponseBody.d.ts +10 -0
- package/dist/models/DescribeDesktopGroupSessionsResponseBody.js +4 -0
- package/dist/models/DescribeDesktopGroupSessionsResponseBody.js.map +1 -1
- package/dist/models/DescribeDesktopSessionsResponseBody.d.ts +18 -0
- package/dist/models/DescribeDesktopSessionsResponseBody.js +4 -0
- package/dist/models/DescribeDesktopSessionsResponseBody.js.map +1 -1
- package/dist/models/ModifySecurityGroupAttributeRequest.d.ts +111 -0
- package/dist/models/ModifySecurityGroupAttributeRequest.js +220 -0
- package/dist/models/ModifySecurityGroupAttributeRequest.js.map +1 -0
- package/dist/models/ModifySecurityGroupAttributeResponse.d.ts +19 -0
- package/dist/models/ModifySecurityGroupAttributeResponse.js +69 -0
- package/dist/models/ModifySecurityGroupAttributeResponse.js.map +1 -0
- package/dist/models/ModifySecurityGroupAttributeResponseBody.d.ts +14 -0
- package/dist/models/ModifySecurityGroupAttributeResponseBody.js +58 -0
- package/dist/models/ModifySecurityGroupAttributeResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +32 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +66 -0
- package/src/models/CreateDesktopsRequest.ts +3 -0
- package/src/models/CreateDesktopsShrinkRequest.ts +3 -0
- package/src/models/DescribeDesktopGroupSessionsResponseBody.ts +14 -0
- package/src/models/DescribeDesktopSessionsResponseBody.ts +22 -0
- package/src/models/ModifySecurityGroupAttributeRequest.ts +250 -0
- package/src/models/ModifySecurityGroupAttributeResponse.ts +40 -0
- package/src/models/ModifySecurityGroupAttributeResponseBody.ts +27 -0
- package/src/models/model.ts +7 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3668,6 +3668,10 @@ export default class Client extends OpenApi {
|
|
|
3668
3668
|
query["SnapshotPolicyId"] = request.snapshotPolicyId;
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
|
+
if (!$dara.isNull(request.subnetId)) {
|
|
3672
|
+
query["SubnetId"] = request.subnetId;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3671
3675
|
if (!$dara.isNull(request.tag)) {
|
|
3672
3676
|
query["Tag"] = request.tag;
|
|
3673
3677
|
}
|
|
@@ -16156,6 +16160,68 @@ export default class Client extends OpenApi {
|
|
|
16156
16160
|
return await this.modifyResourceCenterPolicyWithOptions(request, runtime);
|
|
16157
16161
|
}
|
|
16158
16162
|
|
|
16163
|
+
/**
|
|
16164
|
+
* 修改办公网络维度安全组策略
|
|
16165
|
+
*
|
|
16166
|
+
* @param request - ModifySecurityGroupAttributeRequest
|
|
16167
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16168
|
+
* @returns ModifySecurityGroupAttributeResponse
|
|
16169
|
+
*/
|
|
16170
|
+
async modifySecurityGroupAttributeWithOptions(request: $_model.ModifySecurityGroupAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifySecurityGroupAttributeResponse> {
|
|
16171
|
+
request.validate();
|
|
16172
|
+
let query = { };
|
|
16173
|
+
if (!$dara.isNull(request.authorizeEgress)) {
|
|
16174
|
+
query["AuthorizeEgress"] = request.authorizeEgress;
|
|
16175
|
+
}
|
|
16176
|
+
|
|
16177
|
+
if (!$dara.isNull(request.authorizeIngress)) {
|
|
16178
|
+
query["AuthorizeIngress"] = request.authorizeIngress;
|
|
16179
|
+
}
|
|
16180
|
+
|
|
16181
|
+
if (!$dara.isNull(request.officeSiteId)) {
|
|
16182
|
+
query["OfficeSiteId"] = request.officeSiteId;
|
|
16183
|
+
}
|
|
16184
|
+
|
|
16185
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16186
|
+
query["RegionId"] = request.regionId;
|
|
16187
|
+
}
|
|
16188
|
+
|
|
16189
|
+
if (!$dara.isNull(request.revokeEgress)) {
|
|
16190
|
+
query["RevokeEgress"] = request.revokeEgress;
|
|
16191
|
+
}
|
|
16192
|
+
|
|
16193
|
+
if (!$dara.isNull(request.revokeIngress)) {
|
|
16194
|
+
query["RevokeIngress"] = request.revokeIngress;
|
|
16195
|
+
}
|
|
16196
|
+
|
|
16197
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16198
|
+
query: OpenApiUtil.query(query),
|
|
16199
|
+
});
|
|
16200
|
+
let params = new $OpenApiUtil.Params({
|
|
16201
|
+
action: "ModifySecurityGroupAttribute",
|
|
16202
|
+
version: "2020-09-30",
|
|
16203
|
+
protocol: "HTTPS",
|
|
16204
|
+
pathname: "/",
|
|
16205
|
+
method: "POST",
|
|
16206
|
+
authType: "AK",
|
|
16207
|
+
style: "RPC",
|
|
16208
|
+
reqBodyType: "formData",
|
|
16209
|
+
bodyType: "json",
|
|
16210
|
+
});
|
|
16211
|
+
return $dara.cast<$_model.ModifySecurityGroupAttributeResponse>(await this.callApi(params, req, runtime), new $_model.ModifySecurityGroupAttributeResponse({}));
|
|
16212
|
+
}
|
|
16213
|
+
|
|
16214
|
+
/**
|
|
16215
|
+
* 修改办公网络维度安全组策略
|
|
16216
|
+
*
|
|
16217
|
+
* @param request - ModifySecurityGroupAttributeRequest
|
|
16218
|
+
* @returns ModifySecurityGroupAttributeResponse
|
|
16219
|
+
*/
|
|
16220
|
+
async modifySecurityGroupAttribute(request: $_model.ModifySecurityGroupAttributeRequest): Promise<$_model.ModifySecurityGroupAttributeResponse> {
|
|
16221
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16222
|
+
return await this.modifySecurityGroupAttributeWithOptions(request, runtime);
|
|
16223
|
+
}
|
|
16224
|
+
|
|
16159
16225
|
/**
|
|
16160
16226
|
* 模板全量更新
|
|
16161
16227
|
*
|
|
@@ -832,6 +832,7 @@ export class CreateDesktopsRequest extends $dara.Model {
|
|
|
832
832
|
* sp-28mp6my0l6zow****
|
|
833
833
|
*/
|
|
834
834
|
snapshotPolicyId?: string;
|
|
835
|
+
subnetId?: string;
|
|
835
836
|
/**
|
|
836
837
|
* @remarks
|
|
837
838
|
* The tags that you want to add to the cloud desktop.
|
|
@@ -944,6 +945,7 @@ export class CreateDesktopsRequest extends $dara.Model {
|
|
|
944
945
|
resourceGroupId: 'ResourceGroupId',
|
|
945
946
|
savingPlanId: 'SavingPlanId',
|
|
946
947
|
snapshotPolicyId: 'SnapshotPolicyId',
|
|
948
|
+
subnetId: 'SubnetId',
|
|
947
949
|
tag: 'Tag',
|
|
948
950
|
timerGroupId: 'TimerGroupId',
|
|
949
951
|
userAssignMode: 'UserAssignMode',
|
|
@@ -987,6 +989,7 @@ export class CreateDesktopsRequest extends $dara.Model {
|
|
|
987
989
|
resourceGroupId: 'string',
|
|
988
990
|
savingPlanId: 'string',
|
|
989
991
|
snapshotPolicyId: 'string',
|
|
992
|
+
subnetId: 'string',
|
|
990
993
|
tag: { 'type': 'array', 'itemType': CreateDesktopsRequestTag },
|
|
991
994
|
timerGroupId: 'string',
|
|
992
995
|
userAssignMode: 'string',
|
|
@@ -705,6 +705,7 @@ export class CreateDesktopsShrinkRequest extends $dara.Model {
|
|
|
705
705
|
* sp-28mp6my0l6zow****
|
|
706
706
|
*/
|
|
707
707
|
snapshotPolicyId?: string;
|
|
708
|
+
subnetId?: string;
|
|
708
709
|
/**
|
|
709
710
|
* @remarks
|
|
710
711
|
* The tags that you want to add to the cloud desktop.
|
|
@@ -817,6 +818,7 @@ export class CreateDesktopsShrinkRequest extends $dara.Model {
|
|
|
817
818
|
resourceGroupId: 'ResourceGroupId',
|
|
818
819
|
savingPlanId: 'SavingPlanId',
|
|
819
820
|
snapshotPolicyId: 'SnapshotPolicyId',
|
|
821
|
+
subnetId: 'SubnetId',
|
|
820
822
|
tag: 'Tag',
|
|
821
823
|
timerGroupId: 'TimerGroupId',
|
|
822
824
|
userAssignMode: 'UserAssignMode',
|
|
@@ -860,6 +862,7 @@ export class CreateDesktopsShrinkRequest extends $dara.Model {
|
|
|
860
862
|
resourceGroupId: 'string',
|
|
861
863
|
savingPlanId: 'string',
|
|
862
864
|
snapshotPolicyId: 'string',
|
|
865
|
+
subnetId: 'string',
|
|
863
866
|
tag: { 'type': 'array', 'itemType': CreateDesktopsShrinkRequestTag },
|
|
864
867
|
timerGroupId: 'string',
|
|
865
868
|
userAssignMode: 'string',
|
|
@@ -51,6 +51,11 @@ export class DescribeDesktopGroupSessionsResponseBodySessionsTerminalInfo extend
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export class DescribeDesktopGroupSessionsResponseBodySessions extends $dara.Model {
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* SIMPLE
|
|
57
|
+
*/
|
|
58
|
+
accountType?: string;
|
|
54
59
|
/**
|
|
55
60
|
* @remarks
|
|
56
61
|
* The IP address of the client.
|
|
@@ -99,6 +104,11 @@ export class DescribeDesktopGroupSessionsResponseBodySessions extends $dara.Mode
|
|
|
99
104
|
* ecd-g6t1ukbaea****
|
|
100
105
|
*/
|
|
101
106
|
desktopId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @example
|
|
109
|
+
* SIMPLE
|
|
110
|
+
*/
|
|
111
|
+
directoryType?: string;
|
|
102
112
|
/**
|
|
103
113
|
* @remarks
|
|
104
114
|
* The point in time when the end user applies for administrator assistance.
|
|
@@ -232,12 +242,14 @@ export class DescribeDesktopGroupSessionsResponseBodySessions extends $dara.Mode
|
|
|
232
242
|
totalConnectionDuration?: number;
|
|
233
243
|
static names(): { [key: string]: string } {
|
|
234
244
|
return {
|
|
245
|
+
accountType: 'AccountType',
|
|
235
246
|
clientIp: 'ClientIp',
|
|
236
247
|
clientOS: 'ClientOS',
|
|
237
248
|
clientVersion: 'ClientVersion',
|
|
238
249
|
desktopGroupId: 'DesktopGroupId',
|
|
239
250
|
desktopGroupName: 'DesktopGroupName',
|
|
240
251
|
desktopId: 'DesktopId',
|
|
252
|
+
directoryType: 'DirectoryType',
|
|
241
253
|
endUserApplyCoordinateTime: 'EndUserApplyCoordinateTime',
|
|
242
254
|
endUserId: 'EndUserId',
|
|
243
255
|
lastSessionEndTime: 'LastSessionEndTime',
|
|
@@ -257,12 +269,14 @@ export class DescribeDesktopGroupSessionsResponseBodySessions extends $dara.Mode
|
|
|
257
269
|
|
|
258
270
|
static types(): { [key: string]: any } {
|
|
259
271
|
return {
|
|
272
|
+
accountType: 'string',
|
|
260
273
|
clientIp: 'string',
|
|
261
274
|
clientOS: 'string',
|
|
262
275
|
clientVersion: 'string',
|
|
263
276
|
desktopGroupId: 'string',
|
|
264
277
|
desktopGroupName: 'string',
|
|
265
278
|
desktopId: 'string',
|
|
279
|
+
directoryType: 'string',
|
|
266
280
|
endUserApplyCoordinateTime: 'number',
|
|
267
281
|
endUserId: 'string',
|
|
268
282
|
lastSessionEndTime: 'string',
|
|
@@ -3,7 +3,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeDesktopSessionsResponseBodySessionsResourceGroups extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* rg-8whrmo2gtsb8bxxxx
|
|
9
|
+
*/
|
|
6
10
|
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* RgTest
|
|
14
|
+
*/
|
|
7
15
|
name?: string;
|
|
8
16
|
static names(): { [key: string]: string } {
|
|
9
17
|
return {
|
|
@@ -77,6 +85,11 @@ export class DescribeDesktopSessionsResponseBodySessionsTerminalInfo extends $da
|
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
export class DescribeDesktopSessionsResponseBodySessions extends $dara.Model {
|
|
88
|
+
/**
|
|
89
|
+
* @example
|
|
90
|
+
* SIMPLE
|
|
91
|
+
*/
|
|
92
|
+
accountType?: string;
|
|
80
93
|
/**
|
|
81
94
|
* @remarks
|
|
82
95
|
* The IP address of the client.
|
|
@@ -117,6 +130,11 @@ export class DescribeDesktopSessionsResponseBodySessions extends $dara.Model {
|
|
|
117
130
|
* testDesktop
|
|
118
131
|
*/
|
|
119
132
|
desktopName?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @example
|
|
135
|
+
* SIMPLE
|
|
136
|
+
*/
|
|
137
|
+
directoryType?: string;
|
|
120
138
|
/**
|
|
121
139
|
* @remarks
|
|
122
140
|
* The duration of the remote assistance. Unit: seconds.
|
|
@@ -255,11 +273,13 @@ export class DescribeDesktopSessionsResponseBodySessions extends $dara.Model {
|
|
|
255
273
|
totalConnectionTime?: number;
|
|
256
274
|
static names(): { [key: string]: string } {
|
|
257
275
|
return {
|
|
276
|
+
accountType: 'AccountType',
|
|
258
277
|
clientIp: 'ClientIp',
|
|
259
278
|
clientOS: 'ClientOS',
|
|
260
279
|
clientVersion: 'ClientVersion',
|
|
261
280
|
desktopId: 'DesktopId',
|
|
262
281
|
desktopName: 'DesktopName',
|
|
282
|
+
directoryType: 'DirectoryType',
|
|
263
283
|
endUserApplyCoordinateTime: 'EndUserApplyCoordinateTime',
|
|
264
284
|
endUserId: 'EndUserId',
|
|
265
285
|
latestConnectionTime: 'LatestConnectionTime',
|
|
@@ -281,11 +301,13 @@ export class DescribeDesktopSessionsResponseBodySessions extends $dara.Model {
|
|
|
281
301
|
|
|
282
302
|
static types(): { [key: string]: any } {
|
|
283
303
|
return {
|
|
304
|
+
accountType: 'string',
|
|
284
305
|
clientIp: 'string',
|
|
285
306
|
clientOS: 'string',
|
|
286
307
|
clientVersion: 'string',
|
|
287
308
|
desktopId: 'string',
|
|
288
309
|
desktopName: 'string',
|
|
310
|
+
directoryType: 'string',
|
|
289
311
|
endUserApplyCoordinateTime: 'number',
|
|
290
312
|
endUserId: 'string',
|
|
291
313
|
latestConnectionTime: 'number',
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ModifySecurityGroupAttributeRequestAuthorizeEgress extends $dara.Model {
|
|
6
|
+
description?: string;
|
|
7
|
+
destCidrIp?: string;
|
|
8
|
+
ipProtocol?: string;
|
|
9
|
+
nicType?: string;
|
|
10
|
+
policy?: string;
|
|
11
|
+
portRange?: string;
|
|
12
|
+
priority?: string;
|
|
13
|
+
sourceCidrIp?: string;
|
|
14
|
+
sourcePortRange?: string;
|
|
15
|
+
static names(): { [key: string]: string } {
|
|
16
|
+
return {
|
|
17
|
+
description: 'Description',
|
|
18
|
+
destCidrIp: 'DestCidrIp',
|
|
19
|
+
ipProtocol: 'IpProtocol',
|
|
20
|
+
nicType: 'NicType',
|
|
21
|
+
policy: 'Policy',
|
|
22
|
+
portRange: 'PortRange',
|
|
23
|
+
priority: 'Priority',
|
|
24
|
+
sourceCidrIp: 'SourceCidrIp',
|
|
25
|
+
sourcePortRange: 'SourcePortRange',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
description: 'string',
|
|
32
|
+
destCidrIp: 'string',
|
|
33
|
+
ipProtocol: 'string',
|
|
34
|
+
nicType: 'string',
|
|
35
|
+
policy: 'string',
|
|
36
|
+
portRange: 'string',
|
|
37
|
+
priority: 'string',
|
|
38
|
+
sourceCidrIp: 'string',
|
|
39
|
+
sourcePortRange: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
super.validate();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
constructor(map?: { [key: string]: any }) {
|
|
48
|
+
super(map);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export class ModifySecurityGroupAttributeRequestAuthorizeIngress extends $dara.Model {
|
|
53
|
+
description?: string;
|
|
54
|
+
destCidrIp?: string;
|
|
55
|
+
ipProtocol?: string;
|
|
56
|
+
nicType?: string;
|
|
57
|
+
policy?: string;
|
|
58
|
+
portRange?: string;
|
|
59
|
+
priority?: string;
|
|
60
|
+
sourceCidrIp?: string;
|
|
61
|
+
sourcePortRange?: string;
|
|
62
|
+
static names(): { [key: string]: string } {
|
|
63
|
+
return {
|
|
64
|
+
description: 'Description',
|
|
65
|
+
destCidrIp: 'DestCidrIp',
|
|
66
|
+
ipProtocol: 'IpProtocol',
|
|
67
|
+
nicType: 'NicType',
|
|
68
|
+
policy: 'Policy',
|
|
69
|
+
portRange: 'PortRange',
|
|
70
|
+
priority: 'Priority',
|
|
71
|
+
sourceCidrIp: 'SourceCidrIp',
|
|
72
|
+
sourcePortRange: 'SourcePortRange',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
static types(): { [key: string]: any } {
|
|
77
|
+
return {
|
|
78
|
+
description: 'string',
|
|
79
|
+
destCidrIp: 'string',
|
|
80
|
+
ipProtocol: 'string',
|
|
81
|
+
nicType: 'string',
|
|
82
|
+
policy: 'string',
|
|
83
|
+
portRange: 'string',
|
|
84
|
+
priority: 'string',
|
|
85
|
+
sourceCidrIp: 'string',
|
|
86
|
+
sourcePortRange: 'string',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
validate() {
|
|
91
|
+
super.validate();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
constructor(map?: { [key: string]: any }) {
|
|
95
|
+
super(map);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export class ModifySecurityGroupAttributeRequestRevokeEgress extends $dara.Model {
|
|
100
|
+
description?: string;
|
|
101
|
+
destCidrIp?: string;
|
|
102
|
+
ipProtocol?: string;
|
|
103
|
+
nicType?: string;
|
|
104
|
+
policy?: string;
|
|
105
|
+
portRange?: string;
|
|
106
|
+
priority?: string;
|
|
107
|
+
sourceCidrIp?: string;
|
|
108
|
+
sourcePortRange?: string;
|
|
109
|
+
static names(): { [key: string]: string } {
|
|
110
|
+
return {
|
|
111
|
+
description: 'Description',
|
|
112
|
+
destCidrIp: 'DestCidrIp',
|
|
113
|
+
ipProtocol: 'IpProtocol',
|
|
114
|
+
nicType: 'NicType',
|
|
115
|
+
policy: 'Policy',
|
|
116
|
+
portRange: 'PortRange',
|
|
117
|
+
priority: 'Priority',
|
|
118
|
+
sourceCidrIp: 'SourceCidrIp',
|
|
119
|
+
sourcePortRange: 'SourcePortRange',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
description: 'string',
|
|
126
|
+
destCidrIp: 'string',
|
|
127
|
+
ipProtocol: 'string',
|
|
128
|
+
nicType: 'string',
|
|
129
|
+
policy: 'string',
|
|
130
|
+
portRange: 'string',
|
|
131
|
+
priority: 'string',
|
|
132
|
+
sourceCidrIp: 'string',
|
|
133
|
+
sourcePortRange: 'string',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
validate() {
|
|
138
|
+
super.validate();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
constructor(map?: { [key: string]: any }) {
|
|
142
|
+
super(map);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export class ModifySecurityGroupAttributeRequestRevokeIngress extends $dara.Model {
|
|
147
|
+
description?: string;
|
|
148
|
+
destCidrIp?: string;
|
|
149
|
+
ipProtocol?: string;
|
|
150
|
+
nicType?: string;
|
|
151
|
+
policy?: string;
|
|
152
|
+
portRange?: string;
|
|
153
|
+
priority?: string;
|
|
154
|
+
sourceCidrIp?: string;
|
|
155
|
+
sourcePortRange?: string;
|
|
156
|
+
static names(): { [key: string]: string } {
|
|
157
|
+
return {
|
|
158
|
+
description: 'Description',
|
|
159
|
+
destCidrIp: 'DestCidrIp',
|
|
160
|
+
ipProtocol: 'IpProtocol',
|
|
161
|
+
nicType: 'NicType',
|
|
162
|
+
policy: 'Policy',
|
|
163
|
+
portRange: 'PortRange',
|
|
164
|
+
priority: 'Priority',
|
|
165
|
+
sourceCidrIp: 'SourceCidrIp',
|
|
166
|
+
sourcePortRange: 'SourcePortRange',
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
static types(): { [key: string]: any } {
|
|
171
|
+
return {
|
|
172
|
+
description: 'string',
|
|
173
|
+
destCidrIp: 'string',
|
|
174
|
+
ipProtocol: 'string',
|
|
175
|
+
nicType: 'string',
|
|
176
|
+
policy: 'string',
|
|
177
|
+
portRange: 'string',
|
|
178
|
+
priority: 'string',
|
|
179
|
+
sourceCidrIp: 'string',
|
|
180
|
+
sourcePortRange: 'string',
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
validate() {
|
|
185
|
+
super.validate();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
constructor(map?: { [key: string]: any }) {
|
|
189
|
+
super(map);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export class ModifySecurityGroupAttributeRequest extends $dara.Model {
|
|
194
|
+
authorizeEgress?: ModifySecurityGroupAttributeRequestAuthorizeEgress[];
|
|
195
|
+
authorizeIngress?: ModifySecurityGroupAttributeRequestAuthorizeIngress[];
|
|
196
|
+
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* This parameter is required.
|
|
199
|
+
*/
|
|
200
|
+
officeSiteId?: string;
|
|
201
|
+
/**
|
|
202
|
+
* @remarks
|
|
203
|
+
* This parameter is required.
|
|
204
|
+
*/
|
|
205
|
+
regionId?: string;
|
|
206
|
+
revokeEgress?: ModifySecurityGroupAttributeRequestRevokeEgress[];
|
|
207
|
+
revokeIngress?: ModifySecurityGroupAttributeRequestRevokeIngress[];
|
|
208
|
+
static names(): { [key: string]: string } {
|
|
209
|
+
return {
|
|
210
|
+
authorizeEgress: 'AuthorizeEgress',
|
|
211
|
+
authorizeIngress: 'AuthorizeIngress',
|
|
212
|
+
officeSiteId: 'OfficeSiteId',
|
|
213
|
+
regionId: 'RegionId',
|
|
214
|
+
revokeEgress: 'RevokeEgress',
|
|
215
|
+
revokeIngress: 'RevokeIngress',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static types(): { [key: string]: any } {
|
|
220
|
+
return {
|
|
221
|
+
authorizeEgress: { 'type': 'array', 'itemType': ModifySecurityGroupAttributeRequestAuthorizeEgress },
|
|
222
|
+
authorizeIngress: { 'type': 'array', 'itemType': ModifySecurityGroupAttributeRequestAuthorizeIngress },
|
|
223
|
+
officeSiteId: 'string',
|
|
224
|
+
regionId: 'string',
|
|
225
|
+
revokeEgress: { 'type': 'array', 'itemType': ModifySecurityGroupAttributeRequestRevokeEgress },
|
|
226
|
+
revokeIngress: { 'type': 'array', 'itemType': ModifySecurityGroupAttributeRequestRevokeIngress },
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
validate() {
|
|
231
|
+
if(Array.isArray(this.authorizeEgress)) {
|
|
232
|
+
$dara.Model.validateArray(this.authorizeEgress);
|
|
233
|
+
}
|
|
234
|
+
if(Array.isArray(this.authorizeIngress)) {
|
|
235
|
+
$dara.Model.validateArray(this.authorizeIngress);
|
|
236
|
+
}
|
|
237
|
+
if(Array.isArray(this.revokeEgress)) {
|
|
238
|
+
$dara.Model.validateArray(this.revokeEgress);
|
|
239
|
+
}
|
|
240
|
+
if(Array.isArray(this.revokeIngress)) {
|
|
241
|
+
$dara.Model.validateArray(this.revokeIngress);
|
|
242
|
+
}
|
|
243
|
+
super.validate();
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
constructor(map?: { [key: string]: any }) {
|
|
247
|
+
super(map);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ModifySecurityGroupAttributeResponseBody } from "./ModifySecurityGroupAttributeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ModifySecurityGroupAttributeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ModifySecurityGroupAttributeResponseBody;
|
|
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: ModifySecurityGroupAttributeResponseBody,
|
|
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,27 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ModifySecurityGroupAttributeResponseBody extends $dara.Model {
|
|
6
|
+
requestId?: string;
|
|
7
|
+
static names(): { [key: string]: string } {
|
|
8
|
+
return {
|
|
9
|
+
requestId: 'RequestId',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static types(): { [key: string]: any } {
|
|
14
|
+
return {
|
|
15
|
+
requestId: 'string',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
validate() {
|
|
20
|
+
super.validate();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
constructor(map?: { [key: string]: any }) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -239,6 +239,10 @@ export { ModifyPolicyGroupRequestRevokeAccessPolicyRule } from './ModifyPolicyGr
|
|
|
239
239
|
export { ModifyPolicyGroupRequestRevokeSecurityPolicyRule } from './ModifyPolicyGroupRequest';
|
|
240
240
|
export { ModifyPolicyGroupRequestUsbSupplyRedirectRule } from './ModifyPolicyGroupRequest';
|
|
241
241
|
export { ModifyResourceCenterPolicyResponseBodyModifyResults } from './ModifyResourceCenterPolicyResponseBody';
|
|
242
|
+
export { ModifySecurityGroupAttributeRequestAuthorizeEgress } from './ModifySecurityGroupAttributeRequest';
|
|
243
|
+
export { ModifySecurityGroupAttributeRequestAuthorizeIngress } from './ModifySecurityGroupAttributeRequest';
|
|
244
|
+
export { ModifySecurityGroupAttributeRequestRevokeEgress } from './ModifySecurityGroupAttributeRequest';
|
|
245
|
+
export { ModifySecurityGroupAttributeRequestRevokeIngress } from './ModifySecurityGroupAttributeRequest';
|
|
242
246
|
export { ModifyTemplateRequestDataDiskList } from './ModifyTemplateRequest';
|
|
243
247
|
export { ModifyTemplateRequestRegionConfigList } from './ModifyTemplateRequest';
|
|
244
248
|
export { ModifyTemplateRequestResourceTagList } from './ModifyTemplateRequest';
|
|
@@ -923,6 +927,9 @@ export { ModifyPolicyGroupResponse } from './ModifyPolicyGroupResponse';
|
|
|
923
927
|
export { ModifyResourceCenterPolicyRequest } from './ModifyResourceCenterPolicyRequest';
|
|
924
928
|
export { ModifyResourceCenterPolicyResponseBody } from './ModifyResourceCenterPolicyResponseBody';
|
|
925
929
|
export { ModifyResourceCenterPolicyResponse } from './ModifyResourceCenterPolicyResponse';
|
|
930
|
+
export { ModifySecurityGroupAttributeRequest } from './ModifySecurityGroupAttributeRequest';
|
|
931
|
+
export { ModifySecurityGroupAttributeResponseBody } from './ModifySecurityGroupAttributeResponseBody';
|
|
932
|
+
export { ModifySecurityGroupAttributeResponse } from './ModifySecurityGroupAttributeResponse';
|
|
926
933
|
export { ModifyTemplateRequest } from './ModifyTemplateRequest';
|
|
927
934
|
export { ModifyTemplateResponseBody } from './ModifyTemplateResponseBody';
|
|
928
935
|
export { ModifyTemplateResponse } from './ModifyTemplateResponse';
|