@alicloud/eas20210701 7.2.0 → 7.3.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 +18 -0
  2. package/dist/client.js +54 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeMachineSpecRequest.d.ts +2 -0
  5. package/dist/models/DescribeMachineSpecRequest.js +4 -0
  6. package/dist/models/DescribeMachineSpecRequest.js.map +1 -1
  7. package/dist/models/DescribeMachineSpecShrinkRequest.d.ts +2 -0
  8. package/dist/models/DescribeMachineSpecShrinkRequest.js +4 -0
  9. package/dist/models/DescribeMachineSpecShrinkRequest.js.map +1 -1
  10. package/dist/models/MigrateResourceInstanceRequest.d.ts +31 -0
  11. package/dist/models/MigrateResourceInstanceRequest.js +65 -0
  12. package/dist/models/MigrateResourceInstanceRequest.js.map +1 -0
  13. package/dist/models/MigrateResourceInstanceResponse.d.ts +19 -0
  14. package/dist/models/MigrateResourceInstanceResponse.js +69 -0
  15. package/dist/models/MigrateResourceInstanceResponse.js.map +1 -0
  16. package/dist/models/MigrateResourceInstanceResponseBody.d.ts +34 -0
  17. package/dist/models/MigrateResourceInstanceResponseBody.js +65 -0
  18. package/dist/models/MigrateResourceInstanceResponseBody.js.map +1 -0
  19. package/dist/models/model.d.ts +3 -0
  20. package/dist/models/model.js +8 -2
  21. package/dist/models/model.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/client.ts +61 -0
  24. package/src/models/DescribeMachineSpecRequest.ts +6 -0
  25. package/src/models/DescribeMachineSpecShrinkRequest.ts +6 -0
  26. package/src/models/MigrateResourceInstanceRequest.ts +51 -0
  27. package/src/models/MigrateResourceInstanceResponse.ts +40 -0
  28. package/src/models/MigrateResourceInstanceResponseBody.ts +54 -0
  29. package/src/models/model.ts +3 -0
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeMachineSpecShrinkRequest extends $dara.Model {
6
+ chargeType?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * This parameter is deprecated.
@@ -10,15 +11,20 @@ export class DescribeMachineSpecShrinkRequest extends $dara.Model {
10
11
  * @deprecated
11
12
  */
12
13
  instanceTypesShrink?: string;
14
+ resourceType?: string;
13
15
  static names(): { [key: string]: string } {
14
16
  return {
17
+ chargeType: 'ChargeType',
15
18
  instanceTypesShrink: 'InstanceTypes',
19
+ resourceType: 'ResourceType',
16
20
  };
17
21
  }
18
22
 
19
23
  static types(): { [key: string]: any } {
20
24
  return {
25
+ chargeType: 'string',
21
26
  instanceTypesShrink: 'string',
27
+ resourceType: 'string',
22
28
  };
23
29
  }
24
30
 
@@ -0,0 +1,51 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MigrateResourceInstanceRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the destination resource group.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * eas-r-asdasdasd****
14
+ */
15
+ destResourceId?: string;
16
+ /**
17
+ * @remarks
18
+ * The instance ID.
19
+ *
20
+ * This parameter is required.
21
+ */
22
+ instanceIds?: string[];
23
+ migrateToHybrid?: boolean;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ destResourceId: 'DestResourceId',
27
+ instanceIds: 'InstanceIds',
28
+ migrateToHybrid: 'MigrateToHybrid',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ destResourceId: 'string',
35
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
36
+ migrateToHybrid: 'boolean',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ if(Array.isArray(this.instanceIds)) {
42
+ $dara.Model.validateArray(this.instanceIds);
43
+ }
44
+ super.validate();
45
+ }
46
+
47
+ constructor(map?: { [key: string]: any }) {
48
+ super(map);
49
+ }
50
+ }
51
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MigrateResourceInstanceResponseBody } from "./MigrateResourceInstanceResponseBody";
4
+
5
+
6
+ export class MigrateResourceInstanceResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MigrateResourceInstanceResponseBody;
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: MigrateResourceInstanceResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MigrateResourceInstanceResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The instance ID.
9
+ */
10
+ instanceIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * The returned message.
14
+ *
15
+ * @example
16
+ * Success
17
+ */
18
+ message?: string;
19
+ /**
20
+ * @remarks
21
+ * The request ID.
22
+ *
23
+ * @example
24
+ * 40325405-579C-4D82***
25
+ */
26
+ requestId?: string;
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ instanceIds: 'InstanceIds',
30
+ message: 'Message',
31
+ requestId: 'RequestId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
38
+ message: 'string',
39
+ requestId: 'string',
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ if(Array.isArray(this.instanceIds)) {
45
+ $dara.Model.validateArray(this.instanceIds);
46
+ }
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -274,6 +274,9 @@ export { ListTenantAddonsResponse } from './ListTenantAddonsResponse';
274
274
  export { ListVirtualResourceRequest } from './ListVirtualResourceRequest';
275
275
  export { ListVirtualResourceResponseBody } from './ListVirtualResourceResponseBody';
276
276
  export { ListVirtualResourceResponse } from './ListVirtualResourceResponse';
277
+ export { MigrateResourceInstanceRequest } from './MigrateResourceInstanceRequest';
278
+ export { MigrateResourceInstanceResponseBody } from './MigrateResourceInstanceResponseBody';
279
+ export { MigrateResourceInstanceResponse } from './MigrateResourceInstanceResponse';
277
280
  export { ReinstallTenantAddonResponseBody } from './ReinstallTenantAddonResponseBody';
278
281
  export { ReinstallTenantAddonResponse } from './ReinstallTenantAddonResponse';
279
282
  export { ReleaseServiceRequest } from './ReleaseServiceRequest';