@alicloud/paistudio20220112 1.3.0 → 1.3.2
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 +2 -2
- package/dist/client.js +20 -3
- package/dist/client.js.map +1 -1
- package/dist/models/ListNodesRequest.d.ts +31 -0
- package/dist/models/ListNodesRequest.js +55 -1
- package/dist/models/ListNodesRequest.js.map +1 -1
- package/dist/models/ListNodesShrinkRequest.d.ts +104 -0
- package/dist/models/ListNodesShrinkRequest.js +110 -0
- package/dist/models/ListNodesShrinkRequest.js.map +1 -0
- package/dist/models/Node.d.ts +1 -0
- package/dist/models/Node.js +5 -0
- package/dist/models/Node.js.map +1 -1
- package/dist/models/QuotaConfig.d.ts +1 -0
- package/dist/models/QuotaConfig.js +2 -0
- package/dist/models/QuotaConfig.js.map +1 -1
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +15 -9
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +25 -3
- package/src/models/ListNodesRequest.ts +67 -0
- package/src/models/ListNodesShrinkRequest.ts +169 -0
- package/src/models/Node.ts +6 -0
- package/src/models/QuotaConfig.ts +3 -0
- package/src/models/model.ts +3 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListNodesShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* CPU
|
|
9
|
+
*/
|
|
10
|
+
acceleratorType?: string;
|
|
11
|
+
availabilityZone?: string;
|
|
12
|
+
cliqueID?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* quotamtl37ge7gkvdz
|
|
16
|
+
*/
|
|
17
|
+
filterByQuotaId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* rg69rj0leslwdnbe
|
|
21
|
+
*/
|
|
22
|
+
filterByResourceGroupIds?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* T4
|
|
26
|
+
*/
|
|
27
|
+
GPUType?: string;
|
|
28
|
+
healthCountShrink?: string;
|
|
29
|
+
healthRateShrink?: string;
|
|
30
|
+
hyperNode?: string;
|
|
31
|
+
hyperZone?: string;
|
|
32
|
+
layoutMode?: string;
|
|
33
|
+
machineGroupIds?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* lingjxxxx
|
|
37
|
+
*/
|
|
38
|
+
nodeNames?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* Ready
|
|
42
|
+
*/
|
|
43
|
+
nodeStatuses?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* ecs.c6.xlarge
|
|
47
|
+
*/
|
|
48
|
+
nodeTypes?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* desc
|
|
52
|
+
*/
|
|
53
|
+
order?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* 260590501560397
|
|
57
|
+
*/
|
|
58
|
+
orderInstanceIds?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* Ready
|
|
62
|
+
*/
|
|
63
|
+
orderStatuses?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* 2
|
|
67
|
+
*/
|
|
68
|
+
pageNumber?: number;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* 10
|
|
72
|
+
*/
|
|
73
|
+
pageSize?: number;
|
|
74
|
+
paymentType?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @example
|
|
77
|
+
* quotamtl37ge7gkvdz
|
|
78
|
+
*/
|
|
79
|
+
quotaId?: string;
|
|
80
|
+
reasonCodes?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* rg69rj0leslwdnbe
|
|
84
|
+
*/
|
|
85
|
+
resourceGroupIds?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* GmtCreateTime
|
|
89
|
+
*/
|
|
90
|
+
sortBy?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* false
|
|
94
|
+
*/
|
|
95
|
+
verbose?: boolean;
|
|
96
|
+
workspaceId?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
acceleratorType: 'AcceleratorType',
|
|
100
|
+
availabilityZone: 'AvailabilityZone',
|
|
101
|
+
cliqueID: 'CliqueID',
|
|
102
|
+
filterByQuotaId: 'FilterByQuotaId',
|
|
103
|
+
filterByResourceGroupIds: 'FilterByResourceGroupIds',
|
|
104
|
+
GPUType: 'GPUType',
|
|
105
|
+
healthCountShrink: 'HealthCount',
|
|
106
|
+
healthRateShrink: 'HealthRate',
|
|
107
|
+
hyperNode: 'HyperNode',
|
|
108
|
+
hyperZone: 'HyperZone',
|
|
109
|
+
layoutMode: 'LayoutMode',
|
|
110
|
+
machineGroupIds: 'MachineGroupIds',
|
|
111
|
+
nodeNames: 'NodeNames',
|
|
112
|
+
nodeStatuses: 'NodeStatuses',
|
|
113
|
+
nodeTypes: 'NodeTypes',
|
|
114
|
+
order: 'Order',
|
|
115
|
+
orderInstanceIds: 'OrderInstanceIds',
|
|
116
|
+
orderStatuses: 'OrderStatuses',
|
|
117
|
+
pageNumber: 'PageNumber',
|
|
118
|
+
pageSize: 'PageSize',
|
|
119
|
+
paymentType: 'PaymentType',
|
|
120
|
+
quotaId: 'QuotaId',
|
|
121
|
+
reasonCodes: 'ReasonCodes',
|
|
122
|
+
resourceGroupIds: 'ResourceGroupIds',
|
|
123
|
+
sortBy: 'SortBy',
|
|
124
|
+
verbose: 'Verbose',
|
|
125
|
+
workspaceId: 'WorkspaceId',
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
static types(): { [key: string]: any } {
|
|
130
|
+
return {
|
|
131
|
+
acceleratorType: 'string',
|
|
132
|
+
availabilityZone: 'string',
|
|
133
|
+
cliqueID: 'string',
|
|
134
|
+
filterByQuotaId: 'string',
|
|
135
|
+
filterByResourceGroupIds: 'string',
|
|
136
|
+
GPUType: 'string',
|
|
137
|
+
healthCountShrink: 'string',
|
|
138
|
+
healthRateShrink: 'string',
|
|
139
|
+
hyperNode: 'string',
|
|
140
|
+
hyperZone: 'string',
|
|
141
|
+
layoutMode: 'string',
|
|
142
|
+
machineGroupIds: 'string',
|
|
143
|
+
nodeNames: 'string',
|
|
144
|
+
nodeStatuses: 'string',
|
|
145
|
+
nodeTypes: 'string',
|
|
146
|
+
order: 'string',
|
|
147
|
+
orderInstanceIds: 'string',
|
|
148
|
+
orderStatuses: 'string',
|
|
149
|
+
pageNumber: 'number',
|
|
150
|
+
pageSize: 'number',
|
|
151
|
+
paymentType: 'string',
|
|
152
|
+
quotaId: 'string',
|
|
153
|
+
reasonCodes: 'string',
|
|
154
|
+
resourceGroupIds: 'string',
|
|
155
|
+
sortBy: 'string',
|
|
156
|
+
verbose: 'boolean',
|
|
157
|
+
workspaceId: 'string',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
validate() {
|
|
162
|
+
super.validate();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
constructor(map?: { [key: string]: any }) {
|
|
166
|
+
super(map);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
package/src/models/Node.ts
CHANGED
|
@@ -42,6 +42,7 @@ export class Node extends $dara.Model {
|
|
|
42
42
|
resourceGroupId?: string;
|
|
43
43
|
resourceGroupName?: string;
|
|
44
44
|
selfQuotaWorkloadNum?: number;
|
|
45
|
+
subNodes?: string[];
|
|
45
46
|
systemReservedCPU?: string;
|
|
46
47
|
systemReservedMemory?: string;
|
|
47
48
|
users?: UserInfo[];
|
|
@@ -85,6 +86,7 @@ export class Node extends $dara.Model {
|
|
|
85
86
|
resourceGroupId: 'ResourceGroupId',
|
|
86
87
|
resourceGroupName: 'ResourceGroupName',
|
|
87
88
|
selfQuotaWorkloadNum: 'SelfQuotaWorkloadNum',
|
|
89
|
+
subNodes: 'SubNodes',
|
|
88
90
|
systemReservedCPU: 'SystemReservedCPU',
|
|
89
91
|
systemReservedMemory: 'SystemReservedMemory',
|
|
90
92
|
users: 'Users',
|
|
@@ -131,6 +133,7 @@ export class Node extends $dara.Model {
|
|
|
131
133
|
resourceGroupId: 'string',
|
|
132
134
|
resourceGroupName: 'string',
|
|
133
135
|
selfQuotaWorkloadNum: 'number',
|
|
136
|
+
subNodes: { 'type': 'array', 'itemType': 'string' },
|
|
134
137
|
systemReservedCPU: 'string',
|
|
135
138
|
systemReservedMemory: 'string',
|
|
136
139
|
users: { 'type': 'array', 'itemType': UserInfo },
|
|
@@ -142,6 +145,9 @@ export class Node extends $dara.Model {
|
|
|
142
145
|
if(Array.isArray(this.boundQuotas)) {
|
|
143
146
|
$dara.Model.validateArray(this.boundQuotas);
|
|
144
147
|
}
|
|
148
|
+
if(Array.isArray(this.subNodes)) {
|
|
149
|
+
$dara.Model.validateArray(this.subNodes);
|
|
150
|
+
}
|
|
145
151
|
if(Array.isArray(this.users)) {
|
|
146
152
|
$dara.Model.validateArray(this.users);
|
|
147
153
|
}
|
|
@@ -24,6 +24,7 @@ export class QuotaConfig extends $dara.Model {
|
|
|
24
24
|
defaultGPUDriver?: string;
|
|
25
25
|
enableGPUShare?: boolean;
|
|
26
26
|
enablePreemptSubquotaWorkloads?: boolean;
|
|
27
|
+
enableSelfQuotaPreemption?: boolean;
|
|
27
28
|
enableSubQuotaPreemption?: boolean;
|
|
28
29
|
eniCacheConfig?: EniCacheConfig;
|
|
29
30
|
oversoldUsageInfo?: OversoldUsageConfig;
|
|
@@ -46,6 +47,7 @@ export class QuotaConfig extends $dara.Model {
|
|
|
46
47
|
defaultGPUDriver: 'DefaultGPUDriver',
|
|
47
48
|
enableGPUShare: 'EnableGPUShare',
|
|
48
49
|
enablePreemptSubquotaWorkloads: 'EnablePreemptSubquotaWorkloads',
|
|
50
|
+
enableSelfQuotaPreemption: 'EnableSelfQuotaPreemption',
|
|
49
51
|
enableSubQuotaPreemption: 'EnableSubQuotaPreemption',
|
|
50
52
|
eniCacheConfig: 'EniCacheConfig',
|
|
51
53
|
oversoldUsageInfo: 'OversoldUsageInfo',
|
|
@@ -67,6 +69,7 @@ export class QuotaConfig extends $dara.Model {
|
|
|
67
69
|
defaultGPUDriver: 'string',
|
|
68
70
|
enableGPUShare: 'boolean',
|
|
69
71
|
enablePreemptSubquotaWorkloads: 'boolean',
|
|
72
|
+
enableSelfQuotaPreemption: 'boolean',
|
|
70
73
|
enableSubQuotaPreemption: 'boolean',
|
|
71
74
|
eniCacheConfig: EniCacheConfig,
|
|
72
75
|
oversoldUsageInfo: OversoldUsageConfig,
|
package/src/models/model.ts
CHANGED
|
@@ -43,6 +43,8 @@ export { GetTrainingJobErrorInfoResponseBodyErrorInfo } from './GetTrainingJobEr
|
|
|
43
43
|
export { GetTrainingJobLatestMetricsResponseBodyMetrics } from './GetTrainingJobLatestMetricsResponseBody';
|
|
44
44
|
export { ListAlgorithmVersionsResponseBodyAlgorithmVersions } from './ListAlgorithmVersionsResponseBody';
|
|
45
45
|
export { ListAlgorithmsResponseBodyAlgorithms } from './ListAlgorithmsResponseBody';
|
|
46
|
+
export { ListNodesRequestHealthCount } from './ListNodesRequest';
|
|
47
|
+
export { ListNodesRequestHealthRate } from './ListNodesRequest';
|
|
46
48
|
export { ListTagResourcesRequestTag } from './ListTagResourcesRequest';
|
|
47
49
|
export { ListTagResourcesResponseBodyTagResources } from './ListTagResourcesResponseBody';
|
|
48
50
|
export { ListTrainingJobInstanceMetricsResponseBodyInstanceMetricsMetrics } from './ListTrainingJobInstanceMetricsResponseBody';
|
|
@@ -234,6 +236,7 @@ export { ListAlgorithmsRequest } from './ListAlgorithmsRequest';
|
|
|
234
236
|
export { ListAlgorithmsResponseBody } from './ListAlgorithmsResponseBody';
|
|
235
237
|
export { ListAlgorithmsResponse } from './ListAlgorithmsResponse';
|
|
236
238
|
export { ListNodesRequest } from './ListNodesRequest';
|
|
239
|
+
export { ListNodesShrinkRequest } from './ListNodesShrinkRequest';
|
|
237
240
|
export { ListNodesResponseBody } from './ListNodesResponseBody';
|
|
238
241
|
export { ListNodesResponse } from './ListNodesResponse';
|
|
239
242
|
export { ListQuotaWorkloadsRequest } from './ListQuotaWorkloadsRequest';
|