@alicloud/paistudio20220112 1.0.3 → 1.0.4
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 +113 -3
- package/dist/client.js +189 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +234 -5
package/dist/client.d.ts
CHANGED
|
@@ -936,6 +936,7 @@ export declare class CreateResourceGroupRequest extends $tea.Model {
|
|
|
936
936
|
description?: string;
|
|
937
937
|
name?: string;
|
|
938
938
|
resourceType?: string;
|
|
939
|
+
tag?: CreateResourceGroupRequestTag[];
|
|
939
940
|
userVpc?: UserVpc;
|
|
940
941
|
static names(): {
|
|
941
942
|
[key: string]: string;
|
|
@@ -1364,6 +1365,20 @@ export declare class GetQuotaResponse extends $tea.Model {
|
|
|
1364
1365
|
}
|
|
1365
1366
|
export declare class GetResourceGroupRequest extends $tea.Model {
|
|
1366
1367
|
isAIWorkspaceDataEnabled?: boolean;
|
|
1368
|
+
tag?: GetResourceGroupRequestTag[];
|
|
1369
|
+
static names(): {
|
|
1370
|
+
[key: string]: string;
|
|
1371
|
+
};
|
|
1372
|
+
static types(): {
|
|
1373
|
+
[key: string]: any;
|
|
1374
|
+
};
|
|
1375
|
+
constructor(map?: {
|
|
1376
|
+
[key: string]: any;
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
export declare class GetResourceGroupShrinkRequest extends $tea.Model {
|
|
1380
|
+
isAIWorkspaceDataEnabled?: boolean;
|
|
1381
|
+
tagShrink?: string;
|
|
1367
1382
|
static names(): {
|
|
1368
1383
|
[key: string]: string;
|
|
1369
1384
|
};
|
|
@@ -1378,6 +1393,7 @@ export declare class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
1378
1393
|
clusterID?: string;
|
|
1379
1394
|
computingResourceProvider?: string;
|
|
1380
1395
|
creatorID?: string;
|
|
1396
|
+
description?: string;
|
|
1381
1397
|
gmtCreatedTime?: string;
|
|
1382
1398
|
gmtModifiedTime?: string;
|
|
1383
1399
|
name?: string;
|
|
@@ -1385,6 +1401,7 @@ export declare class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
1385
1401
|
resourceType?: string;
|
|
1386
1402
|
status?: string;
|
|
1387
1403
|
supportRDMA?: boolean;
|
|
1404
|
+
tags?: GetResourceGroupResponseBodyTags[];
|
|
1388
1405
|
userVpc?: UserVpc;
|
|
1389
1406
|
workspaceID?: string;
|
|
1390
1407
|
static names(): {
|
|
@@ -1413,6 +1430,30 @@ export declare class GetResourceGroupResponse extends $tea.Model {
|
|
|
1413
1430
|
[key: string]: any;
|
|
1414
1431
|
});
|
|
1415
1432
|
}
|
|
1433
|
+
export declare class GetResourceGroupMachineGroupRequest extends $tea.Model {
|
|
1434
|
+
tag?: GetResourceGroupMachineGroupRequestTag[];
|
|
1435
|
+
static names(): {
|
|
1436
|
+
[key: string]: string;
|
|
1437
|
+
};
|
|
1438
|
+
static types(): {
|
|
1439
|
+
[key: string]: any;
|
|
1440
|
+
};
|
|
1441
|
+
constructor(map?: {
|
|
1442
|
+
[key: string]: any;
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
export declare class GetResourceGroupMachineGroupShrinkRequest extends $tea.Model {
|
|
1446
|
+
tagShrink?: string;
|
|
1447
|
+
static names(): {
|
|
1448
|
+
[key: string]: string;
|
|
1449
|
+
};
|
|
1450
|
+
static types(): {
|
|
1451
|
+
[key: string]: any;
|
|
1452
|
+
};
|
|
1453
|
+
constructor(map?: {
|
|
1454
|
+
[key: string]: any;
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1416
1457
|
export declare class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
1417
1458
|
cpu?: string;
|
|
1418
1459
|
defaultDriver?: string;
|
|
@@ -1426,6 +1467,7 @@ export declare class GetResourceGroupMachineGroupResponseBody extends $tea.Model
|
|
|
1426
1467
|
gpuType?: string;
|
|
1427
1468
|
machineGroupID?: string;
|
|
1428
1469
|
memory?: string;
|
|
1470
|
+
name?: string;
|
|
1429
1471
|
paymentDuration?: string;
|
|
1430
1472
|
paymentDurationUnit?: string;
|
|
1431
1473
|
paymentType?: string;
|
|
@@ -1433,6 +1475,7 @@ export declare class GetResourceGroupMachineGroupResponseBody extends $tea.Model
|
|
|
1433
1475
|
resourceGroupID?: string;
|
|
1434
1476
|
status?: string;
|
|
1435
1477
|
supportedDrivers?: string[];
|
|
1478
|
+
tags?: GetResourceGroupMachineGroupResponseBodyTags[];
|
|
1436
1479
|
static names(): {
|
|
1437
1480
|
[key: string]: string;
|
|
1438
1481
|
};
|
|
@@ -2281,6 +2324,8 @@ export declare class UpdateQuotaResponse extends $tea.Model {
|
|
|
2281
2324
|
});
|
|
2282
2325
|
}
|
|
2283
2326
|
export declare class UpdateResourceGroupRequest extends $tea.Model {
|
|
2327
|
+
description?: string;
|
|
2328
|
+
name?: string;
|
|
2284
2329
|
unbind?: boolean;
|
|
2285
2330
|
userVpc?: UserVpc;
|
|
2286
2331
|
static names(): {
|
|
@@ -2450,6 +2495,19 @@ export declare class FeaturesQuota extends $tea.Model {
|
|
|
2450
2495
|
[key: string]: any;
|
|
2451
2496
|
});
|
|
2452
2497
|
}
|
|
2498
|
+
export declare class CreateResourceGroupRequestTag extends $tea.Model {
|
|
2499
|
+
key?: string;
|
|
2500
|
+
value?: string;
|
|
2501
|
+
static names(): {
|
|
2502
|
+
[key: string]: string;
|
|
2503
|
+
};
|
|
2504
|
+
static types(): {
|
|
2505
|
+
[key: string]: any;
|
|
2506
|
+
};
|
|
2507
|
+
constructor(map?: {
|
|
2508
|
+
[key: string]: any;
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2453
2511
|
export declare class CreateTrainingJobRequestComputeResourceInstanceSpec extends $tea.Model {
|
|
2454
2512
|
CPU?: string;
|
|
2455
2513
|
GPU?: string;
|
|
@@ -2579,6 +2637,58 @@ export declare class CreateTrainingJobRequestUserVpc extends $tea.Model {
|
|
|
2579
2637
|
[key: string]: any;
|
|
2580
2638
|
});
|
|
2581
2639
|
}
|
|
2640
|
+
export declare class GetResourceGroupRequestTag extends $tea.Model {
|
|
2641
|
+
key?: string;
|
|
2642
|
+
value?: string;
|
|
2643
|
+
static names(): {
|
|
2644
|
+
[key: string]: string;
|
|
2645
|
+
};
|
|
2646
|
+
static types(): {
|
|
2647
|
+
[key: string]: any;
|
|
2648
|
+
};
|
|
2649
|
+
constructor(map?: {
|
|
2650
|
+
[key: string]: any;
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
export declare class GetResourceGroupResponseBodyTags extends $tea.Model {
|
|
2654
|
+
tagKey?: string;
|
|
2655
|
+
tagValue?: string;
|
|
2656
|
+
static names(): {
|
|
2657
|
+
[key: string]: string;
|
|
2658
|
+
};
|
|
2659
|
+
static types(): {
|
|
2660
|
+
[key: string]: any;
|
|
2661
|
+
};
|
|
2662
|
+
constructor(map?: {
|
|
2663
|
+
[key: string]: any;
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
export declare class GetResourceGroupMachineGroupRequestTag extends $tea.Model {
|
|
2667
|
+
key?: string;
|
|
2668
|
+
value?: string;
|
|
2669
|
+
static names(): {
|
|
2670
|
+
[key: string]: string;
|
|
2671
|
+
};
|
|
2672
|
+
static types(): {
|
|
2673
|
+
[key: string]: any;
|
|
2674
|
+
};
|
|
2675
|
+
constructor(map?: {
|
|
2676
|
+
[key: string]: any;
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
export declare class GetResourceGroupMachineGroupResponseBodyTags extends $tea.Model {
|
|
2680
|
+
tagKey?: string;
|
|
2681
|
+
tagValue?: string;
|
|
2682
|
+
static names(): {
|
|
2683
|
+
[key: string]: string;
|
|
2684
|
+
};
|
|
2685
|
+
static types(): {
|
|
2686
|
+
[key: string]: any;
|
|
2687
|
+
};
|
|
2688
|
+
constructor(map?: {
|
|
2689
|
+
[key: string]: any;
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2582
2692
|
export declare class GetTrainingJobResponseBodyComputeResourceInstanceSpec extends $tea.Model {
|
|
2583
2693
|
CPU?: string;
|
|
2584
2694
|
GPU?: string;
|
|
@@ -3094,14 +3204,14 @@ export default class Client extends OpenApi {
|
|
|
3094
3204
|
[key: string]: string;
|
|
3095
3205
|
}, runtime: $Util.RuntimeOptions): Promise<GetQuotaResponse>;
|
|
3096
3206
|
getQuota(QuotaId: string): Promise<GetQuotaResponse>;
|
|
3097
|
-
getResourceGroupWithOptions(ResourceGroupID: string,
|
|
3207
|
+
getResourceGroupWithOptions(ResourceGroupID: string, tmpReq: GetResourceGroupRequest, headers: {
|
|
3098
3208
|
[key: string]: string;
|
|
3099
3209
|
}, runtime: $Util.RuntimeOptions): Promise<GetResourceGroupResponse>;
|
|
3100
3210
|
getResourceGroup(ResourceGroupID: string, request: GetResourceGroupRequest): Promise<GetResourceGroupResponse>;
|
|
3101
|
-
getResourceGroupMachineGroupWithOptions(MachineGroupID: string, ResourceGroupID: string, headers: {
|
|
3211
|
+
getResourceGroupMachineGroupWithOptions(MachineGroupID: string, ResourceGroupID: string, tmpReq: GetResourceGroupMachineGroupRequest, headers: {
|
|
3102
3212
|
[key: string]: string;
|
|
3103
3213
|
}, runtime: $Util.RuntimeOptions): Promise<GetResourceGroupMachineGroupResponse>;
|
|
3104
|
-
getResourceGroupMachineGroup(MachineGroupID: string, ResourceGroupID: string): Promise<GetResourceGroupMachineGroupResponse>;
|
|
3214
|
+
getResourceGroupMachineGroup(MachineGroupID: string, ResourceGroupID: string, request: GetResourceGroupMachineGroupRequest): Promise<GetResourceGroupMachineGroupResponse>;
|
|
3105
3215
|
getResourceGroupRequestWithOptions(request: GetResourceGroupRequestRequest, headers: {
|
|
3106
3216
|
[key: string]: string;
|
|
3107
3217
|
}, runtime: $Util.RuntimeOptions): Promise<GetResourceGroupRequestResponse>;
|
package/dist/client.js
CHANGED
|
@@ -1447,6 +1447,7 @@ class CreateResourceGroupRequest extends $tea.Model {
|
|
|
1447
1447
|
description: 'Description',
|
|
1448
1448
|
name: 'Name',
|
|
1449
1449
|
resourceType: 'ResourceType',
|
|
1450
|
+
tag: 'Tag',
|
|
1450
1451
|
userVpc: 'UserVpc',
|
|
1451
1452
|
};
|
|
1452
1453
|
}
|
|
@@ -1456,6 +1457,7 @@ class CreateResourceGroupRequest extends $tea.Model {
|
|
|
1456
1457
|
description: 'string',
|
|
1457
1458
|
name: 'string',
|
|
1458
1459
|
resourceType: 'string',
|
|
1460
|
+
tag: { 'type': 'array', 'itemType': CreateResourceGroupRequestTag },
|
|
1459
1461
|
userVpc: UserVpc,
|
|
1460
1462
|
};
|
|
1461
1463
|
}
|
|
@@ -2062,15 +2064,35 @@ class GetResourceGroupRequest extends $tea.Model {
|
|
|
2062
2064
|
static names() {
|
|
2063
2065
|
return {
|
|
2064
2066
|
isAIWorkspaceDataEnabled: 'IsAIWorkspaceDataEnabled',
|
|
2067
|
+
tag: 'Tag',
|
|
2065
2068
|
};
|
|
2066
2069
|
}
|
|
2067
2070
|
static types() {
|
|
2068
2071
|
return {
|
|
2069
2072
|
isAIWorkspaceDataEnabled: 'boolean',
|
|
2073
|
+
tag: { 'type': 'array', 'itemType': GetResourceGroupRequestTag },
|
|
2070
2074
|
};
|
|
2071
2075
|
}
|
|
2072
2076
|
}
|
|
2073
2077
|
exports.GetResourceGroupRequest = GetResourceGroupRequest;
|
|
2078
|
+
class GetResourceGroupShrinkRequest extends $tea.Model {
|
|
2079
|
+
constructor(map) {
|
|
2080
|
+
super(map);
|
|
2081
|
+
}
|
|
2082
|
+
static names() {
|
|
2083
|
+
return {
|
|
2084
|
+
isAIWorkspaceDataEnabled: 'IsAIWorkspaceDataEnabled',
|
|
2085
|
+
tagShrink: 'Tag',
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
static types() {
|
|
2089
|
+
return {
|
|
2090
|
+
isAIWorkspaceDataEnabled: 'boolean',
|
|
2091
|
+
tagShrink: 'string',
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
exports.GetResourceGroupShrinkRequest = GetResourceGroupShrinkRequest;
|
|
2074
2096
|
class GetResourceGroupResponseBody extends $tea.Model {
|
|
2075
2097
|
constructor(map) {
|
|
2076
2098
|
super(map);
|
|
@@ -2080,6 +2102,7 @@ class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
2080
2102
|
clusterID: 'ClusterID',
|
|
2081
2103
|
computingResourceProvider: 'ComputingResourceProvider',
|
|
2082
2104
|
creatorID: 'CreatorID',
|
|
2105
|
+
description: 'Description',
|
|
2083
2106
|
gmtCreatedTime: 'GmtCreatedTime',
|
|
2084
2107
|
gmtModifiedTime: 'GmtModifiedTime',
|
|
2085
2108
|
name: 'Name',
|
|
@@ -2087,6 +2110,7 @@ class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
2087
2110
|
resourceType: 'ResourceType',
|
|
2088
2111
|
status: 'Status',
|
|
2089
2112
|
supportRDMA: 'SupportRDMA',
|
|
2113
|
+
tags: 'Tags',
|
|
2090
2114
|
userVpc: 'UserVpc',
|
|
2091
2115
|
workspaceID: 'WorkspaceID',
|
|
2092
2116
|
};
|
|
@@ -2096,6 +2120,7 @@ class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
2096
2120
|
clusterID: 'string',
|
|
2097
2121
|
computingResourceProvider: 'string',
|
|
2098
2122
|
creatorID: 'string',
|
|
2123
|
+
description: 'string',
|
|
2099
2124
|
gmtCreatedTime: 'string',
|
|
2100
2125
|
gmtModifiedTime: 'string',
|
|
2101
2126
|
name: 'string',
|
|
@@ -2103,6 +2128,7 @@ class GetResourceGroupResponseBody extends $tea.Model {
|
|
|
2103
2128
|
resourceType: 'string',
|
|
2104
2129
|
status: 'string',
|
|
2105
2130
|
supportRDMA: 'boolean',
|
|
2131
|
+
tags: { 'type': 'array', 'itemType': GetResourceGroupResponseBodyTags },
|
|
2106
2132
|
userVpc: UserVpc,
|
|
2107
2133
|
workspaceID: 'string',
|
|
2108
2134
|
};
|
|
@@ -2129,6 +2155,38 @@ class GetResourceGroupResponse extends $tea.Model {
|
|
|
2129
2155
|
}
|
|
2130
2156
|
}
|
|
2131
2157
|
exports.GetResourceGroupResponse = GetResourceGroupResponse;
|
|
2158
|
+
class GetResourceGroupMachineGroupRequest extends $tea.Model {
|
|
2159
|
+
constructor(map) {
|
|
2160
|
+
super(map);
|
|
2161
|
+
}
|
|
2162
|
+
static names() {
|
|
2163
|
+
return {
|
|
2164
|
+
tag: 'Tag',
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2167
|
+
static types() {
|
|
2168
|
+
return {
|
|
2169
|
+
tag: { 'type': 'array', 'itemType': GetResourceGroupMachineGroupRequestTag },
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
exports.GetResourceGroupMachineGroupRequest = GetResourceGroupMachineGroupRequest;
|
|
2174
|
+
class GetResourceGroupMachineGroupShrinkRequest extends $tea.Model {
|
|
2175
|
+
constructor(map) {
|
|
2176
|
+
super(map);
|
|
2177
|
+
}
|
|
2178
|
+
static names() {
|
|
2179
|
+
return {
|
|
2180
|
+
tagShrink: 'Tag',
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
static types() {
|
|
2184
|
+
return {
|
|
2185
|
+
tagShrink: 'string',
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
exports.GetResourceGroupMachineGroupShrinkRequest = GetResourceGroupMachineGroupShrinkRequest;
|
|
2132
2190
|
class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
2133
2191
|
constructor(map) {
|
|
2134
2192
|
super(map);
|
|
@@ -2147,6 +2205,7 @@ class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
|
2147
2205
|
gpuType: 'GpuType',
|
|
2148
2206
|
machineGroupID: 'MachineGroupID',
|
|
2149
2207
|
memory: 'Memory',
|
|
2208
|
+
name: 'Name',
|
|
2150
2209
|
paymentDuration: 'PaymentDuration',
|
|
2151
2210
|
paymentDurationUnit: 'PaymentDurationUnit',
|
|
2152
2211
|
paymentType: 'PaymentType',
|
|
@@ -2154,6 +2213,7 @@ class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
|
2154
2213
|
resourceGroupID: 'ResourceGroupID',
|
|
2155
2214
|
status: 'Status',
|
|
2156
2215
|
supportedDrivers: 'SupportedDrivers',
|
|
2216
|
+
tags: 'Tags',
|
|
2157
2217
|
};
|
|
2158
2218
|
}
|
|
2159
2219
|
static types() {
|
|
@@ -2170,6 +2230,7 @@ class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
|
2170
2230
|
gpuType: 'string',
|
|
2171
2231
|
machineGroupID: 'string',
|
|
2172
2232
|
memory: 'string',
|
|
2233
|
+
name: 'string',
|
|
2173
2234
|
paymentDuration: 'string',
|
|
2174
2235
|
paymentDurationUnit: 'string',
|
|
2175
2236
|
paymentType: 'string',
|
|
@@ -2177,6 +2238,7 @@ class GetResourceGroupMachineGroupResponseBody extends $tea.Model {
|
|
|
2177
2238
|
resourceGroupID: 'string',
|
|
2178
2239
|
status: 'string',
|
|
2179
2240
|
supportedDrivers: { 'type': 'array', 'itemType': 'string' },
|
|
2241
|
+
tags: { 'type': 'array', 'itemType': GetResourceGroupMachineGroupResponseBodyTags },
|
|
2180
2242
|
};
|
|
2181
2243
|
}
|
|
2182
2244
|
}
|
|
@@ -3369,12 +3431,16 @@ class UpdateResourceGroupRequest extends $tea.Model {
|
|
|
3369
3431
|
}
|
|
3370
3432
|
static names() {
|
|
3371
3433
|
return {
|
|
3434
|
+
description: 'Description',
|
|
3435
|
+
name: 'Name',
|
|
3372
3436
|
unbind: 'Unbind',
|
|
3373
3437
|
userVpc: 'UserVpc',
|
|
3374
3438
|
};
|
|
3375
3439
|
}
|
|
3376
3440
|
static types() {
|
|
3377
3441
|
return {
|
|
3442
|
+
description: 'string',
|
|
3443
|
+
name: 'string',
|
|
3378
3444
|
unbind: 'boolean',
|
|
3379
3445
|
userVpc: UserVpc,
|
|
3380
3446
|
};
|
|
@@ -3591,6 +3657,24 @@ class FeaturesQuota extends $tea.Model {
|
|
|
3591
3657
|
}
|
|
3592
3658
|
}
|
|
3593
3659
|
exports.FeaturesQuota = FeaturesQuota;
|
|
3660
|
+
class CreateResourceGroupRequestTag extends $tea.Model {
|
|
3661
|
+
constructor(map) {
|
|
3662
|
+
super(map);
|
|
3663
|
+
}
|
|
3664
|
+
static names() {
|
|
3665
|
+
return {
|
|
3666
|
+
key: 'Key',
|
|
3667
|
+
value: 'Value',
|
|
3668
|
+
};
|
|
3669
|
+
}
|
|
3670
|
+
static types() {
|
|
3671
|
+
return {
|
|
3672
|
+
key: 'string',
|
|
3673
|
+
value: 'string',
|
|
3674
|
+
};
|
|
3675
|
+
}
|
|
3676
|
+
}
|
|
3677
|
+
exports.CreateResourceGroupRequestTag = CreateResourceGroupRequestTag;
|
|
3594
3678
|
class CreateTrainingJobRequestComputeResourceInstanceSpec extends $tea.Model {
|
|
3595
3679
|
constructor(map) {
|
|
3596
3680
|
super(map);
|
|
@@ -3777,6 +3861,78 @@ class CreateTrainingJobRequestUserVpc extends $tea.Model {
|
|
|
3777
3861
|
}
|
|
3778
3862
|
}
|
|
3779
3863
|
exports.CreateTrainingJobRequestUserVpc = CreateTrainingJobRequestUserVpc;
|
|
3864
|
+
class GetResourceGroupRequestTag extends $tea.Model {
|
|
3865
|
+
constructor(map) {
|
|
3866
|
+
super(map);
|
|
3867
|
+
}
|
|
3868
|
+
static names() {
|
|
3869
|
+
return {
|
|
3870
|
+
key: 'Key',
|
|
3871
|
+
value: 'Value',
|
|
3872
|
+
};
|
|
3873
|
+
}
|
|
3874
|
+
static types() {
|
|
3875
|
+
return {
|
|
3876
|
+
key: 'string',
|
|
3877
|
+
value: 'string',
|
|
3878
|
+
};
|
|
3879
|
+
}
|
|
3880
|
+
}
|
|
3881
|
+
exports.GetResourceGroupRequestTag = GetResourceGroupRequestTag;
|
|
3882
|
+
class GetResourceGroupResponseBodyTags extends $tea.Model {
|
|
3883
|
+
constructor(map) {
|
|
3884
|
+
super(map);
|
|
3885
|
+
}
|
|
3886
|
+
static names() {
|
|
3887
|
+
return {
|
|
3888
|
+
tagKey: 'TagKey',
|
|
3889
|
+
tagValue: 'TagValue',
|
|
3890
|
+
};
|
|
3891
|
+
}
|
|
3892
|
+
static types() {
|
|
3893
|
+
return {
|
|
3894
|
+
tagKey: 'string',
|
|
3895
|
+
tagValue: 'string',
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
exports.GetResourceGroupResponseBodyTags = GetResourceGroupResponseBodyTags;
|
|
3900
|
+
class GetResourceGroupMachineGroupRequestTag extends $tea.Model {
|
|
3901
|
+
constructor(map) {
|
|
3902
|
+
super(map);
|
|
3903
|
+
}
|
|
3904
|
+
static names() {
|
|
3905
|
+
return {
|
|
3906
|
+
key: 'Key',
|
|
3907
|
+
value: 'Value',
|
|
3908
|
+
};
|
|
3909
|
+
}
|
|
3910
|
+
static types() {
|
|
3911
|
+
return {
|
|
3912
|
+
key: 'string',
|
|
3913
|
+
value: 'string',
|
|
3914
|
+
};
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
exports.GetResourceGroupMachineGroupRequestTag = GetResourceGroupMachineGroupRequestTag;
|
|
3918
|
+
class GetResourceGroupMachineGroupResponseBodyTags extends $tea.Model {
|
|
3919
|
+
constructor(map) {
|
|
3920
|
+
super(map);
|
|
3921
|
+
}
|
|
3922
|
+
static names() {
|
|
3923
|
+
return {
|
|
3924
|
+
tagKey: 'TagKey',
|
|
3925
|
+
tagValue: 'TagValue',
|
|
3926
|
+
};
|
|
3927
|
+
}
|
|
3928
|
+
static types() {
|
|
3929
|
+
return {
|
|
3930
|
+
tagKey: 'string',
|
|
3931
|
+
tagValue: 'string',
|
|
3932
|
+
};
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
exports.GetResourceGroupMachineGroupResponseBodyTags = GetResourceGroupMachineGroupResponseBodyTags;
|
|
3780
3936
|
class GetTrainingJobResponseBodyComputeResourceInstanceSpec extends $tea.Model {
|
|
3781
3937
|
constructor(map) {
|
|
3782
3938
|
super(map);
|
|
@@ -4619,6 +4775,9 @@ class Client extends openapi_client_1.default {
|
|
|
4619
4775
|
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
4620
4776
|
body["ResourceType"] = request.resourceType;
|
|
4621
4777
|
}
|
|
4778
|
+
if (!tea_util_1.default.isUnset(request.tag)) {
|
|
4779
|
+
body["Tag"] = request.tag;
|
|
4780
|
+
}
|
|
4622
4781
|
if (!tea_util_1.default.isUnset(request.userVpc)) {
|
|
4623
4782
|
body["UserVpc"] = request.userVpc;
|
|
4624
4783
|
}
|
|
@@ -4936,12 +5095,20 @@ class Client extends openapi_client_1.default {
|
|
|
4936
5095
|
let headers = {};
|
|
4937
5096
|
return await this.getQuotaWithOptions(QuotaId, headers, runtime);
|
|
4938
5097
|
}
|
|
4939
|
-
async getResourceGroupWithOptions(ResourceGroupID,
|
|
4940
|
-
tea_util_1.default.validateModel(
|
|
5098
|
+
async getResourceGroupWithOptions(ResourceGroupID, tmpReq, headers, runtime) {
|
|
5099
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
5100
|
+
let request = new GetResourceGroupShrinkRequest({});
|
|
5101
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
5102
|
+
if (!tea_util_1.default.isUnset(tmpReq.tag)) {
|
|
5103
|
+
request.tagShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tag, "Tag", "json");
|
|
5104
|
+
}
|
|
4941
5105
|
let query = {};
|
|
4942
5106
|
if (!tea_util_1.default.isUnset(request.isAIWorkspaceDataEnabled)) {
|
|
4943
5107
|
query["IsAIWorkspaceDataEnabled"] = request.isAIWorkspaceDataEnabled;
|
|
4944
5108
|
}
|
|
5109
|
+
if (!tea_util_1.default.isUnset(request.tagShrink)) {
|
|
5110
|
+
query["Tag"] = request.tagShrink;
|
|
5111
|
+
}
|
|
4945
5112
|
let req = new $OpenApi.OpenApiRequest({
|
|
4946
5113
|
headers: headers,
|
|
4947
5114
|
query: openapi_util_1.default.query(query),
|
|
@@ -4964,9 +5131,20 @@ class Client extends openapi_client_1.default {
|
|
|
4964
5131
|
let headers = {};
|
|
4965
5132
|
return await this.getResourceGroupWithOptions(ResourceGroupID, request, headers, runtime);
|
|
4966
5133
|
}
|
|
4967
|
-
async getResourceGroupMachineGroupWithOptions(MachineGroupID, ResourceGroupID, headers, runtime) {
|
|
5134
|
+
async getResourceGroupMachineGroupWithOptions(MachineGroupID, ResourceGroupID, tmpReq, headers, runtime) {
|
|
5135
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
5136
|
+
let request = new GetResourceGroupMachineGroupShrinkRequest({});
|
|
5137
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
5138
|
+
if (!tea_util_1.default.isUnset(tmpReq.tag)) {
|
|
5139
|
+
request.tagShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tag, "Tag", "json");
|
|
5140
|
+
}
|
|
5141
|
+
let query = {};
|
|
5142
|
+
if (!tea_util_1.default.isUnset(request.tagShrink)) {
|
|
5143
|
+
query["Tag"] = request.tagShrink;
|
|
5144
|
+
}
|
|
4968
5145
|
let req = new $OpenApi.OpenApiRequest({
|
|
4969
5146
|
headers: headers,
|
|
5147
|
+
query: openapi_util_1.default.query(query),
|
|
4970
5148
|
});
|
|
4971
5149
|
let params = new $OpenApi.Params({
|
|
4972
5150
|
action: "GetResourceGroupMachineGroup",
|
|
@@ -4981,10 +5159,10 @@ class Client extends openapi_client_1.default {
|
|
|
4981
5159
|
});
|
|
4982
5160
|
return $tea.cast(await this.callApi(params, req, runtime), new GetResourceGroupMachineGroupResponse({}));
|
|
4983
5161
|
}
|
|
4984
|
-
async getResourceGroupMachineGroup(MachineGroupID, ResourceGroupID) {
|
|
5162
|
+
async getResourceGroupMachineGroup(MachineGroupID, ResourceGroupID, request) {
|
|
4985
5163
|
let runtime = new $Util.RuntimeOptions({});
|
|
4986
5164
|
let headers = {};
|
|
4987
|
-
return await this.getResourceGroupMachineGroupWithOptions(MachineGroupID, ResourceGroupID, headers, runtime);
|
|
5165
|
+
return await this.getResourceGroupMachineGroupWithOptions(MachineGroupID, ResourceGroupID, request, headers, runtime);
|
|
4988
5166
|
}
|
|
4989
5167
|
async getResourceGroupRequestWithOptions(request, headers, runtime) {
|
|
4990
5168
|
tea_util_1.default.validateModel(request);
|
|
@@ -5667,6 +5845,12 @@ class Client extends openapi_client_1.default {
|
|
|
5667
5845
|
async updateResourceGroupWithOptions(ResourceGroupID, request, headers, runtime) {
|
|
5668
5846
|
tea_util_1.default.validateModel(request);
|
|
5669
5847
|
let body = {};
|
|
5848
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
5849
|
+
body["Description"] = request.description;
|
|
5850
|
+
}
|
|
5851
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
5852
|
+
body["Name"] = request.name;
|
|
5853
|
+
}
|
|
5670
5854
|
if (!tea_util_1.default.isUnset(request.unbind)) {
|
|
5671
5855
|
body["Unbind"] = request.unbind;
|
|
5672
5856
|
}
|