@alicloud/ecd20200930 4.11.10 → 4.12.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 (29) hide show
  1. package/dist/client.d.ts +15 -0
  2. package/dist/client.js +57 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDesktopsRequest.d.ts +1 -0
  5. package/dist/models/CreateDesktopsRequest.js +2 -0
  6. package/dist/models/CreateDesktopsRequest.js.map +1 -1
  7. package/dist/models/CreateDesktopsShrinkRequest.d.ts +1 -0
  8. package/dist/models/CreateDesktopsShrinkRequest.js +2 -0
  9. package/dist/models/CreateDesktopsShrinkRequest.js.map +1 -1
  10. package/dist/models/ModifySecurityGroupAttributeRequest.d.ts +111 -0
  11. package/dist/models/ModifySecurityGroupAttributeRequest.js +220 -0
  12. package/dist/models/ModifySecurityGroupAttributeRequest.js.map +1 -0
  13. package/dist/models/ModifySecurityGroupAttributeResponse.d.ts +19 -0
  14. package/dist/models/ModifySecurityGroupAttributeResponse.js +69 -0
  15. package/dist/models/ModifySecurityGroupAttributeResponse.js.map +1 -0
  16. package/dist/models/ModifySecurityGroupAttributeResponseBody.d.ts +14 -0
  17. package/dist/models/ModifySecurityGroupAttributeResponseBody.js +58 -0
  18. package/dist/models/ModifySecurityGroupAttributeResponseBody.js.map +1 -0
  19. package/dist/models/model.d.ts +7 -0
  20. package/dist/models/model.js +32 -18
  21. package/dist/models/model.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/client.ts +66 -0
  24. package/src/models/CreateDesktopsRequest.ts +3 -0
  25. package/src/models/CreateDesktopsShrinkRequest.ts +3 -0
  26. package/src/models/ModifySecurityGroupAttributeRequest.ts +250 -0
  27. package/src/models/ModifySecurityGroupAttributeResponse.ts +40 -0
  28. package/src/models/ModifySecurityGroupAttributeResponseBody.ts +27 -0
  29. package/src/models/model.ts +7 -0
@@ -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
+
@@ -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';