Skip to content

Commit fb3e1e4

Browse files
committed
Update API ListResourceGroups: add request parameters ResourceGroupIDs.
1 parent 61efc45 commit fb3e1e4

File tree

10 files changed

+179
-1
lines changed

10 files changed

+179
-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.4",
3+
"version": "1.2.5",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

paistudio-20220112/src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,10 @@ export default class Client extends OpenApi {
21142114
query["PageSize"] = request.pageSize;
21152115
}
21162116

2117+
if (!$dara.isNull(request.resourceGroupIDs)) {
2118+
query["ResourceGroupIDs"] = request.resourceGroupIDs;
2119+
}
2120+
21172121
if (!$dara.isNull(request.resourceType)) {
21182122
query["ResourceType"] = request.resourceType;
21192123
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class EniCacheConfig extends $dara.Model {
6+
cachePoolSize?: number;
7+
enabled?: boolean;
8+
static names(): { [key: string]: string } {
9+
return {
10+
cachePoolSize: 'CachePoolSize',
11+
enabled: 'Enabled',
12+
};
13+
}
14+
15+
static types(): { [key: string]: any } {
16+
return {
17+
cachePoolSize: 'number',
18+
enabled: 'boolean',
19+
};
20+
}
21+
22+
validate() {
23+
super.validate();
24+
}
25+
26+
constructor(map?: { [key: string]: any }) {
27+
super(map);
28+
}
29+
}
30+

paistudio-20220112/src/models/ListResourceGroupsRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class ListResourceGroupsRequest extends $dara.Model {
2828
* 10
2929
*/
3030
pageSize?: number;
31+
resourceGroupIDs?: string;
3132
/**
3233
* @example
3334
* Lingjun
@@ -55,6 +56,7 @@ export class ListResourceGroupsRequest extends $dara.Model {
5556
order: 'Order',
5657
pageNumber: 'PageNumber',
5758
pageSize: 'PageSize',
59+
resourceGroupIDs: 'ResourceGroupIDs',
5860
resourceType: 'ResourceType',
5961
showAll: 'ShowAll',
6062
sortBy: 'SortBy',
@@ -69,6 +71,7 @@ export class ListResourceGroupsRequest extends $dara.Model {
6971
order: 'string',
7072
pageNumber: 'number',
7173
pageSize: 'number',
74+
resourceGroupIDs: 'string',
7275
resourceType: 'string',
7376
showAll: 'boolean',
7477
sortBy: 'string',

paistudio-20220112/src/models/MachineGroup.ts

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

44

55
export class MachineGroup extends $dara.Model {
6+
cpu?: number;
67
creatorID?: string;
78
/**
89
* @example
@@ -17,22 +18,28 @@ export class MachineGroup extends $dara.Model {
1718
gmtExpiredTime?: string;
1819
gmtModifiedTime?: string;
1920
gmtStartedTime?: string;
21+
gpu?: number;
22+
gpuMemory?: number;
23+
gpuType?: string;
2024
/**
2125
* @example
2226
* mg1
2327
*/
2428
machineGroupID?: string;
29+
memory?: number;
2530
orderInstanceId?: string;
2631
paymentDuration?: string;
2732
paymentDurationUnit?: string;
2833
paymentType?: string;
2934
reasonCode?: string;
3035
reasonMessage?: string;
3136
resourceGroupID?: string;
37+
resourceType?: string;
3238
status?: string;
3339
supportedDrivers?: string[];
3440
static names(): { [key: string]: string } {
3541
return {
42+
cpu: 'Cpu',
3643
creatorID: 'CreatorID',
3744
defaultDriver: 'DefaultDriver',
3845
diskCapacity: 'DiskCapacity',
@@ -43,21 +50,27 @@ export class MachineGroup extends $dara.Model {
4350
gmtExpiredTime: 'GmtExpiredTime',
4451
gmtModifiedTime: 'GmtModifiedTime',
4552
gmtStartedTime: 'GmtStartedTime',
53+
gpu: 'Gpu',
54+
gpuMemory: 'GpuMemory',
55+
gpuType: 'GpuType',
4656
machineGroupID: 'MachineGroupID',
57+
memory: 'Memory',
4758
orderInstanceId: 'OrderInstanceId',
4859
paymentDuration: 'PaymentDuration',
4960
paymentDurationUnit: 'PaymentDurationUnit',
5061
paymentType: 'PaymentType',
5162
reasonCode: 'ReasonCode',
5263
reasonMessage: 'ReasonMessage',
5364
resourceGroupID: 'ResourceGroupID',
65+
resourceType: 'ResourceType',
5466
status: 'Status',
5567
supportedDrivers: 'SupportedDrivers',
5668
};
5769
}
5870

5971
static types(): { [key: string]: any } {
6072
return {
73+
cpu: 'number',
6174
creatorID: 'string',
6275
defaultDriver: 'string',
6376
diskCapacity: 'number',
@@ -68,14 +81,19 @@ export class MachineGroup extends $dara.Model {
6881
gmtExpiredTime: 'string',
6982
gmtModifiedTime: 'string',
7083
gmtStartedTime: 'string',
84+
gpu: 'number',
85+
gpuMemory: 'number',
86+
gpuType: 'string',
7187
machineGroupID: 'string',
88+
memory: 'number',
7289
orderInstanceId: 'string',
7390
paymentDuration: 'string',
7491
paymentDurationUnit: 'string',
7592
paymentType: 'string',
7693
reasonCode: 'string',
7794
reasonMessage: 'string',
7895
resourceGroupID: 'string',
96+
resourceType: 'string',
7997
status: 'string',
8098
supportedDrivers: { 'type': 'array', 'itemType': 'string' },
8199
};

paistudio-20220112/src/models/QuotaConfig.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// This file is auto-generated, don't edit it
22
import * as $dara from '@darabonba/typescript';
33
import { ACS } from "./Acs";
4+
import { EniCacheConfig } from "./EniCacheConfig";
45
import { OversoldUsageConfig } from "./OversoldUsageConfig";
56
import { WorkspaceSpecs } from "./WorkspaceSpecs";
7+
import { SandboxCacheConfig } from "./SandboxCacheConfig";
68
import { SelfQuotaPreemptionConfig } from "./SelfQuotaPreemptionConfig";
79
import { SubQuotaPreemptionConfig } from "./SubQuotaPreemptionConfig";
810
import { UserVpc } from "./UserVpc";
@@ -23,8 +25,10 @@ export class QuotaConfig extends $dara.Model {
2325
enableGPUShare?: boolean;
2426
enablePreemptSubquotaWorkloads?: boolean;
2527
enableSubQuotaPreemption?: boolean;
28+
eniCacheConfig?: EniCacheConfig;
2629
oversoldUsageInfo?: OversoldUsageConfig;
2730
resourceSpecs?: WorkspaceSpecs[];
31+
sandboxCacheConfig?: SandboxCacheConfig;
2832
selfQuotaPreemptionConfig?: SelfQuotaPreemptionConfig;
2933
subQuotaPreemptionConfig?: SubQuotaPreemptionConfig;
3034
supportGPUDrivers?: string[];
@@ -42,8 +46,10 @@ export class QuotaConfig extends $dara.Model {
4246
enableGPUShare: 'EnableGPUShare',
4347
enablePreemptSubquotaWorkloads: 'EnablePreemptSubquotaWorkloads',
4448
enableSubQuotaPreemption: 'EnableSubQuotaPreemption',
49+
eniCacheConfig: 'EniCacheConfig',
4550
oversoldUsageInfo: 'OversoldUsageInfo',
4651
resourceSpecs: 'ResourceSpecs',
52+
sandboxCacheConfig: 'SandboxCacheConfig',
4753
selfQuotaPreemptionConfig: 'SelfQuotaPreemptionConfig',
4854
subQuotaPreemptionConfig: 'SubQuotaPreemptionConfig',
4955
supportGPUDrivers: 'SupportGPUDrivers',
@@ -60,8 +66,10 @@ export class QuotaConfig extends $dara.Model {
6066
enableGPUShare: 'boolean',
6167
enablePreemptSubquotaWorkloads: 'boolean',
6268
enableSubQuotaPreemption: 'boolean',
69+
eniCacheConfig: EniCacheConfig,
6370
oversoldUsageInfo: OversoldUsageConfig,
6471
resourceSpecs: { 'type': 'array', 'itemType': WorkspaceSpecs },
72+
sandboxCacheConfig: SandboxCacheConfig,
6573
selfQuotaPreemptionConfig: SelfQuotaPreemptionConfig,
6674
subQuotaPreemptionConfig: SubQuotaPreemptionConfig,
6775
supportGPUDrivers: { 'type': 'array', 'itemType': 'string' },
@@ -74,12 +82,18 @@ export class QuotaConfig extends $dara.Model {
7482
if(this.ACS && typeof (this.ACS as any).validate === 'function') {
7583
(this.ACS as any).validate();
7684
}
85+
if(this.eniCacheConfig && typeof (this.eniCacheConfig as any).validate === 'function') {
86+
(this.eniCacheConfig as any).validate();
87+
}
7788
if(this.oversoldUsageInfo && typeof (this.oversoldUsageInfo as any).validate === 'function') {
7889
(this.oversoldUsageInfo as any).validate();
7990
}
8091
if(Array.isArray(this.resourceSpecs)) {
8192
$dara.Model.validateArray(this.resourceSpecs);
8293
}
94+
if(this.sandboxCacheConfig && typeof (this.sandboxCacheConfig as any).validate === 'function') {
95+
(this.sandboxCacheConfig as any).validate();
96+
}
8397
if(this.selfQuotaPreemptionConfig && typeof (this.selfQuotaPreemptionConfig as any).validate === 'function') {
8498
(this.selfQuotaPreemptionConfig as any).validate();
8599
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ResourceInfo extends $dara.Model {
6+
static names(): { [key: string]: string } {
7+
return {
8+
};
9+
}
10+
11+
static types(): { [key: string]: any } {
12+
return {
13+
};
14+
}
15+
16+
validate() {
17+
super.validate();
18+
}
19+
20+
constructor(map?: { [key: string]: any }) {
21+
super(map);
22+
}
23+
}
24+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ResourceInfos extends $dara.Model {
6+
clusterId?: string;
7+
ecsSpec?: string;
8+
gpuCardType?: string;
9+
machineModel?: string;
10+
maxQuota?: number;
11+
networkPodId?: string;
12+
regionId?: string;
13+
usedQuota?: number;
14+
userId?: string;
15+
userName?: string;
16+
static names(): { [key: string]: string } {
17+
return {
18+
clusterId: 'ClusterId',
19+
ecsSpec: 'EcsSpec',
20+
gpuCardType: 'GpuCardType',
21+
machineModel: 'MachineModel',
22+
maxQuota: 'MaxQuota',
23+
networkPodId: 'NetworkPodId',
24+
regionId: 'RegionId',
25+
usedQuota: 'UsedQuota',
26+
userId: 'UserId',
27+
userName: 'UserName',
28+
};
29+
}
30+
31+
static types(): { [key: string]: any } {
32+
return {
33+
clusterId: 'string',
34+
ecsSpec: 'string',
35+
gpuCardType: 'string',
36+
machineModel: 'string',
37+
maxQuota: 'number',
38+
networkPodId: 'string',
39+
regionId: 'string',
40+
usedQuota: 'number',
41+
userId: 'string',
42+
userName: 'string',
43+
};
44+
}
45+
46+
validate() {
47+
super.validate();
48+
}
49+
50+
constructor(map?: { [key: string]: any }) {
51+
super(map);
52+
}
53+
}
54+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class SandboxCacheConfig extends $dara.Model {
6+
enabled?: boolean;
7+
static names(): { [key: string]: string } {
8+
return {
9+
enabled: 'Enabled',
10+
};
11+
}
12+
13+
static types(): { [key: string]: any } {
14+
return {
15+
enabled: 'boolean',
16+
};
17+
}
18+
19+
validate() {
20+
super.validate();
21+
}
22+
23+
constructor(map?: { [key: string]: any }) {
24+
super(map);
25+
}
26+
}
27+

paistudio-20220112/src/models/model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export { Channel } from './Channel';
7171
export { ChannelProperty } from './ChannelProperty';
7272
export { ComponentSpec } from './ComponentSpec';
7373
export { ConditionExpression } from './ConditionExpression';
74+
export { EniCacheConfig } from './EniCacheConfig';
7475
export { Features } from './Features';
7576
export { ForwardInfo } from './ForwardInfo';
7677
export { GPUInfo } from './Gpuinfo';
@@ -112,10 +113,13 @@ export { ResourceAmount } from './ResourceAmount';
112113
export { ResourceDiagnosisDetail } from './ResourceDiagnosisDetail';
113114
export { ResourceGroup } from './ResourceGroup';
114115
export { ResourceGroupMetric } from './ResourceGroupMetric';
116+
export { ResourceInfo } from './ResourceInfo';
117+
export { ResourceInfos } from './ResourceInfos';
115118
export { ResourceLimitDetails } from './ResourceLimitDetails';
116119
export { ResourceOperation } from './ResourceOperation';
117120
export { ResourceSpec } from './ResourceSpec';
118121
export { Rules } from './Rules';
122+
export { SandboxCacheConfig } from './SandboxCacheConfig';
119123
export { SchedulingRule } from './SchedulingRule';
120124
export { SelfQuotaPreemptionConfig } from './SelfQuotaPreemptionConfig';
121125
export { SpotPriceItem } from './SpotPriceItem';

0 commit comments

Comments
 (0)