Skip to content

Commit 2dcf2a1

Browse files
committed
Update API CreateQuota: add request parameters body.ClusterSpec.
1 parent 32c7dc3 commit 2dcf2a1

File tree

13 files changed

+172
-1
lines changed

13 files changed

+172
-1
lines changed

paistudio-20220112/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/paistudio20220112",
3-
"version": "1.2.11",
3+
"version": "1.2.12",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

paistudio-20220112/src/client.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ export default class Client extends OpenApi {
253253
body["AllocateStrategy"] = request.allocateStrategy;
254254
}
255255

256+
if (!$dara.isNull(request.clusterSpec)) {
257+
body["ClusterSpec"] = request.clusterSpec;
258+
}
259+
256260
if (!$dara.isNull(request.description)) {
257261
body["Description"] = request.description;
258262
}
@@ -1763,6 +1767,10 @@ export default class Client extends OpenApi {
17631767
query["Verbose"] = request.verbose;
17641768
}
17651769

1770+
if (!$dara.isNull(request.workspaceId)) {
1771+
query["WorkspaceId"] = request.workspaceId;
1772+
}
1773+
17661774
let req = new $OpenApiUtil.OpenApiRequest({
17671775
headers: headers,
17681776
query: OpenApiUtil.query(query),
@@ -1921,6 +1929,10 @@ export default class Client extends OpenApi {
19211929
async listQuotasWithOptions(request: $_model.ListQuotasRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListQuotasResponse> {
19221930
request.validate();
19231931
let query : {[key: string ]: any} = { };
1932+
if (!$dara.isNull(request.clusterType)) {
1933+
query["ClusterType"] = request.clusterType;
1934+
}
1935+
19241936
if (!$dara.isNull(request.hasResource)) {
19251937
query["HasResource"] = request.hasResource;
19261938
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 ClusterSpec extends $dara.Model {
7+
clusterType?: string;
8+
dataSources?: DataSource[];
9+
image?: string;
10+
static names(): { [key: string]: string } {
11+
return {
12+
clusterType: 'ClusterType',
13+
dataSources: 'DataSources',
14+
image: 'Image',
15+
};
16+
}
17+
18+
static types(): { [key: string]: any } {
19+
return {
20+
clusterType: 'string',
21+
dataSources: { 'type': 'array', 'itemType': DataSource },
22+
image: 'string',
23+
};
24+
}
25+
26+
validate() {
27+
if(Array.isArray(this.dataSources)) {
28+
$dara.Model.validateArray(this.dataSources);
29+
}
30+
super.validate();
31+
}
32+
33+
constructor(map?: { [key: string]: any }) {
34+
super(map);
35+
}
36+
}
37+

paistudio-20220112/src/models/CreateQuotaRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// This file is auto-generated, don't edit it
22
import * as $dara from '@darabonba/typescript';
3+
import { ClusterSpec } from "./ClusterSpec";
34
import { Label } from "./Label";
45
import { ResourceSpec } from "./ResourceSpec";
56
import { QuotaConfig } from "./QuotaConfig";
@@ -11,6 +12,7 @@ export class CreateQuotaRequest extends $dara.Model {
1112
* ByNodeSpecs
1213
*/
1314
allocateStrategy?: string;
15+
clusterSpec?: ClusterSpec;
1416
/**
1517
* @example
1618
* this is a test quota
@@ -46,6 +48,7 @@ export class CreateQuotaRequest extends $dara.Model {
4648
static names(): { [key: string]: string } {
4749
return {
4850
allocateStrategy: 'AllocateStrategy',
51+
clusterSpec: 'ClusterSpec',
4952
description: 'Description',
5053
labels: 'Labels',
5154
min: 'Min',
@@ -61,6 +64,7 @@ export class CreateQuotaRequest extends $dara.Model {
6164
static types(): { [key: string]: any } {
6265
return {
6366
allocateStrategy: 'string',
67+
clusterSpec: ClusterSpec,
6468
description: 'string',
6569
labels: { 'type': 'array', 'itemType': Label },
6670
min: ResourceSpec,
@@ -74,6 +78,9 @@ export class CreateQuotaRequest extends $dara.Model {
7478
}
7579

7680
validate() {
81+
if(this.clusterSpec && typeof (this.clusterSpec as any).validate === 'function') {
82+
(this.clusterSpec as any).validate();
83+
}
7784
if(Array.isArray(this.labels)) {
7885
$dara.Model.validateArray(this.labels);
7986
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

paistudio-20220112/src/models/GetQuotaResponseBody.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import * as $dara from '@darabonba/typescript';
33
import { Label } from "./Label";
44
import { ResourceSpec } from "./ResourceSpec";
5+
import { QuotaCluster } from "./QuotaCluster";
56
import { QuotaConfig } from "./QuotaConfig";
67
import { QuotaDetails } from "./QuotaDetails";
78
import { QuotaIdName } from "./QuotaIdName";
@@ -52,6 +53,7 @@ export class GetQuotaResponseBody extends $dara.Model {
5253
* PaiStrategyIntelligent
5354
*/
5455
queueStrategy?: string;
56+
quotaCluster?: QuotaCluster;
5557
quotaConfig?: QuotaConfig;
5658
quotaDetails?: QuotaDetails;
5759
/**
@@ -113,6 +115,7 @@ export class GetQuotaResponseBody extends $dara.Model {
113115
min: 'Min',
114116
parentQuotaId: 'ParentQuotaId',
115117
queueStrategy: 'QueueStrategy',
118+
quotaCluster: 'QuotaCluster',
116119
quotaConfig: 'QuotaConfig',
117120
quotaDetails: 'QuotaDetails',
118121
quotaId: 'QuotaId',
@@ -142,6 +145,7 @@ export class GetQuotaResponseBody extends $dara.Model {
142145
min: ResourceSpec,
143146
parentQuotaId: 'string',
144147
queueStrategy: 'string',
148+
quotaCluster: QuotaCluster,
145149
quotaConfig: QuotaConfig,
146150
quotaDetails: QuotaDetails,
147151
quotaId: 'string',
@@ -168,6 +172,9 @@ export class GetQuotaResponseBody extends $dara.Model {
168172
if(this.min && typeof (this.min as any).validate === 'function') {
169173
(this.min as any).validate();
170174
}
175+
if(this.quotaCluster && typeof (this.quotaCluster as any).validate === 'function') {
176+
(this.quotaCluster as any).validate();
177+
}
171178
if(this.quotaConfig && typeof (this.quotaConfig as any).validate === 'function') {
172179
(this.quotaConfig as any).validate();
173180
}

paistudio-20220112/src/models/ListNodesRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export class ListNodesRequest extends $dara.Model {
9090
* false
9191
*/
9292
verbose?: boolean;
93+
workspaceId?: string;
9394
static names(): { [key: string]: string } {
9495
return {
9596
acceleratorType: 'AcceleratorType',
@@ -115,6 +116,7 @@ export class ListNodesRequest extends $dara.Model {
115116
resourceGroupIds: 'ResourceGroupIds',
116117
sortBy: 'SortBy',
117118
verbose: 'Verbose',
119+
workspaceId: 'WorkspaceId',
118120
};
119121
}
120122

@@ -143,6 +145,7 @@ export class ListNodesRequest extends $dara.Model {
143145
resourceGroupIds: 'string',
144146
sortBy: 'string',
145147
verbose: 'boolean',
148+
workspaceId: 'string',
146149
};
147150
}
148151

paistudio-20220112/src/models/ListQuotasRequest.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class ListQuotasRequest extends $dara.Model {
6+
/**
7+
* @example
8+
* RayCluster
9+
*/
10+
clusterType?: string;
611
hasResource?: string;
712
/**
813
* @example
@@ -69,6 +74,7 @@ export class ListQuotasRequest extends $dara.Model {
6974
workspaceName?: string;
7075
static names(): { [key: string]: string } {
7176
return {
77+
clusterType: 'ClusterType',
7278
hasResource: 'HasResource',
7379
labels: 'Labels',
7480
layoutMode: 'LayoutMode',
@@ -90,6 +96,7 @@ export class ListQuotasRequest extends $dara.Model {
9096

9197
static types(): { [key: string]: any } {
9298
return {
99+
clusterType: 'string',
93100
hasResource: 'string',
94101
labels: 'string',
95102
layoutMode: 'string',

paistudio-20220112/src/models/Node.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export class Node extends $dara.Model {
1414
CPU?: string;
1515
creatorId?: string;
1616
descendantQuotaWorkloadNum?: number;
17+
diskCapacity?: number;
18+
diskPL?: string;
1719
GPU?: string;
1820
GPUMemory?: string;
1921
GPUType?: string;
@@ -55,6 +57,8 @@ export class Node extends $dara.Model {
5557
CPU: 'CPU',
5658
creatorId: 'CreatorId',
5759
descendantQuotaWorkloadNum: 'DescendantQuotaWorkloadNum',
60+
diskCapacity: 'DiskCapacity',
61+
diskPL: 'DiskPL',
5862
GPU: 'GPU',
5963
GPUMemory: 'GPUMemory',
6064
GPUType: 'GPUType',
@@ -99,6 +103,8 @@ export class Node extends $dara.Model {
99103
CPU: 'string',
100104
creatorId: 'string',
101105
descendantQuotaWorkloadNum: 'number',
106+
diskCapacity: 'number',
107+
diskPL: 'string',
102108
GPU: 'string',
103109
GPUMemory: 'string',
104110
GPUType: 'string',

paistudio-20220112/src/models/NodeSpec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class NodeSpec extends $dara.Model {
1010
* 10
1111
*/
1212
count?: number;
13+
hyperType?: string;
1314
/**
1415
* @example
1516
* ecs.g6.4xlarge
@@ -19,6 +20,7 @@ export class NodeSpec extends $dara.Model {
1920
return {
2021
bindingPolicy: 'BindingPolicy',
2122
count: 'Count',
23+
hyperType: 'HyperType',
2224
type: 'Type',
2325
};
2426
}
@@ -27,6 +29,7 @@ export class NodeSpec extends $dara.Model {
2729
return {
2830
bindingPolicy: BindingPolicy,
2931
count: 'number',
32+
hyperType: 'string',
3033
type: 'string',
3134
};
3235
}

0 commit comments

Comments
 (0)