@alicloud/pai-dlc20201203 1.4.20 → 1.5.0
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 +87 -9
- package/dist/client.js +141 -140
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +184 -148
package/dist/client.d.ts
CHANGED
|
@@ -2741,7 +2741,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
2741
2741
|
jobSpecs?: JobSpec[];
|
|
2742
2742
|
/**
|
|
2743
2743
|
* @remarks
|
|
2744
|
-
* The job type. The value is case-sensitive.
|
|
2744
|
+
* The job type. The value is case-sensitive. The following job types are supported:
|
|
2745
2745
|
*
|
|
2746
2746
|
* * TFJob
|
|
2747
2747
|
* * PyTorchJob
|
|
@@ -2793,7 +2793,7 @@ export declare class CreateJobRequest extends $dara.Model {
|
|
|
2793
2793
|
* The ID of the resource group. This parameter is optional.
|
|
2794
2794
|
*
|
|
2795
2795
|
* * If you leave this parameter empty, the job is submitted to a public resource group.
|
|
2796
|
-
* * If a resource quota is
|
|
2796
|
+
* * If a resource quota is bound to the current workspace, you can specify the resource quota ID. For more information about how to query the resource quota ID, see [Manage resource quotas](https://help.aliyun.com/document_detail/2651299.html).
|
|
2797
2797
|
*
|
|
2798
2798
|
* @example
|
|
2799
2799
|
* rs-xxx
|
|
@@ -4146,6 +4146,67 @@ export declare class GetPodLogsResponse extends $dara.Model {
|
|
|
4146
4146
|
[key: string]: any;
|
|
4147
4147
|
});
|
|
4148
4148
|
}
|
|
4149
|
+
export declare class GetRayDashboardRequest extends $dara.Model {
|
|
4150
|
+
/**
|
|
4151
|
+
* @example
|
|
4152
|
+
* false
|
|
4153
|
+
*/
|
|
4154
|
+
isShared?: boolean;
|
|
4155
|
+
/**
|
|
4156
|
+
* @example
|
|
4157
|
+
* some_token_value
|
|
4158
|
+
*/
|
|
4159
|
+
token?: string;
|
|
4160
|
+
static names(): {
|
|
4161
|
+
[key: string]: string;
|
|
4162
|
+
};
|
|
4163
|
+
static types(): {
|
|
4164
|
+
[key: string]: any;
|
|
4165
|
+
};
|
|
4166
|
+
validate(): void;
|
|
4167
|
+
constructor(map?: {
|
|
4168
|
+
[key: string]: any;
|
|
4169
|
+
});
|
|
4170
|
+
}
|
|
4171
|
+
export declare class GetRayDashboardResponseBody extends $dara.Model {
|
|
4172
|
+
/**
|
|
4173
|
+
* @example
|
|
4174
|
+
* true
|
|
4175
|
+
*/
|
|
4176
|
+
metricsEnabled?: string;
|
|
4177
|
+
/**
|
|
4178
|
+
* @example
|
|
4179
|
+
* https://pre-pai-dlc-proxy-cn-hangzhou.aliyun.com/ray/dashboard/dlc1k7426goc7bvy
|
|
4180
|
+
*/
|
|
4181
|
+
url?: string;
|
|
4182
|
+
static names(): {
|
|
4183
|
+
[key: string]: string;
|
|
4184
|
+
};
|
|
4185
|
+
static types(): {
|
|
4186
|
+
[key: string]: any;
|
|
4187
|
+
};
|
|
4188
|
+
validate(): void;
|
|
4189
|
+
constructor(map?: {
|
|
4190
|
+
[key: string]: any;
|
|
4191
|
+
});
|
|
4192
|
+
}
|
|
4193
|
+
export declare class GetRayDashboardResponse extends $dara.Model {
|
|
4194
|
+
headers?: {
|
|
4195
|
+
[key: string]: string;
|
|
4196
|
+
};
|
|
4197
|
+
statusCode?: number;
|
|
4198
|
+
body?: GetRayDashboardResponseBody;
|
|
4199
|
+
static names(): {
|
|
4200
|
+
[key: string]: string;
|
|
4201
|
+
};
|
|
4202
|
+
static types(): {
|
|
4203
|
+
[key: string]: any;
|
|
4204
|
+
};
|
|
4205
|
+
validate(): void;
|
|
4206
|
+
constructor(map?: {
|
|
4207
|
+
[key: string]: any;
|
|
4208
|
+
});
|
|
4209
|
+
}
|
|
4149
4210
|
export declare class GetTensorboardRequest extends $dara.Model {
|
|
4150
4211
|
/**
|
|
4151
4212
|
* @remarks
|
|
@@ -4730,7 +4791,7 @@ export declare class ListJobsRequest extends $dara.Model {
|
|
|
4730
4791
|
jobId?: string;
|
|
4731
4792
|
/**
|
|
4732
4793
|
* @remarks
|
|
4733
|
-
* The job type.
|
|
4794
|
+
* The job type. The default value null indicates any type. Valid values:
|
|
4734
4795
|
*
|
|
4735
4796
|
* * TFJob
|
|
4736
4797
|
* * PyTorchJob
|
|
@@ -4776,7 +4837,7 @@ export declare class ListJobsRequest extends $dara.Model {
|
|
|
4776
4837
|
pageNumber?: number;
|
|
4777
4838
|
/**
|
|
4778
4839
|
* @remarks
|
|
4779
|
-
* The number of
|
|
4840
|
+
* The number of jobs per page.
|
|
4780
4841
|
*
|
|
4781
4842
|
* @example
|
|
4782
4843
|
* 50
|
|
@@ -4817,7 +4878,7 @@ export declare class ListJobsRequest extends $dara.Model {
|
|
|
4817
4878
|
showOwn?: boolean;
|
|
4818
4879
|
/**
|
|
4819
4880
|
* @remarks
|
|
4820
|
-
* The sorting field
|
|
4881
|
+
* The sorting field. Valid values:
|
|
4821
4882
|
*
|
|
4822
4883
|
* * DisplayName
|
|
4823
4884
|
* * JobType
|
|
@@ -4963,7 +5024,7 @@ export declare class ListJobsShrinkRequest extends $dara.Model {
|
|
|
4963
5024
|
jobId?: string;
|
|
4964
5025
|
/**
|
|
4965
5026
|
* @remarks
|
|
4966
|
-
* The job type.
|
|
5027
|
+
* The job type. The default value null indicates any type. Valid values:
|
|
4967
5028
|
*
|
|
4968
5029
|
* * TFJob
|
|
4969
5030
|
* * PyTorchJob
|
|
@@ -5009,7 +5070,7 @@ export declare class ListJobsShrinkRequest extends $dara.Model {
|
|
|
5009
5070
|
pageNumber?: number;
|
|
5010
5071
|
/**
|
|
5011
5072
|
* @remarks
|
|
5012
|
-
* The number of
|
|
5073
|
+
* The number of jobs per page.
|
|
5013
5074
|
*
|
|
5014
5075
|
* @example
|
|
5015
5076
|
* 50
|
|
@@ -5050,7 +5111,7 @@ export declare class ListJobsShrinkRequest extends $dara.Model {
|
|
|
5050
5111
|
showOwn?: boolean;
|
|
5051
5112
|
/**
|
|
5052
5113
|
* @remarks
|
|
5053
|
-
* The sorting field
|
|
5114
|
+
* The sorting field. Valid values:
|
|
5054
5115
|
*
|
|
5055
5116
|
* * DisplayName
|
|
5056
5117
|
* * JobType
|
|
@@ -5436,7 +5497,6 @@ export declare class StartTensorboardRequest extends $dara.Model {
|
|
|
5436
5497
|
/**
|
|
5437
5498
|
* @remarks
|
|
5438
5499
|
* The workspace ID.
|
|
5439
|
-
* <props="china">For more information about how to obtain the workspace ID, see [ListWorkspaces](https://help.aliyun.com/document_detail/449124.html).
|
|
5440
5500
|
*
|
|
5441
5501
|
* @example
|
|
5442
5502
|
* 380
|
|
@@ -5962,6 +6022,24 @@ export default class Client extends OpenApi {
|
|
|
5962
6022
|
* @returns GetPodLogsResponse
|
|
5963
6023
|
*/
|
|
5964
6024
|
getPodLogs(JobId: string, PodId: string, request: GetPodLogsRequest): Promise<GetPodLogsResponse>;
|
|
6025
|
+
/**
|
|
6026
|
+
* 获取 Ray Dashboard 链接
|
|
6027
|
+
*
|
|
6028
|
+
* @param request - GetRayDashboardRequest
|
|
6029
|
+
* @param headers - map
|
|
6030
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6031
|
+
* @returns GetRayDashboardResponse
|
|
6032
|
+
*/
|
|
6033
|
+
getRayDashboardWithOptions(jobId: string, request: GetRayDashboardRequest, headers: {
|
|
6034
|
+
[key: string]: string;
|
|
6035
|
+
}, runtime: $dara.RuntimeOptions): Promise<GetRayDashboardResponse>;
|
|
6036
|
+
/**
|
|
6037
|
+
* 获取 Ray Dashboard 链接
|
|
6038
|
+
*
|
|
6039
|
+
* @param request - GetRayDashboardRequest
|
|
6040
|
+
* @returns GetRayDashboardResponse
|
|
6041
|
+
*/
|
|
6042
|
+
getRayDashboard(jobId: string, request: GetRayDashboardRequest): Promise<GetRayDashboardResponse>;
|
|
5965
6043
|
/**
|
|
5966
6044
|
* Queries the information of a TensorBoard instance.
|
|
5967
6045
|
*
|
package/dist/client.js
CHANGED
|
@@ -37,8 +37,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.PodItem = exports.NodeMetric = exports.Metric = exports.Member = exports.LogInfo = exports.Lifecycle = exports.JobSpec = exports.JobSettings = exports.JobItem = exports.JobElasticSpec = exports.JobDebuggerConfig = exports.ImageItem = exports.ImageConfig = exports.GPUDetail = exports.FreeResourceItem = exports.FreeResourceDetail = exports.FreeResourceClusterControlItem = exports.ExtraPodSpec = exports.EventInfo = exports.EnvVar = exports.EcsSpec = exports.DebuggerResult = exports.DebuggerJobIssue = exports.DebuggerJob = exports.DebuggerConfig = exports.DataSourceItem = exports.CredentialRole = exports.CredentialConfigItem = exports.CredentialConfig = exports.ContainerSpec = exports.CodeSourceItem = exports.AssumeUserInfo = exports.AssignNodeSpec = exports.AliyunAccounts = exports.AIMasterMessage = exports.GetJobResponseBodyUserVpc = exports.GetJobResponseBodyPods = exports.GetJobResponseBodyPodsHistoryPods = exports.GetJobResponseBodyDataSources = exports.GetJobResponseBodyCodeSource = exports.CreateJobRequestUserVpc = exports.CreateJobRequestDataSources = exports.CreateJobRequestCodeSource = exports.LifecyclePreStop = exports.LifecyclePreStopExec = exports.LifecyclePostStart = exports.LifecyclePostStartExec = exports.JobItemUserVpc = exports.JobItemDataSources = exports.JobItemCodeSource = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.UpdateTensorboardResponse = exports.UpdateTensorboardResponseBody = exports.UpdateTensorboardRequest = exports.UpdateJobResponse = exports.UpdateJobResponseBody = exports.UpdateJobRequest = exports.StopTensorboardResponse = exports.StopTensorboardResponseBody = exports.StopTensorboardRequest = exports.StopJobResponse = exports.StopJobResponseBody = exports.StartTensorboardResponse = exports.StartTensorboardResponseBody = exports.StartTensorboardRequest = exports.ListTensorboardsResponse = exports.ListTensorboardsResponseBody = exports.ListTensorboardsRequest = exports.ListJobsResponse = exports.ListJobsResponseBody = exports.ListJobsShrinkRequest = exports.ListJobsRequest = exports.ListJobSanityCheckResultsResponse = exports.ListJobSanityCheckResultsResponseBody = exports.ListJobSanityCheckResultsRequest = exports.ListEcsSpecsResponse = exports.ListEcsSpecsResponseBody = exports.ListEcsSpecsRequest = exports.GetWebTerminalResponse = exports.GetWebTerminalResponseBody = exports.GetWebTerminalRequest = exports.GetTokenResponse = exports.GetTokenResponseBody = exports.GetTokenRequest = exports.GetTensorboardSharedUrlResponse = void 0;
|
|
40
|
+
exports.GetTensorboardRequest = exports.GetRayDashboardResponse = exports.GetRayDashboardResponseBody = exports.GetRayDashboardRequest = exports.GetPodLogsResponse = exports.GetPodLogsResponseBody = exports.GetPodLogsRequest = exports.GetPodEventsResponse = exports.GetPodEventsResponseBody = exports.GetPodEventsRequest = exports.GetJobSanityCheckResultResponse = exports.GetJobSanityCheckResultResponseBody = exports.GetJobSanityCheckResultRequest = exports.GetJobMetricsResponse = exports.GetJobMetricsResponseBody = exports.GetJobMetricsRequest = exports.GetJobEventsResponse = exports.GetJobEventsResponseBody = exports.GetJobEventsRequest = exports.GetJobResponse = exports.GetJobResponseBody = exports.GetJobRequest = exports.DeleteTensorboardResponse = exports.DeleteTensorboardResponseBody = exports.DeleteTensorboardRequest = exports.DeleteJobResponse = exports.DeleteJobResponseBody = exports.CreateTensorboardResponse = exports.CreateTensorboardResponseBody = exports.CreateTensorboardRequest = exports.CreateJobResponse = exports.CreateJobResponseBody = exports.CreateJobRequest = exports.Workspace = exports.TensorboardSpec = exports.TensorboardDataSourceSpec = exports.Tensorboard = exports.StatusTransitionItem = exports.SpotSpec = exports.SmartCache = exports.SecurityContext = exports.SeccompProfile = exports.SanityCheckResultItem = exports.Resources = exports.ResourceRequirements = exports.ResourceConfig = exports.QuotaDetail = exports.QuotaConfig = exports.Quota = exports.PodMetric = void 0;
|
|
41
|
+
exports.UpdateTensorboardResponse = exports.UpdateTensorboardResponseBody = exports.UpdateTensorboardRequest = exports.UpdateJobResponse = exports.UpdateJobResponseBody = exports.UpdateJobRequest = exports.StopTensorboardResponse = exports.StopTensorboardResponseBody = exports.StopTensorboardRequest = exports.StopJobResponse = exports.StopJobResponseBody = exports.StartTensorboardResponse = exports.StartTensorboardResponseBody = exports.StartTensorboardRequest = exports.ListTensorboardsResponse = exports.ListTensorboardsResponseBody = exports.ListTensorboardsRequest = exports.ListJobsResponse = exports.ListJobsResponseBody = exports.ListJobsShrinkRequest = exports.ListJobsRequest = exports.ListJobSanityCheckResultsResponse = exports.ListJobSanityCheckResultsResponseBody = exports.ListJobSanityCheckResultsRequest = exports.ListEcsSpecsResponse = exports.ListEcsSpecsResponseBody = exports.ListEcsSpecsRequest = exports.GetWebTerminalResponse = exports.GetWebTerminalResponseBody = exports.GetWebTerminalRequest = exports.GetTokenResponse = exports.GetTokenResponseBody = exports.GetTokenRequest = exports.GetTensorboardSharedUrlResponse = exports.GetTensorboardSharedUrlResponseBody = exports.GetTensorboardSharedUrlRequest = exports.GetTensorboardResponse = void 0;
|
|
42
42
|
// This file is auto-generated, don't edit it
|
|
43
43
|
/**
|
|
44
44
|
*/
|
|
@@ -3260,6 +3260,77 @@ class GetPodLogsResponse extends $dara.Model {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
}
|
|
3262
3262
|
exports.GetPodLogsResponse = GetPodLogsResponse;
|
|
3263
|
+
class GetRayDashboardRequest extends $dara.Model {
|
|
3264
|
+
static names() {
|
|
3265
|
+
return {
|
|
3266
|
+
isShared: 'isShared',
|
|
3267
|
+
token: 'token',
|
|
3268
|
+
};
|
|
3269
|
+
}
|
|
3270
|
+
static types() {
|
|
3271
|
+
return {
|
|
3272
|
+
isShared: 'boolean',
|
|
3273
|
+
token: 'string',
|
|
3274
|
+
};
|
|
3275
|
+
}
|
|
3276
|
+
validate() {
|
|
3277
|
+
super.validate();
|
|
3278
|
+
}
|
|
3279
|
+
constructor(map) {
|
|
3280
|
+
super(map);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
exports.GetRayDashboardRequest = GetRayDashboardRequest;
|
|
3284
|
+
class GetRayDashboardResponseBody extends $dara.Model {
|
|
3285
|
+
static names() {
|
|
3286
|
+
return {
|
|
3287
|
+
metricsEnabled: 'metricsEnabled',
|
|
3288
|
+
url: 'url',
|
|
3289
|
+
};
|
|
3290
|
+
}
|
|
3291
|
+
static types() {
|
|
3292
|
+
return {
|
|
3293
|
+
metricsEnabled: 'string',
|
|
3294
|
+
url: 'string',
|
|
3295
|
+
};
|
|
3296
|
+
}
|
|
3297
|
+
validate() {
|
|
3298
|
+
super.validate();
|
|
3299
|
+
}
|
|
3300
|
+
constructor(map) {
|
|
3301
|
+
super(map);
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
exports.GetRayDashboardResponseBody = GetRayDashboardResponseBody;
|
|
3305
|
+
class GetRayDashboardResponse extends $dara.Model {
|
|
3306
|
+
static names() {
|
|
3307
|
+
return {
|
|
3308
|
+
headers: 'headers',
|
|
3309
|
+
statusCode: 'statusCode',
|
|
3310
|
+
body: 'body',
|
|
3311
|
+
};
|
|
3312
|
+
}
|
|
3313
|
+
static types() {
|
|
3314
|
+
return {
|
|
3315
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3316
|
+
statusCode: 'number',
|
|
3317
|
+
body: GetRayDashboardResponseBody,
|
|
3318
|
+
};
|
|
3319
|
+
}
|
|
3320
|
+
validate() {
|
|
3321
|
+
if (this.headers) {
|
|
3322
|
+
$dara.Model.validateMap(this.headers);
|
|
3323
|
+
}
|
|
3324
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
3325
|
+
this.body.validate();
|
|
3326
|
+
}
|
|
3327
|
+
super.validate();
|
|
3328
|
+
}
|
|
3329
|
+
constructor(map) {
|
|
3330
|
+
super(map);
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
exports.GetRayDashboardResponse = GetRayDashboardResponse;
|
|
3263
3334
|
class GetTensorboardRequest extends $dara.Model {
|
|
3264
3335
|
static names() {
|
|
3265
3336
|
return {
|
|
@@ -4472,12 +4543,7 @@ class Client extends openapi_core_1.default {
|
|
|
4472
4543
|
reqBodyType: "json",
|
|
4473
4544
|
bodyType: "json",
|
|
4474
4545
|
});
|
|
4475
|
-
|
|
4476
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateJobResponse({}));
|
|
4477
|
-
}
|
|
4478
|
-
else {
|
|
4479
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateJobResponse({}));
|
|
4480
|
-
}
|
|
4546
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateJobResponse({}));
|
|
4481
4547
|
}
|
|
4482
4548
|
/**
|
|
4483
4549
|
* Creates a job that runs in a cluster. You can configure the data source, code source, startup command, and computing resources of each node on which a job runs.
|
|
@@ -4579,12 +4645,7 @@ class Client extends openapi_core_1.default {
|
|
|
4579
4645
|
reqBodyType: "json",
|
|
4580
4646
|
bodyType: "json",
|
|
4581
4647
|
});
|
|
4582
|
-
|
|
4583
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
|
|
4584
|
-
}
|
|
4585
|
-
else {
|
|
4586
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateTensorboardResponse({}));
|
|
4587
|
-
}
|
|
4648
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
|
|
4588
4649
|
}
|
|
4589
4650
|
/**
|
|
4590
4651
|
* Creates a TensorBoard by using a job or specifying a data source configuration.
|
|
@@ -4619,12 +4680,7 @@ class Client extends openapi_core_1.default {
|
|
|
4619
4680
|
reqBodyType: "json",
|
|
4620
4681
|
bodyType: "json",
|
|
4621
4682
|
});
|
|
4622
|
-
|
|
4623
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
|
|
4624
|
-
}
|
|
4625
|
-
else {
|
|
4626
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteJobResponse({}));
|
|
4627
|
-
}
|
|
4683
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
|
|
4628
4684
|
}
|
|
4629
4685
|
/**
|
|
4630
4686
|
* Deletes a completed or stopped job.
|
|
@@ -4664,12 +4720,7 @@ class Client extends openapi_core_1.default {
|
|
|
4664
4720
|
reqBodyType: "json",
|
|
4665
4721
|
bodyType: "json",
|
|
4666
4722
|
});
|
|
4667
|
-
|
|
4668
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
|
|
4669
|
-
}
|
|
4670
|
-
else {
|
|
4671
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteTensorboardResponse({}));
|
|
4672
|
-
}
|
|
4723
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
|
|
4673
4724
|
}
|
|
4674
4725
|
/**
|
|
4675
4726
|
* Deletes a stopped TensorBoard.
|
|
@@ -4711,12 +4762,7 @@ class Client extends openapi_core_1.default {
|
|
|
4711
4762
|
reqBodyType: "json",
|
|
4712
4763
|
bodyType: "json",
|
|
4713
4764
|
});
|
|
4714
|
-
|
|
4715
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
4716
|
-
}
|
|
4717
|
-
else {
|
|
4718
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetJobResponse({}));
|
|
4719
|
-
}
|
|
4765
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
4720
4766
|
}
|
|
4721
4767
|
/**
|
|
4722
4768
|
* Obtains the configuration and runtime information of a job.
|
|
@@ -4764,12 +4810,7 @@ class Client extends openapi_core_1.default {
|
|
|
4764
4810
|
reqBodyType: "json",
|
|
4765
4811
|
bodyType: "json",
|
|
4766
4812
|
});
|
|
4767
|
-
|
|
4768
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
|
|
4769
|
-
}
|
|
4770
|
-
else {
|
|
4771
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetJobEventsResponse({}));
|
|
4772
|
-
}
|
|
4813
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
|
|
4773
4814
|
}
|
|
4774
4815
|
/**
|
|
4775
4816
|
* Obtains the system events of a job.
|
|
@@ -4823,12 +4864,7 @@ class Client extends openapi_core_1.default {
|
|
|
4823
4864
|
reqBodyType: "json",
|
|
4824
4865
|
bodyType: "json",
|
|
4825
4866
|
});
|
|
4826
|
-
|
|
4827
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
|
|
4828
|
-
}
|
|
4829
|
-
else {
|
|
4830
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetJobMetricsResponse({}));
|
|
4831
|
-
}
|
|
4867
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
|
|
4832
4868
|
}
|
|
4833
4869
|
/**
|
|
4834
4870
|
* Obtains the monitoring data of a job, including the CPU, GPU, and memory utilization, network, and disk read/write rate.
|
|
@@ -4876,12 +4912,7 @@ class Client extends openapi_core_1.default {
|
|
|
4876
4912
|
reqBodyType: "json",
|
|
4877
4913
|
bodyType: "json",
|
|
4878
4914
|
});
|
|
4879
|
-
|
|
4880
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetJobSanityCheckResultResponse({}));
|
|
4881
|
-
}
|
|
4882
|
-
else {
|
|
4883
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetJobSanityCheckResultResponse({}));
|
|
4884
|
-
}
|
|
4915
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetJobSanityCheckResultResponse({}));
|
|
4885
4916
|
}
|
|
4886
4917
|
/**
|
|
4887
4918
|
* Obtains specified job sanity check result in a Deep Learning Containers (DLC) job.
|
|
@@ -4932,12 +4963,7 @@ class Client extends openapi_core_1.default {
|
|
|
4932
4963
|
reqBodyType: "json",
|
|
4933
4964
|
bodyType: "json",
|
|
4934
4965
|
});
|
|
4935
|
-
|
|
4936
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
|
|
4937
|
-
}
|
|
4938
|
-
else {
|
|
4939
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetPodEventsResponse({}));
|
|
4940
|
-
}
|
|
4966
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
|
|
4941
4967
|
}
|
|
4942
4968
|
/**
|
|
4943
4969
|
* Obtains the system events of a specific node in a job to locate and troubleshoot issues.
|
|
@@ -4991,12 +5017,7 @@ class Client extends openapi_core_1.default {
|
|
|
4991
5017
|
reqBodyType: "json",
|
|
4992
5018
|
bodyType: "json",
|
|
4993
5019
|
});
|
|
4994
|
-
|
|
4995
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
|
|
4996
|
-
}
|
|
4997
|
-
else {
|
|
4998
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetPodLogsResponse({}));
|
|
4999
|
-
}
|
|
5020
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
|
|
5000
5021
|
}
|
|
5001
5022
|
/**
|
|
5002
5023
|
* Obtains or downloads the logs of a node for a task. The logs are from the stdout and stderr of the system and user scripts.
|
|
@@ -5009,6 +5030,51 @@ class Client extends openapi_core_1.default {
|
|
|
5009
5030
|
let headers = {};
|
|
5010
5031
|
return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
|
|
5011
5032
|
}
|
|
5033
|
+
/**
|
|
5034
|
+
* 获取 Ray Dashboard 链接
|
|
5035
|
+
*
|
|
5036
|
+
* @param request - GetRayDashboardRequest
|
|
5037
|
+
* @param headers - map
|
|
5038
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5039
|
+
* @returns GetRayDashboardResponse
|
|
5040
|
+
*/
|
|
5041
|
+
async getRayDashboardWithOptions(jobId, request, headers, runtime) {
|
|
5042
|
+
request.validate();
|
|
5043
|
+
let query = {};
|
|
5044
|
+
if (!$dara.isNull(request.isShared)) {
|
|
5045
|
+
query["isShared"] = request.isShared;
|
|
5046
|
+
}
|
|
5047
|
+
if (!$dara.isNull(request.token)) {
|
|
5048
|
+
query["token"] = request.token;
|
|
5049
|
+
}
|
|
5050
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5051
|
+
headers: headers,
|
|
5052
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5053
|
+
});
|
|
5054
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5055
|
+
action: "GetRayDashboard",
|
|
5056
|
+
version: "2020-12-03",
|
|
5057
|
+
protocol: "HTTPS",
|
|
5058
|
+
pathname: `/api/v1/jobs/${$dara.URL.percentEncode(jobId)}/rayDashboard`,
|
|
5059
|
+
method: "GET",
|
|
5060
|
+
authType: "AK",
|
|
5061
|
+
style: "ROA",
|
|
5062
|
+
reqBodyType: "json",
|
|
5063
|
+
bodyType: "json",
|
|
5064
|
+
});
|
|
5065
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetRayDashboardResponse({}));
|
|
5066
|
+
}
|
|
5067
|
+
/**
|
|
5068
|
+
* 获取 Ray Dashboard 链接
|
|
5069
|
+
*
|
|
5070
|
+
* @param request - GetRayDashboardRequest
|
|
5071
|
+
* @returns GetRayDashboardResponse
|
|
5072
|
+
*/
|
|
5073
|
+
async getRayDashboard(jobId, request) {
|
|
5074
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5075
|
+
let headers = {};
|
|
5076
|
+
return await this.getRayDashboardWithOptions(jobId, request, headers, runtime);
|
|
5077
|
+
}
|
|
5012
5078
|
/**
|
|
5013
5079
|
* Queries the information of a TensorBoard instance.
|
|
5014
5080
|
*
|
|
@@ -5044,12 +5110,7 @@ class Client extends openapi_core_1.default {
|
|
|
5044
5110
|
reqBodyType: "json",
|
|
5045
5111
|
bodyType: "json",
|
|
5046
5112
|
});
|
|
5047
|
-
|
|
5048
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
|
|
5049
|
-
}
|
|
5050
|
-
else {
|
|
5051
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetTensorboardResponse({}));
|
|
5052
|
-
}
|
|
5113
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
|
|
5053
5114
|
}
|
|
5054
5115
|
/**
|
|
5055
5116
|
* Queries the information of a TensorBoard instance.
|
|
@@ -5091,12 +5152,7 @@ class Client extends openapi_core_1.default {
|
|
|
5091
5152
|
reqBodyType: "json",
|
|
5092
5153
|
bodyType: "json",
|
|
5093
5154
|
});
|
|
5094
|
-
|
|
5095
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetTensorboardSharedUrlResponse({}));
|
|
5096
|
-
}
|
|
5097
|
-
else {
|
|
5098
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetTensorboardSharedUrlResponse({}));
|
|
5099
|
-
}
|
|
5155
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetTensorboardSharedUrlResponse({}));
|
|
5100
5156
|
}
|
|
5101
5157
|
/**
|
|
5102
5158
|
* Obtains the shareable link of a TensorBoard task. The link contains digital tokens. You can use a shareable link to access a TensorBoard task.
|
|
@@ -5144,12 +5200,7 @@ class Client extends openapi_core_1.default {
|
|
|
5144
5200
|
reqBodyType: "json",
|
|
5145
5201
|
bodyType: "json",
|
|
5146
5202
|
});
|
|
5147
|
-
|
|
5148
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetTokenResponse({}));
|
|
5149
|
-
}
|
|
5150
|
-
else {
|
|
5151
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetTokenResponse({}));
|
|
5152
|
-
}
|
|
5203
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetTokenResponse({}));
|
|
5153
5204
|
}
|
|
5154
5205
|
/**
|
|
5155
5206
|
* Queries a user token.
|
|
@@ -5194,12 +5245,7 @@ class Client extends openapi_core_1.default {
|
|
|
5194
5245
|
reqBodyType: "json",
|
|
5195
5246
|
bodyType: "json",
|
|
5196
5247
|
});
|
|
5197
|
-
|
|
5198
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetWebTerminalResponse({}));
|
|
5199
|
-
}
|
|
5200
|
-
else {
|
|
5201
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetWebTerminalResponse({}));
|
|
5202
|
-
}
|
|
5248
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetWebTerminalResponse({}));
|
|
5203
5249
|
}
|
|
5204
5250
|
/**
|
|
5205
5251
|
* Provides methods and steps to obtain a HTTP link for accessing a container.
|
|
@@ -5259,12 +5305,7 @@ class Client extends openapi_core_1.default {
|
|
|
5259
5305
|
reqBodyType: "json",
|
|
5260
5306
|
bodyType: "json",
|
|
5261
5307
|
});
|
|
5262
|
-
|
|
5263
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
|
|
5264
|
-
}
|
|
5265
|
-
else {
|
|
5266
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListEcsSpecsResponse({}));
|
|
5267
|
-
}
|
|
5308
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
|
|
5268
5309
|
}
|
|
5269
5310
|
/**
|
|
5270
5311
|
* Queries the list of supported instance types.
|
|
@@ -5306,12 +5347,7 @@ class Client extends openapi_core_1.default {
|
|
|
5306
5347
|
reqBodyType: "json",
|
|
5307
5348
|
bodyType: "json",
|
|
5308
5349
|
});
|
|
5309
|
-
|
|
5310
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListJobSanityCheckResultsResponse({}));
|
|
5311
|
-
}
|
|
5312
|
-
else {
|
|
5313
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListJobSanityCheckResultsResponse({}));
|
|
5314
|
-
}
|
|
5350
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListJobSanityCheckResultsResponse({}));
|
|
5315
5351
|
}
|
|
5316
5352
|
/**
|
|
5317
5353
|
* Obtains the results of all sanity checks for a DLC job.
|
|
@@ -5427,12 +5463,7 @@ class Client extends openapi_core_1.default {
|
|
|
5427
5463
|
reqBodyType: "json",
|
|
5428
5464
|
bodyType: "json",
|
|
5429
5465
|
});
|
|
5430
|
-
|
|
5431
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListJobsResponse({}));
|
|
5432
|
-
}
|
|
5433
|
-
else {
|
|
5434
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListJobsResponse({}));
|
|
5435
|
-
}
|
|
5466
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListJobsResponse({}));
|
|
5436
5467
|
}
|
|
5437
5468
|
/**
|
|
5438
5469
|
* Queries a list of jobs and supports pagination, sorting, and filtering by conditions.
|
|
@@ -5531,12 +5562,7 @@ class Client extends openapi_core_1.default {
|
|
|
5531
5562
|
reqBodyType: "json",
|
|
5532
5563
|
bodyType: "json",
|
|
5533
5564
|
});
|
|
5534
|
-
|
|
5535
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
|
|
5536
|
-
}
|
|
5537
|
-
else {
|
|
5538
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListTensorboardsResponse({}));
|
|
5539
|
-
}
|
|
5565
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
|
|
5540
5566
|
}
|
|
5541
5567
|
/**
|
|
5542
5568
|
* Queries a list of TensorBoard instances.
|
|
@@ -5578,12 +5604,7 @@ class Client extends openapi_core_1.default {
|
|
|
5578
5604
|
reqBodyType: "json",
|
|
5579
5605
|
bodyType: "json",
|
|
5580
5606
|
});
|
|
5581
|
-
|
|
5582
|
-
return $dara.cast(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
|
|
5583
|
-
}
|
|
5584
|
-
else {
|
|
5585
|
-
return $dara.cast(await this.execute(params, req, runtime), new StartTensorboardResponse({}));
|
|
5586
|
-
}
|
|
5607
|
+
return $dara.cast(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
|
|
5587
5608
|
}
|
|
5588
5609
|
/**
|
|
5589
5610
|
* Starts a TensorBoard instance.
|
|
@@ -5618,12 +5639,7 @@ class Client extends openapi_core_1.default {
|
|
|
5618
5639
|
reqBodyType: "json",
|
|
5619
5640
|
bodyType: "json",
|
|
5620
5641
|
});
|
|
5621
|
-
|
|
5622
|
-
return $dara.cast(await this.callApi(params, req, runtime), new StopJobResponse({}));
|
|
5623
|
-
}
|
|
5624
|
-
else {
|
|
5625
|
-
return $dara.cast(await this.execute(params, req, runtime), new StopJobResponse({}));
|
|
5626
|
-
}
|
|
5642
|
+
return $dara.cast(await this.callApi(params, req, runtime), new StopJobResponse({}));
|
|
5627
5643
|
}
|
|
5628
5644
|
/**
|
|
5629
5645
|
* Stops a running job.
|
|
@@ -5663,12 +5679,7 @@ class Client extends openapi_core_1.default {
|
|
|
5663
5679
|
reqBodyType: "json",
|
|
5664
5680
|
bodyType: "json",
|
|
5665
5681
|
});
|
|
5666
|
-
|
|
5667
|
-
return $dara.cast(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
|
|
5668
|
-
}
|
|
5669
|
-
else {
|
|
5670
|
-
return $dara.cast(await this.execute(params, req, runtime), new StopTensorboardResponse({}));
|
|
5671
|
-
}
|
|
5682
|
+
return $dara.cast(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
|
|
5672
5683
|
}
|
|
5673
5684
|
/**
|
|
5674
5685
|
* Stops a TensorBoard instance.
|
|
@@ -5713,12 +5724,7 @@ class Client extends openapi_core_1.default {
|
|
|
5713
5724
|
reqBodyType: "json",
|
|
5714
5725
|
bodyType: "json",
|
|
5715
5726
|
});
|
|
5716
|
-
|
|
5717
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
|
|
5718
|
-
}
|
|
5719
|
-
else {
|
|
5720
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateJobResponse({}));
|
|
5721
|
-
}
|
|
5727
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
|
|
5722
5728
|
}
|
|
5723
5729
|
/**
|
|
5724
5730
|
* Updates the configuration information of a job. For example, you can modify the priority of a job in a queue.
|
|
@@ -5769,12 +5775,7 @@ class Client extends openapi_core_1.default {
|
|
|
5769
5775
|
reqBodyType: "json",
|
|
5770
5776
|
bodyType: "json",
|
|
5771
5777
|
});
|
|
5772
|
-
|
|
5773
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
|
|
5774
|
-
}
|
|
5775
|
-
else {
|
|
5776
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateTensorboardResponse({}));
|
|
5777
|
-
}
|
|
5778
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
|
|
5778
5779
|
}
|
|
5779
5780
|
/**
|
|
5780
5781
|
* Updates a TensorBoard instance.
|