@alicloud/ecs20140526 7.6.1 → 7.7.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 (33) hide show
  1. package/dist/client.d.ts +17 -2
  2. package/dist/client.js +92 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CloneDisksRequest.d.ts +151 -0
  5. package/dist/models/CloneDisksRequest.js +142 -0
  6. package/dist/models/CloneDisksRequest.js.map +1 -0
  7. package/dist/models/CloneDisksResponse.d.ts +19 -0
  8. package/dist/models/CloneDisksResponse.js +69 -0
  9. package/dist/models/CloneDisksResponse.js.map +1 -0
  10. package/dist/models/CloneDisksResponseBody.d.ts +23 -0
  11. package/dist/models/CloneDisksResponseBody.js +60 -0
  12. package/dist/models/CloneDisksResponseBody.js.map +1 -0
  13. package/dist/models/DescribeLockedSnapshotsResponseBody.d.ts +5 -0
  14. package/dist/models/DescribeLockedSnapshotsResponseBody.js +2 -0
  15. package/dist/models/DescribeLockedSnapshotsResponseBody.js.map +1 -1
  16. package/dist/models/DescribeSnapshotsResponseBody.d.ts +5 -0
  17. package/dist/models/DescribeSnapshotsResponseBody.js +2 -0
  18. package/dist/models/DescribeSnapshotsResponseBody.js.map +1 -1
  19. package/dist/models/LockSnapshotResponseBody.d.ts +5 -0
  20. package/dist/models/LockSnapshotResponseBody.js +2 -0
  21. package/dist/models/LockSnapshotResponseBody.js.map +1 -1
  22. package/dist/models/model.d.ts +5 -0
  23. package/dist/models/model.js +51 -41
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +112 -2
  27. package/src/models/CloneDisksRequest.ts +230 -0
  28. package/src/models/CloneDisksResponse.ts +40 -0
  29. package/src/models/CloneDisksResponseBody.ts +38 -0
  30. package/src/models/DescribeLockedSnapshotsResponseBody.ts +7 -0
  31. package/src/models/DescribeSnapshotsResponseBody.ts +7 -0
  32. package/src/models/LockSnapshotResponseBody.ts +7 -0
  33. package/src/models/model.ts +5 -0
@@ -0,0 +1,230 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloneDisksRequestArn extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * null
9
+ */
10
+ assumeRoleFor?: string;
11
+ /**
12
+ * @example
13
+ * null
14
+ */
15
+ roleType?: string;
16
+ /**
17
+ * @example
18
+ * null
19
+ */
20
+ rolearn?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ assumeRoleFor: 'AssumeRoleFor',
24
+ roleType: 'RoleType',
25
+ rolearn: 'Rolearn',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ assumeRoleFor: 'string',
32
+ roleType: 'string',
33
+ rolearn: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class CloneDisksRequestTag extends $dara.Model {
47
+ /**
48
+ * @example
49
+ * TestKey
50
+ */
51
+ key?: string;
52
+ /**
53
+ * @example
54
+ * TestValue
55
+ */
56
+ value?: string;
57
+ static names(): { [key: string]: string } {
58
+ return {
59
+ key: 'Key',
60
+ value: 'Value',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ key: 'string',
67
+ value: 'string',
68
+ };
69
+ }
70
+
71
+ validate() {
72
+ super.validate();
73
+ }
74
+
75
+ constructor(map?: { [key: string]: any }) {
76
+ super(map);
77
+ }
78
+ }
79
+
80
+ export class CloneDisksRequest extends $dara.Model {
81
+ arn?: CloneDisksRequestArn[];
82
+ /**
83
+ * @example
84
+ * true
85
+ */
86
+ burstingEnabled?: boolean;
87
+ /**
88
+ * @example
89
+ * 123e4567-e89b-12d3-a456-426655440000
90
+ */
91
+ clientToken?: string;
92
+ /**
93
+ * @remarks
94
+ * This parameter is required.
95
+ *
96
+ * @example
97
+ * cloud_essd
98
+ */
99
+ diskCategory?: string;
100
+ /**
101
+ * @example
102
+ * MyDiskName
103
+ */
104
+ diskName?: string;
105
+ /**
106
+ * @example
107
+ * true
108
+ */
109
+ dryRun?: string;
110
+ /**
111
+ * @example
112
+ * false
113
+ */
114
+ encrypted?: boolean;
115
+ /**
116
+ * @example
117
+ * key-szz67b2f696f4wh9yeg5d
118
+ */
119
+ kmsKeyId?: string;
120
+ /**
121
+ * @remarks
122
+ * This parameter is required.
123
+ *
124
+ * @example
125
+ * Disabled
126
+ */
127
+ multiAttach?: string;
128
+ ownerId?: number;
129
+ /**
130
+ * @example
131
+ * PL1
132
+ */
133
+ performanceLevel?: string;
134
+ /**
135
+ * @example
136
+ * 10
137
+ */
138
+ provisionedIops?: number;
139
+ /**
140
+ * @remarks
141
+ * This parameter is required.
142
+ *
143
+ * @example
144
+ * cn-hangzhou
145
+ */
146
+ regionId?: string;
147
+ /**
148
+ * @example
149
+ * rg-bp199lyny9b3****
150
+ */
151
+ resourceGroupId?: string;
152
+ resourceOwnerId?: number;
153
+ /**
154
+ * @remarks
155
+ * This parameter is required.
156
+ *
157
+ * @example
158
+ * 60
159
+ */
160
+ size?: number;
161
+ /**
162
+ * @remarks
163
+ * This parameter is required.
164
+ *
165
+ * @example
166
+ * d-bp1d6tsvznfghy7y****
167
+ */
168
+ sourceDiskId?: string;
169
+ tag?: CloneDisksRequestTag[];
170
+ static names(): { [key: string]: string } {
171
+ return {
172
+ arn: 'Arn',
173
+ burstingEnabled: 'BurstingEnabled',
174
+ clientToken: 'ClientToken',
175
+ diskCategory: 'DiskCategory',
176
+ diskName: 'DiskName',
177
+ dryRun: 'DryRun',
178
+ encrypted: 'Encrypted',
179
+ kmsKeyId: 'KmsKeyId',
180
+ multiAttach: 'MultiAttach',
181
+ ownerId: 'OwnerId',
182
+ performanceLevel: 'PerformanceLevel',
183
+ provisionedIops: 'ProvisionedIops',
184
+ regionId: 'RegionId',
185
+ resourceGroupId: 'ResourceGroupId',
186
+ resourceOwnerId: 'ResourceOwnerId',
187
+ size: 'Size',
188
+ sourceDiskId: 'SourceDiskId',
189
+ tag: 'Tag',
190
+ };
191
+ }
192
+
193
+ static types(): { [key: string]: any } {
194
+ return {
195
+ arn: { 'type': 'array', 'itemType': CloneDisksRequestArn },
196
+ burstingEnabled: 'boolean',
197
+ clientToken: 'string',
198
+ diskCategory: 'string',
199
+ diskName: 'string',
200
+ dryRun: 'string',
201
+ encrypted: 'boolean',
202
+ kmsKeyId: 'string',
203
+ multiAttach: 'string',
204
+ ownerId: 'number',
205
+ performanceLevel: 'string',
206
+ provisionedIops: 'number',
207
+ regionId: 'string',
208
+ resourceGroupId: 'string',
209
+ resourceOwnerId: 'number',
210
+ size: 'number',
211
+ sourceDiskId: 'string',
212
+ tag: { 'type': 'array', 'itemType': CloneDisksRequestTag },
213
+ };
214
+ }
215
+
216
+ validate() {
217
+ if(Array.isArray(this.arn)) {
218
+ $dara.Model.validateArray(this.arn);
219
+ }
220
+ if(Array.isArray(this.tag)) {
221
+ $dara.Model.validateArray(this.tag);
222
+ }
223
+ super.validate();
224
+ }
225
+
226
+ constructor(map?: { [key: string]: any }) {
227
+ super(map);
228
+ }
229
+ }
230
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CloneDisksResponseBody } from "./CloneDisksResponseBody";
4
+
5
+
6
+ export class CloneDisksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CloneDisksResponseBody;
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: CloneDisksResponseBody,
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,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloneDisksResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
9
+ */
10
+ requestId?: string;
11
+ /**
12
+ * @example
13
+ * g-2ze2op2grqpclwu7****
14
+ */
15
+ taskGroupId?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ requestId: 'RequestId',
19
+ taskGroupId: 'TaskGroupId',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ requestId: 'string',
26
+ taskGroupId: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -51,6 +51,11 @@ export class DescribeLockedSnapshotsResponseBodyLockedSnapshotsInfo extends $dar
51
51
  * 2025-10-16T10:00:00Z
52
52
  */
53
53
  lockExpiredTime?: string;
54
+ /**
55
+ * @example
56
+ * compliance
57
+ */
58
+ lockMode?: string;
54
59
  /**
55
60
  * @remarks
56
61
  * The lock status. Valid values:
@@ -79,6 +84,7 @@ export class DescribeLockedSnapshotsResponseBodyLockedSnapshotsInfo extends $dar
79
84
  lockDuration: 'LockDuration',
80
85
  lockDurationStartTime: 'LockDurationStartTime',
81
86
  lockExpiredTime: 'LockExpiredTime',
87
+ lockMode: 'LockMode',
82
88
  lockStatus: 'LockStatus',
83
89
  snapshotId: 'SnapshotId',
84
90
  };
@@ -92,6 +98,7 @@ export class DescribeLockedSnapshotsResponseBodyLockedSnapshotsInfo extends $dar
92
98
  lockDuration: 'number',
93
99
  lockDurationStartTime: 'string',
94
100
  lockExpiredTime: 'string',
101
+ lockMode: 'string',
95
102
  lockStatus: 'string',
96
103
  snapshotId: 'string',
97
104
  };
@@ -60,6 +60,11 @@ export class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $dara.Model
60
60
  creationTime?: string;
61
61
  description?: string;
62
62
  encrypted?: boolean;
63
+ /**
64
+ * @example
65
+ * 65535
66
+ */
67
+ fullSnapshotSizeInBytes?: number;
63
68
  instantAccess?: boolean;
64
69
  instantAccessRetentionDays?: number;
65
70
  KMSKeyId?: string;
@@ -99,6 +104,7 @@ export class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $dara.Model
99
104
  creationTime: 'CreationTime',
100
105
  description: 'Description',
101
106
  encrypted: 'Encrypted',
107
+ fullSnapshotSizeInBytes: 'FullSnapshotSizeInBytes',
102
108
  instantAccess: 'InstantAccess',
103
109
  instantAccessRetentionDays: 'InstantAccessRetentionDays',
104
110
  KMSKeyId: 'KMSKeyId',
@@ -133,6 +139,7 @@ export class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $dara.Model
133
139
  creationTime: 'string',
134
140
  description: 'string',
135
141
  encrypted: 'boolean',
142
+ fullSnapshotSizeInBytes: 'number',
136
143
  instantAccess: 'boolean',
137
144
  instantAccessRetentionDays: 'number',
138
145
  KMSKeyId: 'string',
@@ -51,6 +51,11 @@ export class LockSnapshotResponseBodyLockedSnapshotInfo extends $dara.Model {
51
51
  * 2025-10-16T10:00:00Z
52
52
  */
53
53
  lockExpiredTime?: string;
54
+ /**
55
+ * @example
56
+ * compliance
57
+ */
58
+ lockMode?: string;
54
59
  /**
55
60
  * @remarks
56
61
  * The lock status. Valid values:
@@ -79,6 +84,7 @@ export class LockSnapshotResponseBodyLockedSnapshotInfo extends $dara.Model {
79
84
  lockDuration: 'LockDuration',
80
85
  lockDurationStartTime: 'LockDurationStartTime',
81
86
  lockExpiredTime: 'LockExpiredTime',
87
+ lockMode: 'LockMode',
82
88
  lockStatus: 'LockStatus',
83
89
  snapshotId: 'SnapshotId',
84
90
  };
@@ -92,6 +98,7 @@ export class LockSnapshotResponseBodyLockedSnapshotInfo extends $dara.Model {
92
98
  lockDuration: 'number',
93
99
  lockDurationStartTime: 'string',
94
100
  lockExpiredTime: 'string',
101
+ lockMode: 'string',
95
102
  lockStatus: 'string',
96
103
  snapshotId: 'string',
97
104
  };
@@ -14,6 +14,8 @@ export { AttachKeyPairResponseBodyResults } from './AttachKeyPairResponseBody';
14
14
  export { AuthorizeSecurityGroupRequestPermissions } from './AuthorizeSecurityGroupRequest';
15
15
  export { AuthorizeSecurityGroupEgressRequestPermissions } from './AuthorizeSecurityGroupEgressRequest';
16
16
  export { CancelImagePipelineExecutionRequestTemplateTag } from './CancelImagePipelineExecutionRequest';
17
+ export { CloneDisksRequestArn } from './CloneDisksRequest';
18
+ export { CloneDisksRequestTag } from './CloneDisksRequest';
17
19
  export { CopyImageRequestTag } from './CopyImageRequest';
18
20
  export { CopySnapshotRequestArn } from './CopySnapshotRequest';
19
21
  export { CopySnapshotRequestTag } from './CopySnapshotRequest';
@@ -975,6 +977,9 @@ export { CancelSimulatedSystemEventsResponse } from './CancelSimulatedSystemEven
975
977
  export { CancelTaskRequest } from './CancelTaskRequest';
976
978
  export { CancelTaskResponseBody } from './CancelTaskResponseBody';
977
979
  export { CancelTaskResponse } from './CancelTaskResponse';
980
+ export { CloneDisksRequest } from './CloneDisksRequest';
981
+ export { CloneDisksResponseBody } from './CloneDisksResponseBody';
982
+ export { CloneDisksResponse } from './CloneDisksResponse';
978
983
  export { ConnectRouterInterfaceRequest } from './ConnectRouterInterfaceRequest';
979
984
  export { ConnectRouterInterfaceResponseBody } from './ConnectRouterInterfaceResponseBody';
980
985
  export { ConnectRouterInterfaceResponse } from './ConnectRouterInterfaceResponse';