@alicloud/paistudio20220112 1.2.14 → 1.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.
- package/dist/client.d.ts +54 -0
- package/dist/client.js +178 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateTrainingJobRequest.d.ts +2 -0
- package/dist/models/CreateTrainingJobRequest.js +6 -0
- package/dist/models/CreateTrainingJobRequest.js.map +1 -1
- package/dist/models/EcsSpec.d.ts +32 -0
- package/dist/models/EcsSpec.js +94 -0
- package/dist/models/EcsSpec.js.map +1 -0
- package/dist/models/GetTrainingJobResponseBody.d.ts +2 -0
- package/dist/models/GetTrainingJobResponseBody.js +6 -0
- package/dist/models/GetTrainingJobResponseBody.js.map +1 -1
- package/dist/models/ListTagResourcesRequest.d.ts +58 -0
- package/dist/models/ListTagResourcesRequest.js +93 -0
- package/dist/models/ListTagResourcesRequest.js.map +1 -0
- package/dist/models/ListTagResourcesResponse.d.ts +19 -0
- package/dist/models/ListTagResourcesResponse.js +69 -0
- package/dist/models/ListTagResourcesResponse.js.map +1 -0
- package/dist/models/ListTagResourcesResponseBody.d.ts +56 -0
- package/dist/models/ListTagResourcesResponseBody.js +90 -0
- package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +36 -0
- package/dist/models/ListTagResourcesShrinkRequest.js +66 -0
- package/dist/models/ListTagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/ListTrainingJobsResponseBody.d.ts +2 -0
- package/dist/models/ListTrainingJobsResponseBody.js +6 -0
- package/dist/models/ListTrainingJobsResponseBody.js.map +1 -1
- package/dist/models/TagResourcesRequest.d.ts +47 -0
- package/dist/models/TagResourcesRequest.js +91 -0
- package/dist/models/TagResourcesRequest.js.map +1 -0
- package/dist/models/TagResourcesResponse.d.ts +19 -0
- package/dist/models/TagResourcesResponse.js +69 -0
- package/dist/models/TagResourcesResponse.js.map +1 -0
- package/dist/models/TagResourcesResponseBody.d.ts +18 -0
- package/dist/models/TagResourcesResponseBody.js +58 -0
- package/dist/models/TagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesRequest.d.ts +40 -0
- package/dist/models/UntagResourcesRequest.js +72 -0
- package/dist/models/UntagResourcesRequest.js.map +1 -0
- package/dist/models/UntagResourcesResponse.d.ts +19 -0
- package/dist/models/UntagResourcesResponse.js +69 -0
- package/dist/models/UntagResourcesResponse.js.map +1 -0
- package/dist/models/UntagResourcesResponseBody.d.ts +18 -0
- package/dist/models/UntagResourcesResponseBody.js +58 -0
- package/dist/models/UntagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesShrinkRequest.d.ts +40 -0
- package/dist/models/UntagResourcesShrinkRequest.js +66 -0
- package/dist/models/UntagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +37 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +203 -0
- package/src/models/CreateTrainingJobRequest.ts +7 -0
- package/src/models/EcsSpec.ts +81 -0
- package/src/models/GetTrainingJobResponseBody.ts +7 -0
- package/src/models/ListTagResourcesRequest.ts +97 -0
- package/src/models/ListTagResourcesResponse.ts +40 -0
- package/src/models/ListTagResourcesResponseBody.ts +92 -0
- package/src/models/ListTagResourcesShrinkRequest.ts +57 -0
- package/src/models/ListTrainingJobsResponseBody.ts +7 -0
- package/src/models/TagResourcesRequest.ts +84 -0
- package/src/models/TagResourcesResponse.ts +40 -0
- package/src/models/TagResourcesResponseBody.ts +31 -0
- package/src/models/UntagResourcesRequest.ts +67 -0
- package/src/models/UntagResourcesResponse.ts +40 -0
- package/src/models/UntagResourcesResponseBody.ts +31 -0
- package/src/models/UntagResourcesShrinkRequest.ts +61 -0
- package/src/models/model.ts +15 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class EcsSpec extends $dara.Model {
|
|
6
|
+
acceleratorType?: string;
|
|
7
|
+
cpu?: number;
|
|
8
|
+
ecsImageId?: string;
|
|
9
|
+
eriQuantity?: number;
|
|
10
|
+
gpu?: number;
|
|
11
|
+
gpuGUSpec?: string;
|
|
12
|
+
gpuMemory?: number;
|
|
13
|
+
gpuType?: string;
|
|
14
|
+
gpuTypeAlias?: string;
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
machineModel?: string;
|
|
17
|
+
memory?: number;
|
|
18
|
+
networkMode?: string;
|
|
19
|
+
plannedCpu?: number;
|
|
20
|
+
plannedMemory?: number;
|
|
21
|
+
resourceType?: string;
|
|
22
|
+
supportGPUShare?: boolean;
|
|
23
|
+
supportRDMA?: boolean;
|
|
24
|
+
supportSetNetworkCardIndex?: boolean;
|
|
25
|
+
static names(): { [key: string]: string } {
|
|
26
|
+
return {
|
|
27
|
+
acceleratorType: 'AcceleratorType',
|
|
28
|
+
cpu: 'Cpu',
|
|
29
|
+
ecsImageId: 'EcsImageId',
|
|
30
|
+
eriQuantity: 'EriQuantity',
|
|
31
|
+
gpu: 'Gpu',
|
|
32
|
+
gpuGUSpec: 'GpuGUSpec',
|
|
33
|
+
gpuMemory: 'GpuMemory',
|
|
34
|
+
gpuType: 'GpuType',
|
|
35
|
+
gpuTypeAlias: 'GpuTypeAlias',
|
|
36
|
+
instanceType: 'InstanceType',
|
|
37
|
+
machineModel: 'MachineModel',
|
|
38
|
+
memory: 'Memory',
|
|
39
|
+
networkMode: 'NetworkMode',
|
|
40
|
+
plannedCpu: 'PlannedCpu',
|
|
41
|
+
plannedMemory: 'PlannedMemory',
|
|
42
|
+
resourceType: 'ResourceType',
|
|
43
|
+
supportGPUShare: 'SupportGPUShare',
|
|
44
|
+
supportRDMA: 'SupportRDMA',
|
|
45
|
+
supportSetNetworkCardIndex: 'SupportSetNetworkCardIndex',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static types(): { [key: string]: any } {
|
|
50
|
+
return {
|
|
51
|
+
acceleratorType: 'string',
|
|
52
|
+
cpu: 'number',
|
|
53
|
+
ecsImageId: 'string',
|
|
54
|
+
eriQuantity: 'number',
|
|
55
|
+
gpu: 'number',
|
|
56
|
+
gpuGUSpec: 'string',
|
|
57
|
+
gpuMemory: 'number',
|
|
58
|
+
gpuType: 'string',
|
|
59
|
+
gpuTypeAlias: 'string',
|
|
60
|
+
instanceType: 'string',
|
|
61
|
+
machineModel: 'string',
|
|
62
|
+
memory: 'number',
|
|
63
|
+
networkMode: 'string',
|
|
64
|
+
plannedCpu: 'number',
|
|
65
|
+
plannedMemory: 'number',
|
|
66
|
+
resourceType: 'string',
|
|
67
|
+
supportGPUShare: 'boolean',
|
|
68
|
+
supportRDMA: 'boolean',
|
|
69
|
+
supportSetNetworkCardIndex: 'boolean',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validate() {
|
|
74
|
+
super.validate();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
constructor(map?: { [key: string]: any }) {
|
|
78
|
+
super(map);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { AlgorithmSpec } from "./AlgorithmSpec";
|
|
4
|
+
import { AssignNodeSpec } from "./AssignNodeSpec";
|
|
4
5
|
import { JobSettings } from "./JobSettings";
|
|
5
6
|
|
|
6
7
|
|
|
@@ -729,6 +730,7 @@ export class GetTrainingJobResponseBody extends $dara.Model {
|
|
|
729
730
|
* v0.0.1
|
|
730
731
|
*/
|
|
731
732
|
algorithmVersion?: string;
|
|
733
|
+
assignNodeSpec?: AssignNodeSpec;
|
|
732
734
|
computeResource?: GetTrainingJobResponseBodyComputeResource;
|
|
733
735
|
/**
|
|
734
736
|
* @example
|
|
@@ -824,6 +826,7 @@ export class GetTrainingJobResponseBody extends $dara.Model {
|
|
|
824
826
|
algorithmProvider: 'AlgorithmProvider',
|
|
825
827
|
algorithmSpec: 'AlgorithmSpec',
|
|
826
828
|
algorithmVersion: 'AlgorithmVersion',
|
|
829
|
+
assignNodeSpec: 'AssignNodeSpec',
|
|
827
830
|
computeResource: 'ComputeResource',
|
|
828
831
|
duration: 'Duration',
|
|
829
832
|
environments: 'Environments',
|
|
@@ -866,6 +869,7 @@ export class GetTrainingJobResponseBody extends $dara.Model {
|
|
|
866
869
|
algorithmProvider: 'string',
|
|
867
870
|
algorithmSpec: AlgorithmSpec,
|
|
868
871
|
algorithmVersion: 'string',
|
|
872
|
+
assignNodeSpec: AssignNodeSpec,
|
|
869
873
|
computeResource: GetTrainingJobResponseBodyComputeResource,
|
|
870
874
|
duration: 'number',
|
|
871
875
|
environments: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
@@ -905,6 +909,9 @@ export class GetTrainingJobResponseBody extends $dara.Model {
|
|
|
905
909
|
if(this.algorithmSpec && typeof (this.algorithmSpec as any).validate === 'function') {
|
|
906
910
|
(this.algorithmSpec as any).validate();
|
|
907
911
|
}
|
|
912
|
+
if(this.assignNodeSpec && typeof (this.assignNodeSpec as any).validate === 'function') {
|
|
913
|
+
(this.assignNodeSpec as any).validate();
|
|
914
|
+
}
|
|
908
915
|
if(this.computeResource && typeof (this.computeResource as any).validate === 'function') {
|
|
909
916
|
(this.computeResource as any).validate();
|
|
910
917
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesRequestTag extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* TestKey
|
|
9
|
+
*/
|
|
10
|
+
key?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* TestValue
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
key: 'Key',
|
|
19
|
+
value: 'Value',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
key: 'string',
|
|
26
|
+
value: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class ListTagResourcesRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* ad31d453a1f3f23ce0b5e8707e68181f
|
|
43
|
+
*/
|
|
44
|
+
nextToken?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* This parameter is required.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* cn-hangzhou
|
|
51
|
+
*/
|
|
52
|
+
regionId?: string;
|
|
53
|
+
resourceId?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* This parameter is required.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ResourceGroup
|
|
60
|
+
*/
|
|
61
|
+
resourceType?: string;
|
|
62
|
+
tag?: ListTagResourcesRequestTag[];
|
|
63
|
+
static names(): { [key: string]: string } {
|
|
64
|
+
return {
|
|
65
|
+
nextToken: 'NextToken',
|
|
66
|
+
regionId: 'RegionId',
|
|
67
|
+
resourceId: 'ResourceId',
|
|
68
|
+
resourceType: 'ResourceType',
|
|
69
|
+
tag: 'Tag',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
nextToken: 'string',
|
|
76
|
+
regionId: 'string',
|
|
77
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
78
|
+
resourceType: 'string',
|
|
79
|
+
tag: { 'type': 'array', 'itemType': ListTagResourcesRequestTag },
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
validate() {
|
|
84
|
+
if(Array.isArray(this.resourceId)) {
|
|
85
|
+
$dara.Model.validateArray(this.resourceId);
|
|
86
|
+
}
|
|
87
|
+
if(Array.isArray(this.tag)) {
|
|
88
|
+
$dara.Model.validateArray(this.tag);
|
|
89
|
+
}
|
|
90
|
+
super.validate();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
constructor(map?: { [key: string]: any }) {
|
|
94
|
+
super(map);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListTagResourcesResponseBody } from "./ListTagResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListTagResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListTagResourcesResponseBody;
|
|
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: ListTagResourcesResponseBody,
|
|
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,92 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* rgqssemfn6vjqqev
|
|
9
|
+
*/
|
|
10
|
+
resourceId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ResourceGroup
|
|
14
|
+
*/
|
|
15
|
+
resourceType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* tagKey
|
|
19
|
+
*/
|
|
20
|
+
tagKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* tagValue
|
|
24
|
+
*/
|
|
25
|
+
tagValue?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
resourceId: 'ResourceId',
|
|
29
|
+
resourceType: 'ResourceType',
|
|
30
|
+
tagKey: 'TagKey',
|
|
31
|
+
tagValue: 'TagValue',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
resourceId: 'string',
|
|
38
|
+
resourceType: 'string',
|
|
39
|
+
tagKey: 'string',
|
|
40
|
+
tagValue: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class ListTagResourcesResponseBody extends $dara.Model {
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* 3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5
|
|
57
|
+
*/
|
|
58
|
+
nextToken?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9
|
|
62
|
+
*/
|
|
63
|
+
requestId?: string;
|
|
64
|
+
tagResources?: ListTagResourcesResponseBodyTagResources[];
|
|
65
|
+
static names(): { [key: string]: string } {
|
|
66
|
+
return {
|
|
67
|
+
nextToken: 'NextToken',
|
|
68
|
+
requestId: 'RequestId',
|
|
69
|
+
tagResources: 'TagResources',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
nextToken: 'string',
|
|
76
|
+
requestId: 'string',
|
|
77
|
+
tagResources: { 'type': 'array', 'itemType': ListTagResourcesResponseBodyTagResources },
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
if(Array.isArray(this.tagResources)) {
|
|
83
|
+
$dara.Model.validateArray(this.tagResources);
|
|
84
|
+
}
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(map?: { [key: string]: any }) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ad31d453a1f3f23ce0b5e8707e68181f
|
|
9
|
+
*/
|
|
10
|
+
nextToken?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
resourceIdShrink?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @remarks
|
|
22
|
+
* This parameter is required.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ResourceGroup
|
|
26
|
+
*/
|
|
27
|
+
resourceType?: string;
|
|
28
|
+
tagShrink?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
nextToken: 'NextToken',
|
|
32
|
+
regionId: 'RegionId',
|
|
33
|
+
resourceIdShrink: 'ResourceId',
|
|
34
|
+
resourceType: 'ResourceType',
|
|
35
|
+
tagShrink: 'Tag',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static types(): { [key: string]: any } {
|
|
40
|
+
return {
|
|
41
|
+
nextToken: 'string',
|
|
42
|
+
regionId: 'string',
|
|
43
|
+
resourceIdShrink: 'string',
|
|
44
|
+
resourceType: 'string',
|
|
45
|
+
tagShrink: 'string',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
validate() {
|
|
50
|
+
super.validate();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(map?: { [key: string]: any }) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AssignNodeSpec } from "./AssignNodeSpec";
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
export class ListTrainingJobsResponseBodyTrainingJobsComputeResourceInstanceSpec extends $dara.Model {
|
|
@@ -459,6 +460,7 @@ export class ListTrainingJobsResponseBodyTrainingJobs extends $dara.Model {
|
|
|
459
460
|
* v0.0.1
|
|
460
461
|
*/
|
|
461
462
|
algorithmVersion?: string;
|
|
463
|
+
assignNodeSpec?: AssignNodeSpec;
|
|
462
464
|
computeResource?: ListTrainingJobsResponseBodyTrainingJobsComputeResource;
|
|
463
465
|
dlcJobId?: string;
|
|
464
466
|
environments?: { [key: string]: string };
|
|
@@ -532,6 +534,7 @@ export class ListTrainingJobsResponseBodyTrainingJobs extends $dara.Model {
|
|
|
532
534
|
algorithmName: 'AlgorithmName',
|
|
533
535
|
algorithmProvider: 'AlgorithmProvider',
|
|
534
536
|
algorithmVersion: 'AlgorithmVersion',
|
|
537
|
+
assignNodeSpec: 'AssignNodeSpec',
|
|
535
538
|
computeResource: 'ComputeResource',
|
|
536
539
|
dlcJobId: 'DlcJobId',
|
|
537
540
|
environments: 'Environments',
|
|
@@ -564,6 +567,7 @@ export class ListTrainingJobsResponseBodyTrainingJobs extends $dara.Model {
|
|
|
564
567
|
algorithmName: 'string',
|
|
565
568
|
algorithmProvider: 'string',
|
|
566
569
|
algorithmVersion: 'string',
|
|
570
|
+
assignNodeSpec: AssignNodeSpec,
|
|
567
571
|
computeResource: ListTrainingJobsResponseBodyTrainingJobsComputeResource,
|
|
568
572
|
dlcJobId: 'string',
|
|
569
573
|
environments: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
@@ -592,6 +596,9 @@ export class ListTrainingJobsResponseBodyTrainingJobs extends $dara.Model {
|
|
|
592
596
|
}
|
|
593
597
|
|
|
594
598
|
validate() {
|
|
599
|
+
if(this.assignNodeSpec && typeof (this.assignNodeSpec as any).validate === 'function') {
|
|
600
|
+
(this.assignNodeSpec as any).validate();
|
|
601
|
+
}
|
|
595
602
|
if(this.computeResource && typeof (this.computeResource as any).validate === 'function') {
|
|
596
603
|
(this.computeResource as any).validate();
|
|
597
604
|
}
|
|
@@ -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 TagResourcesRequestTag extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* key
|
|
9
|
+
*/
|
|
10
|
+
key?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* value
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
key: 'Key',
|
|
19
|
+
value: 'Value',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
key: 'string',
|
|
26
|
+
value: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class TagResourcesRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* cn-hangzhou
|
|
43
|
+
*/
|
|
44
|
+
regionId?: string;
|
|
45
|
+
resourceId?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* ResourceGroup
|
|
49
|
+
*/
|
|
50
|
+
resourceType?: string;
|
|
51
|
+
tag?: TagResourcesRequestTag[];
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
regionId: 'RegionId',
|
|
55
|
+
resourceId: 'ResourceId',
|
|
56
|
+
resourceType: 'ResourceType',
|
|
57
|
+
tag: 'Tag',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static types(): { [key: string]: any } {
|
|
62
|
+
return {
|
|
63
|
+
regionId: 'string',
|
|
64
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
65
|
+
resourceType: 'string',
|
|
66
|
+
tag: { 'type': 'array', 'itemType': TagResourcesRequestTag },
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
validate() {
|
|
71
|
+
if(Array.isArray(this.resourceId)) {
|
|
72
|
+
$dara.Model.validateArray(this.resourceId);
|
|
73
|
+
}
|
|
74
|
+
if(Array.isArray(this.tag)) {
|
|
75
|
+
$dara.Model.validateArray(this.tag);
|
|
76
|
+
}
|
|
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 { TagResourcesResponseBody } from "./TagResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class TagResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: TagResourcesResponseBody;
|
|
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: TagResourcesResponseBody,
|
|
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 TagResourcesResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 42F23B58-3684-5443-848A-8DA81FF99712
|
|
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
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class UntagResourcesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* false
|
|
9
|
+
*/
|
|
10
|
+
all?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* This parameter is required.
|
|
22
|
+
*/
|
|
23
|
+
resourceId?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ResourceGroup
|
|
30
|
+
*/
|
|
31
|
+
resourceType?: string;
|
|
32
|
+
tagKey?: string[];
|
|
33
|
+
static names(): { [key: string]: string } {
|
|
34
|
+
return {
|
|
35
|
+
all: 'All',
|
|
36
|
+
regionId: 'RegionId',
|
|
37
|
+
resourceId: 'ResourceId',
|
|
38
|
+
resourceType: 'ResourceType',
|
|
39
|
+
tagKey: 'TagKey',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
all: 'boolean',
|
|
46
|
+
regionId: 'string',
|
|
47
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
48
|
+
resourceType: 'string',
|
|
49
|
+
tagKey: { 'type': 'array', 'itemType': 'string' },
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
validate() {
|
|
54
|
+
if(Array.isArray(this.resourceId)) {
|
|
55
|
+
$dara.Model.validateArray(this.resourceId);
|
|
56
|
+
}
|
|
57
|
+
if(Array.isArray(this.tagKey)) {
|
|
58
|
+
$dara.Model.validateArray(this.tagKey);
|
|
59
|
+
}
|
|
60
|
+
super.validate();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
constructor(map?: { [key: string]: any }) {
|
|
64
|
+
super(map);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|