@alicloud/paistudio20220112 1.2.11 → 1.2.13
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.js +9 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ClusterSpec.d.ts +17 -0
- package/dist/models/ClusterSpec.js +66 -0
- package/dist/models/ClusterSpec.js.map +1 -0
- package/dist/models/CreateQuotaRequest.d.ts +2 -0
- package/dist/models/CreateQuotaRequest.js +6 -0
- package/dist/models/CreateQuotaRequest.js.map +1 -1
- package/dist/models/DataSource.d.ts +16 -0
- package/dist/models/DataSource.js +62 -0
- package/dist/models/DataSource.js.map +1 -0
- package/dist/models/GetQuotaResponseBody.d.ts +2 -0
- package/dist/models/GetQuotaResponseBody.js +6 -0
- package/dist/models/GetQuotaResponseBody.js.map +1 -1
- package/dist/models/ListNodesRequest.d.ts +1 -0
- package/dist/models/ListNodesRequest.js +2 -0
- package/dist/models/ListNodesRequest.js.map +1 -1
- package/dist/models/ListQuotasRequest.d.ts +5 -0
- package/dist/models/ListQuotasRequest.js +2 -0
- package/dist/models/ListQuotasRequest.js.map +1 -1
- package/dist/models/Node.d.ts +2 -0
- package/dist/models/Node.js +4 -0
- package/dist/models/Node.js.map +1 -1
- package/dist/models/NodeSpec.d.ts +1 -0
- package/dist/models/NodeSpec.js +2 -0
- package/dist/models/NodeSpec.js.map +1 -1
- package/dist/models/Quota.d.ts +2 -0
- package/dist/models/Quota.js +6 -0
- package/dist/models/Quota.js.map +1 -1
- package/dist/models/QuotaCluster.d.ts +21 -0
- package/dist/models/QuotaCluster.js +73 -0
- package/dist/models/QuotaCluster.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +11 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/models/ClusterSpec.ts +37 -0
- package/src/models/CreateQuotaRequest.ts +7 -0
- package/src/models/DataSource.ts +33 -0
- package/src/models/GetQuotaResponseBody.ts +7 -0
- package/src/models/ListNodesRequest.ts +3 -0
- package/src/models/ListQuotasRequest.ts +7 -0
- package/src/models/Node.ts +6 -0
- package/src/models/NodeSpec.ts +3 -0
- package/src/models/Quota.ts +7 -0
- package/src/models/QuotaCluster.ts +46 -0
- package/src/models/model.ts +3 -0
|
@@ -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 { ClusterSpec } from "./ClusterSpec";
|
|
3
4
|
import { Label } from "./Label";
|
|
4
5
|
import { ResourceSpec } from "./ResourceSpec";
|
|
5
6
|
import { QuotaConfig } from "./QuotaConfig";
|
|
@@ -11,6 +12,7 @@ export class CreateQuotaRequest extends $dara.Model {
|
|
|
11
12
|
* ByNodeSpecs
|
|
12
13
|
*/
|
|
13
14
|
allocateStrategy?: string;
|
|
15
|
+
clusterSpec?: ClusterSpec;
|
|
14
16
|
/**
|
|
15
17
|
* @example
|
|
16
18
|
* this is a test quota
|
|
@@ -46,6 +48,7 @@ export class CreateQuotaRequest extends $dara.Model {
|
|
|
46
48
|
static names(): { [key: string]: string } {
|
|
47
49
|
return {
|
|
48
50
|
allocateStrategy: 'AllocateStrategy',
|
|
51
|
+
clusterSpec: 'ClusterSpec',
|
|
49
52
|
description: 'Description',
|
|
50
53
|
labels: 'Labels',
|
|
51
54
|
min: 'Min',
|
|
@@ -61,6 +64,7 @@ export class CreateQuotaRequest extends $dara.Model {
|
|
|
61
64
|
static types(): { [key: string]: any } {
|
|
62
65
|
return {
|
|
63
66
|
allocateStrategy: 'string',
|
|
67
|
+
clusterSpec: ClusterSpec,
|
|
64
68
|
description: 'string',
|
|
65
69
|
labels: { 'type': 'array', 'itemType': Label },
|
|
66
70
|
min: ResourceSpec,
|
|
@@ -74,6 +78,9 @@ export class CreateQuotaRequest extends $dara.Model {
|
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
validate() {
|
|
81
|
+
if(this.clusterSpec && typeof (this.clusterSpec as any).validate === 'function') {
|
|
82
|
+
(this.clusterSpec as any).validate();
|
|
83
|
+
}
|
|
77
84
|
if(Array.isArray(this.labels)) {
|
|
78
85
|
$dara.Model.validateArray(this.labels);
|
|
79
86
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DataSource extends $dara.Model {
|
|
6
|
+
dataSourceId?: string;
|
|
7
|
+
mountPath?: string;
|
|
8
|
+
uri?: string;
|
|
9
|
+
static names(): { [key: string]: string } {
|
|
10
|
+
return {
|
|
11
|
+
dataSourceId: 'DataSourceId',
|
|
12
|
+
mountPath: 'MountPath',
|
|
13
|
+
uri: 'Uri',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
dataSourceId: 'string',
|
|
20
|
+
mountPath: 'string',
|
|
21
|
+
uri: 'string',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
super.validate();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
constructor(map?: { [key: string]: any }) {
|
|
30
|
+
super(map);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { Label } from "./Label";
|
|
4
4
|
import { ResourceSpec } from "./ResourceSpec";
|
|
5
|
+
import { QuotaCluster } from "./QuotaCluster";
|
|
5
6
|
import { QuotaConfig } from "./QuotaConfig";
|
|
6
7
|
import { QuotaDetails } from "./QuotaDetails";
|
|
7
8
|
import { QuotaIdName } from "./QuotaIdName";
|
|
@@ -52,6 +53,7 @@ export class GetQuotaResponseBody extends $dara.Model {
|
|
|
52
53
|
* PaiStrategyIntelligent
|
|
53
54
|
*/
|
|
54
55
|
queueStrategy?: string;
|
|
56
|
+
quotaCluster?: QuotaCluster;
|
|
55
57
|
quotaConfig?: QuotaConfig;
|
|
56
58
|
quotaDetails?: QuotaDetails;
|
|
57
59
|
/**
|
|
@@ -113,6 +115,7 @@ export class GetQuotaResponseBody extends $dara.Model {
|
|
|
113
115
|
min: 'Min',
|
|
114
116
|
parentQuotaId: 'ParentQuotaId',
|
|
115
117
|
queueStrategy: 'QueueStrategy',
|
|
118
|
+
quotaCluster: 'QuotaCluster',
|
|
116
119
|
quotaConfig: 'QuotaConfig',
|
|
117
120
|
quotaDetails: 'QuotaDetails',
|
|
118
121
|
quotaId: 'QuotaId',
|
|
@@ -142,6 +145,7 @@ export class GetQuotaResponseBody extends $dara.Model {
|
|
|
142
145
|
min: ResourceSpec,
|
|
143
146
|
parentQuotaId: 'string',
|
|
144
147
|
queueStrategy: 'string',
|
|
148
|
+
quotaCluster: QuotaCluster,
|
|
145
149
|
quotaConfig: QuotaConfig,
|
|
146
150
|
quotaDetails: QuotaDetails,
|
|
147
151
|
quotaId: 'string',
|
|
@@ -168,6 +172,9 @@ export class GetQuotaResponseBody extends $dara.Model {
|
|
|
168
172
|
if(this.min && typeof (this.min as any).validate === 'function') {
|
|
169
173
|
(this.min as any).validate();
|
|
170
174
|
}
|
|
175
|
+
if(this.quotaCluster && typeof (this.quotaCluster as any).validate === 'function') {
|
|
176
|
+
(this.quotaCluster as any).validate();
|
|
177
|
+
}
|
|
171
178
|
if(this.quotaConfig && typeof (this.quotaConfig as any).validate === 'function') {
|
|
172
179
|
(this.quotaConfig as any).validate();
|
|
173
180
|
}
|
|
@@ -90,6 +90,7 @@ export class ListNodesRequest extends $dara.Model {
|
|
|
90
90
|
* false
|
|
91
91
|
*/
|
|
92
92
|
verbose?: boolean;
|
|
93
|
+
workspaceId?: string;
|
|
93
94
|
static names(): { [key: string]: string } {
|
|
94
95
|
return {
|
|
95
96
|
acceleratorType: 'AcceleratorType',
|
|
@@ -115,6 +116,7 @@ export class ListNodesRequest extends $dara.Model {
|
|
|
115
116
|
resourceGroupIds: 'ResourceGroupIds',
|
|
116
117
|
sortBy: 'SortBy',
|
|
117
118
|
verbose: 'Verbose',
|
|
119
|
+
workspaceId: 'WorkspaceId',
|
|
118
120
|
};
|
|
119
121
|
}
|
|
120
122
|
|
|
@@ -143,6 +145,7 @@ export class ListNodesRequest extends $dara.Model {
|
|
|
143
145
|
resourceGroupIds: 'string',
|
|
144
146
|
sortBy: 'string',
|
|
145
147
|
verbose: 'boolean',
|
|
148
|
+
workspaceId: 'string',
|
|
146
149
|
};
|
|
147
150
|
}
|
|
148
151
|
|
|
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ListQuotasRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* RayCluster
|
|
9
|
+
*/
|
|
10
|
+
clusterType?: string;
|
|
6
11
|
hasResource?: string;
|
|
7
12
|
/**
|
|
8
13
|
* @example
|
|
@@ -69,6 +74,7 @@ export class ListQuotasRequest extends $dara.Model {
|
|
|
69
74
|
workspaceName?: string;
|
|
70
75
|
static names(): { [key: string]: string } {
|
|
71
76
|
return {
|
|
77
|
+
clusterType: 'ClusterType',
|
|
72
78
|
hasResource: 'HasResource',
|
|
73
79
|
labels: 'Labels',
|
|
74
80
|
layoutMode: 'LayoutMode',
|
|
@@ -90,6 +96,7 @@ export class ListQuotasRequest extends $dara.Model {
|
|
|
90
96
|
|
|
91
97
|
static types(): { [key: string]: any } {
|
|
92
98
|
return {
|
|
99
|
+
clusterType: 'string',
|
|
93
100
|
hasResource: 'string',
|
|
94
101
|
labels: 'string',
|
|
95
102
|
layoutMode: 'string',
|
package/src/models/Node.ts
CHANGED
|
@@ -14,6 +14,8 @@ export class Node extends $dara.Model {
|
|
|
14
14
|
CPU?: string;
|
|
15
15
|
creatorId?: string;
|
|
16
16
|
descendantQuotaWorkloadNum?: number;
|
|
17
|
+
diskCapacity?: number;
|
|
18
|
+
diskPL?: string;
|
|
17
19
|
GPU?: string;
|
|
18
20
|
GPUMemory?: string;
|
|
19
21
|
GPUType?: string;
|
|
@@ -55,6 +57,8 @@ export class Node extends $dara.Model {
|
|
|
55
57
|
CPU: 'CPU',
|
|
56
58
|
creatorId: 'CreatorId',
|
|
57
59
|
descendantQuotaWorkloadNum: 'DescendantQuotaWorkloadNum',
|
|
60
|
+
diskCapacity: 'DiskCapacity',
|
|
61
|
+
diskPL: 'DiskPL',
|
|
58
62
|
GPU: 'GPU',
|
|
59
63
|
GPUMemory: 'GPUMemory',
|
|
60
64
|
GPUType: 'GPUType',
|
|
@@ -99,6 +103,8 @@ export class Node extends $dara.Model {
|
|
|
99
103
|
CPU: 'string',
|
|
100
104
|
creatorId: 'string',
|
|
101
105
|
descendantQuotaWorkloadNum: 'number',
|
|
106
|
+
diskCapacity: 'number',
|
|
107
|
+
diskPL: 'string',
|
|
102
108
|
GPU: 'string',
|
|
103
109
|
GPUMemory: 'string',
|
|
104
110
|
GPUType: 'string',
|
package/src/models/NodeSpec.ts
CHANGED
|
@@ -10,6 +10,7 @@ export class NodeSpec extends $dara.Model {
|
|
|
10
10
|
* 10
|
|
11
11
|
*/
|
|
12
12
|
count?: number;
|
|
13
|
+
hyperType?: string;
|
|
13
14
|
/**
|
|
14
15
|
* @example
|
|
15
16
|
* ecs.g6.4xlarge
|
|
@@ -19,6 +20,7 @@ export class NodeSpec extends $dara.Model {
|
|
|
19
20
|
return {
|
|
20
21
|
bindingPolicy: 'BindingPolicy',
|
|
21
22
|
count: 'Count',
|
|
23
|
+
hyperType: 'HyperType',
|
|
22
24
|
type: 'Type',
|
|
23
25
|
};
|
|
24
26
|
}
|
|
@@ -27,6 +29,7 @@ export class NodeSpec extends $dara.Model {
|
|
|
27
29
|
return {
|
|
28
30
|
bindingPolicy: BindingPolicy,
|
|
29
31
|
count: 'number',
|
|
32
|
+
hyperType: 'string',
|
|
30
33
|
type: 'string',
|
|
31
34
|
};
|
|
32
35
|
}
|
package/src/models/Quota.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { Label } from "./Label";
|
|
4
4
|
import { ResourceSpec } from "./ResourceSpec";
|
|
5
|
+
import { QuotaCluster } from "./QuotaCluster";
|
|
5
6
|
import { QuotaConfig } from "./QuotaConfig";
|
|
6
7
|
import { QuotaDetails } from "./QuotaDetails";
|
|
7
8
|
import { QuotaIdName } from "./QuotaIdName";
|
|
@@ -20,6 +21,7 @@ export class Quota extends $dara.Model {
|
|
|
20
21
|
min?: ResourceSpec;
|
|
21
22
|
parentQuotaId?: string;
|
|
22
23
|
queueStrategy?: string;
|
|
24
|
+
quotaCluster?: QuotaCluster;
|
|
23
25
|
quotaConfig?: QuotaConfig;
|
|
24
26
|
quotaDetails?: QuotaDetails;
|
|
25
27
|
/**
|
|
@@ -53,6 +55,7 @@ export class Quota extends $dara.Model {
|
|
|
53
55
|
min: 'Min',
|
|
54
56
|
parentQuotaId: 'ParentQuotaId',
|
|
55
57
|
queueStrategy: 'QueueStrategy',
|
|
58
|
+
quotaCluster: 'QuotaCluster',
|
|
56
59
|
quotaConfig: 'QuotaConfig',
|
|
57
60
|
quotaDetails: 'QuotaDetails',
|
|
58
61
|
quotaId: 'QuotaId',
|
|
@@ -81,6 +84,7 @@ export class Quota extends $dara.Model {
|
|
|
81
84
|
min: ResourceSpec,
|
|
82
85
|
parentQuotaId: 'string',
|
|
83
86
|
queueStrategy: 'string',
|
|
87
|
+
quotaCluster: QuotaCluster,
|
|
84
88
|
quotaConfig: QuotaConfig,
|
|
85
89
|
quotaDetails: QuotaDetails,
|
|
86
90
|
quotaId: 'string',
|
|
@@ -106,6 +110,9 @@ export class Quota extends $dara.Model {
|
|
|
106
110
|
if(this.min && typeof (this.min as any).validate === 'function') {
|
|
107
111
|
(this.min as any).validate();
|
|
108
112
|
}
|
|
113
|
+
if(this.quotaCluster && typeof (this.quotaCluster as any).validate === 'function') {
|
|
114
|
+
(this.quotaCluster as any).validate();
|
|
115
|
+
}
|
|
109
116
|
if(this.quotaConfig && typeof (this.quotaConfig as any).validate === 'function') {
|
|
110
117
|
(this.quotaConfig as any).validate();
|
|
111
118
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DataSource } from "./DataSource";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class QuotaCluster extends $dara.Model {
|
|
7
|
+
clusterType?: string;
|
|
8
|
+
dataSources?: DataSource[];
|
|
9
|
+
endpoints?: { [key: string]: string };
|
|
10
|
+
image?: string;
|
|
11
|
+
status?: string;
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
clusterType: 'ClusterType',
|
|
15
|
+
dataSources: 'DataSources',
|
|
16
|
+
endpoints: 'Endpoints',
|
|
17
|
+
image: 'Image',
|
|
18
|
+
status: 'Status',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
clusterType: 'string',
|
|
25
|
+
dataSources: { 'type': 'array', 'itemType': DataSource },
|
|
26
|
+
endpoints: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
27
|
+
image: 'string',
|
|
28
|
+
status: 'string',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
validate() {
|
|
33
|
+
if(Array.isArray(this.dataSources)) {
|
|
34
|
+
$dara.Model.validateArray(this.dataSources);
|
|
35
|
+
}
|
|
36
|
+
if(this.endpoints) {
|
|
37
|
+
$dara.Model.validateMap(this.endpoints);
|
|
38
|
+
}
|
|
39
|
+
super.validate();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
constructor(map?: { [key: string]: any }) {
|
|
43
|
+
super(map);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -70,8 +70,10 @@ export { CacheService } from './CacheService';
|
|
|
70
70
|
export { CapacityLock } from './CapacityLock';
|
|
71
71
|
export { Channel } from './Channel';
|
|
72
72
|
export { ChannelProperty } from './ChannelProperty';
|
|
73
|
+
export { ClusterSpec } from './ClusterSpec';
|
|
73
74
|
export { ComponentSpec } from './ComponentSpec';
|
|
74
75
|
export { ConditionExpression } from './ConditionExpression';
|
|
76
|
+
export { DataSource } from './DataSource';
|
|
75
77
|
export { EniCacheConfig } from './EniCacheConfig';
|
|
76
78
|
export { Features } from './Features';
|
|
77
79
|
export { ForwardInfo } from './ForwardInfo';
|
|
@@ -100,6 +102,7 @@ export { OversoldUsageConfig } from './OversoldUsageConfig';
|
|
|
100
102
|
export { Permission } from './Permission';
|
|
101
103
|
export { QueueInfo } from './QueueInfo';
|
|
102
104
|
export { Quota } from './Quota';
|
|
105
|
+
export { QuotaCluster } from './QuotaCluster';
|
|
103
106
|
export { QuotaConfig } from './QuotaConfig';
|
|
104
107
|
export { QuotaDetails } from './QuotaDetails';
|
|
105
108
|
export { QuotaIdName } from './QuotaIdName';
|