models

package
v1.66.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountMember

type AccountMember struct {

	/* 成员名称。 (Optional) */
	MemberUser string `json:"memberUser"`

	/* 成员子账号。 (Optional) */
	MemberPin string `json:"memberPin"`

	/* 成员策略:Default、StorageRestricted。 (Optional) */
	MemberPolicy string `json:"memberPolicy"`

	/* 错误信息: USER_NOT_FOUND用户不存在,POLICY_NOT_SYNC策略不同步 (Optional) */
	ErrMsg string `json:"errMsg"`
}

type AddNodeParam

type AddNodeParam struct {

	/* 节点池,当添加节点时只设置ID即可  */
	NodePool NodePool `json:"nodePool"`

	/* 节点配置  */
	NodeInfo Node `json:"nodeInfo"`

	/* 节点数量  */
	NodeCount int `json:"nodeCount"`

	/* 购买时间单位,year:年;month:月;day:天 (Optional) */
	TimeUnit string `json:"timeUnit"`

	/* 购买时间 (Optional) */
	TimeCount int `json:"timeCount"`

	/* 是否开启自动续费 (Optional) */
	AutoRenew bool `json:"autoRenew"`

	/* 是否为边缘集群 (Optional) */
	Edge bool `json:"edge"`
}

type AdminDistillTaskListInfo

type AdminDistillTaskListInfo struct {

	/* 蒸馏作业ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 蒸馏任务ID。 (Optional) */
	TaskId string `json:"taskId"`

	/* 蒸馏任务名称。 (Optional) */
	Name string `json:"name"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 蒸馏任务描述。 (Optional) */
	Description string `json:"description"`

	/* 蒸馏任务状态。
	`starting`: 启动中
	`distill-preparing`: 蒸馏资源准备中
	`distill-doing`: 蒸馏数据构造中
	`distill-finished`: 蒸馏数据构造完成(可能是终态)
	`distill-failed`: 蒸馏数据构造失败(可能是终态)
	`train-preparing`: 学生模型训练资源准备中
	`train-doing`: 学生模型训练中
	`train-finished`: 学生模型训练完成(终态)
	`train-failed`: 学生模型训练失败(终态)
	`stopping`: 停止中
	`stopped`: 已停止(终态)
	`deleting`: 删除中
	 (Optional) */
	TaskState string `json:"taskState"`

	/* 运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 结束时间,如(2023-06-01 12:22:56)。 (Optional) */
	FinishedTime string `json:"finishedTime"`

	/* 原因描述。 (Optional) */
	Reason string `json:"reason"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,如(2023-06-01 12:22:56)。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 最后变更的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后变更的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 资源组ID。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 标签信息。 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 学生模型训练输出存储位置信息。 (Optional) */
	OutputModel DistillStorageInfo `json:"outputModel"`

	/* 已经配置了自动发布时该参数不为空,如果未配置则该参数为空。 (Optional) */
	AutoDeploy AutoDeployStillModel `json:"autoDeploy"`

	/* 计费信息。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 进度信息列表。 (Optional) */
	Progress DistillLog `json:"progress"`
}

type AdminInferenceInfo

type AdminInferenceInfo struct {

	/* 推理服务实例ID (Optional) */
	InferenceId string `json:"inferenceId"`

	/* 推理服务实例名称,带有版本号 (Optional) */
	Name string `json:"name"`

	/* 推理服务服务Id (Optional) */
	ServiceId string `json:"serviceId"`

	/* 推理服务服务名称 (Optional) */
	ServiceName string `json:"serviceName"`

	/* 应用类型 (Optional) */
	AppType string `json:"appType"`

	/* 推理服务版本状态:
	`queuing`: 排队中。
	`deploying`: 部署中。
	`failed`: 失败。
	`running`: 运行中。
	`scaling`: 扩缩中。
	`stopping`: 停止中。
	`stopped`: 已停止。
	`deleting`: 删除中。
	`rolling-back`: 回滚中(不能做任何操作)。
	`rolled-back`: 已回滚(只能操作删除)。
	 (Optional) */
	State string `json:"state"`

	/* 创建服务的用户 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建服务的用户PIN (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 推理服务所属工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 推理服务所属工作空间名称 (Optional) */
	WorkspaceName string `json:"workspaceName"`
}

type AdminJobListInfo

type AdminJobListInfo struct {

	/* 训练任务ID,系统自动生成的唯一标识。

	## 格式
	以 `job-` 为前缀。

	## 用途
	用于查询详情、停止任务、删除任务等操作的标识。
	 (Optional) */
	JobId string `json:"jobId"`

	/* 训练任务名称。

	创建时设置的名称,便于识别任务用途。
	 (Optional) */
	Name string `json:"name"`

	/* 工作空间ID。

	任务所属的工作空间,用于区分不同团队或项目的资源。
	 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。

	工作空间的显示名称,便于识别。
	 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 训练任务的状态。

	## 状态说明

	| 状态 | 说明 | 后续操作 |
	|------|------|----------|
	| `queuing` | 排队中,等待资源调度 | 可停止 |
	| `pending` | 启动中,正在创建资源 | 可停止 |
	| `failed` | 失败,任务执行失败 | 可查看日志、重新提交 |
	| `running` | 运行中,任务正在执行 | 可停止 |
	| `stopping` | 停止中,正在停止任务 | 等待 |
	| `stopped` | 停止,任务已被停止 | 可重新提交 |
	| `success` | 成功,任务执行完成 | 可查看结果 |
	| `deleting` | 删除中,正在删除任务 | 等待 |
	| `rolling-back` | 回滚中,正在回滚 | 等待 |
	| `rolled-back` | 已回滚,回滚完成 | - |
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型,仅在 state 为 `failed` 时返回。

	## 失败类型说明

	| 失败类型 | 说明 | 处理建议 |
	|----------|------|----------|
	| `resource-failed` | 节点故障 | 检查节点状态,必要时更换节点 |
	| `task-failed` | 任务失败 | 查看日志,检查代码或配置 |
	| `environment-failed` | 算力健康检测不通过 | 检查资源配置,确保环境正常 |
	| `task-hang` | 任务卡住 | 检查代码逻辑,可能存在死锁 |
	| `process-inspection-failed` | 进程巡检失败 | 检查进程状态和资源使用情况 |
	 (Optional) */
	FailureType string `json:"failureType"`

	/* 训练任务失败原因。

	提供详细的失败信息,帮助定位问题。

	## 使用场景
	- 问题诊断和排查
	- 错误报告和告警
	 (Optional) */
	FailureReason string `json:"failureReason"`

	/* 重启次数。

	## 说明
	任务因异常重启的次数。重启策略仅支持异构节点池(专属资源池)和 PyTorch 类型任务。
	 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 任务类型。

	## 可选值
	- `PyTorch`:PyTorch 训练任务
	- `Ray`:Ray 训练任务
	 (Optional) */
	JobType string `json:"jobType"`

	/* 持续运行时间,单位为秒。

	## 用途
	用于计算资源消耗和成本统计。
	 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 节点数量(副本数)。

	## 说明
	分布式训练时的工作节点数量,单机训练时为 1。
	 (Optional) */
	Replica int `json:"replica"`

	/* 队列ID。

	## 格式
	示例:`queue-2xxx**********2d*********8b8`

	## 特殊值
	使用公共资源池时固定为:`joybuilder-public-queue`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 公共资源池的规格ID。

	## 说明
	使用公共资源池时的资源规格标识,用于确定 CPU、内存、GPU 配置。
	 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 公共资源池的规格详细信息。

	包含具体的资源配置信息,如 CPU 核数、内存大小、GPU 配置等。
	 (Optional) */
	FlavorInfo interface{} `json:"flavorInfo"`

	/* GPU卡类型。

	## 示例
	- `NVIDIA_G2`
	- `NVIDIA_A100`
	- `NVIDIA_H800`

	## 说明
	不同 GPU 型号性能差异较大,根据任务需求选择合适的 GPU。
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟GPU卡数量。

	## 英伟达 GPU 可选值
	- 分数卡:`0.1`、`0.125`、`0.25`、`0.5`
	- 整数卡:`1`、`2`、`3`、`4`、`5`、`6`、`7`、`8`

	## 使用建议
	- 小规模测试可使用分数卡
	- 生产训练建议使用整数卡
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU大小,单位:毫核(milliCore)。

	## 换算
	- 0.1 CPU 核心 = 100m
	- 1 CPU 核心 = 1000m
	- 4 CPU 核心 = 4000m

	## 使用建议
	根据任务负载合理配置,避免资源浪费。
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,单位:MiB。

	## 换算
	- 1 GiB = 1024 MiB

	## 使用建议
	内存过小可能导致 OOM,建议预留一定余量。
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`

	/* 角色配置信息。

	## 说明
	分布式训练中不同角色(Master、Worker)的资源配置。
	 (Optional) */
	RoleResource RoleResourceInfoForJobList `json:"roleResource"`

	/* 实例详情信息。

	包含实例的运行状态、节点信息等详细数据。
	 (Optional) */
	InstanceInfo InstanceInfoForJobList `json:"instanceInfo"`

	/* 资源在集群中的空闲状态。

	## 可选值
	- 空值:资源空闲
	- `in-use`:资源已被占用

	## 用途
	用于判断资源是否可以被调度使用。
	 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间中的资源归属权限。

	## 可选值
	- `public`:公开,工作空间内所有成员可见
	- `private`:私有,仅创建者可见
	 (Optional) */
	Permission string `json:"permission"`

	/* 资源组ID。

	## 用途
	用于资源分组管理和成本分摊。
	 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。

	资源组的显示名称。
	 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表。

	## 用途
	- 资源分类和管理
	- 成本分析和账单统计
	- 权限控制
	 (Optional) */
	UserTags []JobTag `json:"userTags"`

	/* 归属用户pin。

	资源所有者的用户标识,用于确定资源归属。
	 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。

	资源所有者的显示名称。
	 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 主账号Pin。

	资源所属主账号的用户标识。
	 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。

	创建该训练任务的用户。
	 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。

	最后一次更新该任务的用户。
	 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type AdminJobStateCount

type AdminJobStateCount struct {

	/* 状态名称。

	## 可选值
	- `queuing`:排队中,等待资源调度
	- `pending`:启动中,正在创建资源
	- `failed`:失败,任务执行失败
	- `running`:运行中,任务正在执行
	- `stopping`:停止中,正在停止任务
	- `stopped`:停止,任务已被停止
	- `success`:成功,任务执行完成
	- `deleting`:删除中,正在删除任务
	- `rolling-back`:回滚中,正在回滚
	- `rolled-back`:已回滚,回滚完成
	 (Optional) */
	Name string `json:"name"`

	/* 该状态对应的任务数量。

	## 使用场景
	用于统计概览、资源监控仪表盘等。
	 (Optional) */
	Value int `json:"value"`
}

type AdminRunListInfo

type AdminRunListInfo struct {

	/* 微调运行ID,系统自动生成的唯一标识。

	## 格式
	以 `run-` 为前缀。

	## 用途
	用于查询详情、停止运行、删除运行等操作的标识。
	 (Optional) */
	RunId string `json:"runId"`

	/* 微调运行名称。

	创建时设置的名称,便于识别运行用途。
	 (Optional) */
	Name string `json:"name"`

	/* 微调运行的描述信息。

	包含运行的目标、特点等说明。
	 (Optional) */
	Description string `json:"description"`

	/* 工作空间ID。

	运行所属的工作空间,用于区分不同团队或项目的资源。
	 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。

	工作空间的显示名称,便于识别。
	 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 微调实验ID。

	运行所属的实验,一个实验下可以有多个运行。

	## 格式
	以 `exp-` 为前缀。
	 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* 微调实验名称。

	实验的显示名称。
	 (Optional) */
	ExperimentName string `json:"experimentName"`

	/* 微调运行的状态。

	## 状态说明

	| 状态 | 说明 | 后续操作 |
	|------|------|----------|
	| `queuing` | 排队中,等待资源调度 | 可停止 |
	| `pending` | 启动中,正在创建资源 | 可停止 |
	| `failed` | 失败,任务执行失败 | 可查看日志、重新提交 |
	| `running` | 运行中,任务正在执行 | 可停止 |
	| `stopping` | 停止中,正在停止任务 | 等待 |
	| `stopped` | 停止,任务已被停止 | 可重新提交 |
	| `success` | 成功,任务执行完成 | 可部署模型 |
	| `deleting` | 删除中,正在删除任务 | 等待 |
	| `rolling-back` | 回滚中,正在回滚 | 等待 |
	| `rolled-back` | 已回滚,回滚完成 | - |
	 (Optional) */
	State string `json:"state"`

	/* 持续运行时间,单位为秒。

	## 用途
	用于计算资源消耗和成本统计。
	 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 业务类型。

	标识微调任务的具体业务来源。

	## 可选值

	| 值 | 说明 | 特点 |
	|----|------|------|
	| `finetuning` | 用户创建的精调任务 | 计费在微调侧 |
	| `distill` | 来自蒸馏创建的精调任务 | 计费在蒸馏侧 |

	## 使用场景
	用于区分任务来源,便于成本归因和统计分析。
	 (Optional) */
	BizType string `json:"bizType"`

	/* 资源组ID。

	## 用途
	用于资源分组管理和成本分摊。
	 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。

	资源组的显示名称。
	 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表。

	## 用途
	- 资源分类和管理
	- 成本分析和账单统计
	- 权限控制
	 (Optional) */
	UserTags []RunTag `json:"userTags"`

	/* 主账号Pin。

	资源所属主账号的用户标识。
	 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。

	创建该微调运行的用户。
	 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。

	最后一次更新该运行的用户。
	 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type AdminRunStateCount

type AdminRunStateCount struct {

	/* 状态名称。

	## 可选值
	- `queuing`:排队中,等待资源调度
	- `pending`:启动中,正在创建资源
	- `failed`:失败,任务执行失败
	- `running`:运行中,任务正在执行
	- `stopping`:停止中,正在停止任务
	- `stopped`:停止,任务已被停止
	- `success`:成功,任务执行完成
	- `deleting`:删除中,正在删除任务
	- `rolling-back`:回滚中,正在回滚
	- `rolled-back`:已回滚,回滚完成
	 (Optional) */
	Name string `json:"name"`

	/* 该状态对应的微调运行数量。

	## 使用场景
	用于统计概览、资源监控仪表盘、成本分析等。
	 (Optional) */
	Value int `json:"value"`
}

type AffinitityForExperiment

type AffinitityForExperiment struct {

	/* 亲和性 Key。

	定义亲和性条件的维度。
	*/
	Key string `json:"key"`

	/* 亲和性 Values 列表。

	## 说明
	多个值之间是"或"的关系,满足任一值即可。
	*/
	Values []string `json:"values"`
}

type Allocate

type Allocate struct {

	/*  (Optional) */
	NodeIp string `json:"nodeIp"`

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/*  (Optional) */
	DeviceBrand string `json:"deviceBrand"`

	/*  (Optional) */
	DeviceModel string `json:"deviceModel"`

	/*  (Optional) */
	Template string `json:"template"`

	/*  (Optional) */
	DeviceIds string `json:"deviceIds"`

	/*  (Optional) */
	Cluster string `json:"cluster"`
}

type AnnotationObjectList

type AnnotationObjectList struct {

	/* 标注任务ID。 (Optional) */
	AnnotationTaskId string `json:"annotationTaskId"`

	/* 标注对象ID。 (Optional) */
	AnnotationObjectId string `json:"annotationObjectId"`

	/* 数据类型ID,可选值:[`image`]。 (Optional) */
	DataTypeId string `json:"dataTypeId"`

	/* 任务类型ID,可选值:[`image-classification`]。 (Optional) */
	TaskTypeId string `json:"taskTypeId"`

	/* 数据集。 (Optional) */
	Dataset DatasetForDescribeAnnotationObjects `json:"dataset"`

	/* 标注对象状态。目前支持的状态如下:
	- 未标注:`unannotated`
	- 完成:`completed`
	 (Optional) */
	AnnotationObjectStatus string `json:"annotationObjectStatus"`

	/* 标注对象存储信息。 (Optional) */
	AnnotationObjectStorage AnnotationObjectStorageForDescribeAnnotationObjects `json:"annotationObjectStorage"`

	/* 每个标注对象对应的标注结果。
	根据参数 `dataTypeId` 和 `taskTypeId` 确定不一样的结构。
	 (Optional) */
	AnnotationResult interface{} `json:"annotationResult"`
}

type AnnotationObjectStorageForDescribeAnnotationObjects

type AnnotationObjectStorageForDescribeAnnotationObjects struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationObjectStorageForDescribeAnnotationTask

type AnnotationObjectStorageForDescribeAnnotationTask struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationObjectStorageForDescribeAnnotationTasks

type AnnotationObjectStorageForDescribeAnnotationTasks struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationResultStorageForCreateAnnotationTask

type AnnotationResultStorageForCreateAnnotationTask struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationResultStorageForDescribeAnnotationTask

type AnnotationResultStorageForDescribeAnnotationTask struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationResultStorageForDescribeAnnotationTasks

type AnnotationResultStorageForDescribeAnnotationTasks struct {

	/* 存储类型,可选值:[`oss`]。 (Optional) */
	StorageType string `json:"storageType"`

	/*  (Optional) */
	Oss Oss `json:"oss"`
}

type AnnotationTaskDetail

type AnnotationTaskDetail struct {

	/* 标注任务ID。 (Optional) */
	AnnotationTaskId string `json:"annotationTaskId"`

	/* 标注任务名称。1~32字符,仅支持中文、大小写字母、数字、英文中划线 “-”和英文下划线“_”。 (Optional) */
	Name string `json:"name"`

	/* 标注任务的描述信息,不超过256个字符。 (Optional) */
	Description string `json:"description"`

	/* 数据类型ID,可选值:[`image`]。 (Optional) */
	DataTypeId string `json:"dataTypeId"`

	/* 任务类型ID,可选值:[`image-classification`]。 (Optional) */
	TaskTypeId string `json:"taskTypeId"`

	/* 数据集。 (Optional) */
	Dataset DatasetForDescribeAnnotationTask `json:"dataset"`

	/* 标注执行人。目前只支持单个标注执行人。 (Optional) */
	AnnotationUsers []AnnotationUserForDescribeAnnotationTask `json:"annotationUsers"`

	/* 所有标注对象总数。 (Optional) */
	TotalCount int `json:"totalCount"`

	/* 已完成标注对象数量。 (Optional) */
	CompletedCount int `json:"completedCount"`

	/* 标注任务状态。目前支持的状态如下:
	- `creating`: 创建中
	- `annotating`: 标注中
	- `submitting`: 提交中
	 (Optional) */
	AnnotationTaskStatus string `json:"annotationTaskStatus"`

	/* 标注对象存储信息。 (Optional) */
	AnnotationObjectStorage AnnotationObjectStorageForDescribeAnnotationTask `json:"annotationObjectStorage"`

	/* 标注结果存储信息。 (Optional) */
	AnnotationResultStorage AnnotationResultStorageForDescribeAnnotationTask `json:"annotationResultStorage"`

	/* 标签信息。 (Optional) */
	Tags []TagForDescribeAnnotationTask `json:"tags"`

	/* 提交记录。 (Optional) */
	SubmissionHistory SubmissionHistoryForDescribeAnnotationTask `json:"submissionHistory"`

	/* 主账号的Pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type AnnotationTaskList

type AnnotationTaskList struct {

	/* 标注任务ID。 (Optional) */
	AnnotationTaskId string `json:"annotationTaskId"`

	/* 标注任务名称。1~32字符,仅支持中文、大小写字母、数字、英文中划线 “-”和英文下划线“_”。 (Optional) */
	Name string `json:"name"`

	/* 标注任务的描述信息,不超过256个字符。 (Optional) */
	Description string `json:"description"`

	/* 数据类型ID,可选值:[`image`]。 (Optional) */
	DataTypeId string `json:"dataTypeId"`

	/* 任务类型ID,可选值:[`image-classification`]。 (Optional) */
	TaskTypeId string `json:"taskTypeId"`

	/* 数据集。 (Optional) */
	Dataset DatasetForDescribeAnnotationTasks `json:"dataset"`

	/* 标注执行人。目前只支持单个标注执行人。 (Optional) */
	AnnotationUsers []AnnotationUserForDescribeAnnotationTasks `json:"annotationUsers"`

	/* 所有标注对象总数。 (Optional) */
	TotalCount int `json:"totalCount"`

	/* 已完成标注对象数量。 (Optional) */
	CompletedCount int `json:"completedCount"`

	/* 标注任务状态。目前支持的状态如下:
	- `creating`: 创建中
	- `annotating`: 标注中
	- `submitting`: 提交中
	 (Optional) */
	AnnotationTaskStatus string `json:"annotationTaskStatus"`

	/* 标注对象存储信息。 (Optional) */
	AnnotationObjectStorage AnnotationObjectStorageForDescribeAnnotationTasks `json:"annotationObjectStorage"`

	/* 标注结果存储信息。 (Optional) */
	AnnotationResultStorage AnnotationResultStorageForDescribeAnnotationTasks `json:"annotationResultStorage"`

	/* 提交记录。 (Optional) */
	SubmissionHistory SubmissionHistoryForDescribeAnnotationTasks `json:"submissionHistory"`

	/* 主账号的Pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type AnnotationUserForCreateAnnotationTask

type AnnotationUserForCreateAnnotationTask struct {

	/* 用户ID。即子账号的pin。
	1. 如果希望主账号作为标注人,那么需要使用主账号登录,并且不用传参`userId`和`userName`。
	2. 如果希望子账号作为标注人,那么需要使用主或子账号登录都行。此时需要指定`userId` 和 `userName`,规则如下:
	  - 参数 `userId` 和 `userName` 都为空时,则默认为当前用户。
	  - 设置参数 `userId` 时,则忽略参数 `userName`。
	  - 没有设置参数 `userId`, 但是设置了参数 `userName`,则使用参数 `userName`。
	 (Optional) */
	UserId string `json:"userId"`

	/* 用户名称。即子账号的用户名称。
	1. 如果希望主账号作为标注人,那么需要使用主账号登录,并且不用传参`userId`和`userName`。
	2. 如果希望子账号作为标注人,那么需要使用主或子账号登录都行。此时需要指定`userId` 和 `userName`,规则如下:
	  - 参数 `userId` 和 `userName` 都为空时,则默认为当前用户。
	  - 设置参数 `userId` 时,则忽略参数 `userName`。
	  - 没有设置参数 `userId`, 但是设置了参数 `userName`,则使用参数 `userName`。
	 (Optional) */
	UserName string `json:"userName"`
}

type AnnotationUserForDescribeAnnotationTask

type AnnotationUserForDescribeAnnotationTask struct {

	/* 用户ID。即主或子账号的pin。 (Optional) */
	UserId string `json:"userId"`

	/* 用户名称。 (Optional) */
	UserName string `json:"userName"`
}

type AnnotationUserForDescribeAnnotationTasks

type AnnotationUserForDescribeAnnotationTasks struct {

	/* 用户ID。即主或子账号的pin。 (Optional) */
	UserId string `json:"userId"`

	/* 用户名称。 (Optional) */
	UserName string `json:"userName"`
}

type AppInfoModel

type AppInfoModel struct {

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/*  (Optional) */
	SessionId string `json:"sessionId"`

	/*  (Optional) */
	NodeIp string `json:"nodeIp"`

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	Uid string `json:"uid"`

	/*  (Optional) */
	NoSchedule bool `json:"noSchedule"`

	/*  (Optional) */
	TaskId string `json:"taskId"`

	/*  (Optional) */
	TaskName string `json:"taskName"`

	/* 任务类型 (Optional) */
	TaskType string `json:"taskType"`

	/* 业务类型 (Optional) */
	BizType string `json:"bizType"`

	/* 创建人 (Optional) */
	Creator string `json:"creator"`

	/* 扩展字段,URL直接拼接 (Optional) */
	ExtendedField interface{} `json:"extendedField"`

	/* 地域ID (Optional) */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	QueueId string `json:"queueId"`

	/*  (Optional) */
	QueueName string `json:"queueName"`

	/*  (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/*  (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/*  (Optional) */
	ClusterId string `json:"clusterId"`

	/*  (Optional) */
	Framework string `json:"framework"`

	/*  (Optional) */
	Tenant string `json:"tenant"`

	/*  (Optional) */
	RunningPriority int `json:"runningPriority"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Namespace string `json:"namespace"`

	/*  (Optional) */
	Instance string `json:"instance"`

	/* gpu显卡,对应代码中的 type字段 (Optional) */
	GpuType string `json:"gpuType"`

	/*  (Optional) */
	StartTimestamp int64 `json:"startTimestamp"`

	/*  (Optional) */
	EndTimestamp int64 `json:"endTimestamp"`

	/*  (Optional) */
	Status string `json:"status"`

	/* 支持远程调用后RPC字段规则
	1. 本地应用绑定本地卡,只使用allocate字段
	2. 本地应用绑定远程卡,只使用remoteAllocates字段
	3. 远程应用使用本地卡,使用 remoteNodeIp\u0026remoteNodeName + remoteAllocates字段 (Optional) */
	RemoteNodeIp string `json:"remoteNodeIp"`

	/*  (Optional) */
	RemoteNodeName string `json:"remoteNodeName"`

	/*  (Optional) */
	Allocate ModelAllocate `json:"allocate"`

	/*  (Optional) */
	RemoteAllocates interface{} `json:"remoteAllocates"`

	/*  (Optional) */
	RequestResource ModelGPUResourceFloat `json:"requestResource"`

	/*  (Optional) */
	LimitResource ModelGPUResourceFloat `json:"limitResource"`

	/* app资源使用量 (Optional) */
	LiveUsageRatio float32 `json:"liveUsageRatio"`

	/*  (Optional) */
	LiveUsageMemory float32 `json:"liveUsageMemory"`

	/* 单位: 秒 (Optional) */
	RunningTime int64 `json:"runningTime"`

	/* pod的owner信息,用于关联任务,区分任务类型 (Optional) */
	OwnerReferences []ModelAppOwner `json:"ownerReferences"`

	/* pod的label信息,任务区分分布式任务角色及分片 (Optional) */
	AppLabels interface{} `json:"appLabels"`

	/*  (Optional) */
	Annotations interface{} `json:"annotations"`

	/*  (Optional) */
	LiveUsage ModelGPUResourceFloat `json:"liveUsage"`

	/*  (Optional) */
	InstanceState string `json:"instanceState"`

	/*  (Optional) */
	Flavor ModelInstanceFlavor `json:"flavor"`
}

type AppInfoOrder

type AppInfoOrder struct {

	/* 排序字段,默认按startTimestamp降序排列 (Optional) */
	OrderBy string `json:"orderBy"`

	/* 升降序 (Optional) */
	Order string `json:"order"`
}

type AutoDeployStillModel

type AutoDeployStillModel struct {

	/* 模型发布方式,可发布为新模型或已有模型的新版本(model/version)。 (Optional) */
	Method string `json:"method"`

	/* 模型ID。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型版本。 (Optional) */
	ModelVersion string `json:"modelVersion"`

	/* 模型名称。 (Optional) */
	ModelName string `json:"modelName"`

	/* 描述。 (Optional) */
	Desc string `json:"desc"`

	/* 发布新模型的归属权限, (Optional) */
	Permission string `json:"permission"`
}

type AutoScale

type AutoScale struct {

	/* 最小副本数  */
	MinReplicaCount int `json:"minReplicaCount"`

	/* 最大副本数  */
	MaxReplicaCount int `json:"maxReplicaCount"`

	/* 扩容延迟时间(秒) (Optional) */
	ScaleUpDelay *int `json:"scaleUpDelay"`

	/* 缩容延迟时间(秒) (Optional) */
	ScaleDownDelay *int `json:"scaleDownDelay"`

	/* CPU使用率阈值(%,基于Limits) (Optional) */
	CpuThreshold *int `json:"cpuThreshold"`

	/* GPU利用率阈值(%) (Optional) */
	GpuThreshold *int `json:"gpuThreshold"`

	/* 内存使用率阈值(%,基于Limits) (Optional) */
	MemoryThreshold *int `json:"memoryThreshold"`
}

type Az

type Az struct {

	/* 可用区Id (Optional) */
	Id string `json:"id"`

	/* 可用区名字 (Optional) */
	Name string `json:"name"`
}

type BindResourceInfo

type BindResourceInfo struct {

	/* 绑定的资源类型。可选值:oss(对象存储)、jpfs(云海)、nfs(网络文件系统)、ddn(分布式存储)、image_repo(镜像仓库)。  */
	ResourceType string `json:"resourceType"`

	/* 绑定资源类型的主键值,比如:"fs-x14s6h1gu3"。  */
	ResourceIdVal string `json:"resourceIdVal"`

	/* 地域。 (Optional) */
	RegionId string `json:"regionId"`
}

type BoundResourceInfo

type BoundResourceInfo struct {

	/* 绑定的资源类型。可选值:oss(对象存储)、jpfs(云海)、nfs(网络文件系统)、ddn(分布式存储)、image_repo(镜像仓库)。 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 绑定资源类型的主键值。 (Optional) */
	ResourceIdVal string `json:"resourceIdVal"`

	/* 地域。 (Optional) */
	RegionId string `json:"regionId"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`
}

type CPAnalysis

type CPAnalysis struct {

	/* 资源类型,节点(node),显卡(gpu) (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源总数 (Optional) */
	Total int `json:"total"`

	/* 分布情况 map,如节点健康状态分布(key:schedule,unschedule,other)、显卡型号分布(key:显卡型号)等 (Optional) */
	Distribution interface{} `json:"distribution"`
}

type CPOverview

type CPOverview struct {

	/* 资源类型,节点数量(node),显卡算力(pflops),显存(memory),显卡数量(gpu) (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源类型统计值 (Optional) */
	Value string `json:"value"`

	/* 精度fp16/fp32,仅resourceType为pflops时有效 (Optional) */
	Accuracy string `json:"accuracy"`
}

type CalculateInstanceFlavorResp

type CalculateInstanceFlavorResp struct {

	/* 接口响应状态 (Optional) */
	Code int `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 概览详情 (Optional) */
	Flavor interface{} `json:"flavor"`
}

type CalculateTaskResourceRequest

type CalculateTaskResourceRequest struct {

	/* 队列ID (Optional) */
	QueueId string `json:"queueId"`

	/* 集群ID (Optional) */
	ClusterId string `json:"clusterId"`

	/*  (Optional) */
	SubTaskFlavors []SubTaskFlavors `json:"subTaskFlavors"`
}

type CalculateTaskResourceResp

type CalculateTaskResourceResp struct {

	/* 接口响应状态 (Optional) */
	Code int `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 是否通过资源队列资源试算 (Optional) */
	QueueResourcesPassed bool `json:"queueResourcesPassed"`

	/* 是否通过集群资源试算 (Optional) */
	ClusterResourcesPassed bool `json:"clusterResourcesPassed"`

	/* 是否通过预调度 (Optional) */
	SchedulerPassed bool `json:"schedulerPassed"`

	/* 可以创建出来任务的数量 (Optional) */
	AvailableCount int64 `json:"availableCount"`

	/* 指定节点后是否通过资源试算 (Optional) */
	HostpathResourcePassed bool `json:"hostpathResourcePassed"`
}

type CfsDetailForJob

type CfsDetailForJob struct {

	/* cfs ID。示例:fs-rz*******r。 (Optional) */
	Id string `json:"id"`

	/* cfs 挂载目标IP地址。示例:192.168.0.1。 (Optional) */
	Host string `json:"host"`

	/* 虚根。示例:/cfs。 (Optional) */
	Pseudo string `json:"pseudo"`

	/* cfs 源路径。示例:/data/d1。 (Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置。示例:/mnt/ws/cfs-1。
	建议挂载到/mnt/开头的路径下,不支持挂载到系统目录。
	不支持的系统目录如下:`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`。
	 (Optional) */
	MountPath string `json:"mountPath"`
}

type CfsParamForDistill

type CfsParamForDistill struct {

	/* CFS 文件系统ID。

	## 格式
	以 `fs-` 为前缀。

	## 示例
	`fs-rz*******r`
	 (Optional) */
	Id string `json:"id"`

	/* CFS 源路径。

	## 示例
	`/data/d1`
	 (Optional) */
	SourcePath string `json:"sourcePath"`
}

type CfsParamForExperiment

type CfsParamForExperiment struct {

	/* CFS 文件系统ID。

	## 格式
	以 `fs-` 为前缀。

	## 示例
	`fs-rz*******r`
	 (Optional) */
	Id *string `json:"id"`

	/* CFS 源路径。

	## 示例
	`/data/d1`

	## 说明
	路径需在 CFS 文件系统挂载点下。
	 (Optional) */
	SourcePath *string `json:"sourcePath"`
}

type CfsParamForJob

type CfsParamForJob struct {

	/* CFS 文件系统 ID。

	**示例:** `fs-rz*******r`

	**获取方式:** 通过 CFS 控制台或 API 创建并获取
	 (Optional) */
	Id *string `json:"id"`

	/* CFS 挂载目标 IP 地址。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`

	**说明:**
	- 非必传参数
	- 默认获取 CFS 的第一个挂载目标 IP 地址
	- 如需指定特定挂载点,请传此参数
	 (Optional) */
	Host *string `json:"host"`

	/* CFS 源路径,指定要挂载的目录。

	**示例:**
	- 根目录:`/`
	- 数据目录:`/data/d1`
	- 共享目录:`/shared`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`

	/* 挂载点配置,指定 CFS 在容器内的挂载路径。

	**建议:** 挂载到 `/mnt/` 开头的路径下

	**示例:**
	- 共享存储:`/mnt/shared`
	- 数据目录:`/mnt/cfs-data`

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	 (Optional) */
	MountPath *string `json:"mountPath"`
}

type CheckTagResourceResp

type CheckTagResourceResp struct {

	/*  (Optional) */
	ValidityList []Status `json:"validityList"`
}

type Cluster

type Cluster struct {

	/* 集群ID (Optional) */
	Id string `json:"id"`

	/* 集群名称 (Optional) */
	Name string `json:"name"`

	/* 状态,creating:创建中;init:初始化;ready:成功;fail:错误 (Optional) */
	Status string `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 地域 (Optional) */
	Region string `json:"region"`

	/* 私有网络 (Optional) */
	Vpc string `json:"vpc"`

	/* 私有网络名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 可用区列表,逗号分割 (Optional) */
	Zones string `json:"zones"`

	/* pod子网id,逗号分割 (Optional) */
	PodNets string `json:"podNets"`

	/* service cidr (Optional) */
	ServiceCIDR string `json:"serviceCIDR"`

	/* service lb 子网id (Optional) */
	ServiceLB string `json:"serviceLB"`

	/* 管理节点cidr (Optional) */
	ManagerCIDR string `json:"managerCIDR"`

	/* k8s集群提供平台,cos/jke (Optional) */
	Provider string `json:"provider"`
}

type ClusterNetworkInfo

type ClusterNetworkInfo struct {

	/* 云网络配置 (Optional) */
	CloudNetwork NetworkInfo `json:"cloudNetwork"`
}

type ClusterSimple

type ClusterSimple struct {

	/* 集群ID (Optional) */
	Id string `json:"id"`

	/* 集群名称 (Optional) */
	Name string `json:"name"`

	/* 状态,creating:创建中;init:初始化;ready:成功;fail:错误 (Optional) */
	Status string `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 地域 (Optional) */
	Region string `json:"region"`
}

type Code

type Code struct {

	/* 代码配置ID  */
	RepoId string `json:"repoId"`

	/* 挂载点路径  */
	MountPath string `json:"mountPath"`

	/* 代码配置名称 (Optional) */
	RepoName string `json:"repoName"`
}

type CodeParam

type CodeParam struct {

	/* 代码仓库 ID。

	**获取方式:** 通过代码仓库管理接口创建或查询
	 */
	RepoId string `json:"repoId"`

	/* 挂载点配置,指定代码在容器内的存放路径。

	**建议:** 挂载到 `/mnt/code/` 路径下

	**示例:**
	- `/mnt/code`:代码根目录
	- `/mnt/code/my-project`:项目目录

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	*/
	MountPath string `json:"mountPath"`
}

type CodeRepoConfigInfo

type CodeRepoConfigInfo struct {

	/* 代码库配置ID (Optional) */
	RepoId string `json:"repoId"`

	/* 代码库配置名称 (Optional) */
	RepoName string `json:"repoName"`

	/* 代码库类型,可选值:GitHub、Coding (Optional) */
	RepoType string `json:"repoType"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* Coding的projectId (Optional) */
	ProjectId string `json:"projectId"`

	/* 代码库地址 (Optional) */
	Url string `json:"url"`

	/* 代码库分支 (Optional) */
	Branch string `json:"branch"`

	/* 代码库commint (Optional) */
	Commit string `json:"commit"`

	/* git用户名 (Optional) */
	Username string `json:"username"`

	/* git访问凭证(加密) (Optional) */
	AccessToken string `json:"accessToken"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin (Optional) */
	Pin string `json:"pin"`

	/* 创建人名称 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户名称 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。 (Optional) */
	Permission string `json:"permission"`
}

type CodeResultForJob

type CodeResultForJob struct {

	/* 代码仓库 ID。 (Optional) */
	RepoId string `json:"repoId"`

	/* 代码仓库名称。

	**示例:** `my-training-code`, `llm-finetune`
	 (Optional) */
	RepoName string `json:"repoName"`

	/* 挂载点路径。 (Optional) */
	MountPath string `json:"mountPath"`
}

type Common

type Common struct {

	/*  (Optional) */
	Page ModelPageable `json:"page"`

	/* 排序字段及方式 (Optional) */
	OrderBy []AppInfoOrder `json:"orderBy"`
}

type ConfigItem

type ConfigItem struct {

	/* 配置项显示名称 (Optional) */
	DisplayName string `json:"displayName"`

	/* 配置项名称 (Optional) */
	KeyName string `json:"keyName"`

	/* 组件类型,可选值:
	- TEXT:文本输入
	- SELECT:下拉选择
	 (Optional) */
	ComponentType string `json:"componentType"`

	/* 默认值 (Optional) */
	DefaultValue string `json:"defaultValue"`

	/* 是否必填 (Optional) */
	Required bool `json:"required"`

	/* 选项列表(componentType=SELECT时使用) (Optional) */
	Options []string `json:"options"`
}

type ConfigItemValue

type ConfigItemValue struct {

	/* 配置项键 (Optional) */
	Key string `json:"key"`

	/* 配置项值 (Optional) */
	Value string `json:"value"`
}

type CpuQuota

type CpuQuota struct {

	/* cpu (Optional) */
	Cpu Quota `json:"cpu"`

	/* 内存(G) (Optional) */
	Memory Quota `json:"memory"`
}

type CreateAnnotationTaskParam

type CreateAnnotationTaskParam struct {

	/* 标注任务名称。1~32字符,仅支持中文、大小写字母、数字、英文中划线 “-”和英文下划线“_”。  */
	Name string `json:"name"`

	/* 标注任务的描述信息,不超过256个字符。 (Optional) */
	Description string `json:"description"`

	/* 数据类型ID,可选值:[`image`]。  */
	DataTypeId string `json:"dataTypeId"`

	/* 任务类型ID,可选值:[`image-classification`]。  */
	TaskTypeId string `json:"taskTypeId"`

	/* 数据集。 (Optional) */
	Dataset DatasetForCreateAnnotationTask `json:"dataset"`

	/* 标签名称列表。标签名称不能重复。目前限制总数上限为50个。 (Optional) */
	Tags []string `json:"tags"`

	/* 标注执行人。目前只支持单个标注执行人。
	此参数非必填。
	当此参数为空时,则默认为当前用户。
	 (Optional) */
	AnnotationUsers []AnnotationUserForCreateAnnotationTask `json:"annotationUsers"`

	/* 标注结果存储信息。 (Optional) */
	AnnotationResultStorage AnnotationResultStorageForCreateAnnotationTask `json:"annotationResultStorage"`
}

type CreateBindWorkspaceRequest

type CreateBindWorkspaceRequest struct {

	/* 资源信息列表。  */
	ResourceInfos []BindResourceInfo `json:"resourceInfos"`
}

type CreateCodeRepoConfigParam

type CreateCodeRepoConfigParam struct {

	/* 代码库配置名称(1~64字符,仅支持中文、大小写字母、数字、英文中划线“-”、英文下划线“_”和点 “.”) (Optional) */
	RepoName *string `json:"repoName"`

	/* 代码库类型,可选值:GitHub、Coding (Optional) */
	RepoType *string `json:"repoType"`

	/* 描述 (Optional) */
	Description *string `json:"description"`

	/* Coding的projectId(repoType=Coding时使用且必填) (Optional) */
	ProjectId *string `json:"projectId"`

	/* 代码库地址(repoType=GitHub时使用且必填) (Optional) */
	Url *string `json:"url"`

	/* 代码库分支(commit为空时必填) (Optional) */
	Branch *string `json:"branch"`

	/* 代码库commint(branch为空时必填) (Optional) */
	Commit *string `json:"commit"`

	/* git用户名 (Optional) */
	Username *string `json:"username"`

	/* git访问凭证 (Optional) */
	AccessToken *string `json:"accessToken"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。 (Optional) */
	Permission *string `json:"permission"`
}

type CreateDatasetParam

type CreateDatasetParam struct {

	/* 数据集ID,(创建新版本生效,必填) (Optional) */
	DatasetId *string `json:"datasetId"`

	/* 数据集名称,(创建新数据集生效,必填)(1~32字符,仅支持中文、大小写字母、英文中划线 “-”和英文下划线“_”) (Optional) */
	DatasetName *string `json:"datasetName"`

	/* 数据集类型(创建新数据集生效,必填):| 数据集类型,可选值: - text:文本 - image:图像 - custom:自定义 (Optional) */
	DatasetType *string `json:"datasetType"`

	/* 任务类型(创建新数据集生效,必填),可选值:
	- sft:文本维度
	- dpo:文本维度
	- cpt:文本维度-增量预训练
	- image-classification:图像维度-图像分类
	- custom:自定义
	 (Optional) */
	TaskType *string `json:"taskType"`

	/* 数据集描述,创建新版本时为版本描述 (Optional) */
	Description *string `json:"description"`

	/* 存储类型(数据集来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType *string `json:"storageType"`

	/* storageType=oss时必传,oss域名 (Optional) */
	StorageDomain *string `json:"storageDomain"`

	/* storageType=oss时必传,oss bucket (Optional) */
	StorageBucket *string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath *string `json:"storagePath"`

	/* 存储ID,storageType=cfs或jpfs时必传,例如:fs-60z1s969ui (Optional) */
	StorageId *string `json:"storageId"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels *string `json:"labels"`

	/* 标注状态:未标注unmarked,已标注marked (Optional) */
	MarkStatus *string `json:"markStatus"`

	/* 标注文件:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	MarkFile *string `json:"markFile"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。(创建新数据集生效,必填) (Optional) */
	Permission *string `json:"permission"`
}

type CreateImageParam

type CreateImageParam struct {

	/* 镜像名称(1~128字符,仅支持小写字母、数字、英文中划线 “-”、英文下划线“_”和点 “.”,只能以字母开头) (Optional) */
	ImageName *string `json:"imageName"`

	/* 镜像用途,多个用英文逗号拼接,可选值:
	- notebook Notebook
	- training 训练任务
	- inference 在线服务
	 (Optional) */
	ImageUsage *string `json:"imageUsage"`

	/* 镜像类型:cpu,gpu (Optional) */
	ImageType *string `json:"imageType"`

	/* 注册/构建后的镜像地址 (Optional) */
	ImageUrl *string `json:"imageUrl"`

	/* 注册方式,可选值:
	- jcr 容器镜像仓库注册
	- dockerfile Dockerfile方式构建
	- notebook:notebook方式构建
	 (Optional) */
	SourceType *string `json:"sourceType"`

	/* 标签,使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels *string `json:"labels"`

	/* dockerfile文件内容。基于Dockerfile方式构建时生效必传 (Optional) */
	Dockerfile *string `json:"dockerfile"`

	/* 队列ID。基于Dockerfile方式构建时生效必传。 (Optional) */
	QueueId *string `json:"queueId"`

	/* CPU大小,单位:核。基于Dockerfile方式构建时生效必传 (Optional) */
	Cpu *int `json:"cpu"`

	/* 内存大小,单位:GB。基于Dockerfile方式构建时生效必传 (Optional) */
	Memory *int `json:"memory"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。 (Optional) */
	Permission *string `json:"permission"`
}

type CreateLiveMigrateTaskOutput

type CreateLiveMigrateTaskOutput struct {

	/* 状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`
}

type CreateLiveMigrateTaskParams

type CreateLiveMigrateTaskParams struct {

	/*  (Optional) */
	TaskId string `json:"taskId"`

	/*  (Optional) */
	InstanceName string `json:"instanceName"`

	/*  (Optional) */
	AfterNodeName string `json:"afterNodeName"`

	/*  (Optional) */
	AfterNodeIp string `json:"afterNodeIp"`

	/* 节点设备信息 (Optional) */
	Devices []DeviceInfo `json:"devices"`

	/* 是否系统直接自动选择 (Optional) */
	SystemRecommend bool `json:"systemRecommend"`

	/*  (Optional) */
	ContainerName string `json:"containerName"`
}

type CreateLogConfigs

type CreateLogConfigs struct {

	/* 更新方式:可选值:
	- FULL:全量更新(替换空间已有的所有数据,logConfigs为空数组时表示删除空间所有数据),
	- INCREMENTAL:增量更新(库中没有新增、库中已有更新)
	 (Optional) */
	UpdateMethod string `json:"updateMethod"`

	/* 空间关联的日志配置。 (Optional) */
	LogConfigs []UpdateLogConfigs `json:"logConfigs"`
}

type CreatePublicDatasetParam

type CreatePublicDatasetParam struct {

	/* 数据集ID,(创建新版本生效,必填) (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称,(创建新数据集生效,必填) (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集类型(创建新数据集生效,必填):| 数据集类型,可选值: - text:文本 - image:图像 - custom:自定义 (Optional) */
	DatasetType string `json:"datasetType"`

	/* 任务类型(创建新数据集生效,必填),可选值:
	- sft:文本维度
	- dpo:文本维度
	- cpt:文本维度-增量预训练
	- image-classification:图像维度-图像分类
	- custom:自定义
	 (Optional) */
	TaskType string `json:"taskType"`

	/* 数据集描述,创建新版本时为版本描述 (Optional) */
	Description string `json:"description"`

	/* 存储类型(数据集来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType string `json:"storageType"`

	/* storageType=oss时必传,oss bucket (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储ID,storageType=cfs或jpfs时必传,例如:fs-60z1s969ui (Optional) */
	StorageId string `json:"storageId"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 数据集介绍 (Optional) */
	DatasetIntroduction string `json:"datasetIntroduction"`
}

type CreatePublicImageParam

type CreatePublicImageParam struct {

	/* 镜像名称 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像用途,可选值:
	- notebook Notebook
	- training 训练任务
	- inference 在线服务
	 (Optional) */
	ImageUsage string `json:"imageUsage"`

	/* 镜像类型:cpu,gpu (Optional) */
	ImageType string `json:"imageType"`

	/* 镜像地址 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 注册方式:jcr容器镜像仓库注册 (Optional) */
	SourceType string `json:"sourceType"`

	/* 标签,使用英文逗号拼接。 (Optional) */
	Labels string `json:"labels"`

	/* 镜像启动命令。 (Optional) */
	Command string `json:"command"`
}

type CreatePublicImageWhitelistParm

type CreatePublicImageWhitelistParm struct {

	/* 灰度主账号pin (Optional) */
	WhitelistPins []string `json:"whitelistPins"`
}

type CreatePublicModelWhitelistParm

type CreatePublicModelWhitelistParm struct {

	/* 灰度主账号pin (Optional) */
	WhitelistPins []string `json:"whitelistPins"`
}

type CronScale

type CronScale struct {

	/* Cron表达式,支持标准的5字段格式(分 时 日 月 周)  */
	CronExpr string `json:"cronExpr"`

	/* 期望副本数  */
	DesiredReplicas int `json:"desiredReplicas"`
}

type CustomLogConfig

type CustomLogConfig struct {

	/* 自定义文件路径列表,指定要采集的日志文件路径。

	## 路径格式
	- 以"/"开头的采集路径
	- 支持通配符

	## 示例
	- /var/log/app.log: 单个文件
	- /var/log/db/*/*.log: 多级目录通配
	*/
	Paths []string `json:"paths"`
}

type CustomService

type CustomService struct {

	/* 服务名称,定义需满足k8s svc名称格式,创建时必填  */
	Name string `json:"name"`

	/* 端口号,创建时必填  */
	Port int `json:"port"`

	/* 调用地址,运行态返回数据 (Optional) */
	Address *string `json:"address"`
}

type DashboardScheduleItem

type DashboardScheduleItem struct {

	/* 调度分析结果 (Optional) */
	Item SightSchedulingMetrics `json:"item"`
}

type DashboardScheduleItems

type DashboardScheduleItems struct {

	/* 调度分析结果列表 (Optional) */
	Items []SightSchedulingMetrics `json:"items"`
}

type DataInfo

type DataInfo struct {

	/* true文件夹,false文件 (Optional) */
	IsFile bool `json:"isFile"`

	/* 所有文件总大小 (Optional) */
	TotalSize int `json:"totalSize"`

	/* 所有文件总token数 (Optional) */
	TotalToken int `json:"totalToken"`

	/* 所有文件总样本数 (Optional) */
	TotalSampleSize int `json:"totalSampleSize"`

	/* 已标注数据总数 (Optional) */
	TotalMarked int `json:"totalMarked"`

	/* files (Optional) */
	Files []File `json:"files"`
}

type DataItem

type DataItem struct {

	/* 文件全路径(图像/音频/视频) (Optional) */
	FilePath string `json:"filePath"`

	/* 标签数据 (Optional) */
	Tags []string `json:"tags"`
}

type DataSourceSpec

type DataSourceSpec struct {

	/* 数据来源类型。支持4种类型`training`、`cfs`、`oss`、`jpfs`。  */
	DataSourceType string `json:"dataSourceType"`

	/* 数据来源类型为`cfs`、`oss`、`jpfs`, 需要传入存储ID。
	`cfs`和`jpfs`类型存储需要传对应类型的资源ID。
	`oss`类型传bucket名称。
	数据来源类型为`training`时,需要传入训练任务的ID。
	*/
	StorageId string `json:"storageId"`

	/* 存储路径。根据数据来源类型不同需要传入不同格式的值
	`training` 需要传入训练日志在容器内的挂载目录。
	`cfs` 类型参数示例(`10.0.23.45:/dir-path`或`/dir-path`)。
	`oss` 类型参数示例(`oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`)。
	`jpfs` 类型参数示例(`fs-xxxxxxxxxx:/dir-path`或`/dir-path`)。
	*/
	StoragePath string `json:"storagePath"`
}

type DataToken

type DataToken struct {

	/* job是否完成 true完成 (Optional) */
	JobCompleted bool `json:"jobCompleted"`

	/* token数 (Optional) */
	Token int `json:"token"`
}

type DatasetForCreateAnnotationTask

type DatasetForCreateAnnotationTask struct {

	/* 数据集ID。 (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集版本。 (Optional) */
	DatasetVersion string `json:"datasetVersion"`
}

type DatasetForDescribeAnnotationObjects

type DatasetForDescribeAnnotationObjects struct {

	/* 数据集ID。 (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称。 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集版本。 (Optional) */
	DatasetVersion string `json:"datasetVersion"`
}

type DatasetForDescribeAnnotationTask

type DatasetForDescribeAnnotationTask struct {

	/* 数据集ID。 (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称。 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集版本。 (Optional) */
	DatasetVersion string `json:"datasetVersion"`
}

type DatasetForDescribeAnnotationTasks

type DatasetForDescribeAnnotationTasks struct {

	/* 数据集ID。 (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称。 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集版本。 (Optional) */
	DatasetVersion string `json:"datasetVersion"`
}

type DatasetInfo

type DatasetInfo struct {

	/* 数据集 id (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集类型,可选值:
	- text:文本
	- image:图像
	- custom:自定义
	 (Optional) */
	DatasetType string `json:"datasetType"`

	/* 任务类型,可选值:
	- sft:文本维度
	- dpo:文本维度
	- cpt:文本维度-增量预训练
	- image-classification:图像维度-图像分类
	- custom:自定义
	 (Optional) */
	TaskType string `json:"taskType"`

	/* 版本数量 (Optional) */
	VersionNum int64 `json:"versionNum"`

	/* 数据集描述 (Optional) */
	Description string `json:"description"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`
}

type DatasetParamForExperiment

type DatasetParamForExperiment struct {

	/* 数据集可见性。

	## 可选值
	- `public`:公共数据集
	- `private`:私有数据集
	 (Optional) */
	DatasetVisibility *string `json:"datasetVisibility"`

	/* 数据集用途。

	## 可选值
	- `training`:训练数据集
	- `evaluation`:验证数据集

	## 说明
	如果 `evalDatasetSource` 为 `provided`,需要在 datasets 中配置 `evaluation` 类型的数据集。
	 (Optional) */
	DatasetUsage *string `json:"datasetUsage"`

	/* 数据集ID。

	## 格式
	以 `ds-` 为前缀。

	## 示例
	`ds-xxxxxxxxxx`
	 (Optional) */
	DatasetId *string `json:"datasetId"`

	/* 数据集版本。

	## 格式
	版本号格式,如 `v1`、`v2`。

	## 说明
	建议使用最新版本,确保数据质量。
	 (Optional) */
	DatasetVersion *string `json:"datasetVersion"`
}

type DatasetParamForJob

type DatasetParamForJob struct {

	/* 数据集可见性,决定数据集的访问权限。

	**可选值:**
	- `public`:公开数据集,工作空间所有成员可使用
	- `private`:私有数据集,仅创建者和空间管理员可使用
	 (Optional) */
	DatasetVisibility *string `json:"datasetVisibility"`

	/* 数据集ID,唯一标识一个数据集。

	**示例:** `ds-11******ik`

	**获取方式:** 通过数据集管理接口创建或查询
	 (Optional) */
	DatasetId *string `json:"datasetId"`

	/* 数据集版本,指定要使用的数据集版本。

	**示例:**
	- 版本号:`v1`, `v2`
	 (Optional) */
	DatasetVersion *string `json:"datasetVersion"`

	/* 挂载点配置,指定数据集在容器内的挂载路径。

	**建议:** 挂载到 `/mnt/` 开头的路径下

	**示例:**
	- 训练数据:`/mnt/dataset/train`
	- 验证数据:`/mnt/dataset/val`
	- 测试数据:`/mnt/dataset/test`

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	 (Optional) */
	MountPath *string `json:"mountPath"`

	/* 是否以只读模式挂载数据集。

	**只读模式:** 无法在挂载的数据集中进行写操作

	**注意:**
	- 当数据集来源为 `public` 时,此参数无效(始终只读)
	- 当存储类型不是 `oss` 时,此参数无效
	 (Optional) */
	Readonly *bool `json:"readonly"`
}

type DatasetResultForJob

type DatasetResultForJob struct {

	/* 数据集可见性。可选值:[public, private]。 (Optional) */
	DatasetVisibility string `json:"datasetVisibility"`

	/* 数据集ID。示例:ds-11******ik (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集版本。示例:v1 (Optional) */
	DatasetVersion string `json:"datasetVersion"`

	/* 否以只读模式挂载数据集。只读模式下,无法在挂载的数据集中进行写操作。当数据集来源为public,或存储类型不是oss时,该参数无效。
	(Optional) */
	Readonly bool `json:"readonly"`

	/* 存储参数。 (Optional) */
	Storage StorageSpaceParamForJob `json:"storage"`
}

type DatasetSpec

type DatasetSpec struct {

	/* 数据集来源,指定使用公共数据集还是个人数据集。

	## 来源类型
	- public: 公共数据集,所有用户可访问
	- self: 个人数据集,仅自己可访问
	*/
	Source string `json:"source"`

	/* 数据集存储类型,决定数据访问方式。

	## 支持类型
	- cfs: 京东云文件存储
	- oss: 京东云对象存储
	- jpfs: 京东云并行文件系统
	*/
	StorageType string `json:"storageType"`

	/* 数据集ID,唯一标识数据集。

	## 获取方式
	- 公共数据集: 从公共数据集列表获取
	- 个人数据集: 从我的数据集列表获取
	*/
	DatasetId string `json:"datasetId"`

	/* 数据集版本,指定使用数据集的哪个版本。

	## 版本说明
	- 支持多版本数据集
	- 版本格式: v1, v2, v3
	*/
	DatasetVersion string `json:"datasetVersion"`

	/* 数据集地址,数据集的实际存储路径。

	## 各类型地址格式
	- cfs: `10.0.23.45:/dir-path` 或 `/dir-path`
	- oss: `oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`
	- jpfs: `fs-xxxxxxxxxx:/dir-path` 或 `/dir-path`
	*/
	DatasetUrl string `json:"datasetUrl"`

	/* 挂载路径,数据集在Notebook容器中的挂载位置。

	## 挂载建议
	- 建议挂载到`/mnt/datasets/`开头的路径
	- 不支持挂载到系统目录

	## 系统目录列表
	`/, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var`
	*/
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载数据集。

	## 使用说明
	- 仅oss类型且self来源的数据集有效
	- public数据集强制只读
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly *bool `json:"readonly"`
}

type DatasetVersionInfo

type DatasetVersionInfo struct {

	/* 数据集 iD (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集名称 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集类型,可选值:
	- text:文本
	- image:图像
	- custom:自定义
	 (Optional) */
	DatasetType string `json:"datasetType"`

	/* 任务类型,可选值:
	- sft:文本维度
	- dpo:文本维度
	- cpt:文本维度-增量预训练
	- image-classification:图像维度-图像分类
	- custom:自定义
	 (Optional) */
	TaskType string `json:"taskType"`

	/* 数据集描述 (Optional) */
	Description string `json:"description"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* 版本描述 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 存储类型(数据来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 存储oss对应ossEnpoint, cfs、jpfs对应IP (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket/cfs-pseudo(例如:/cfs) (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储全路径地址:
	- oss  oss://{storageDomain}/{storageBucket}/{storagePath}
	- cfs  cfs://{storageId}/{storageBucket}/{storagePath}
	- jpfs  jpfs://{storageId}/{storagePath}
	 (Optional) */
	StorageUri string `json:"storageUri"`

	/* 存储ID cfs或jpfs时使用,例如:fs-60z1s969ui (Optional) */
	StorageId string `json:"storageId"`

	/* cfsVpcId (Optional) */
	CfsVpcId string `json:"cfsVpcId"`

	/* 数据集介绍 (Optional) */
	DatasetIntroduction string `json:"datasetIntroduction"`

	/* 注册来源:personal用户上传 (Optional) */
	SourceType string `json:"sourceType"`

	/* 注册来源对应的ID:数据处理ID或自动标注ID等 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 标签,labels转换的数组格式。 (Optional) */
	LabelList []string `json:"labelList"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 资源状态:running注册中、success注册成功、failed注册失败 (Optional) */
	State string `json:"state"`

	/* podName (Optional) */
	PodName string `json:"podName"`

	/* pod状态说明 (Optional) */
	Reason string `json:"reason"`

	/* 导入校验结果说明\错误信息描述 (Optional) */
	CheckResult string `json:"checkResult"`

	/* dataInfo 导入结果 (Optional) */
	DataInfo DataInfo `json:"dataInfo"`

	/* 标注状态:未标注unmarked,已标注marked (Optional) */
	MarkStatus string `json:"markStatus"`

	/* 标注文件 (Optional) */
	MarkFile string `json:"markFile"`

	/* 标注文件中所有标签数据 (Optional) */
	MarkTags []string `json:"markTags"`

	/* 数据探索 (Optional) */
	DataExploration string `json:"dataExploration"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`
}

type DatasetVersionKey

type DatasetVersionKey struct {

	/* 数据集 iD (Optional) */
	DatasetId string `json:"datasetId"`

	/* 版本号 (Optional) */
	Version string `json:"version"`
}

type DatasetVersionToken

type DatasetVersionToken struct {

	/* 数据集 iD (Optional) */
	DatasetId string `json:"datasetId"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* token数 (Optional) */
	Token int `json:"token"`
}

type DeletePublicImageWhitelistParm

type DeletePublicImageWhitelistParm struct {

	/* 要删除的灰度主账号pin,isDelAll==false时生效 (Optional) */
	WhitelistPins []string `json:"whitelistPins"`

	/* 是否删除所有: true删除所有,false(默认false)。 (Optional) */
	IsDelAll bool `json:"isDelAll"`
}

type DeletePublicModelWhitelistParm

type DeletePublicModelWhitelistParm struct {

	/* 要删除的灰度主账号pin,isDelAll==false时生效 (Optional) */
	WhitelistPins []string `json:"whitelistPins"`

	/* 是否删除所有: true删除所有,false(默认false)。 (Optional) */
	IsDelAll bool `json:"isDelAll"`
}

type DeployStillNewModel

type DeployStillNewModel struct {

	/* 新模型的模型名称。  */
	ModelName string `json:"modelName"`

	/* 新模型的描述,不超过256字符。  */
	ModelDesc string `json:"modelDesc"`

	/* 模型归属权限,支持(public,private),默认为`public`。 (Optional) */
	Permission string `json:"permission"`
}

type DeployStillNewModelVersion

type DeployStillNewModelVersion struct {

	/* 已有模型的模型ID。  */
	ModelId string `json:"modelId"`

	/* 新版本描述,不超过256字符。  */
	VersionDesc string `json:"versionDesc"`
}

type DescribeBindWorkspaceRequest

type DescribeBindWorkspaceRequest struct {

	/* 绑定的资源类型。可选值:oss(对象存储)、jpfs(云海)、nfs(网络文件系统)、ddn(分布式存储)、image_repo(镜像仓库)。 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 绑定资源类型的主键值,支持多个使用","分隔,最多20个。 (Optional) */
	ResourceIdVals string `json:"resourceIdVals"`

	/* 地域。 (Optional) */
	RegionId string `json:"regionId"`
}

type DescribeBindWorkspaceResult

type DescribeBindWorkspaceResult struct {

	/* 记录总数。 (Optional) */
	TotalCount int `json:"totalCount"`

	/* 已绑定的资源信息。 (Optional) */
	ResourceInfos []BoundResourceInfo `json:"resourceInfos"`
}

type DescribeResources

type DescribeResources struct {

	/* 资源id列表  */
	Ids []string `json:"ids"`
}

type DeviceConfig

type DeviceConfig struct {

	/*  (Optional) */
	VirtualMode string `json:"virtualMode"`

	/*  (Optional) */
	TemplateName string `json:"templateName"`
}

type DeviceInfo

type DeviceInfo struct {

	/* 设备UUID (Optional) */
	Uuid string `json:"uuid"`

	/*  (Optional) */
	Index int `json:"index"`

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	NodeIp string `json:"nodeIp"`

	/*  (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/*  (Optional) */
	Model string `json:"model"`

	/* 设备配置 (Optional) */
	DeviceConfig DeviceConfig `json:"deviceConfig"`

	/* 节点资源容量 (Optional) */
	Capacity GPUResourceFloat `json:"capacity"`

	/* 节点资源已使用 (Optional) */
	Used GPUResourceFloat `json:"used"`

	/* 节点资源实时用量 (Optional) */
	LiveUsage GPUResourceFloat `json:"liveUsage"`

	/*  (Optional) */
	UseStatus string `json:"useStatus"`

	/*  (Optional) */
	DeviceStatus string `json:"deviceStatus"`

	/*  (Optional) */
	Series string `json:"series"`

	/*  (Optional) */
	Architecture string `json:"architecture"`

	/*  (Optional) */
	ResourceGroup string `json:"resourceGroup"`

	/*  (Optional) */
	RunningTaskCount int `json:"runningTaskCount"`

	/* 节点可用资源 (Optional) */
	Available GPUResourceFloat `json:"available"`

	/*  (Optional) */
	Cluster string `json:"cluster"`
}

type DeviceModelsResult

type DeviceModelsResult struct {

	/* 显卡型号列表 (Optional) */
	DeviceModels []string `json:"deviceModels"`

	/* 显卡型号总数 (Optional) */
	Total int `json:"total"`

	/* 当前页码 (Optional) */
	Page int `json:"page"`
}

type DeviceStatsDetail

type DeviceStatsDetail struct {

	/* 数量 (Optional) */
	Count int `json:"count"`

	/* 显卡型号 (Optional) */
	DeviceModel string `json:"deviceModel"`
}

type Disk

type Disk struct {

	/* 硬盘类型 (Optional) */
	DiskType string `json:"diskType"`

	/* 硬盘容量 (Optional) */
	Capacity int `json:"capacity"`
}

type DistillCfsInfo

type DistillCfsInfo struct {

	/* CFS ID。 (Optional) */
	Id string `json:"id"`

	/* 挂载点IP。 (Optional) */
	Ip string `json:"ip"`

	/* 路径。 (Optional) */
	Path string `json:"path"`
}

type DistillJobDetail

type DistillJobDetail struct {

	/* 蒸馏作业ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 蒸馏作业名称。 (Optional) */
	Name string `json:"name"`

	/* 蒸馏作业描述。 (Optional) */
	Description string `json:"description"`

	/* 蒸馏作业类型,目前只支持文本类型(text)。 (Optional) */
	JobType string `json:"jobType"`

	/* 教师模型配置信息。 (Optional) */
	TeacherModel DistillModelInfo `json:"teacherModel"`

	/* 学生模型配置信息。 (Optional) */
	StudentModel DistillModelInfo `json:"studentModel"`

	/* 蒸馏作业下的任务总数量。 (Optional) */
	TaskCount int `json:"taskCount"`

	/* 蒸馏作业下运行中的任务数量。 (Optional) */
	RunningTaskCount int `json:"runningTaskCount"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,如(2023-06-01 12:22:56)。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 最后变更的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后变更的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`
}

type DistillJobInfo

type DistillJobInfo struct {

	/* 蒸馏作业ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 蒸馏作业名称。 (Optional) */
	Name string `json:"name"`

	/* 蒸馏作业描述。 (Optional) */
	Description string `json:"description"`

	/* 蒸馏作业类型,目前只支持文本类型(text)。 (Optional) */
	JobType string `json:"jobType"`

	/* 教师模型配置信息。 (Optional) */
	TeacherModel DistillModelInfo `json:"teacherModel"`

	/* 学生模型配置信息。 (Optional) */
	StudentModel DistillModelInfo `json:"studentModel"`

	/* 蒸馏作业下的任务总数量。 (Optional) */
	TaskCount int `json:"taskCount"`

	/* 蒸馏作业下运行中的任务数量。 (Optional) */
	RunningTaskCount int `json:"runningTaskCount"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,如(2023-06-01 12:22:56)。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 最后变更的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后变更的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`
}

type DistillJpfsInfo

type DistillJpfsInfo struct {

	/* JPFS ID。 (Optional) */
	Id string `json:"id"`

	/* 路径。 (Optional) */
	Path string `json:"path"`
}

type DistillLog

type DistillLog struct {

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 日志级别(info,warn,error)。 (Optional) */
	LogLevel string `json:"logLevel"`

	/* 任务状态。 (Optional) */
	TaskState string `json:"taskState"`

	/* 日志内容。 (Optional) */
	Log string `json:"log"`
}

type DistillModelInfo

type DistillModelInfo struct {

	/* 模型来源,模型广场或模型资产中的公共模型(market,public)。 (Optional) */
	Source string `json:"source"`

	/* 模型广场服务ID或公共模型ID。 (Optional) */
	Id string `json:"id"`

	/* 模型名称。 (Optional) */
	Name string `json:"name"`

	/* 模型版本,模型广场中的模型该字段为空。 (Optional) */
	Version string `json:"version"`
}

type DistillOssInfo

type DistillOssInfo struct {

	/* OSS地址。 (Optional) */
	Endpoint string `json:"endpoint"`

	/* OSS Bucket。 (Optional) */
	Bucket string `json:"bucket"`

	/* OSS Object。 (Optional) */
	Object string `json:"object"`
}

type DistillPod

type DistillPod struct {

	/* POD名称。 (Optional) */
	PodName string `json:"podName"`

	/* POD状态。 (Optional) */
	Phase string `json:"phase"`

	/* 容器数。 (Optional) */
	ContainerCount int `json:"containerCount"`

	/* Ready的容器数。 (Optional) */
	ReadyContainerCount int `json:"readyContainerCount"`

	/* 重启次数。 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 原因。 (Optional) */
	Reason string `json:"reason"`

	/* 描述。 (Optional) */
	Message string `json:"message"`

	/* READY时间,如(2023-06-01 12:22:56)。 (Optional) */
	ReadyTime string `json:"readyTime"`
}

type DistillSpec

type DistillSpec struct {

	/* 名称。2~64字符,可以包含中文、数字、大小写字母、英文下划线“_”、中划线“-”或点“.”,不能以下划线和中划线开头。  */
	Name string `json:"name"`

	/* 描述。不超过500字符。 (Optional) */
	Description string `json:"description"`

	/* 作业类型,目前只支持文本类型(text)。  */
	JobType string `json:"jobType"`

	/* 选择教师模型配置。  */
	TeacherModelSpec TeacherModelSpec `json:"teacherModelSpec"`

	/* 选择学生模型配置。  */
	StudentModelSpec StudentModelSpec `json:"studentModelSpec"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。 (Optional) */
	Permission string `json:"permission"`
}

type DistillStageInfo

type DistillStageInfo struct {

	/* 教师模型信息。 (Optional) */
	TeacherModel DistillModelInfo `json:"teacherModel"`

	/* 输入数据集来源(platform-public/platform-private/private)。 (Optional) */
	InputDsSource string `json:"inputDsSource"`

	/* 输入数据集存储类型(cfs,oss,jpfs)。 (Optional) */
	InputDsType string `json:"inputDsType"`

	/* 输入数据集ID或存储ID。 (Optional) */
	InputDsId string `json:"inputDsId"`

	/* 输入数据集的数据集版本,选择平台数据集时有效。 (Optional) */
	InputDsVersion string `json:"inputDsVersion"`

	/* 输入数据集存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。 (Optional) */
	InputDsPath string `json:"inputDsPath"`

	/* 输入数据集名称。 (Optional) */
	InputDsName string `json:"inputDsName"`

	/* 输出数据集的存储类型(cfs,oss,jpfs)。 (Optional) */
	OutputDsType string `json:"outputDsType"`

	/* 输出数据集的存储ID。 (Optional) */
	OutputDsId string `json:"outputDsId"`

	/* 输出数据集的存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。 (Optional) */
	OutputDsPath string `json:"outputDsPath"`

	/* 蒸馏结束后数据确认方式(manual,auto)。 (Optional) */
	DataValidation string `json:"dataValidation"`

	/* 输入样本数。 (Optional) */
	TotalSample int `json:"totalSample"`

	/* 已完成样本数。 (Optional) */
	CompleteSample int `json:"completeSample"`

	/* 运行状态(queuing/pending/running/success/failed/stopping/stopped/deleting/deleted)。 (Optional) */
	State string `json:"state"`

	/* 运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 结束时间,如(2023-06-01 12:22:56)。 (Optional) */
	FinishedTime string `json:"finishedTime"`
}

type DistillStageSpec

type DistillStageSpec struct {

	/* 输入数据集的来源,支持平台数据集或直接选择个人存储(platform-public/platform-private/private)。  */
	InputDsSource string `json:"inputDsSource"`

	/* 输入数据集的存储类型(cfs,oss,jpfs)。  */
	InputDsType string `json:"inputDsType"`

	/* 输入数据集的数据集ID或存储ID,如果是oss类型的传入bucket名称。  */
	InputDsId string `json:"inputDsId"`

	/* 输入数据集的数据集版本,选择平台数据集时有效并且必传。 (Optional) */
	InputDsVersion string `json:"inputDsVersion"`

	/* 输入数据集的存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。  */
	InputDsPath string `json:"inputDsPath"`

	/* 输出数据集的存储类型(cfs,oss,jpfs)。  */
	OutputDsType string `json:"outputDsType"`

	/* 输出数据集的存储ID,如果是oss类型的传入bucket名称。  */
	OutputDsId string `json:"outputDsId"`

	/* 输出数据集的存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。  */
	OutputDsPath string `json:"outputDsPath"`

	/* 蒸馏结束后数据确认方式,支持人工或自动(manual,auto),默认为auto自动确认。 (Optional) */
	DataValidation string `json:"dataValidation"`
}

type DistillStorageInfo

type DistillStorageInfo struct {

	/* 存储类型(oss,cfs,gpfs)。 (Optional) */
	StorageType string `json:"storageType"`

	/* oss存储信息。 (Optional) */
	OssInfo DistillOssInfo `json:"ossInfo"`

	/* cfs存储信息。 (Optional) */
	CfsInfo DistillCfsInfo `json:"cfsInfo"`

	/* jpfs存储信息。 (Optional) */
	JpfsInfo DistillJpfsInfo `json:"jpfsInfo"`
}

type DistillTaskDetail

type DistillTaskDetail struct {

	/* 蒸馏作业ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 蒸馏任务ID。 (Optional) */
	TaskId string `json:"taskId"`

	/* 蒸馏任务名称。 (Optional) */
	Name string `json:"name"`

	/* 蒸馏任务描述。 (Optional) */
	Description string `json:"description"`

	/* 蒸馏任务状态。
	`starting`: 启动中
	`distill-preparing`: 蒸馏资源准备中
	`distill-doing`: 蒸馏数据构造中
	`distill-finished`: 蒸馏数据构造完成(可能是终态)
	`distill-failed`: 蒸馏数据构造失败(可能是终态)
	`train-preparing`: 学生模型训练资源准备中
	`train-doing`: 学生模型训练中
	`train-finished`: 学生模型训练完成(终态)
	`train-failed`: 学生模型训练失败(终态)
	`stopping`: 停止中
	`stopped`: 已停止(终态)
	`deleting`: 删除中
	 (Optional) */
	TaskState string `json:"taskState"`

	/* 运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 结束时间,如(2023-06-01 12:22:56)。 (Optional) */
	FinishedTime string `json:"finishedTime"`

	/* 原因描述。 (Optional) */
	Reason string `json:"reason"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,如(2023-06-01 12:22:56)。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 最后变更的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后变更的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 资源组ID。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 标签信息。 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 学生模型训练输出存储位置信息。 (Optional) */
	OutputModel DistillStorageInfo `json:"outputModel"`

	/* 已经配置了自动发布时该参数不为空,如果未配置则该参数为空。 (Optional) */
	AutoDeploy AutoDeployStillModel `json:"autoDeploy"`

	/* 蒸馏阶段信息。 (Optional) */
	DistillStage DistillStageInfo `json:"distillStage"`

	/* 训练阶段信息。 (Optional) */
	TraningStage TraningStageInfo `json:"traningStage"`

	/* 计费信息。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 进度信息列表。 (Optional) */
	Progress DistillLog `json:"progress"`
}

type DistillTaskInfo

type DistillTaskInfo struct {

	/* 蒸馏作业ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 蒸馏任务ID。 (Optional) */
	TaskId string `json:"taskId"`

	/* 蒸馏任务名称。 (Optional) */
	Name string `json:"name"`

	/* 蒸馏任务描述。 (Optional) */
	Description string `json:"description"`

	/* 蒸馏任务状态。
	`starting`: 启动中
	`distill-preparing`: 蒸馏资源准备中
	`distill-doing`: 蒸馏数据构造中
	`distill-finished`: 蒸馏数据构造完成(可能是终态)
	`distill-failed`: 蒸馏数据构造失败(可能是终态)
	`train-preparing`: 学生模型训练资源准备中
	`train-doing`: 学生模型训练中
	`train-finished`: 学生模型训练完成(终态)
	`train-failed`: 学生模型训练失败(终态)
	`stopping`: 停止中
	`stopped`: 已停止(终态)
	`deleting`: 删除中
	 (Optional) */
	TaskState string `json:"taskState"`

	/* 运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 结束时间,如(2023-06-01 12:22:56)。 (Optional) */
	FinishedTime string `json:"finishedTime"`

	/* 原因描述。 (Optional) */
	Reason string `json:"reason"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 记录时间,如(2023-06-01 12:22:56)。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,如(2023-06-01 12:22:56)。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 最后变更的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后变更的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 资源组ID。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 标签信息。 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 学生模型训练输出存储位置信息。 (Optional) */
	OutputModel DistillStorageInfo `json:"outputModel"`

	/* 已经配置了自动发布时该参数不为空,如果未配置则该参数为空。 (Optional) */
	AutoDeploy AutoDeployStillModel `json:"autoDeploy"`

	/* 计费信息。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 进度信息列表。 (Optional) */
	Progress DistillLog `json:"progress"`
}

type DtTaskStateCount

type DtTaskStateCount struct {

	/* 状态名称(queuing,pending,failed,running,stopping,stopped,deleting,saving)。 (Optional) */
	Name string `json:"name"`

	/* 数量。 (Optional) */
	Value int `json:"value"`
}

type DurationInfo

type DurationInfo struct {

	/* 时长 (Optional) */
	Value int `json:"value"`

	/* 时长单位 [DAYS、HOURS、MINUTES] (Optional) */
	Unit string `json:"unit"`
}

type ElasticIp

type ElasticIp struct {

	/* 绑定的弹性公网 IP ID(当 `internal=false` 时可选) (Optional) */
	Id string `json:"id"`

	/* 绑定的弹性公网 IP (Optional) */
	Ip string `json:"ip"`

	/* 绑定的公网ip类型,none:不绑定,new:新建,exist:已存在的,默认none (Optional) */
	BindType string `json:"bindType"`

	/* 入口带宽(Mbps), 默认1Mbps (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`

	/* 计费方式, 固定带宽: postpaid_by_duration;按用量: postpaid_by_usage (Optional) */
	ChargeMode string `json:"chargeMode"`

	/* 线路, 如:BGP (Optional) */
	Provider string `json:"provider"`
}

type ElasticIpSpec

type ElasticIpSpec struct {

	/*  (Optional) */
	Bandwidth int `json:"bandwidth"`

	/*  (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/*  (Optional) */
	ExtraArgs interface{} `json:"extraArgs"`

	/*  (Optional) */
	Provider string `json:"provider"`

	/* prepaid_by_duration表示预付费,postpaid_by_usage表示按用量后付费,postpaid_by_duration表示按配置后付费,默认为postpaid_by_duration。 (Optional) */
	ChargeMode string `json:"chargeMode"`
}

type EnvParamForJob

type EnvParamForJob struct {

	/* 环境变量名称。 (Optional) */
	Name *string `json:"name"`

	/* 环境变量值。 (Optional) */
	Value *string `json:"value"`
}

type Error

type Error struct {

	/* 错误码 (Optional) */
	Code int `json:"code"`

	/* 错误消息 (Optional) */
	Message string `json:"message"`
}

type EsAffinity

type EsAffinity struct {

	/* 亲和性Key。  */
	Key string `json:"key"`

	/* 亲和性Values列表。  */
	Values []string `json:"values"`
}

type EsCustomLogConfig

type EsCustomLogConfig struct {

	/* 自定义文件路径。以"/"开头的采集路径,支持通配符 如: /var/log/db/*/*.log
	 */
	Paths []string `json:"paths"`
}

type EsDatasetSpec

type EsDatasetSpec struct {

	/* 来源,支持(public,self)。  */
	Source string `json:"source"`

	/* 存储类型,支持三种类型cfs、oss、jpfs。  */
	StorageType string `json:"storageType"`

	/* 数据集ID。  */
	DatasetId string `json:"datasetId"`

	/* 数据集名称。 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集版本。  */
	DatasetVersion string `json:"datasetVersion"`

	/* 数据集地址。
	`cfs` 类型参数示例(10.0.23.45:/dir-path或/dir-path)。
	`oss` 类型参数示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。
	`jpfs` 类型参数示例(fs-xxxxxxxxxx:/dir-path或/dir-path)。
	*/
	DatasetUrl string `json:"datasetUrl"`

	/* 建议挂载到/mnt/开头的路径下,不支持挂载到系统目录。
	系统目录参考:/, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var。
	*/
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载数据集。只读模式下,用户无法在挂载的数据集中进行写操作。
	当数据集来源为public,或存储类型不是oss时,该参数无效。
	 (Optional) */
	Readonly bool `json:"readonly"`
}

type EsImage

type EsImage struct {

	/* 镜像ID。 (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像来源。 (Optional) */
	ImageSource string `json:"imageSource"`

	/* 镜像名称。 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像URL。 (Optional) */
	ImageUrl string `json:"imageUrl"`
}

type EsImageSpec

type EsImageSpec struct {

	/* 镜像ID。  */
	ImageId string `json:"imageId"`

	/* 镜像来源,支持(public,self)。  */
	ImageSource string `json:"imageSource"`
}

type EsLbPortSpec

type EsLbPortSpec struct {

	/* 前端端口(负载均衡端口),1-65534,需要指定一个未被占用的空闲可用端口。  */
	LbPort int `json:"lbPort"`

	/* 协议类型。可选`TCP,UDP`  */
	Protocol string `json:"protocol"`

	/* 后端端口(容器端口)。TCP时默认值为49100,UDP时默认值为47998。  */
	BackendPort int `json:"backendPort"`
}

type EsLbSpec

type EsLbSpec struct {

	/* 负载均衡器ID。  */
	LbId string `json:"lbId"`

	/* 端口映射列表。  */
	Ports []EsLbPortSpec `json:"ports"`
}

type EsLogCollectConfig

type EsLogCollectConfig struct {

	/* 日志集id  */
	LogSetId string `json:"logSetId"`

	/* 日志集名称  */
	LogSetName string `json:"logSetName"`

	/* 日志集主题id  */
	LogTopicId string `json:"logTopicId"`

	/* 日志主题名称  */
	LogTopicName string `json:"logTopicName"`

	/* 标准日志配置 (Optional) */
	StandardLogConfig EsStandardLogConfig `json:"standardLogConfig"`

	/* 自定义日志配置 (Optional) */
	CustomLogConfig EsCustomLogConfig `json:"customLogConfig"`
}

type EsNodeAffinity

type EsNodeAffinity struct {

	/* 节点亲和性配置,支持配置多个,每个元素之间是并且的关系。
	 */
	Affinities []EsAffinity `json:"affinities"`
}

type EsStandardLogConfig

type EsStandardLogConfig struct {

	/* 是否开启标准输出  */
	Stdout bool `json:"stdout"`
}

type EsStorageSpec

type EsStorageSpec struct {

	/* 存储类型,支持三种类型`cfs`、`oss`、`jpfs`。  */
	StorageType string `json:"storageType"`

	/* 存储ID。`cfs`和`jpfs`类型存储需要传对应类型的资源ID。
	`oss`类型传bucket名称。
	*/
	StorageId string `json:"storageId"`

	/* 存储路径。`cfs` 类型参数示例(10.0.23.45:/dir-path或/dir-path)。
	`oss` 类型参数示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。
	`jpfs` 类型参数示例(fs-xxxxxxxxxx:/dir-path或/dir-path)。
	*/
	StoragePath string `json:"storagePath"`

	/* 挂载路径,列表中的第一个存储作为工作目录必须挂载到/mnt/workspace不能更改。
	其他存储建议挂载到/mnt/开头的路径下,不支持挂载到系统目录。
	系统目录参考:/, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var。
	*/
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载存储。只读模式下,用户无法在挂载的存储中进行写操作。仅当存储类型为oss时有效。
	(Optional) */
	Readonly bool `json:"readonly"`
}

type EsWorkloadSpec

type EsWorkloadSpec struct {

	/* 队列ID。  */
	QueueId string `json:"queueId"`

	/* 私有资源池CPU(毫核)。  */
	CpuM int `json:"cpuM"`

	/* 私有资源池内存大小(Mi)。  */
	MemoryMiB int `json:"memoryMiB"`

	/* 私有资源池GPU设备类型。示例(NVIDIA_H20-3e)
	(Optional) */
	DeviceModel string `json:"deviceModel"`

	/* 私有资源池虚拟GPU数量。如果选NV卡则支持选择1~8、0.5/0.25/0.125卡。
	如果是910B卡则只支持选1~8。必须与deviceModel同时使用。
	 (Optional) */
	VcudaCore string `json:"vcudaCore"`
}

type Event

type Event struct {

	/* 事件发生时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 事件详情 (Optional) */
	Detail string `json:"detail"`

	/* 事件ID (Optional) */
	EventId string `json:"eventId"`

	/* 推理服务版本ID (Optional) */
	InferenceId string `json:"inferenceId"`

	/* 事件类型 (Optional) */
	Type string `json:"type"`
}

type EventInfoListForExperiment

type EventInfoListForExperiment struct {

	/* 事件类型。

	## 常见类型
	- `Normal`:正常事件
	- `Warning`:警告事件
	- `Error`:错误事件
	 (Optional) */
	EventType string `json:"eventType"`

	/* 事件内容。

	详细描述事件的具体信息。
	 (Optional) */
	Message string `json:"message"`

	/* 事件原因。

	触发事件的原因说明。
	 (Optional) */
	Reason string `json:"reason"`

	/* 事件时间。

	事件发生的时间,ISO 8601 格式。
	 (Optional) */
	EventTime string `json:"eventTime"`
}

type EventInfoListForInstance

type EventInfoListForInstance struct {

	/* 事件类型。 (Optional) */
	EventType string `json:"eventType"`

	/* 事件内容。 (Optional) */
	Message string `json:"message"`

	/* 事件原因。 (Optional) */
	Reason string `json:"reason"`

	/* 事件时间。 (Optional) */
	EventTime string `json:"eventTime"`
}

type EventInfoListForJob

type EventInfoListForJob struct {

	/* 事件类型。 (Optional) */
	EventType string `json:"eventType"`

	/* 事件内容。 (Optional) */
	Message string `json:"message"`

	/* 事件原因。 (Optional) */
	Reason string `json:"reason"`

	/* 事件时间。 (Optional) */
	EventTime string `json:"eventTime"`
}

type ExperimentDetailInfo

type ExperimentDetailInfo struct {

	/* 微调实验ID,系统自动生成的唯一标识。

	## 格式
	以 `exp-` 为前缀。
	 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* 微调实验名称。

	显示创建时设置的实验名称。
	 (Optional) */
	Name string `json:"name"`

	/* 微调实验描述信息。

	包含实验的目标、用途等说明。
	 (Optional) */
	Description string `json:"description"`

	/* 模型系列。

	- `llama`:Meta LLaMA 系列模型
	- `qwen`:阿里通义千问系列模型
	 (Optional) */
	ModelSeries string `json:"modelSeries"`

	/* 模型模版。

	| modelTemplate | 模型名 | 支持参数量 |
	|---------------|--------|-----------|
	| `llama3` | Llama 3-3.3 | 1B/3B/8B/70B |
	| `qwen` | Qwen (1-2.5) | 0.5B/1.5B/3B/7B/14B/32B/72B/110B |
	 (Optional) */
	ModelTemplate string `json:"modelTemplate"`

	/* 微调实验包含的运行数量。

	显示该实验下创建的微调运行总数。
	 (Optional) */
	RunTotal int `json:"runTotal"`

	/* 基础模型可见性。

	- `public`:公共模型
	 (Optional) */
	BaseModelVisibility string `json:"baseModelVisibility"`

	/* 基础模型ID。

	示例:`model-wsxxxxxx1f`
	 (Optional) */
	BaseModelId string `json:"baseModelId"`

	/* 基础模型名称。

	模型的显示名称。
	 (Optional) */
	BaseModelName string `json:"baseModelName"`

	/* 基础模型版本。

	示例:`v1`
	 (Optional) */
	BaseModelVersion string `json:"baseModelVersion"`

	/* 工作空间中的资源归属权限。

	- `public`:公开
	- `private`:私有
	 (Optional) */
	Permission string `json:"permission"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 归属用户pin。

	资源所有者的用户标识。
	 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。

	资源所有者的显示名称。
	 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 主账号Pin。

	资源所属主账号的用户标识。
	 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。

	创建该实验的用户。
	 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。

	最后一次更新该实验的用户。
	 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ExperimentListInfo

type ExperimentListInfo struct {

	/* 微调实验ID,系统自动生成的唯一标识。

	## 格式
	以 `exp-` 为前缀。
	 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* 微调实验名称。

	显示创建时设置的实验名称。
	 (Optional) */
	Name string `json:"name"`

	/* 微调实验描述信息。

	包含实验的目标、用途等说明。
	 (Optional) */
	Description string `json:"description"`

	/* 模型系列。

	## 可选值
	- `llama`:Meta LLaMA 系列模型
	- `qwen`:阿里通义千问系列模型
	 (Optional) */
	ModelSeries string `json:"modelSeries"`

	/* 模型模版。

	| modelTemplate | 模型名 | 支持参数量 |
	|---------------|--------|-----------|
	| `llama3` | Llama 3-3.3 | 1B/3B/8B/70B |
	| `qwen` | Qwen (1-2.5) | 0.5B/1.5B/3B/7B/14B/32B/72B/110B |
	 (Optional) */
	ModelTemplate string `json:"modelTemplate"`

	/* 微调实验包含的运行数量。

	## 说明
	一个实验下可以创建多个微调运行,每个运行尝试不同的超参数配置。
	 (Optional) */
	RunTotal int `json:"runTotal"`

	/* 基础模型可见性。

	- `public`:公共模型
	 (Optional) */
	BaseModelVisibility string `json:"baseModelVisibility"`

	/* 基础模型ID。

	示例:`model-wsxxxxxx1f`
	 (Optional) */
	BaseModelId string `json:"baseModelId"`

	/* 基础模型名称。

	模型的显示名称,便于识别。
	 (Optional) */
	BaseModelName string `json:"baseModelName"`

	/* 基础模型版本。

	示例:`v1`
	 (Optional) */
	BaseModelVersion string `json:"baseModelVersion"`

	/* 工作空间中的资源归属权限。

	- `public`:公开
	- `private`:私有
	 (Optional) */
	Permission string `json:"permission"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 归属用户pin。

	资源所有者的用户标识。
	 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。

	资源所有者的显示名称。
	 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 主账号Pin。

	资源所属主账号的用户标识。
	 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。

	创建该实验的用户。
	 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。

	最后一次更新该实验的用户。
	 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ExperimentParam

type ExperimentParam struct {

	/* 微调实验名称。

	## 命名规则
	- 长度限制:1~32个字符
	- 支持字符:中文、大小写字母、数字、英文中划线"-"、英文下划线"_"

	## 示例
	- `llama3-sft-exp`
	- `qwen-代码微调实验`
	*/
	Name string `json:"name"`

	/* 模型系列,严格区分大小写。

	## 可选值
	- `llama`:Meta LLaMA 系列模型
	- `qwen`:阿里通义千问系列模型

	## 说明
	模型系列决定了支持的模型模板范围,需与 modelTemplate 配合使用。
	*/
	ModelSeries string `json:"modelSeries"`

	/* 模型模版,严格区分大小写。不同模版对应不同的模型和参数量。

	## 模版与模型对应关系

	| modelTemplate | 模型名 | 支持参数量 |
	|---------------|--------|-----------|
	| `llama3` | [Llama 3-3.3](https://huggingface.co/meta-llama) | 1B/3B/8B/70B |
	| `qwen` | [Qwen (1-2.5)(Code/Math/MoE/QwQ)](https://huggingface.co/Qwen) | 0.5B/1.5B/3B/7B/14B/32B/72B/110B |

	## 使用建议
	- 根据任务复杂度和资源预算选择合适的参数量
	- 大参数量模型需要更多GPU资源
	*/
	ModelTemplate string `json:"modelTemplate"`

	/* 基础模型可见性。

	## 可选值
	- `public`:公共模型,平台提供的预训练模型

	## 说明
	目前仅支持公共模型,后续可能开放私有模型支持。
	*/
	BaseModelVisibility string `json:"baseModelVisibility"`

	/* 基础模型ID,用于唯一标识要微调的基础模型。

	## 格式
	以 `model-` 为前缀,例如:`model-wsxxxxxx1f`

	## 获取方式
	通过模型市场或模型列表接口查询可用的基础模型。
	*/
	BaseModelId string `json:"baseModelId"`

	/* 基础模型版本。

	## 格式
	通常为 `v1`、`v2` 等版本号格式。

	## 说明
	不同版本的基础模型可能有性能差异,建议使用最新稳定版本。
	*/
	BaseModelVersion string `json:"baseModelVersion"`

	/* 微调实验的描述信息。

	## 限制
	不超过256个字符。

	## 建议
	建议填写实验目的、预期目标等信息,便于后续管理和追溯。
	 (Optional) */
	Description *string `json:"description"`

	/* 工作空间中的资源归属权限。

	## 可选值
	- `public`:公开,工作空间内所有成员可见可操作
	- `private`:私有,仅创建者可见可操作

	## 默认值
	默认为 `public`。

	## 使用建议
	- 团队协作场景使用 `public`
	- 个人实验或敏感项目使用 `private`
	 (Optional) */
	Permission *string `json:"permission"`
}

type ExtendInferenceRequest

type ExtendInferenceRequest struct {

	/* 用户标签 (Optional) */
	UserTags []UserTag `json:"userTags"`

	/* 资源组ID (Optional) */
	ResourceGroupId *string `json:"resourceGroupId"`
}

type FailedItem

type FailedItem struct {

	/* 推理任务id (Optional) */
	Id string `json:"id"`

	/* 失败代码 (Optional) */
	Code int `json:"code"`

	/* 失败原因 (Optional) */
	Message string `json:"message"`

	/* 失败状态 (Optional) */
	Status string `json:"status"`
}

type FaultGPUStatistics

type FaultGPUStatistics struct {

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 集群ID (Optional) */
	Cluster string `json:"cluster"`

	/* 节点组信息 (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 节点IP地址 (Optional) */
	NodeIp string `json:"nodeIp"`

	/* 显卡型号 (Optional) */
	Model string `json:"model"`

	/* 显卡品牌 (Optional) */
	Brand string `json:"brand"`

	/* 显卡UUID (Optional) */
	Uuid string `json:"uuid"`

	/* 错误信息 (Optional) */
	ErrorMessage string `json:"errorMessage"`
}

type FaultNodeStatistics

type FaultNodeStatistics struct {

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 集群ID (Optional) */
	Cluster string `json:"cluster"`

	/* 节点组信息 (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 节点IP地址 (Optional) */
	NodeIp string `json:"nodeIp"`

	/* 显卡型号 (Optional) */
	Model string `json:"model"`

	/* 显卡品牌 (Optional) */
	Brand string `json:"brand"`

	/* 错误信息 (Optional) */
	ErrorMessage string `json:"errorMessage"`
}

type File

type File struct {

	/* 文件名 (Optional) */
	FileName string `json:"fileName"`

	/* 文件的md5值 (Optional) */
	FileMD5 string `json:"fileMD5"`

	/* 文件相对路径,数据集版本中storagePath后面部分 (Optional) */
	FilePath string `json:"filePath"`

	/* 文件大小 (Optional) */
	FileSize int `json:"fileSize"`

	/* 文件token数 (Optional) */
	Token int `json:"token"`

	/* 样本数 (Optional) */
	SampleSize int `json:"sampleSize"`

	/* 数据格式sharegpt/alpaca (Optional) */
	Formatting string `json:"formatting"`

	/* 精调实验 使用的dataset_info.json内容 (Optional) */
	DatasetInfoStr string `json:"datasetInfoStr"`
}

type Filter

type Filter struct {

	/* 过滤条件的名称  */
	Name string `json:"name"`

	/* 过滤条件的操作符,目前只支持:eq(等于) (Optional) */
	Operator *string `json:"operator"`

	/* 过滤条件的值  */
	Values []string `json:"values"`
}

type FinetuningConfigInfoForExperiment

type FinetuningConfigInfoForExperiment struct {

	/* 训练阶段。

	## 可选值

	| 阶段 | 说明 | 适用场景 |
	|------|------|----------|
	| `pt` | 预训练(Pre-training) | 从头训练模型 |
	| `sft` | 有监督微调(Supervised Fine-tuning) | 指令微调、领域适配 |
	| `dpo` | 直接偏好优化(Direct Preference Optimization) | 对齐优化、偏好学习 |

	## 使用建议
	大多数微调场景使用 `sft` 阶段。
	 (Optional) */
	Stage string `json:"stage"`

	/* 微调方法。

	## 可选值

	| 方法 | 说明 | 特点 |
	|------|------|------|
	| `lora` | 低秩适配 | 参数量少、训练快、效果好 |
	| `full` | 全量微调 | 效果最佳、资源消耗大 |

	## 选择建议
	- 大多数场景推荐使用 `lora`
	- 追求最佳效果且有充足资源时使用 `full`
	 (Optional) */
	FinetuningType string `json:"finetuningType"`

	/* 微调运行额外配置参数。

	包含具体的训练参数配置信息。
	 (Optional) */
	RunConfigExtras []RunConfigExtraInfoForExperiment `json:"runConfigExtras"`
}

type FinetuningConfigParamForDistill

type FinetuningConfigParamForDistill struct {

	/* 训练阶段。

	## 可选值

	| 阶段 | 说明 | 蒸馏场景使用 |
	|------|------|--------------|
	| `pt` | 预训练 | 不常用 |
	| `sft` | 有监督微调 | 常用 |
	| `dpo` | 直接偏好优化 | 特定场景 |

	## 建议
	蒸馏场景通常使用 `sft` 阶段。
	 (Optional) */
	Stage string `json:"stage"`

	/* 微调方法。

	## 可选值

	| 方法 | 说明 | 特点 |
	|------|------|------|
	| `lora` | 低秩适配 | 参数量少、训练快 |
	| `full` | 全量微调 | 效果最佳、资源消耗大 |

	## 建议
	蒸馏场景推荐使用 `lora` 方法。
	 (Optional) */
	FinetuningType string `json:"finetuningType"`

	/* 微调运行额外配置参数。

	## 常见参数
	- `learning_rate`:学习率
	- `batch_size`:批次大小
	- `num_train_epochs`:训练轮数
	 (Optional) */
	RunConfigExtras []RunConfigExtraParamForDistill `json:"runConfigExtras"`
}

type FinetuningConfigParamForExperiment

type FinetuningConfigParamForExperiment struct {

	/* 训练阶段。

	## 可选值
	- `pt`:预训练
	- `sft`:有监督微调
	- `dpo`:直接偏好优化

	## 默认
	建议使用 `sft` 进行微调。
	 (Optional) */
	Stage *string `json:"stage"`

	/* 微调方法。

	## 可选值
	- `lora`:低秩适配,推荐使用
	- `full`:全量微调

	## 建议
	`lora` 方法在保持效果的同时大幅降低资源消耗。
	 (Optional) */
	FinetuningType *string `json:"finetuningType"`

	/* 微调运行额外配置参数。

	用于自定义训练参数,如学习率、批次大小等。
	 (Optional) */
	RunConfigExtras []RunConfigExtraParamForExperiment `json:"runConfigExtras"`
}

type FinetuningDetailInfoForDistill

type FinetuningDetailInfoForDistill struct {

	/* 微调ID。

	## 格式
	以 `run-` 为前缀。

	## 用途
	用于查询状态、获取结果等操作的标识。
	 (Optional) */
	FinetuningId string `json:"finetuningId"`

	/* 微调的状态。

	## 状态说明

	| 状态 | 说明 |
	|------|------|
	| `queuing` | 排队中,等待资源调度 |
	| `pending` | 启动中,正在创建资源 |
	| `failed` | 失败,任务执行失败 |
	| `running` | 运行中,任务正在执行 |
	| `stopping` | 停止中,正在停止任务 |
	| `stopped` | 停止,任务已被停止 |
	| `success` | 成功,任务执行完成 |
	| `deleting` | 删除中,正在删除任务 |
	 (Optional) */
	State string `json:"state"`

	/* 关联的 Pod 资源列表。

	包含运行中的 Pod 信息,可用于监控和调试。
	 (Optional) */
	Pods []PodInfoForDistill `json:"pods"`

	/* 队列ID。

	## 格式
	示例:`queue-2xxx**********2d*********8b8`

	## 公共资源池
	使用公共资源池时为:`joybuilder-public-queue`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 实际使用的队列ID。

	## 说明
	当 `queueId` 是公共队列时,此字段表示底层实际使用的队列ID。

	## 用途
	用于资源追踪和问题排查。
	 (Optional) */
	RealPublicQueueId string `json:"realPublicQueueId"`

	/* 微调的输入 token 总数。

	## 用途
	- 训练规模统计
	- 成本计算依据
	- 性能分析参考
	 (Optional) */
	Tokens int `json:"tokens"`

	/* 主账号Pin。

	资源所属主账号的用户标识。
	 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。

	创建该微调的用户或系统。
	 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。
	(Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。
	(Optional) */
	UpdateTime string `json:"updateTime"`
}

type FinetuningParamForDistill

type FinetuningParamForDistill struct {

	/* 基础模型可见性。

	## 可选值
	- `public`:公共模型,平台提供的预训练模型

	## 说明
	蒸馏场景通常使用公共模型作为学生模型。
	*/
	BaseModelVisibility string `json:"baseModelVisibility"`

	/* 基础模型ID。

	## 格式
	以 `model-` 为前缀。

	## 示例
	`model-wsxxxxxx1f`

	## 说明
	选择合适的基础模型对学生模型效果至关重要。
	*/
	BaseModelId string `json:"baseModelId"`

	/* 基础模型版本。

	## 格式
	版本号格式,如 `v1`。

	## 建议
	使用最新稳定版本。
	*/
	BaseModelVersion string `json:"baseModelVersion"`

	/* 微调配置参数。

	包含训练阶段、微调方法、训练参数等配置。
	*/
	FinetuningConfig FinetuningConfigParamForDistill `json:"finetuningConfig"`

	/* 数据集配置。

	蒸馏生成的训练数据存储位置。
	*/
	Dataset StorageSpaceParamForDistill `json:"dataset"`

	/* 资源配置信息。

	训练所需的计算资源配置。
	*/
	Resource ResourceParamForDistill `json:"resource"`

	/* 存储空间配置。

	用于保存训练后的模型和报告等数据。
	*/
	StorageSpace StorageSpaceParamForDistill `json:"storageSpace"`
}

type Flavor

type Flavor struct {

	/* 设备模型 (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* GPU 数量 (Optional) */
	Gpu int `json:"gpu"`

	/* vGPU 数量 (Optional) */
	Vgpu int `json:"vgpu"`

	/* 每个 vGPU 的比例 (Optional) */
	RatioPerVGpu float32 `json:"ratioPerVGpu"`

	/* 每个 vGPU 的内存 (Optional) */
	MemoryPerVGpu float32 `json:"memoryPerVGpu"`
}

type FragmentStatistics

type FragmentStatistics struct {

	/* 剩余资源,算力或者卡数 (Optional) */
	Key string `json:"key"`

	/* 数量 (Optional) */
	Value int `json:"value"`
}

type FragmentStatsDetail

type FragmentStatsDetail struct {

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 所属集群名称 (Optional) */
	Cluster string `json:"cluster"`

	/* 调度状态,enable/disable (Optional) */
	SchedulingStatus string `json:"schedulingStatus"`

	/* 就绪状态,ready/other (Optional) */
	ReadyStatus string `json:"readyStatus"`

	/* 显卡型号 (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* 显卡总数量 (Optional) */
	TotalDevice int `json:"totalDevice"`

	/* 显卡空闲数量 (Optional) */
	IdleDevice int `json:"idleDevice"`

	/* 显卡使用中数量 (Optional) */
	UsedDevice int `json:"usedDevice"`

	/* 显卡故障数量 (Optional) */
	FaultDevice int `json:"faultDevice"`

	/* CPU空闲数量 (Optional) */
	IdleCpu int `json:"idleCpu"`

	/* 内存空闲数量 (Optional) */
	IdleNMemory int `json:"idleNMemory"`
}

type FragmentStatsResult

type FragmentStatsResult struct {

	/* 返回码,0表示成功,其他表示失败 (Optional) */
	Code int `json:"code"`

	/* 返回消息,成功返回"success",其他返回具体错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 节点池概览信息列表 (Optional) */
	Data []FragmentStatsDetail `json:"data"`
}

type GPUResourceFloat

type GPUResourceFloat struct {

	/*  (Optional) */
	Gpu float32 `json:"gpu"`

	/*  (Optional) */
	Ratio float32 `json:"ratio"`

	/*  (Optional) */
	Memory float32 `json:"memory"`

	/*  (Optional) */
	Cpu float32 `json:"cpu"`

	/*  (Optional) */
	Nmemory float32 `json:"nmemory"`
}

type GetLiveMigrateTaskOutput

type GetLiveMigrateTaskOutput struct {

	/* 状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/*  (Optional) */
	Task LiveMigrateTask `json:"task"`
}

type Gpu

type Gpu struct {

	/* gpu数量 单位:核 (Optional) */
	GpuNumber float32 `json:"gpuNumber"`

	/* gpu显存大小 单位:GiB (Optional) */
	GmemoryGiB float32 `json:"gmemoryGiB"`

	/* GPU型号 (Optional) */
	DeviceModel string `json:"deviceModel"`
}

type GpuInfo

type GpuInfo struct {

	/* GPU卡类型。示例:NVIDIA_G2 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`
}

type GpuQuota

type GpuQuota struct {

	/* 卡类型 (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* 物理GPU (Optional) */
	Gpu Quota `json:"gpu"`

	/* 虚化GPU (Optional) */
	Vgpu Quota `json:"vgpu"`

	/* 对应类型卡的显存大小(MiB) (Optional) */
	DeviceMemory int64 `json:"deviceMemory"`
}

type HealthCheck

type HealthCheck struct {

	/* 探针类型,startup, readiness, liveness (Optional) */
	ProbeType *string `json:"probeType"`

	/* 探测方法,httpget, tcpsocket, exec (Optional) */
	ProbeMethod *string `json:"probeMethod"`

	/* 探测路径, 仅用于probeMethod为httpget的情况, 如: http://localhost/ (Optional) */
	ProbeUrl *string `json:"probeUrl"`

	/* 监听地址,适用于probeMethod为httpget和tcpsocket的情况 (Optional) */
	ProbePort *int `json:"probePort"`

	/* 运行命令,近适用于probeMethod为exec的情况 (Optional) */
	Command *string `json:"command"`

	/* 初始化检查延时时长, 单位为秒 (Optional) */
	InitialDelay *int `json:"initialDelay"`

	/* 轮询检查时间间隔,单位为秒 (Optional) */
	Period *int `json:"period"`

	/* 健康检查超时时间,单位为秒 (Optional) */
	Timeout *int `json:"timeout"`

	/* 检测成功认定次数 (Optional) */
	SuccessThreshold *int `json:"successThreshold"`

	/* 检测失败认定次数 (Optional) */
	FailureThreshold *int `json:"failureThreshold"`
}

type HealthCheckPolicyInfoForJob

type HealthCheckPolicyInfoForJob struct {

	/* 是否启用算力健康检测。默认:0,可选值:[0 表示禁用,1 表示启用]。 (Optional) */
	Enable int `json:"enable"`

	/* 算力健康检测超时时间,单位:秒。默认:1800。可选范围:1200 ~ 7200。 (Optional) */
	TimeoutSeconds int `json:"timeoutSeconds"`

	/* 算力健康检测超时处理策略。默认值:`task_exit`。可选值如下:
	- `task_exit`: 算力健康检测不通过。
	- `task_running`: 跳过检测,任务继续运行。
	 (Optional) */
	TimeoutAction string `json:"timeoutAction"`
}

type HealthCheckPolicyParamForJob

type HealthCheckPolicyParamForJob struct {

	/* 是否启用算力健康检测。

	**可选值:**
	- `0`:禁用健康检测
	- `1`:启用健康检测

	**默认值:** `0`(禁用)

	**建议:** 长时间训练任务建议启用
	 (Optional) */
	Enable *int `json:"enable"`

	/* 算力健康检测超时时间,超过此时间未完成检测将触发超时策略。

	**单位:** 秒

	**默认值:** 1800(30分钟)

	**取值范围:** 1200 ~ 7200(20分钟 ~ 2小时)
	 (Optional) */
	TimeoutSeconds *int `json:"timeoutSeconds"`

	/* 算力健康检测超时时的处理策略。

	**可选值:**
	- `task_exit`:终止任务,标记为健康检测不通过
	- `task_running`:跳过检测,任务继续运行

	**默认值:** `task_exit`

	**使用建议:**
	- 重要任务:使用 `task_running`,避免意外中断
	- 可恢复任务:使用 `task_exit`,快速发现问题
	 (Optional) */
	TimeoutAction *string `json:"timeoutAction"`
}

type ImageInfo

type ImageInfo struct {

	/* 镜像 iD (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像名称 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像用途,可选值:
	- notebook 开发
	- training 训练,
	- inference 推理
	 (Optional) */
	ImageUsage string `json:"imageUsage"`

	/* 镜像类型:cpu,gpu (Optional) */
	ImageType string `json:"imageType"`

	/* 镜像地址 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 注册方式,可选值:
	- jcr 容器镜像仓库注册
	- dockerfile Dockerfile方式构建
	- notebook:notebook方式构建
	- base-image 基于基础镜像构建
	 (Optional) */
	SourceType string `json:"sourceType"`

	/* 标签,使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 标签,labels转换的数组格式。 (Optional) */
	LabelList []string `json:"labelList"`

	/* 标签对象(公共镜像使用) (Optional) */
	LabelsObject ImageLabelsObject `json:"labelsObject"`

	/* 镜像启动命令。 (Optional) */
	Command string `json:"command"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 状态,可选值:
	- queuing 排队中
	- pending 启动中
	- running 构建中
	- success 注册成功
	- failed 构建失败
	- deleting 删除中
	- deleted 已删除
	 (Optional) */
	Status string `json:"status"`

	/* 基础镜像。 (Optional) */
	BaseImage string `json:"baseImage"`

	/* dockerfile文件内容 (Optional) */
	Dockerfile string `json:"dockerfile"`

	/* 队列ID。 (Optional) */
	QueueId string `json:"queueId"`

	/* pod名 (Optional) */
	PodName string `json:"podName"`

	/* pod失败说明 (Optional) */
	Reason string `json:"reason"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`
}

type ImageLabelsObject

type ImageLabelsObject struct {

	/* 训练任务关注 (Optional) */
	Jobtype []string `json:"jobtype"`

	/* 在线服务自定义部署-协议 (Optional) */
	Protocol []string `json:"protocol"`

	/* 在线服务-分布式, 有值代表支持分布式 (Optional) */
	Distributed []string `json:"distributed"`
}

type ImageSpec

type ImageSpec struct {

	/* 镜像名称,用于注册到我的镜像仓库。

	## 命名规则
	- 长度:1~128字符
	- 支持字符:小写字母、数字、英文中划线"-"、英文下划线"_"、点"."
	- 必须以字母开头
	- 示例:my-notebook-image-v1
	*/
	ImgName string `json:"imgName"`

	/* 镜像用途,指定镜像可用于哪些场景。

	## 支持的用途
	- training: 训练任务
	- notebook: Notebook开发环境
	- inference: 推理服务
	- simulation: 具身仿真
	- 可多选
	*/
	ImgUsage []string `json:"imgUsage"`

	/* 镜像架构类型,指定镜像支持的硬件架构。

	## 支持的架构
	- cpu: CPU镜像
	- gpu: GPU镜像
	*/
	ImgArch string `json:"imgArch"`

	/* 镜像标签,用于分类管理镜像。

	## 使用说明
	- 多个标签用逗号分隔
	- 不超过128字符
	- 示例:pytorch,python3.9,ai
	 (Optional) */
	ImgLabels *string `json:"imgLabels"`

	/* 目标镜像仓库注册表。
	 */
	ImageRegistry string `json:"imageRegistry"`

	/* 目标镜像名称,在镜像仓库中的名称。

	## 命名规则
	- 通常包含命名空间
	- 示例:myproject/notebook-image
	*/
	ImageName string `json:"imageName"`

	/* 目标镜像Tag,用于区分同一镜像的不同版本。

	## 命名规则
	- 仅支持小写字母、数字、英文中划线"-"、英文下划线"_"、点"."
	- 示例:v1.0.0, latest, 20230601
	*/
	ImageTag string `json:"imageTag"`

	/* 注册到资产中的镜像归属权限。

	## 权限类型
	- public: 公开,所有用户可使用
	- private: 私有,仅自己可使用
	- 默认为public
	 (Optional) */
	Permission *string `json:"permission"`
}

type ImageTask

type ImageTask struct {

	/* 主账号,任务所属的主账号标识。 (Optional) */
	Pin string `json:"pin"`

	/* Notebook实例ID,关联的Notebook标识。 (Optional) */
	NotebookId string `json:"notebookId"`

	/* 任务ID,镜像保存任务的唯一标识。

	## 使用说明
	- 用于查询任务状态和日志
	- 用于删除任务记录
	 (Optional) */
	TaskId string `json:"taskId"`

	/* 镜像ID,构建成功后注册到个人资产中的镜像标识。

	## 使用说明
	- 仅success状态时有值
	- 用于后续创建Notebook时指定镜像
	 (Optional) */
	ImgId string `json:"imgId"`

	/* 镜像名称,注册到镜像仓库的名称。 (Optional) */
	ImgName string `json:"imgName"`

	/* 镜像用途,镜像适用的场景列表。

	## 支持的用途
	- training: 训练任务
	- notebook: Notebook开发环境
	- inference: 推理服务
	 (Optional) */
	ImgUsage []string `json:"imgUsage"`

	/* 镜像架构类型,镜像支持的硬件架构。

	## 支持的架构
	- cpu: CPU镜像
	- gpu: GPU镜像
	 (Optional) */
	ImgArch string `json:"imgArch"`

	/* 镜像标签,用于分类管理镜像。

	## 使用说明
	- 多个标签用逗号分隔
	- 示例:pytorch,python3.9
	 (Optional) */
	ImgLabels string `json:"imgLabels"`

	/* 目标镜像仓库地址,镜像推送的目标。 (Optional) */
	ImageRegistry string `json:"imageRegistry"`

	/* 目标镜像名称,在镜像仓库中的完整名称。 (Optional) */
	ImageName string `json:"imageName"`

	/* 目标镜像Tag,镜像版本标签。 (Optional) */
	ImageTag string `json:"imageTag"`

	/* 任务状态,镜像保存任务的当前状态。

	## 状态值
	- pending: 等待执行
	- running: 正在执行
	- success: 执行成功
	- failed: 执行失败
	 (Optional) */
	State string `json:"state"`

	/* 任务描述,任务的详细信息或错误原因。

	## 使用说明
	- success状态时描述成功信息
	- failed状态时描述失败原因
	 (Optional) */
	Message string `json:"message"`

	/* 注册到资产中的镜像归属权限。

	## 权限类型
	- public: 公开,所有用户可使用
	- private: 私有,仅自己可使用
	 (Optional) */
	Permission string `json:"permission"`

	/* 创建用户pin,创建任务的用户标识。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 创建用户名称,创建任务的用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新用户pin,最后更新任务的用户标识。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 更新用户名称,最后更新任务的用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 创建时间,任务创建的时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,任务最近一次更新的时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type Inference

type Inference struct {

	/* 部署方式(自定义,或者大语言模型) (Optional) */
	DeployType string `json:"deployType"`

	/* 推理服务限流阈值(QPS) (Optional) */
	Qps int `json:"qps"`

	/* 推理服务元数据(如:名字,ID等) (Optional) */
	Metadata Metadata `json:"metadata"`

	/* 推理服务加载的模型信息(如:模型名字,存放地址,挂载路径) (Optional) */
	Models []Model `json:"models"`

	/* 推理服务所需资源(如:CPU, 内存等) (Optional) */
	Resource Resource `json:"resource"`

	/* 推理服务运行环境(如:镜像,命令行,环境变量等) (Optional) */
	Runtime Runtime `json:"runtime"`

	/* 多角色部署配置 (Optional) */
	RoleSet RoleSet `json:"roleSet"`

	/* 用户标签 (Optional) */
	UserTags []UserTag `json:"userTags"`

	/* 资源组信息 (Optional) */
	ResourceGroupInfo ResourceGroupInfo `json:"resourceGroupInfo"`
}

type InferenceAffinity

type InferenceAffinity struct {

	/* 节点上的pod均衡度,最小为1,值越大容许的节点上pod数量差别越大 (Optional) */
	MaxSkew *int `json:"maxSkew"`

	/* 是否开启节点标签调度 (Optional) */
	EnableNodeLabels *bool `json:"enableNodeLabels"`

	/* 节点亲和性配置,支持配置多个,每个元素之间是或的关系。  */
	NodeLabels []InferenceNodeLabels `json:"nodeLabels"`
}

type InferenceBatchOp

type InferenceBatchOp struct {

	/* 操作类型,START 启动, STOP 停止,DELETE 删除 (Optional) */
	Operation string `json:"operation"`

	/* 推理任务id列表 (Optional) */
	InferenceIds []string `json:"inferenceIds"`
}

type InferenceData

type InferenceData struct {

	/* 推理服务版本ID (Optional) */
	InferenceId string `json:"inferenceId"`

	/* 流量占比 (Optional) */
	TrafficPercent int `json:"trafficPercent"`

	/* 服务状态 (Optional) */
	Status string `json:"status"`

	/* 部署方式(自定义,或者大语言模型) (Optional) */
	DeployType string `json:"deployType"`

	/* 推理服务资源所在队列ID (Optional) */
	QueueId string `json:"queueId"`

	/* 推理服务限流阈值(QPS) (Optional) */
	Qps int `json:"qps"`

	/* 推理服务相关信息(地址,token等) (Optional) */
	Service ServiceInfo `json:"service"`

	/* 推理服务元数据(如:名字,ID等) (Optional) */
	Metadata Metadata `json:"metadata"`

	/* 推理服务加载的模型信息(如:模型名字,存放地址,挂载路径) (Optional) */
	Models []Model `json:"models"`

	/* 推理服务挂载代码 (Optional) */
	Codes []Code `json:"codes"`

	/* 推理服务所需资源(如:CPU, 内存等) (Optional) */
	Resource Resource `json:"resource"`

	/* 推理服务运行环境(如:镜像,命令行,环境变量等) (Optional) */
	Runtime Runtime `json:"runtime"`

	/* 多角色部署配置 (Optional) */
	RoleSet RoleSet `json:"roleSet"`

	/* 该推理服务当前运行的pod数量 (Optional) */
	RunningPods int `json:"runningPods"`

	/* 该推理服务当前总的pod数量 (Optional) */
	TotalPods int `json:"totalPods"`

	/* 该推理服务当前异常pod数量 (Optional) */
	FailedPods int `json:"failedPods"`

	/* 资源在集群中的空闲状态,值为空表示是空闲的,in-use表示资源已被占用。 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 用户标签 (Optional) */
	UserTags []UserTag `json:"userTags"`

	/* 调度优先级 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 资源组信息 (Optional) */
	ResourceGroupInfo ResourceGroupInfo `json:"resourceGroupInfo"`
}

type InferenceDedicatedGatewaySpec

type InferenceDedicatedGatewaySpec struct {

	/* 专属网关实例数, 大于等于1,默认为2, 为安全起见,建议最少为2 (Optional) */
	Replicas int `json:"replicas"`

	/* 专属网关单个实例所需cpu资源,单位豪核 如: 1000是一核 (Optional) */
	Cpu int `json:"cpu"`

	/* 专属网关单个实例所需内存资源,单位M, 如: 1024是1G (Optional) */
	Memory int `json:"memory"`

	/* 是否仅内网可用;`true` 表示只提供内网地址 (Optional) */
	Internal bool `json:"internal"`

	/* 专属网关所属vpc (Optional) */
	Vpc Vpc `json:"vpc"`

	/* 子网信息  */
	Subnet Subnet `json:"subnet"`

	/* 公网信息 (Optional) */
	ElasticIp ElasticIp `json:"elasticIp"`

	/* 可用区集合(逗号分隔)  */
	Azs []Az `json:"azs"`

	/* 自建LB保留策略,默认 `false`;为 `true` 时在删除网关时仅删除LB下配置,保留LB及公网IP(仅对自建LB生效) (Optional) */
	Retain bool `json:"retain"`

	/* EIP 回收策略,`delete|retain`,默认 `delete`;当未指定 `elasticIpId` 且创建公网 EIP 时生效 (Optional) */
	ReclaimPolicy string `json:"reclaimPolicy"`

	/* 是否开启专属网关限流 (Optional) */
	EnableLimit bool `json:"enableLimit"`

	/* 限流qps值 (Optional) */
	Qps int `json:"qps"`
}

type InferenceLocalStorage

type InferenceLocalStorage struct {

	/* 本地存储大小,单位是Gi (Optional) */
	Size *int `json:"size"`

	/* 容器内挂载点, 如:/mnt/data (Optional) */
	MountPath *string `json:"mountPath"`
}

type InferenceNodeLabels

type InferenceNodeLabels struct {

	/* 亲和性Key。  */
	Key string `json:"key"`

	/* 亲和性Values列表。  */
	Values []string `json:"values"`
}

type InferenceScaleSpec

type InferenceScaleSpec struct {

	/* scale type, auto:for autoScale, cron:for cronScale, none:no scale configured (Optional) */
	ScaleType *string `json:"scaleType"`

	/* 弹性伸缩参数 (Optional) */
	AutoScale *AutoScale `json:"autoScale"`

	/* 定时伸缩规则列表 (Optional) */
	CronScale []CronScale `json:"cronScale"`
}

type InferenceSpec

type InferenceSpec struct {

	/* 推理服务限流阈值(QPS) (Optional) */
	Qps *int `json:"qps"`

	/* 开启 true 关闭 false  */
	EnableLimit bool `json:"enableLimit"`

	/* 部署方式(自定义,或者大语言模型) (Optional) */
	DeployType *string `json:"deployType"`

	/* 推理服务元数据(如:名字,ID等)  */
	Metadata *Metadata `json:"metadata"`

	/* 推理服务加载的模型信息(如:模型名字,存放地址,挂载路径)  */
	Models []Model `json:"models"`

	/* 推理服务所需资源(如:CPU, 内存等)  */
	Resource *Resource `json:"resource"`

	/* 推理服务运行环境(如:镜像,命令行,环境变量等)  */
	Runtime *Runtime `json:"runtime"`

	/* 多角色部署配置 (Optional) */
	RoleSet *RoleSet `json:"roleSet"`

	/* 调度优先级,非必填,默认使用系统优先级:normal-priority(10000) (Optional) */
	SchedulePriority *SchedulePriority `json:"schedulePriority"`
}

type InferenceStateCount

type InferenceStateCount struct {

	/* 状态名称(queuing,deploying,failed,running,stopping,scaling,stopped,deleting)。 (Optional) */
	Name string `json:"name"`

	/* 数量 (Optional) */
	Value int `json:"value"`
}

type InstanceInfoForJobList

type InstanceInfoForJobList struct {

	/* 全部实例数量。 (Optional) */
	Total int `json:"total"`

	/* 运行中的实例数量。

	**正常情况:** 应等于 `total`
	 (Optional) */
	Running int `json:"running"`

	/* 异常实例数量。

	**说明:** 大于 0 时需要关注,可能存在节点故障
	 (Optional) */
	Failed int `json:"failed"`
}

type InstanceListInfoForJob

type InstanceListInfoForJob struct {

	/* 实例名称,对应 Kubernetes Pod 名称。
	(Optional) */
	Name string `json:"name"`

	/* 实例类型/角色。

	**PyTorch 任务:** `Master`, `Worker`

	**Ray 任务:** `Head`, `Worker`, `Worker-{name}`
	 (Optional) */
	Type string `json:"type"`

	/* 实例 IP 地址(Pod IP)。

	**说明:** 集群内部 IP,用于实例间通信
	 (Optional) */
	Ip string `json:"ip"`

	/* 物理节点 IP 地址。

	**说明:**
	- 仅专属队列返回
	- 公共资源池队列返回空值
	 (Optional) */
	NodeIp string `json:"nodeIp"`

	/* 实例的状态。

	**状态说明:**
	- `scheduling`:调度中,正在等待调度到计算节点
	- `pending`:启动中,已调度,正在创建容器
	- `running`:运行中,实例正常运行中
	- `succeeded`:成功,训练正常完成
	- `failed`:失败,实例执行失败
	- `terminating`:终止中,正在终止实例
	- `unknown`:未知,状态无法获取
	 (Optional) */
	State string `json:"state"`

	/* 实例创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 实例启动时间(容器开始运行时间)。 (Optional) */
	StartTime string `json:"startTime"`

	/* 实例结束时间。 (Optional) */
	EndTime string `json:"endTime"`

	/* 实例运行时长,单位:秒。 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 终端访问地址,用于远程连接到实例。

	**说明:**
	- 仅运行中的实例可用
	- 支持 Web 终端或 SSH 连接
	 (Optional) */
	TerminalUrl string `json:"terminalUrl"`
}

type JobAffinitity

type JobAffinitity struct {

	/* 亲和性标签键,对应节点的标签名称。

	**常用标签键:**
	- `gpu-type`:GPU 型号
	- `rack`:机架
	- `zone`:可用区
	- `storage-type`:存储类型
	*/
	Key string `json:"key"`

	/* 亲和性标签值列表,多个值之间是 **或(OR)** 的关系。

	**说明:** 节点标签值匹配其中任意一个即满足条件
	 */
	Values []string `json:"values"`
}

type JobDetailInfoForJob

type JobDetailInfoForJob struct {

	/* 训练任务ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 训练任务名称。 (Optional) */
	Name string `json:"name"`

	/* 训练任务的状态。取值范围如下:
	`queuing`:`排队中`
	`pending`:`启动中`
	`failed`:`失败`
	`running`:`运行中`
	`stopping`:`停止中`
	`stopped`:`停止`
	`success`:`成功`
	`deleting`: `删除中`
	`rolling-back`:`回滚中`
	`rolled-back`:`已回滚`
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型。可选值如下:
	- `resource-failed`: 节点故障。
	- `task-failed`: 任务失败。
	- `environment-failed`: 算力健康检测不通过。
	- `task-hang`: 任务卡住。
	- `process-inspection-failed`: 进程巡检失败。
	 (Optional) */
	FailureType string `json:"failureType"`

	/* 训练任务失败原因。详细描述失败原因信息。
	(Optional) */
	FailureReason string `json:"failureReason"`

	/* 重启次数。 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 任务类型。 (Optional) */
	JobType string `json:"jobType"`

	/* 持续时间,单位为秒。 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 训练任务的描述信息。 (Optional) */
	Description string `json:"description"`

	/* 镜像可见性。可选值:[public, private]。 (Optional) */
	ImageVisibility string `json:"imageVisibility"`

	/* 镜像ID。示例:img-11******us。 (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像名称,此镜像名称指的是创建训练任务的时候此镜像ID对应的名称。 (Optional) */
	ImageNameSnapshot string `json:"imageNameSnapshot"`

	/* 镜像地址,此镜像地址指的是创建训练任务的时候此镜像ID对应的地址。 (Optional) */
	ImageUrlSnapshot string `json:"imageUrlSnapshot"`

	/* **启动命令。**
	(Optional) */
	Command string `json:"command"`

	/* **已废弃:** 请参考 `roleResource` 字段
	(Optional) */
	Replica int `json:"replica"`

	/* 环境变量。 (Optional) */
	Envs []EnvParamForJob `json:"envs"`

	/* **已废弃:** 请参考 `roleResource` 字段
	(Optional) */
	Resource ResourceParamForJob `json:"resource"`

	/* 存储空间配置列表。 (Optional) */
	StorageSpaces string `json:"storageSpaces"`

	/* 存储空间配置列表。 (Optional) */
	StorageSpacesObject []StorageSpaceDetailForJob `json:"storageSpacesObject"`

	/* 数据集。 (Optional) */
	Datasets []DatasetResultForJob `json:"datasets"`

	/* 模型。 (Optional) */
	Models []ModelResultForJob `json:"models"`

	/* 代码仓库配置列表。 (Optional) */
	Codes []CodeResultForJob `json:"codes"`

	/* 关联的pod资源列表 (Optional) */
	Pods []PodInfoForJob `json:"pods"`

	/* 计费信息,私有资源池的资源无计费信息。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 日志采集配置。 (Optional) */
	LogCollectConfig LogCollectConfigDetail `json:"logCollectConfig"`

	/* 角色配置信息。 (Optional) */
	RoleResource RoleResourceParamForJob `json:"roleResource"`

	/* 框架高级配置;json格式。 (Optional) */
	AdvancedConfig string `json:"advancedConfig"`

	/* 重启策略。 (Optional) */
	RestartPolicy RestartPolicyInfoForJob `json:"restartPolicy"`

	/* 算力健康检测策略。 (Optional) */
	HealthCheckPolicy HealthCheckPolicyInfoForJob `json:"healthCheckPolicy"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`

	/* 节点亲和性配置。 (Optional) */
	NodeAffinities JobNodeAffinity `json:"nodeAffinities"`

	/* 资源组ID。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表。 (Optional) */
	UserTags []JobTag `json:"userTags"`

	/* 调度优先级 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 主账号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type JobListInfoForJob

type JobListInfoForJob struct {

	/* 训练任务ID,唯一标识一个训练任务。
	**示例:** `job-abc123def456`
	 (Optional) */
	JobId string `json:"jobId"`

	/* 训练任务名称。 (Optional) */
	Name string `json:"name"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 训练任务的状态。

	**状态说明:**
	- `queuing`:排队中,任务已提交,等待资源分配
	- `pending`:启动中,资源已分配,正在创建 Pod
	- `running`:运行中,训练任务正在执行
	- `success`:成功,训练任务正常完成
	- `failed`:失败,训练任务执行失败
	- `stopping`:停止中,正在执行停止操作
	- `stopped`:已停止,任务已被手动停止
	- `deleting`:删除中,正在执行删除操作
	- `rolling-back`:回滚中,正在执行回滚操作
	- `rolled-back`:已回滚,回滚操作完成
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型,仅在状态为 `failed` 时有值。

	**可选值:**
	- `resource-failed`:节点故障
	- `task-failed`:任务失败
	- `environment-failed`:算力健康检测不通过
	- `task-hang`:任务卡住
	- `process-inspection-failed`:进程巡检失败
	 (Optional) */
	FailureType string `json:"failureType"`

	/* 训练任务失败原因的详细描述。
	(Optional) */
	FailureReason string `json:"failureReason"`

	/* 重启次数,记录任务因异常而自动重启的次数。

	**说明:** 仅当启用了重启策略时才会增加
	 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 训练框架类型。

	**可选值:** `pytorch`, `ray`
	 (Optional) */
	JobType string `json:"jobType"`

	/* 任务运行时长,单位:秒。

	**说明:** 从任务开始运行到当前或结束的时间
	 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 计费信息。

	**说明:** 私有资源池的资源无计费信息
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* **已废弃:** 请参考 `roleResource` 字段
	(Optional) */
	Replica int `json:"replica"`

	/* 队列ID。
	(Optional) */
	QueueId string `json:"queueId"`

	/* 公共资源池的规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格描述。 (Optional) */
	FlavorInfo interface{} `json:"flavorInfo"`

	/* GPU 卡类型。 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数。 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小(毫核)。 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小(MiB)。 (Optional) */
	MemoryMiB int `json:"memoryMiB"`

	/* 训练实例角色配置信息。
	(Optional) */
	RoleResource RoleResourceInfoForJobList `json:"roleResource"`

	/* 实例状态统计信息。

	包含总实例数、运行中实例数、异常实例数等。
	 (Optional) */
	InstanceInfo InstanceInfoForJobList `json:"instanceInfo"`

	/* 资源在集群中的空闲状态。

	**可选值:**
	- 空值:资源空闲
	- `in-use`:资源已被占用
	 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间中的资源归属权限。

	**可选值:** `public`, `private`
	 (Optional) */
	Permission string `json:"permission"`

	/* 资源组ID。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表。 (Optional) */
	UserTags []JobTag `json:"userTags"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 归属用户 pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 主账号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type JobNodeAffinity

type JobNodeAffinity struct {

	/* 亲和性配置列表,多个配置项之间是 **且(AND)** 的关系。

	**示例:** 同时满足 GPU 型号和机架要求
	  {"affinities": [{"key": "gpu-type", "values": ["nvidia-a100"]}, {"key": "rack", "values": ["rack-1", "rack-2"]}]}
	*/
	Affinities []JobAffinitity `json:"affinities"`
}

type JobParam

type JobParam struct {

	/* 训练任务名称。

	**命名规则:**
	- 长度:1~32个字符
	- 支持字符:中文、大小写字母、数字、英文中划线 "-" 和英文下划线 "_"
	- 同一工作空间内名称不能重复

	**示例:**
	- `mnist-training-001`
	- `LLaMA预训练任务`
	*/
	Name string `json:"name"`

	/* 训练任务的描述信息。

	**限制:** 不超过256个字符

	**建议:** 简要说明训练目的、数据集、模型等关键信息
	 (Optional) */
	Description *string `json:"description"`

	/* 镜像可见性,决定镜像的使用权限范围。

	**可选值:**
	- `public`:公开镜像,平台预置镜像或用户公开的镜像,所有用户可使用
	- `private`:私有镜像,仅当前用户可使用
	*/
	ImageVisibility string `json:"imageVisibility"`

	/* 镜像ID,用于指定训练环境的基础镜像。

	**示例:** `img-9axxxxxxjh`
	 */
	ImageId string `json:"imageId"`

	/* 镜像完整地址,包含镜像仓库地址和标签。

	**格式:** `registry地址/命名空间/镜像名:标签`

	**示例:**
	- `registry.jdcloud.com/jdaip/pytorch:2.0-cuda11.8`
	- `registry.jdcloud.com/custom/my-training:v1.0`
	*/
	ImageUrl string `json:"imageUrl"`

	/* 训练任务类型,决定底层调度框架和资源管理方式。

	**可选值:**
	- `pytorch`:PyTorch 框架,适用于深度学习训练
	- `ray`:Ray 框架,适用于分布式计算、强化学习

	**注意:** 大小写敏感,必须使用小写
	*/
	JobType string `json:"jobType"`

	/* 启动命令,指定训练脚本的执行方式。

	**常用格式:**
	- Python 脚本:`python /mnt/ws/train.py [参数]`
	- Shell 脚本:`bash /mnt/ws/start.sh`
	- 分布式训练:`torchrun --nproc_per_node=4 /mnt/ws/train.py`

	**注意事项:**
	- 路径需与存储挂载路径对应
	- 支持传入命令行参数
	- 建议使用绝对路径

	**示例:**
	- 单机训练:`python /mnt/ws/train.py --epochs 100 --lr 0.001`
	- 分布式训练:`torchrun --nproc_per_node=4 /mnt/ws/distributed_train.py`
	- 使用环境变量:`python /mnt/ws/train.py --data_dir $DATA_DIR`
	*/
	Command string `json:"command"`

	/* **已废弃:** 请参考 `roleResource` 字段
	(Optional) */
	Replica *int `json:"replica"`

	/* 环境变量列表,用于向训练脚本传递配置参数。

	**使用场景:**
	- 传递训练参数(如学习率、批次大小)
	- 配置框架参数(如 CUDA 设置)
	- 传递敏感信息(如 API Key,建议使用密钥管理)

	**示例:**
	  [{"name": "CUDA_VISIBLE_DEVICES", "value": "0,1,2,3"},
	   {"name": "BATCH_SIZE", "value": "32"},
	   {"name": "LEARNING_RATE", "value": "0.001"}]
	 (Optional) */
	Envs []EnvParamForJob `json:"envs"`

	/* **已废弃:** 请使用 `roleResource` 字段,支持更灵活的角色资源配置
	(Optional) */
	Resource *ResourceParamForJob `json:"resource"`

	/* 存储空间配置列表,用于挂载外部存储到训练容器中。

	**支持的存储类型:**
	- `oss`:对象存储服务,适合大规模数据存储
	- `cfs`:云文件系统,提供高性能文件存储
	- `jpfs`:京东云并行文件系统,高并发场景优化

	**使用场景:**
	- 挂载训练数据目录
	- 挂载输出目录保存模型和日志
	- 挂载共享存储用于分布式训练
	 (Optional) */
	StorageSpaces []StorageSpaceParamForJob `json:"storageSpaces"`

	/* 数据集配置列表,用于挂载已创建的数据集到训练容器。

	**优势:**
	- 支持数据集版本管理
	- 支持公开/私有数据集
	- 自动处理存储挂载

	**使用场景:**
	- 挂载训练数据集
	- 挂载验证数据集
	- 挂载测试数据集
	 (Optional) */
	Datasets []DatasetParamForJob `json:"datasets"`

	/* 模型配置列表,用于挂载预训练模型或检查点文件。

	**使用场景:**
	- 加载预训练模型进行迁移学习
	- 加载检查点继续训练
	- 挂载基础模型进行微调
	 (Optional) */
	Models []ModelParamForJob `json:"models"`

	/* 角色资源配置信息,用于配置不同角色的节点资源。

	**适用场景:**
	- Ray 分布式训练(必须配置 Head 和 Worker)
	- PyTorch 分布式训练(可配置不同规格的 Worker)
	 (Optional) */
	RoleResource *RoleResourceParamForJob `json:"roleResource"`

	/* 框架高级配置,JSON 格式字符串。

	**适用框架:** 仅支持 Ray 框架

	**使用场景:**
	- 配置 Ray 集群环境变量
	- 自定义 NCCL、CUDA 等参数

	**示例:**
	  {"ray": {"env_vars": {"NCCL_DEBUG": "INFO", "NCCL_IB_DISABLE": "0", "NCCL_PROTO": "simple"}}}
	 (Optional) */
	AdvancedConfig *string `json:"advancedConfig"`

	/* 重启策略配置,定义任务异常时的自动重启行为。

	**默认行为:** 禁用自动重启

	**推荐场景:**
	- 长时间训练任务:建议启用,应对节点故障
	- 快速实验任务:可不启用,快速发现问题
	 (Optional) */
	RestartPolicy *RestartPolicyParamForJob `json:"restartPolicy"`

	/* 算力健康检测策略,用于检测GPU等算力资源是否正常。

	**检测内容:**
	- GPU 是否可用
	- GPU 驱动是否正常
	- CUDA 环境是否正常
	- 高速网络、网卡是否正常
	- 其他环境配置等

	**默认行为:** 禁用健康检测
	 (Optional) */
	HealthCheckPolicy *HealthCheckPolicyParamForJob `json:"healthCheckPolicy"`

	/* 工作空间中的资源归属权限。

	**可选值:**
	- `public`:公开资源,工作空间所有成员可见可操作
	- `private`:私有资源,仅创建者和空间管理员可见可操作

	**默认值:** `public`
	 (Optional) */
	Permission *string `json:"permission"`

	/* 节点亲和性配置,用于将任务调度到特定的计算节点。支持配置多个亲和性规则,每个元素之间是"或"的关系。

	**使用场景:**
	- 指定特定 GPU 型号的节点
	- 指定特定机架或可用区的节点
	- 避免调度到特定节点

	**注意:** 配置不当可能导致任务无法调度
	 (Optional) */
	NodeAffinities []JobNodeAffinity `json:"nodeAffinities"`

	/* 代码仓库配置列表,用于从代码仓库拉取训练代码。

	**支持的代码仓库:**
	- Git 仓库
	- GitHub
	- GitLab

	**使用场景:**
	- 自动拉取最新代码
	- 指定代码分支或CommitID
	- 代码版本管理
	 (Optional) */
	Codes []CodeParam `json:"codes"`

	/* 用户自定义标签,用于资源分类和筛选。

	**限制:**
	- 最多支持 10 个标签
	- key 不能以 `jrn:` 或 `jdc-` 开头
	- key 支持中文、大小写英文、数字及符号:`\_.,:\/=+-@`

	**使用场景:**
	- 标记项目或团队
	- 成本分账
	- 资源分类管理
	 (Optional) */
	UserTags []JobTag `json:"userTags"`

	/* 资源组ID,用于将任务归属到特定的资源组进行管理。

	**使用场景:**
	- 按项目隔离资源
	- 按团队分配资源配额
	- 资源使用统计和计费
	 (Optional) */
	ResourceGroupId *string `json:"resourceGroupId"`

	/* 调度优先级配置。

	**系统预置优先级:**
	- `high-priority`:优先级值 20000,高优先级
	- `normal-priority`:优先级值 10000,普通优先级(默认)
	- `low-priority`:优先级值 5000,低优先级

	**注意:** 提高优先级可能影响其他任务的调度
	 (Optional) */
	SchedulePriority *SchedulePriority `json:"schedulePriority"`
}

type JobResourceMetadata

type JobResourceMetadata struct {

	/* 训练任务ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 资源元数据。 (Optional) */
	PodResourceMetadata []PodResourceMetadataForJob `json:"podResourceMetadata"`
}

type JobTag

type JobTag struct {

	/* 标签键。

	**命名规范:**
	- 长度:1~63 个字符
	- 不能以 `jrn:` 或 `jdc-` 开头
	- 支持中文、大小写英文、数字及符号:`\_.,:\/=+-@`
	*/
	Key string `json:"key"`

	/* 标签值。

	**命名规范:**
	- 长度:0~63 个字符
	- 支持中文、大小写英文、数字及符号:`\_.,:\/=+-@`
	*/
	Value string `json:"value"`
}

type JobTagFilter

type JobTagFilter struct {

	/* 标签键,要匹配的标签名称。

	**示例:** `project`, `team`, `env`
	 */
	Key string `json:"key"`

	/* 标签值列表,多个值之间是 **或(OR)** 的关系。

	**示例:** `["llm-training", "cv-training"]`
	 */
	Values []string `json:"values"`
}

type JpfsDetailForJob

type JpfsDetailForJob struct {

	/* jpfs ID。示例:fs-11******us。 (Optional) */
	Id string `json:"id"`

	/* jpfs 源路径。示例:/data/d1。 (Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置。示例:/mnt/ws/jpfs-1。
	建议挂载到/mnt/开头的路径下,不支持挂载到系统目录。
	不支持的系统目录如下:`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`。
	 (Optional) */
	MountPath string `json:"mountPath"`
}

type JpfsParamForDistill

type JpfsParamForDistill struct {

	/* JPFS 文件系统ID。

	## 格式
	以 `fs-` 为前缀。

	## 示例
	`fs-11******us`
	 (Optional) */
	Id string `json:"id"`

	/* JPFS 源路径。

	## 示例
	`/data/d1`
	 (Optional) */
	SourcePath string `json:"sourcePath"`
}

type JpfsParamForExperiment

type JpfsParamForExperiment struct {

	/* JPFS 文件系统ID。

	## 格式
	以 `fs-` 为前缀。

	## 示例
	`fs-11******us`
	 (Optional) */
	Id *string `json:"id"`

	/* JPFS 源路径。

	## 示例
	`/data/d1`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`
}

type JpfsParamForJob

type JpfsParamForJob struct {

	/* JPFS 文件系统 ID。

	**示例:** `fs-11******us`

	**获取方式:** 通过 JPFS 控制台或 API 创建并获取
	 (Optional) */
	Id *string `json:"id"`

	/* JPFS 源路径,指定要挂载的目录。

	**示例:**
	- 根目录:`/`
	- 数据目录:`/data/d1`
	- 模型目录:`/models`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`

	/* 挂载点配置,指定 JPFS 在容器内的挂载路径。

	**建议:** 挂载到 `/mnt/` 开头的路径下

	**示例:**
	- 高性能存储:`/mnt/jpfs`
	- 模型存储:`/mnt/models`

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	 (Optional) */
	MountPath *string `json:"mountPath"`
}

type LabelsObject

type LabelsObject struct {

	/* 精调实验计费项中的模型命名 (Optional) */
	FinetuneModelBillingItem []string `json:"finetuneModelBillingItem"`

	/* 精调实验关注(模型系列,如Llama系列-前端使用) (Optional) */
	FinetuneModelSeries []string `json:"finetuneModelSeries"`

	/* 精调实验关注(模型版本系列,如Llama2、Llama3-后端使用) (Optional) */
	FinetuneModelTemplate []string `json:"finetuneModelTemplate"`

	/* 支持平台任务类型 (Optional) */
	SupportTask []string `json:"supportTask"`

	/* 模型icon地址 (Optional) */
	Icon []string `json:"icon"`

	/* 其他关键词,可设置多个 (Optional) */
	Keyword []string `json:"keyword"`

	/* 模型参数 (Optional) */
	ParameterSize []string `json:"parameterSize"`

	/* 模型许可类型 (Optional) */
	License []string `json:"license"`

	/* 品牌/系列 (Optional) */
	Provider []string `json:"provider"`

	/* 场景,可设置多个 (Optional) */
	Scenario []string `json:"scenario"`
}

type LbSpec

type LbSpec struct {

	/* 负载均衡实例ID,需要在京东云负载均衡产品中预先创建。

	## 要求
	- 负载均衡需要与资源队列在同一VPC下
	- 支持四层(TCP)负载均衡
	*/
	LbId string `json:"lbId"`

	/* 监听端口,负载均衡监听此端口并转发到Notebook。

	## 端口范围
	- 1-65534
	- 需要指定一个未被占用的空闲可用端口
	- 建议使用1024以上端口
	*/
	LbPort int `json:"lbPort"`

	/* 负载均衡类型。

	## 支持类型
	- 内网LB: 仅内网访问
	- 外网LB: 公网访问
	 (Optional) */
	LbType *string `json:"lbType"`
}

type ListAppInfo3JReq

type ListAppInfo3JReq struct {

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 过滤条件 (Optional) */
	Filter string `json:"filter"`

	/* 集群名称 (Optional) */
	ClusterId string `json:"clusterId"`

	/* 设备类型 (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* 基础参数 (Optional) */
	Base ListAppInfoBaseReq `json:"base"`
}

type ListAppInfoBaseReq

type ListAppInfoBaseReq struct {

	/* 应用ID (Optional) */
	Uid string `json:"uid"`

	/* 应用名称 (Optional) */
	Name string `json:"name"`

	/* 节点组名称 (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 集群名称 (Optional) */
	Cluster string `json:"cluster"`

	/* 显卡(devices)ID (Optional) */
	Uuid string `json:"uuid"`

	/* 任务ID (Optional) */
	TaskId string `json:"taskId"`

	/* 任务名称 (Optional) */
	TaskName string `json:"taskName"`

	/* 任务类型 (Optional) */
	TaskType string `json:"taskType"`

	/* 应用会话ID (Optional) */
	SessionId string `json:"sessionId"`

	/* 应用名称 (Optional) */
	InstanceNames []string `json:"instanceNames"`

	/* 任务ID数组 (Optional) */
	TaskIds []string `json:"taskIds"`

	/* 仅呈现GPU应用 (Optional) */
	OnlyGpuApps bool `json:"onlyGpuApps"`

	/* 仅呈现热迁移应用 (Optional) */
	OnlyLiveMigrateApps bool `json:"onlyLiveMigrateApps"`

	/* 按应用维度聚合 (Optional) */
	AggregateByUid bool `json:"aggregateByUid"`

	/* 按任务维度聚合 (Optional) */
	AggregateByTask bool `json:"aggregateByTask"`

	/* 通用参数,分页,排序 (Optional) */
	Common Common `json:"common"`
}

type ListAppInfoReq

type ListAppInfoReq struct {

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 基础参数 (Optional) */
	Base ListAppInfoBaseReq `json:"base"`
}

type ListAppInfoResp

type ListAppInfoResp struct {

	/* 状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 条数 (Optional) */
	Count int64 `json:"count"`

	/* 应用信息 (Optional) */
	AppInfo []AppInfoModel `json:"appInfo"`
}

type ListClusterNodeLabelsResult

type ListClusterNodeLabelsResult struct {

	/*  (Optional) */
	RequestId string `json:"requestId"`

	/*  (Optional) */
	Code int `json:"code"`

	/*  (Optional) */
	Msg string `json:"msg"`

	/* 节点调度标签列表 (Optional) */
	Labels []NodeLabelKeyValues `json:"labels"`
}

type ListLiveMigrateNodeAndGpuOutput

type ListLiveMigrateNodeAndGpuOutput struct {

	/* 状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 条数 (Optional) */
	TotalCount int64 `json:"totalCount"`

	/* 节点信息 (Optional) */
	Nodes []LiveMigrateNode `json:"nodes"`
}

type ListStorageTypesResult

type ListStorageTypesResult struct {

	/* 存储类型列表 (Optional) */
	Items []StorageTypeItem `json:"items"`

	/* 总记录数 (Optional) */
	Total int `json:"total"`
}

type LiveMigrateNode

type LiveMigrateNode struct {

	/* 必须选择多少张卡 (Optional) */
	MustDeviceCount int64 `json:"mustDeviceCount"`

	/*  (Optional) */
	Node NodeInfo `json:"node"`

	/* 节点设备信息 (Optional) */
	Devices []DeviceInfo `json:"devices"`
}

type LiveMigrateTask

type LiveMigrateTask struct {

	/*  (Optional) */
	MigrateId string `json:"migrateId"`

	/*  (Optional) */
	TaskId string `json:"taskId"`

	/*  (Optional) */
	TaskName string `json:"taskName"`

	/*  (Optional) */
	SubTaskId string `json:"subTaskId"`

	/*  (Optional) */
	InstanceName string `json:"instanceName"`

	/*  (Optional) */
	BeforeNode NodeInfo `json:"beforeNode"`

	/*  (Optional) */
	AfterNode NodeInfo `json:"afterNode"`

	/*  (Optional) */
	Status int `json:"status"`

	/*  (Optional) */
	Creator string `json:"creator"`

	/*  (Optional) */
	CreateTimestamp int `json:"createTimestamp"`

	/*  (Optional) */
	FinishedTimestamp int `json:"finishedTimestamp"`

	/*  (Optional) */
	TaskCreator string `json:"taskCreator"`

	/*  (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/*  (Optional) */
	StartedTimestamp int `json:"startedTimestamp"`

	/*  (Optional) */
	GpuUsage GPUResourceFloat `json:"gpuUsage"`

	/*  (Optional) */
	UsedSeconds int `json:"usedSeconds"`

	/*  (Optional) */
	BeforeAllocate Allocate `json:"beforeAllocate"`

	/*  (Optional) */
	AfterAllocate Allocate `json:"afterAllocate"`
}

type LogCollectConfig

type LogCollectConfig struct {

	/* 日志集ID,日志采集的目标日志集标识。

	## 使用说明
	- 需要在日志服务中预先创建
	- 用于组织和存储日志数据
	*/
	LogSetId string `json:"logSetId"`

	/* 日志主题ID,日志采集的目标日志主题标识。

	## 使用说明
	- 需要在日志服务中预先创建
	- 同一日志集下可以有多个日志主题
	*/
	LogTopicId string `json:"logTopicId"`

	/* 标准日志配置,容器标准输出(stdout/stderr)采集配置。
	(Optional) */
	StandardLogConfig *StandardLogConfig `json:"standardLogConfig"`

	/* 自定义日志配置,自定义文件路径采集配置。
	(Optional) */
	CustomLogConfig *CustomLogConfig `json:"customLogConfig"`
}

type LogCollectConfigDetail

type LogCollectConfigDetail struct {

	/* 日志集ID,日志集的唯一标识。 (Optional) */
	LogSetId string `json:"logSetId"`

	/* 日志集名称,日志集的显示名称。 (Optional) */
	LogSetName string `json:"logSetName"`

	/* 日志主题ID,日志主题的唯一标识。 (Optional) */
	LogTopicId string `json:"logTopicId"`

	/* 日志主题名称,日志主题的显示名称。 (Optional) */
	LogTopicName string `json:"logTopicName"`

	/* 标准日志配置,容器标准输出采集配置。 (Optional) */
	StandardLogConfig StandardLogConfig `json:"standardLogConfig"`

	/* 自定义日志配置,自定义文件路径采集配置。 (Optional) */
	CustomLogConfig CustomLogConfig `json:"customLogConfig"`
}

type LogConfigInfo

type LogConfigInfo struct {

	/* 日志集id (Optional) */
	LogsetUID string `json:"logsetUID"`

	/* 日志集名称 (Optional) */
	LogsetName string `json:"logsetName"`

	/* 日志主题id (Optional) */
	LogtopicUID string `json:"logtopicUID"`

	/* 日志主题名称 (Optional) */
	LogtopicName string `json:"logtopicName"`

	/* 使用任务模块:可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	 (Optional) */
	Usages []string `json:"usages"`
}

type MemberWorkspace

type MemberWorkspace struct {

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 当前查询用户对应空间角色:admin管理员,developer开发者,visitor访客。 (Optional) */
	MemberRole string `json:"memberRole"`
}

type Metadata

type Metadata struct {

	/* 推理服务的简单描述 (Optional) */
	Description *string `json:"description"`

	/* 推理服务名字,多个版本名字相同  */
	Name string `json:"name"`

	/* 推理服务单个实例占用的节点数, 大于1时为分布式部署 (Optional) */
	Nodes *int `json:"nodes"`

	/* 推理服务的副本数(实例数) (Optional) */
	Replicas *int `json:"replicas"`

	/* 推理服务版本,从1开始依次递增,指定时需确定指定版本不存在。 (Optional) */
	Version *int `json:"version"`

	/* vpc id (Optional) */
	VpcId *string `json:"vpcId"`

	/* vpc name (Optional) */
	VpcName *string `json:"vpcName"`
}

type Metrics

type Metrics struct {

	/* ID (Optional) */
	Id string `json:"id"`

	/* 名称 (Optional) */
	Name string `json:"name"`
}

type Model

type Model struct {

	/* 模型类型 (Optional) */
	ModelType *string `json:"modelType"`

	/* 模型ID (Optional) */
	ModelId *string `json:"modelId"`

	/* 模型名字 (如: llama3)  */
	ModelName string `json:"modelName"`

	/* 模型来源,公共的(public), 还是私有的(private) (Optional) */
	Source *string `json:"source"`

	/* 存储类型,oss or cfs (Optional) */
	StorageType *string `json:"storageType"`

	/* 模型存储路径 (如:oss://bucket-global/models/deepseek.r1)  */
	ModelPath string `json:"modelPath"`

	/* 模型版本 (Optional) */
	ModelVersion *string `json:"modelVersion"`

	/* 模型挂载路径(如:/mnt/models/ (Optional) */
	MountPath *string `json:"mountPath"`

	/* 模型是否只读 (Optional) */
	ReadOnly *bool `json:"readOnly"`
}

type ModelAllocate

type ModelAllocate struct {

	/*  (Optional) */
	NodeIp string `json:"nodeIp"`

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/*  (Optional) */
	DeviceBrand string `json:"deviceBrand"`

	/*  (Optional) */
	DeviceModel string `json:"deviceModel"`

	/*  (Optional) */
	Template string `json:"template"`

	/*  (Optional) */
	DeviceIds interface{} `json:"deviceIds"`

	/*  (Optional) */
	IsRemote bool `json:"isRemote"`

	/*  (Optional) */
	Cluster string `json:"cluster"`
}

type ModelAppOwner

type ModelAppOwner struct {

	/*  (Optional) */
	ApiVersion string `json:"apiVersion"`

	/*  (Optional) */
	Kind string `json:"kind"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Uid string `json:"uid"`

	/*  (Optional) */
	BlockOwnerDeletion string `json:"blockOwnerDeletion"`

	/*  (Optional) */
	Controller string `json:"controller"`
}

type ModelBillingConfig

type ModelBillingConfig struct {

	/* 用途(distill,train)  */
	Usage string `json:"usage"`

	/* 模型名称  */
	ModelName string `json:"modelName"`

	/* 输入输出(input,output)  */
	Stream string `json:"stream"`

	/* 数据类型(text,image,audio,video)  */
	DataType string `json:"dataType"`

	/* Tokens上限  */
	MaxTokens int `json:"maxTokens"`

	/* 计费项  */
	BillingCode string `json:"billingCode"`

	/* 单价  */
	Price float64 `json:"price"`

	/* 上报除数(比如计价规格为千Tokens,上报时就要除1000)  */
	ChargeDivisor float64 `json:"chargeDivisor"`

	/* 上报单位  */
	ChargeUnit string `json:"chargeUnit"`

	/* 展示信息  */
	Label string `json:"label"`

	/* 说明 (Optional) */
	Description string `json:"description"`
}

type ModelBillingConfigInfo

type ModelBillingConfigInfo struct {

	/* 用途(distill,train) (Optional) */
	Usage string `json:"usage"`

	/* 模型名称 (Optional) */
	ModelName string `json:"modelName"`

	/* 输入输出(input,output) (Optional) */
	Stream string `json:"stream"`

	/* 数据类型(text,image,audio,video) (Optional) */
	DataType string `json:"dataType"`

	/* Tokens上限 (Optional) */
	MaxTokens int `json:"maxTokens"`

	/* 计费项 (Optional) */
	BillingCode string `json:"billingCode"`

	/* 单价 (Optional) */
	Price float64 `json:"price"`

	/* 上报除数(比如计价规格为千Tokens,上报时就要除1000) (Optional) */
	ChargeDivisor float64 `json:"chargeDivisor"`

	/* 上报单位 (Optional) */
	ChargeUnit string `json:"chargeUnit"`

	/* 展示信息 (Optional) */
	Label string `json:"label"`

	/* 说明 (Optional) */
	Description string `json:"description"`

	/* 配置ID (Optional) */
	ConfigId int `json:"configId"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ModelConfigFilter

type ModelConfigFilter struct {

	/* 用途(distill,train) (Optional) */
	Usage string `json:"usage"`

	/* 模型名称 (Optional) */
	ModelName string `json:"modelName"`

	/* 输入输出(input/output) (Optional) */
	Stream string `json:"stream"`

	/* 数据类型(text,image,audio,video) (Optional) */
	DataType string `json:"dataType"`

	/* 计费项 (Optional) */
	BillingCode string `json:"billingCode"`
}

type ModelGPUResourceFloat

type ModelGPUResourceFloat struct {

	/*  (Optional) */
	Gpu float32 `json:"gpu"`

	/*  (Optional) */
	Ratio float32 `json:"ratio"`

	/*  (Optional) */
	Memory float32 `json:"memory"`

	/*  (Optional) */
	Cpu float32 `json:"cpu"`

	/*  (Optional) */
	Nmemory float32 `json:"nmemory"`
}

type ModelInstanceFlavor

type ModelInstanceFlavor struct {

	/*  (Optional) */
	Cpu float32 `json:"cpu"`

	/*  (Optional) */
	Memory float32 `json:"memory"`

	/*  (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* gpu类型,对应代码中的 type字段 (Optional) */
	GpuType string `json:"gpuType"`

	/*  (Optional) */
	Gpu int `json:"gpu"`

	/*  (Optional) */
	Vgpu int `json:"vgpu"`

	/*  (Optional) */
	RatioPerVGpu float32 `json:"ratioPerVGpu"`

	/*  (Optional) */
	MemoryPerVGpu float32 `json:"memoryPerVGpu"`

	/*  (Optional) */
	DeviceTemplate string `json:"deviceTemplate"`

	/*  (Optional) */
	Display string `json:"display"`

	/*  (Optional) */
	AutoSelectDeviceModel bool `json:"autoSelectDeviceModel"`

	/*  (Optional) */
	Enabled bool `json:"enabled"`

	/*  (Optional) */
	Uid string `json:"uid"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	EstimatedCount int `json:"estimatedCount"`
}

type ModelPageable

type ModelPageable struct {

	/* 分页,页码 (Optional) */
	PageNum int `json:"pageNum"`

	/* 分页,页大小 (Optional) */
	PageSize int `json:"pageSize"`
}

type ModelParamForJob

type ModelParamForJob struct {

	/* 模型可见性,决定模型的访问权限。

	**可选值:**
	- `public`:公开模型,工作空间所有成员可使用
	- `private`:私有模型,仅创建者和空间管理员可使用
	 (Optional) */
	ModelVisibility *string `json:"modelVisibility"`

	/* 模型ID,唯一标识一个模型。

	**示例:** `model-11******us`

	**获取方式:** 通过模型管理接口创建或查询
	 (Optional) */
	ModelId *string `json:"modelId"`

	/* 模型版本,指定要使用的模型版本。

	**示例:**
	- 版本号:`v1`, `v2`
	 (Optional) */
	ModelVersion *string `json:"modelVersion"`

	/* 挂载点配置,指定模型在容器内的挂载路径。

	**建议:** 挂载到 `/mnt/` 开头的路径下

	**示例:**
	- 预训练模型:`/mnt/models/pretrained`
	- 检查点:`/mnt/models/checkpoint`
	- 基础模型:`/mnt/models/base`

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	 (Optional) */
	MountPath *string `json:"mountPath"`

	/* 是否以只读模式挂载模型。

	**只读模式:** 无法在挂载的模型目录中进行写操作

	**注意:**
	- 当模型来源为 `public` 时,此参数无效(始终只读)
	- 当存储类型不是 `oss` 时,此参数无效
	 (Optional) */
	Readonly *bool `json:"readonly"`
}

type ModelPublicSpec

type ModelPublicSpec struct {

	/* 模型名称。(创建新模型必填) (Optional) */
	ModelName string `json:"modelName"`

	/* 模型ID。(创建新版本必填) (Optional) */
	ModelId string `json:"modelId"`

	/* 模型描述/版本描述。若创建新模型,为模型描述与版本V1的描述;若创建新版本,为新版本描述。 (Optional) */
	Description string `json:"description"`

	/* 存储类型(数据来源),可选值: - oss。 (Optional) */
	StorageType string `json:"storageType"`

	/* oss-bucket,storageType为oss时必填。 (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(模型来源path)。例如:oss时,bucket后面部分的模型存储路径。 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储ID,storageType为cfs必传。例如:fs-60z1s969ui。 (Optional) */
	StorageId string `json:"storageId"`

	/* 标签,多个标签使用英文逗号分隔。 (Optional) */
	Labels string `json:"labels"`

	/* 模型介绍。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`
}

type ModelResultForJob

type ModelResultForJob struct {

	/* 模型可见性。可选值:[public, private]。 (Optional) */
	ModelVisibility string `json:"modelVisibility"`

	/* 模型ID。示例:model-11******us。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型版本。示例:v1。 (Optional) */
	ModelVersion string `json:"modelVersion"`

	/* 是否以只读模式挂载模型。只读模式下,无法在挂载的模型中进行写操作。当数据集来源为public,或存储类型不是oss时,该参数无效。
	(Optional) */
	Readonly bool `json:"readonly"`

	/* 存储参数。 (Optional) */
	Storage StorageSpaceParamForJob `json:"storage"`
}

type ModelSpec

type ModelSpec struct {

	/* 模型来源,指定使用公共模型还是个人模型。

	## 来源类型
	- public: 公共模型,所有用户可访问
	- self: 个人模型,仅自己可访问
	*/
	Source string `json:"source"`

	/* 模型存储类型,决定模型访问方式。

	## 支持类型
	- cfs: 京东云文件存储
	- oss: 京东云对象存储
	- jpfs: 京东云并行文件系统
	*/
	StorageType string `json:"storageType"`

	/* 模型ID,唯一标识模型。

	## 获取方式
	- 公共模型: 从公共模型列表获取
	- 个人模型: 从我的模型列表获取
	*/
	ModelId string `json:"modelId"`

	/* 模型版本,指定使用模型的哪个版本。

	## 版本说明
	- 支持多版本模型
	- 版本格式: v1, v2, v3
	*/
	ModelVersion string `json:"modelVersion"`

	/* 模型地址,模型的实际存储路径。

	## 各类型地址格式
	- cfs: `10.0.23.45:/dir-path` 或 `/dir-path`
	- oss: `oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`
	- jpfs: `fs-xxxxxxxxxx:/dir-path` 或 `/dir-path`
	*/
	ModelUrl string `json:"modelUrl"`

	/* 挂载路径,模型在Notebook容器中的挂载位置。

	## 挂载建议
	- 建议挂载到`/mnt/models/`开头的路径
	- 不支持挂载到系统目录

	## 系统目录列表
	`/, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var`
	*/
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载模型。

	## 使用说明
	- 仅oss类型且self来源的模型有效
	- public模型强制只读
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly *bool `json:"readonly"`
}

type ModelSpecPrivate

type ModelSpecPrivate struct {

	/* 模型名称。1~32字符,可以包含中文、数字、大小写字母、英文下划线“_”、中划线“-”。(创建新模型生效,必填) (Optional) */
	ModelName *string `json:"modelName"`

	/* 模型ID(创建新版本生效,必填)。 (Optional) */
	ModelId *string `json:"modelId"`

	/* 模型描述/版本描述。若创建新模型,为模型描述与版本V1的描述;若创建新版本,为新版本描述。 (Optional) */
	Description *string `json:"description"`

	/* 存储类型(数据集来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType *string `json:"storageType"`

	/* storageType=oss时必传,oss域名 (Optional) */
	StorageDomain *string `json:"storageDomain"`

	/* storageType=oss时必传,oss bucket (Optional) */
	StorageBucket *string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath *string `json:"storagePath"`

	/* 存储ID,storageType=cfs或jpfs时必传,例如:fs-60z1s969ui (Optional) */
	StorageId *string `json:"storageId"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels *string `json:"labels"`

	/* 基础模型ID(蒸馏创建模型使用)。 (Optional) */
	BasicModelId *string `json:"basicModelId"`

	/* 注册来源对应的ID:训练任务ID/精调实验ID等 (Optional) */
	ExperimentId *string `json:"experimentId"`

	/* experimentId的运行记录id (Optional) */
	ExperimentRunId *string `json:"experimentRunId"`

	/* 注册来源:finetune精调实验。 默认值user为用户上传。 (Optional) */
	SourceType *string `json:"sourceType"`

	/* 工作空间中的资源归属权限,支持(public,private),默认为public。(创建新模型生效) (Optional) */
	Permission *string `json:"permission"`
}

type ModelVersionInfo

type ModelVersionInfo struct {

	/* 模型ID。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型名称。 (Optional) */
	ModelName string `json:"modelName"`

	/* 模型描述。 (Optional) */
	ModelDescription string `json:"modelDescription"`

	/* 版本号。 (Optional) */
	Version string `json:"version"`

	/* 版本描述。 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 注册来源:user为用户上传,finetune精调实验。 (Optional) */
	SourceType string `json:"sourceType"`

	/* 基础模型ID。 (Optional) */
	BaseModelId string `json:"baseModelId"`

	/* 基础模型名称。 (Optional) */
	BaseModelName string `json:"baseModelName"`

	/* 存储类型(数据来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 存储oss对应ossEnpoint, cfs、jpfs对应IP (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket/cfs-pseudo(例如:/cfs) (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储全路径地址:
	- oss  oss://{storageDomain}/{storageBucket}/{storagePath}
	- cfs  cfs://{storageId}/{storageBucket}/{storagePath}
	- jpfs  jpfs://{storageId}/{storagePath}
	 (Optional) */
	StorageUri string `json:"storageUri"`

	/* 存储ID cfs或jpfs时使用,例如:fs-60z1s969ui (Optional) */
	StorageId string `json:"storageId"`

	/* cfsVpcId (Optional) */
	CfsVpcId string `json:"cfsVpcId"`

	/* 模型介绍。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 模型类型。 (Optional) */
	ModelType string `json:"modelType"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 注册来源对应的ID:训练任务ID/精调实验ID等 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* experimentId的运行记录id (Optional) */
	ExperimentRunId string `json:"experimentRunId"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`
}

type ModelsPrivate

type ModelsPrivate struct {

	/* 模型ID。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型名称。 (Optional) */
	ModelName string `json:"modelName"`

	/* 版本数量。 (Optional) */
	VersionNum int `json:"versionNum"`

	/* 模型描述。 (Optional) */
	ModelDescription string `json:"modelDescription"`

	/* 模型创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 模型更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`
}

type ModelsPublic

type ModelsPublic struct {

	/* 模型名称。(创建新模型必填) (Optional) */
	ModelName string `json:"modelName"`

	/* 模型ID。(创建新版本必填) (Optional) */
	ModelId string `json:"modelId"`

	/* 模型描述/版本描述。若创建新模型,为模型描述与版本V1的描述;若创建新版本,为新版本描述。 (Optional) */
	Description string `json:"description"`

	/* 存储类型(数据来源),可选值: - oss。 (Optional) */
	StorageType string `json:"storageType"`

	/* 存储域名/IP(模型来源域名/IP)。 (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* storageType为oss时,代表oss-bucket;storageType为cfs时,代表cfs-pseudo。 (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(模型来源path)。 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储全路径地址。 (Optional) */
	StorageUri string `json:"storageUri"`

	/* 存储ID,storageType为cfs必传。 (Optional) */
	StorageId string `json:"storageId"`

	/* 标签,使用英文逗号拼接。 (Optional) */
	Labels string `json:"labels"`

	/* 标签map格式 (Optional) */
	LabelsMap interface{} `json:"labelsMap"`

	/* 标签对象 (Optional) */
	LabelsObject LabelsObject `json:"labelsObject"`

	/* 模型介绍。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`

	/* 版本号。 (Optional) */
	Version string `json:"version"`

	/* true上线,false下线。 (Optional) */
	Online bool `json:"online"`
}

type NbCodeConfig

type NbCodeConfig struct {

	/* 代码库配置ID,在工作空间代码库配置中获取。
	 */
	RepoId string `json:"repoId"`

	/* 挂载路径,代码将拉取到此目录。

	## 挂载规则
	- 不支持挂载到系统目录
	- 建议挂载到`/mnt/codes/`路径下
	- 系统目录参考: /, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var
	*/
	MountPath string `json:"mountPath"`
}

type NbCodeConfigInfo

type NbCodeConfigInfo struct {

	/* 代码库配置ID,唯一标识代码库配置。 (Optional) */
	RepoId string `json:"repoId"`

	/* 挂载路径,代码仓库的本地目录。 (Optional) */
	MountPath string `json:"mountPath"`

	/* 代码库名称,用于显示和识别。 (Optional) */
	RepoName string `json:"repoName"`
}

type NbDatasetDetail

type NbDatasetDetail struct {

	/* 数据集来源,指定数据集是公共的还是个人的。

	## 来源类型
	- public: 公共数据集,所有用户可访问
	- self: 个人数据集,仅自己可访问
	 (Optional) */
	Source string `json:"source"`

	/* 存储名称,数据集对应的存储名称。 (Optional) */
	StorageName string `json:"storageName"`

	/* 存储类型,数据集的存储后端类型。

	## 支持类型
	- cfs: 京东云文件存储
	- oss: 京东云对象存储
	- jpfs: 京东云并行文件系统
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 数据集ID,唯一标识数据集。 (Optional) */
	DatasetId string `json:"datasetId"`

	/* 数据集版本,指定的数据集版本号。 (Optional) */
	DatasetVersion string `json:"datasetVersion"`

	/* 数据集地址,数据集的实际存储路径。

	## 各类型地址格式
	- cfs: `10.0.23.45:/dir-path` 或 `/dir-path`
	- oss: `oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`
	- jpfs: `fs-xxxxxxxxxx:/dir-path` 或 `/dir-path`
	 (Optional) */
	DatasetUrl string `json:"datasetUrl"`

	/* 挂载路径,数据集在Notebook容器中的挂载位置。

	## 挂载建议
	- 建议挂载到`/mnt/datasets/`开头的路径
	 (Optional) */
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载数据集。

	## 使用说明
	- 仅oss类型且self来源的数据集有效
	- public数据集强制只读
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly bool `json:"readonly"`
}

type NbIdlePolicy

type NbIdlePolicy struct {

	/* 闲置等待时长配置(分钟)。

	## 使用说明
	- 持续闲置达到此时长后触发关机
	 (Optional) */
	MaxIdleTimeInMinutes int `json:"maxIdleTimeInMinutes"`

	/* CPU利用率阈值(%)。

	## 使用说明
	- 当CPU利用率低于此阈值时判定为闲置
	- 0表示不检测CPU利用率
	- 示例: "10" 表示利用率低于10%判定为闲置
	 (Optional) */
	CpuPercentThreshold string `json:"cpuPercentThreshold"`

	/* 内存利用率阈值(%)。

	## 使用说明
	- 当内存利用率低于此阈值时判定为闲置
	- 0表示不检测内存利用率
	- 示例: "20" 表示利用率低于20%判定为闲置
	 (Optional) */
	MemoryPercentThreshold string `json:"memoryPercentThreshold"`

	/* GPU利用率阈值(%)。

	## 使用说明
	- 当GPU利用率低于此阈值时判定为闲置
	- 0表示不检测GPU利用率
	- 仅对含有GPU的Notebook有效
	- 示例: "5" 表示利用率低于5%判定为闲置
	 (Optional) */
	GpuPercentThreshold string `json:"gpuPercentThreshold"`

	/* 闲置开始时间,开始检测到闲置的时刻。

	## 计算规则
	- 某一分钟的指标利用率全部低于本组配置时开始计时
	- 格式: 2023-06-01 12:22:56
	 (Optional) */
	IdleStartTime string `json:"idleStartTime"`

	/* 当前闲置时长(分钟)。

	## 计算规则
	- 从闲置开始时间开始
	- 到最后一次利用率计算为止
	- 达到maxIdleTimeInMinutes时触发关机
	 (Optional) */
	IdleTimeInMinutes int `json:"idleTimeInMinutes"`
}

type NbModelDetail

type NbModelDetail struct {

	/* 模型来源,指定模型是公共的还是个人的。

	## 来源类型
	- public: 公共模型,所有用户可访问
	- self: 个人模型,仅自己可访问
	 (Optional) */
	Source string `json:"source"`

	/* 存储名称,模型对应的存储名称。 (Optional) */
	StorageName string `json:"storageName"`

	/* 存储类型,模型的存储后端类型。

	## 支持类型
	- cfs: 京东云文件存储
	- oss: 京东云对象存储
	- jpfs: 京东云并行文件系统
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 模型ID,唯一标识模型。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型版本,指定的模型版本号。 (Optional) */
	ModelVersion string `json:"modelVersion"`

	/* 模型地址,模型的实际存储路径。

	## 各类型地址格式
	- cfs: `10.0.23.45:/dir-path` 或 `/dir-path`
	- oss: `oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`
	- jpfs: `fs-xxxxxxxxxx:/dir-path` 或 `/dir-path`
	 (Optional) */
	ModelUrl string `json:"modelUrl"`

	/* 挂载路径,模型在Notebook容器中的挂载位置。

	## 挂载建议
	- 建议挂载到`/mnt/models/`开头的路径
	 (Optional) */
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载模型。

	## 使用说明
	- 仅oss类型且self来源的模型有效
	- public模型强制只读
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly bool `json:"readonly"`
}

type NbShutdownPolicy

type NbShutdownPolicy struct {

	/* 排除关机策略标记。

	## 使用说明
	- true: 不关机,不受工作空间闲置策略影响
	- false: 受关机策略控制
	 (Optional) */
	Excluded bool `json:"excluded"`

	/* 运行时长配置(分钟),从running开始计算。

	## 使用说明
	- 达到运行时长后会触发关机
	- 不配置或为0表示不限制运行时长
	 (Optional) */
	RuntimeMinute int `json:"runtimeMinute"`

	/* 预期关机时间,计算得出的预期关机时刻。

	## 计算规则
	- 处于running状态并且存在运行时长配置时生效
	- 从Notebook首次进入running时间算起
	- 格式: 2023-06-01 12:22:56
	 (Optional) */
	ExpectedShutdownTime string `json:"expectedShutdownTime"`

	/* 闲置策略配置列表,任意一组策略条件满足时即触发关机。

	## 策略说明
	- 多组策略之间是"或"的关系
	- 不含GPU的Notebook只返回不含GPU利用率的策略
	- 含有GPU的Notebook只返回有GPU利用率的策略
	 (Optional) */
	IdlePolicys []NbIdlePolicy `json:"idlePolicys"`
}

type NbWorkloadDetail

type NbWorkloadDetail struct {

	/* 资源队列ID,实例运行所在的资源队列。

	## 公共资源池
	- 固定为:`joybuilder-public-queue`

	## 私有资源池
	- 用户工作空间中的私有队列ID
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 规格ID,公共资源池的规格标识。

	## 使用说明
	- 仅公共资源池有效
	- 规格ID对应预定义的资源配置
	 (Optional) */
	FlavorId string `json:"flavorId"`

	/* CPU配置(单位:毫核)。

	## 换算关系
	- 1000毫核 = 1核
	- 示例:2000表示2核CPU
	 (Optional) */
	CpuM int `json:"cpuM"`

	/* 内存配置(单位:MiB)。

	## 换算关系
	- 1024 MiB = 1 GB
	- 示例:8192表示8GB内存
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`

	/* GPU设备类型,GPU型号标识。

	## 示例
	- NVIDIA_H20-3e
	- NVIDIA_A100
	- NVIDIA_A800
	- NVIDIA_T4
	 (Optional) */
	DeviceModel string `json:"deviceModel"`

	/* 虚拟GPU数量,分配的GPU卡数。

	## 使用说明
	- 整数表示完整GPU卡
	- 小数表示GPU切分
	- 示例:1, 2, 4, 8, 0.5, 0.25
	 (Optional) */
	VcudaCore string `json:"vcudaCore"`

	/* 虚拟GPU总显存(单位:Mi)。

	## 使用说明
	- 所有虚拟GPU卡的总显存
	 (Optional) */
	VcudaMemory int `json:"vcudaMemory"`

	/* 虚拟GPU总算力百分比(0-100)。

	## 使用说明
	- 所有虚拟GPU卡的总算力占比
	- 取值范围:0-100
	 (Optional) */
	VcudaRatio int `json:"vcudaRatio"`
}

type NetworkInfo

type NetworkInfo struct {

	/* POD Subnets if CNI required (Optional) */
	PodSubnets []SubnetInfo `json:"podSubnets"`

	/* Node Subnets (Optional) */
	NodeSubnet []SubnetInfo `json:"nodeSubnet"`

	/* ccm service subnet (Optional) */
	ServiceSubnet SubnetInfo `json:"serviceSubnet"`
}

type Nlb

type Nlb struct {

	/* NLB Id (Optional) */
	Id string `json:"id"`

	/* NLB名字 (Optional) */
	Name string `json:"name"`
}

type Node

type Node struct {

	/* 节点ID (Optional) */
	Id string `json:"id"`

	/* 节点类型 (Optional) */
	NodeType string `json:"nodeType"`

	/* 计费方式,pack:包年包月;advance:预付费 (Optional) */
	ChargeType string `json:"chargeType"`

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 集群ID (Optional) */
	ClusterId string `json:"clusterId"`

	/* 规格标识 (Optional) */
	Config string `json:"config"`

	/* 可用区,逗号分割 (Optional) */
	Zones string `json:"zones"`

	/* hpc节点所在物理集群ID (Optional) */
	HpcCluster string `json:"hpcCluster"`

	/* hpc节点所在物理集群名称 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 节点子网 (Optional) */
	Subnet string `json:"subnet"`

	/* 节点子网名称 (Optional) */
	SubnetName string `json:"subnetName"`

	/* 私有网络名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 节点IP (Optional) */
	Ipv4 string `json:"ipv4"`

	/* 节点IP (Optional) */
	Ipv6 string `json:"ipv6"`

	/* 安全组 (Optional) */
	SecurityGroup string `json:"securityGroup"`

	/* 操作系统 (Optional) */
	Os string `json:"os"`

	/* 操作系统版本 (Optional) */
	OsTag string `json:"osTag"`

	/* 系统盘 (Optional) */
	SystemDisk Disk `json:"systemDisk"`

	/*  (Optional) */
	DataDisk []Disk `json:"dataDisk"`

	/* root登录密码 (Optional) */
	RootPwd string `json:"rootPwd"`

	/* 状态,creating:创建中;ready:运行中;fail:创建失败;stopping:停止中;stopped:已停止;starting:启动中;rebuilding:重置系统中;deleting:删除中 (Optional) */
	Status string `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* GPU资源配额信息 (Optional) */
	GpuQuota GpuQuota `json:"gpuQuota"`

	/* 资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/*  (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`

	/* 设备品牌 (Optional) */
	DeviceBrand string `json:"deviceBrand"`

	/*  (Optional) */
	UnhealthReasons []UnHealthReason `json:"unhealthReasons"`
}

type NodeAffinityForExperiment

type NodeAffinityForExperiment struct {

	/* 节点亲和性配置列表。

	## 说明
	支持配置多个亲和性规则,每个元素之间是"且"的关系。

	## 示例
	配置 GPU 型号和可用区两个条件,任务将调度到同时满足这两个条件的节点。
	*/
	Affinities []AffinitityForExperiment `json:"affinities"`
}

type NodeConfig

type NodeConfig struct {

	/*  (Optional) */
	Vgpu int `json:"vgpu"`

	/*  (Optional) */
	GpuMemory int `json:"gpuMemory"`

	/*  (Optional) */
	VgpuPerDevice int `json:"vgpuPerDevice"`

	/*  (Optional) */
	MemoryOvercommit float32 `json:"memoryOvercommit"`

	/*  (Optional) */
	CoreOvercommit float32 `json:"coreOvercommit"`

	/*  (Optional) */
	TemplateName string `json:"templateName"`

	/*  (Optional) */
	Status string `json:"status"`

	/*  (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/*  (Optional) */
	RatioSchdPolicy int `json:"ratioSchdPolicy"`

	/*  (Optional) */
	HookMode string `json:"hookMode"`
}

type NodeInfo

type NodeInfo struct {

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 节点IP (Optional) */
	Ip string `json:"ip"`

	/* 节点所在集群 (Optional) */
	Cluster string `json:"cluster"`

	/* 算力池 (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 节点物理GPU设备数量 (Optional) */
	DeviceNum int64 `json:"deviceNum"`

	/* 节点GPU设备型号 (Optional) */
	Model string `json:"model"`

	/* 节点配置 (Optional) */
	NodeConfig NodeConfig `json:"nodeConfig"`

	/* 节点资源容量 (Optional) */
	Capacity GPUResourceFloat `json:"capacity"`

	/* 节点资源已使用 (Optional) */
	Used GPUResourceFloat `json:"used"`

	/* 节点资源实时用量 (Optional) */
	LiveUsage GPUResourceFloat `json:"liveUsage"`

	/* 节点可用资源 (Optional) */
	Available GPUResourceFloat `json:"available"`

	/* 节点设备厂商 (Optional) */
	Manufacturer string `json:"manufacturer"`
}

type NodeInstance

type NodeInstance struct {

	/* 节点ID (Optional) */
	Id string `json:"id"`

	/* 节点类型 (Optional) */
	NodeType string `json:"nodeType"`

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 集群ID (Optional) */
	Cluster string `json:"cluster"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点池名称 (Optional) */
	NodePoolName string `json:"nodePoolName"`

	/* 地域 (Optional) */
	Region string `json:"region"`

	/* 规格标识 (Optional) */
	Config string `json:"config"`

	/* 节点IP (Optional) */
	Ip string `json:"ip"`

	/* 状态,creating:创建中;ready:运行中;fail:创建失败;stopping:停止中;stopped:已停止;starting:启动中;rebuilding:重置系统中;deleting:删除中 (Optional) */
	Status string `json:"status"`
}

type NodeLabel

type NodeLabel struct {

	/* 标签key (Optional) */
	Key string `json:"key"`

	/* 标签value (Optional) */
	Value string `json:"value"`
}

type NodeLabelKeyValue

type NodeLabelKeyValue struct {

	/*  (Optional) */
	Key string `json:"key"`

	/*  (Optional) */
	Value string `json:"value"`
}

type NodeLabelKeyValues

type NodeLabelKeyValues struct {

	/*  (Optional) */
	Key string `json:"key"`

	/*  (Optional) */
	Values []string `json:"values"`
}

type NodeLoad

type NodeLoad struct {

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 状态,creating:创建中;ready:运行中;fail:创建失败;stopping:停止中;stopped:已停止;starting:启动中;rebuilding:重置系统中;deleting:删除中 (Optional) */
	Status string `json:"status"`

	/* 节点负载,0-空闲,大于0表示有负载 (Optional) */
	Load int `json:"load"`
}

type NodePatchLabelsResult

type NodePatchLabelsResult struct {

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	ErrMsg string `json:"errMsg"`

	/*  (Optional) */
	IsSuccess bool `json:"isSuccess"`
}

type NodePool

type NodePool struct {

	/* 节点池ID (Optional) */
	Id string `json:"id"`

	/* 节点池名称 (Optional) */
	Name string `json:"name"`

	/* 业务类型-离线/在线/混部 (Optional) */
	BizType string `json:"bizType"`

	/* 节点池类型,combined:异构节点池;general:云主机节点池;mixture:混合节点池 (Optional) */
	PoolType string `json:"poolType"`

	/* 计费方式,pack:包年包月;advance:预付费 (Optional) */
	ChargeType string `json:"chargeType"`

	/* 节点数量 (Optional) */
	NodeCount int `json:"nodeCount"`

	/* 是否支持网络拓扑;0:不支持,1:支持 (Optional) */
	Topology int `json:"topology"`

	/* 状态,creating:创建中;ready:运行中;fail:创建失败 (Optional) */
	Status string `json:"status"`

	/* 是否支持rdma网络 (Optional) */
	Rdma bool `json:"rdma"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* hpc节点所属物理集群 (Optional) */
	HpcCluster string `json:"hpcCluster"`

	/* hpc节点所在物理集群名称 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* hpc节点所属可用区 (Optional) */
	HpcZone string `json:"hpcZone"`

	/* 节点池名称 (Optional) */
	Desc string `json:"desc"`

	/* GPU资源配额信息 (Optional) */
	GpuQuotas []GpuQuota `json:"gpuQuotas"`

	/* 资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/*  (Optional) */
	Cluster Cluster `json:"cluster"`

	/* Tag信息 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 资源组Id (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 节点池概览信息 (Optional) */
	Overview []NodePoolOverview `json:"overview"`
}

type NodePoolCalcNodeUsage

type NodePoolCalcNodeUsage struct {

	/* 节点名称列表 (Optional) */
	NodeNames []string `json:"nodeNames"`
}

type NodePoolDeviceOverviewResult

type NodePoolDeviceOverviewResult struct {

	/* 返回码,0表示成功,其他表示失败 (Optional) */
	Code int `json:"code"`

	/* 返回消息,成功返回"success",其他返回具体错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 节点池概览信息列表 (Optional) */
	Data []DeviceStatsDetail `json:"data"`
}

type NodePoolOverview

type NodePoolOverview struct {

	/* gpu资源容量 (Optional) */
	CapGpu string `json:"capGpu"`

	/* 算力资源容量 (Optional) */
	CapRatio string `json:"capRatio"`

	/* 显卡资源容量 (Optional) */
	CapMemory string `json:"capMemory"`

	/* cpu资源容量 (Optional) */
	CapCpu string `json:"capCpu"`

	/* 内存资源容量 (Optional) */
	CapNMemory string `json:"capNMemory"`

	/* gpu资源使用量 (Optional) */
	UsedGpu string `json:"usedGpu"`

	/* 算力资源使用量 (Optional) */
	UsedRatio string `json:"usedRatio"`

	/* 显卡资源使用量 (Optional) */
	UsedMemory string `json:"usedMemory"`

	/* cpu资源使用量 (Optional) */
	UsedCpu string `json:"usedCpu"`

	/* 内存资源使用量 (Optional) */
	UsedNMemory string `json:"usedNMemory"`

	/* gpu资源空闲量 (Optional) */
	IdleGpu string `json:"idleGpu"`

	/* 算力资源空闲量 (Optional) */
	IdleRatio string `json:"idleRatio"`

	/* 显卡资源空闲量 (Optional) */
	IdleMemory string `json:"idleMemory"`

	/* cpu资源空闲量 (Optional) */
	IdleCpu string `json:"idleCpu"`

	/* 内存资源空闲量 (Optional) */
	IdleNMemory string `json:"idleNMemory"`
}

type NodePoolSimple

type NodePoolSimple struct {

	/* 节点池ID (Optional) */
	Id string `json:"id"`

	/* 节点池名称 (Optional) */
	Name string `json:"name"`

	/* 业务类型-离线/在线/混部 (Optional) */
	BizType string `json:"bizType"`

	/* 节点数量 (Optional) */
	NodeCount int `json:"nodeCount"`

	/* 是否支持网络拓扑;0:不支持,1:支持 (Optional) */
	Topology int `json:"topology"`

	/* 状态,creating:创建中;ready:运行中;fail:创建失败 (Optional) */
	Status string `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 节点池名称 (Optional) */
	Desc string `json:"desc"`

	/* GPU资源配额信息 (Optional) */
	GpuQuotas []GpuQuota `json:"gpuQuotas"`

	/* 资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/*  (Optional) */
	Cluster ClusterSimple `json:"cluster"`

	/* 节点IP列表 (Optional) */
	NodeIps []string `json:"nodeIps"`
}

type NodePoolTagDetail

type NodePoolTagDetail struct {

	/* 资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`

	/* 资源有效性 (Optional) */
	Validity bool `json:"validity"`
}

type NodeSimple

type NodeSimple struct {

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 集群ID (Optional) */
	ClusterId string `json:"clusterId"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 节点IP列表 (Optional) */
	Ips []string `json:"ips"`

	/*  (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`
}

type NodesOverview

type NodesOverview struct {

	/* 状态,running,idlesse (Optional) */
	Status string `json:"status"`

	/* 数量 (Optional) */
	Num int `json:"num"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type NodesOverviewResp

type NodesOverviewResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 概览详情 (Optional) */
	Data []NodesOverview `json:"data"`
}

type NodesQueueOverview

type NodesQueueOverview struct {

	/* 状态,running,idlesse (Optional) */
	Status string `json:"status"`

	/* 数量 (Optional) */
	Num int `json:"num"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type NodesQueueOverviewResp

type NodesQueueOverviewResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/*  (Optional) */
	Data []NodesQueueOverview `json:"data"`
}

type NodesResourceOverview

type NodesResourceOverview struct {

	/* 总节点数 (Optional) */
	NodeNum int `json:"nodeNum"`

	/* 总队列数量 (Optional) */
	QueueNum int `json:"queueNum"`

	/* 总GPU卡数量 (Optional) */
	GpuNum int `json:"gpuNum"`

	/* 总显存容量 (Optional) */
	GpuMemNum float32 `json:"gpuMemNum"`
}

type NodesResourceOverviewResp

type NodesResourceOverviewResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 概览详情 (Optional) */
	Data NodesResourceOverview `json:"data"`
}

type NotebookAffinity

type NotebookAffinity struct {

	/* 节点标签键名,用于匹配节点。

	## 常用标签
	- gpu-type: GPU型号
	- zone: 可用区
	- node-type: 节点类型
	*/
	Key string `json:"key"`

	/* 节点标签值列表,多个值之间是"或"的关系。

	## 示例
	- ["NVIDIA-A100", "NVIDIA-A800"]: 匹配A100或A800节点
	- ["cn-north-1a", "cn-north-1b"]: 匹配两个可用区
	*/
	Values []string `json:"values"`
}

type NotebookBaseInfo

type NotebookBaseInfo struct {

	/* 主账号,资源所属的主账号标识。
	(Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名,创建Notebook的用户名称。
	(Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin,创建Notebook的用户标识。
	(Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* Notebook实例ID,全局唯一标识。
	(Optional) */
	NotebookId string `json:"notebookId"`

	/* Notebook实例名称,用户自定义名称。
	(Optional) */
	Name string `json:"name"`

	/* Notebook实例状态。

	## 状态值
	- queuing: 排队中,等待资源调度
	- pending: 启动中,正在创建容器
	- failed: 失败,创建或运行失败
	- running: 运行中,正常提供服务
	- stopping: 停止中,正在停止实例
	- stopped: 已停止,实例已停止
	- deleting: 删除中,正在删除实例
	- saving: 镜像保存中,正在保存镜像
	- rolling-back: 回滚中,不能做任何操作
	- rolled-back: 已回滚,只能操作删除
	 (Optional) */
	State string `json:"state"`

	/* 工作空间ID,实例所属的工作空间。
	(Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* Pod IP地址,实例在集群内的IP地址。

	## 使用说明
	- 仅running状态时有值
	- 用于集群内服务间通信
	 (Optional) */
	PodIp string `json:"podIp"`

	/* 公网访问配置,负载均衡配置信息。
	(Optional) */
	Lb LbSpec `json:"lb"`

	/* 归属用户名称,资源归属的用户名称。
	(Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin,资源归属的用户标识。
	(Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。

	## 权限值
	- public: 公开,工作空间所有用户可见
	- private: 私有,仅管理员和拥有者可见
	 (Optional) */
	Permission string `json:"permission"`
}

type NotebookDetail

type NotebookDetail struct {

	/* 主账号,资源所属的主账号标识。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名,创建Notebook的用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin,创建Notebook的用户标识。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* Notebook实例ID,全局唯一标识。 (Optional) */
	NotebookId string `json:"notebookId"`

	/* Notebook实例名称,用户自定义名称。 (Optional) */
	Name string `json:"name"`

	/* Notebook实例描述信息。 (Optional) */
	Description string `json:"description"`

	/* 应用类型,指定Notebook运行的开发环境类型。

	## 支持的应用类型
	- JupyterLab: JupyterLab交互式开发环境
	 (Optional) */
	AppType string `json:"appType"`

	/* 任务ID,当前正在执行的任务标识。

	## 使用说明
	- 不为空表示正在执行任务(如保存镜像)
	- 为空表示没有正在执行的任务
	 (Optional) */
	TaskId string `json:"taskId"`

	/* Notebook实例状态。

	## 状态值说明
	- `queuing`: 排队中,等待资源调度
	- `pending`: 启动中,正在创建容器
	- `failed`: 失败,创建或运行失败
	- `running`: 运行中,正常提供服务
	- `stopping`: 停止中,正在停止实例
	- `stopped`: 已停止,实例已停止
	- `deleting`: 删除中,正在删除实例
	- `saving`: 镜像保存中,正在保存镜像
	- `rolling-back`: 回滚中,不能做任何操作
	- `rolled-back`: 已回滚,只能操作删除
	 (Optional) */
	State string `json:"state"`

	/* 资源在集群中的空闲状态。

	## 状态值
	- 空: 空闲状态
	- in-use: 资源已被占用
	 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间ID,实例所属的工作空间。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 访问令牌,用于访问Notebook服务的认证令牌。

	## 使用说明
	- 仅running状态时有值
	- 访问Notebook时需要携带此令牌
	 (Optional) */
	Token string `json:"token"`

	/* 控制台地址,JupyterLab的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 通过此地址访问JupyterLab界面
	 (Optional) */
	Uri string `json:"uri"`

	/* VSCode地址,VSCode Server的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 通过此地址使用VSCode在线编辑
	 (Optional) */
	VscodeUri string `json:"vscodeUri"`

	/* 自定义服务地址列表,用户自定义服务的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 用于访问用户启动的自定义服务
	 (Optional) */
	CustomServiceUrls []string `json:"customServiceUrls"`

	/* 异常原因,实例状态异常时的错误原因描述。

	## 使用说明
	- failed状态时会返回详细的错误信息
	- 用于排查实例启动失败等问题
	 (Optional) */
	Reason string `json:"reason"`

	/* 开始运行时间,实例进入running状态的时间。

	## 格式示例
	- 2023-06-01 12:22:56
	 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 镜像ID,当前使用的镜像标识。 (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像来源,镜像的来源类型。

	## 来源类型
	- public: 公共镜像
	- self: 自定义镜像
	 (Optional) */
	ImageSource string `json:"imageSource"`

	/* 镜像名称,当前使用的镜像名称。 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像URL,镜像的完整仓库地址。 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 最后更新的用户名,最近一次更新实例的用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后更新的用户pin,最近一次更新实例的用户标识。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 创建时间,实例创建的时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,实例最近一次更新的时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 资源配置,实例的计算资源配置信息。

	## 包含信息
	- 队列ID
	- CPU、内存配置
	- GPU配置(如有)
	 (Optional) */
	Workload NbWorkloadDetail `json:"workload"`

	/* 公网访问配置,负载均衡配置信息。

	## 使用说明
	- 配置了公网访问时有值
	- 用于SSH或其他公网服务访问
	 (Optional) */
	Lb LbSpec `json:"lb"`

	/* Notebook的计费信息,公共资源池的计费详情。

	## 使用说明
	- 仅公共资源池有计费信息
	- 私有资源池的资源无计费信息
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 存储空间列表,实例挂载的存储配置详情。

	## 包含信息
	- 存储类型、ID、路径
	- 挂载路径
	- 读写模式
	 (Optional) */
	Storages []StorageSpec `json:"storages"`

	/* 数据集列表,实例挂载的数据集配置详情。

	## 包含信息
	- 数据集来源、ID、版本
	- 存储类型、URL
	- 挂载路径、读写模式
	 (Optional) */
	Datasets []NbDatasetDetail `json:"datasets"`

	/* 模型列表,实例挂载的模型配置详情。

	## 包含信息
	- 模型来源、ID、版本
	- 存储类型、URL
	- 挂载路径、读写模式
	 (Optional) */
	Models []NbModelDetail `json:"models"`

	/* 代码配置列表,实例挂载的代码库配置详情。

	## 包含信息
	- 代码库ID、名称
	- 挂载路径
	 (Optional) */
	Codes []NbCodeConfigInfo `json:"codes"`

	/* 日志采集配置,容器日志采集到日志服务的配置。

	## 包含信息
	- 日志集ID和名称
	- 日志主题ID和名称
	- 标准日志配置
	- 自定义日志配置
	 (Optional) */
	LogCollectConfig LogCollectConfigDetail `json:"logCollectConfig"`

	/* 归属用户名称,资源归属的用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin,资源归属的用户标识。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。

	## 权限值
	- public: 公开,工作空间所有用户可见
	- private: 私有,仅管理员和拥有者可见
	 (Optional) */
	Permission string `json:"permission"`

	/* 关机策略,自动关机配置信息。

	## 包含信息
	- 排除关机策略标记
	- 运行时长限制
	- 闲置检测策略
	 (Optional) */
	ShutdownPolicy NbShutdownPolicy `json:"shutdownPolicy"`

	/* 资源组ID,实例所属的资源组标识。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称,实例所属的资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表,用于资源分类和管理。

	## 标签格式
	- key-value键值对形式
	- 最多10个标签
	 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 调度优先级,Pod调度顺序控制。
	(Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 节点亲和性配置,控制Pod调度到特定节点。
	(Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`
}

type NotebookEvent

type NotebookEvent struct {

	/* 事件类型,标识事件的种类。

	## 常见类型
	- Normal: 正常事件
	- Warning: 警告事件
	- Error: 错误事件
	 (Optional) */
	EventType string `json:"eventType"`

	/* 事件原因,简要描述事件的原因。

	## 示例
	- Started: 实例启动
	- FailedScheduling: 调度失败
	- ContainerCannotRun: 容器无法运行
	 (Optional) */
	Reason string `json:"reason"`

	/* 事件描述,详细描述事件的详细信息。

	## 示例
	- "Successfully assigned notebook to node xxx"
	- "0/3 nodes are available: 3 Insufficient nvidia.com/gpu"
	 (Optional) */
	Message string `json:"message"`

	/* 事件产生时间,事件实际发生的时间。

	## 格式示例
	- 2023-06-01 12:22:56
	 (Optional) */
	EventTime string `json:"eventTime"`

	/* 记录时间,事件被记录到系统的时间。

	## 格式示例
	- 2023-06-01 12:22:56
	 (Optional) */
	CreateTime string `json:"createTime"`
}

type NotebookInfo

type NotebookInfo struct {

	/* 主账号,资源所属的主账号标识。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名,创建Notebook的用户名称。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin,创建Notebook的用户标识。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* Notebook实例ID,全局唯一标识。 (Optional) */
	NotebookId string `json:"notebookId"`

	/* Notebook实例名称,用户自定义名称。 (Optional) */
	Name string `json:"name"`

	/* Notebook实例描述信息。 (Optional) */
	Description string `json:"description"`

	/* 应用类型,指定Notebook运行的开发环境类型。

	## 支持的应用类型
	- JupyterLab: JupyterLab交互式开发环境
	 (Optional) */
	AppType string `json:"appType"`

	/* 任务ID,当前正在执行的任务标识。

	## 使用说明
	- 不为空表示正在执行任务(如保存镜像)
	- 为空表示没有正在执行的任务
	 (Optional) */
	TaskId string `json:"taskId"`

	/* Notebook实例状态。

	## 状态值说明
	- `queuing`: 排队中,等待资源调度
	- `pending`: 启动中,正在创建容器
	- `failed`: 失败,创建或运行失败
	- `running`: 运行中,正常提供服务
	- `stopping`: 停止中,正在停止实例
	- `stopped`: 已停止,实例已停止
	- `deleting`: 删除中,正在删除实例
	- `saving`: 镜像保存中,正在保存镜像
	- `rolling-back`: 回滚中,不能做任何操作
	- `rolled-back`: 已回滚,只能操作删除
	 (Optional) */
	State string `json:"state"`

	/* 资源在集群中的空闲状态。

	## 状态值
	- 空: 空闲状态
	- in-use: 资源已被占用
	 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间ID,实例所属的工作空间。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 访问令牌,用于访问Notebook服务的认证令牌。

	## 使用说明
	- 仅running状态时有值
	- 访问Notebook时需要携带此令牌
	 (Optional) */
	Token string `json:"token"`

	/* 控制台地址,JupyterLab的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 通过此地址访问JupyterLab界面
	 (Optional) */
	Uri string `json:"uri"`

	/* VSCode地址,VSCode Server的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 通过此地址使用VSCode在线编辑
	 (Optional) */
	VscodeUri string `json:"vscodeUri"`

	/* 自定义服务地址列表,用户自定义服务的访问地址。

	## 使用说明
	- 仅running状态时有效
	- 用于访问用户启动的自定义服务
	 (Optional) */
	CustomServiceUrls []string `json:"customServiceUrls"`

	/* 异常原因,实例状态异常时的错误原因描述。

	## 使用说明
	- failed状态时会返回详细的错误信息
	- 用于排查实例启动失败等问题
	 (Optional) */
	Reason string `json:"reason"`

	/* 开始运行时间,实例进入running状态的时间。

	## 格式示例
	- 2023-06-01 12:22:56
	 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 镜像ID,当前使用的镜像标识。 (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像来源,镜像的来源类型。

	## 来源类型
	- public: 公共镜像
	- self: 自定义镜像
	 (Optional) */
	ImageSource string `json:"imageSource"`

	/* 镜像名称,当前使用的镜像名称。 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像URL,镜像的完整仓库地址。 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 最后更新的用户名,最近一次更新实例的用户名称。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后更新的用户pin,最近一次更新实例的用户标识。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 创建时间,实例创建的时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间,实例最近一次更新的时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 资源配置,实例的计算资源配置信息。

	## 包含信息
	- 队列ID
	- CPU、内存配置
	- GPU配置(如有)
	 (Optional) */
	Workload NbWorkloadDetail `json:"workload"`

	/* 公网访问配置,负载均衡配置信息。

	## 使用说明
	- 配置了公网访问时有值
	- 用于SSH或其他公网服务访问
	 (Optional) */
	Lb LbSpec `json:"lb"`

	/* 归属用户名称,资源归属的用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin,资源归属的用户标识。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 工作空间中的资源归属权限。

	## 权限值
	- public: 公开,工作空间所有用户可见
	- private: 私有,仅管理员和拥有者可见
	 (Optional) */
	Permission string `json:"permission"`

	/* 关机策略,自动关机配置信息。

	## 包含信息
	- 排除关机策略标记
	- 运行时长限制
	- 闲置检测策略
	 (Optional) */
	ShutdownPolicy NbShutdownPolicy `json:"shutdownPolicy"`

	/* 资源组ID,实例所属的资源组标识。 (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称,实例所属的资源组名称。 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 用户自定义标签列表,用于资源分类和管理。

	## 标签格式
	- key-value键值对形式
	- 最多10个标签
	 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 调度优先级,Pod调度顺序控制。
	(Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 节点亲和性配置,控制Pod调度到特定节点。
	(Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`
}

type NotebookNodeAffinity

type NotebookNodeAffinity struct {

	/* 节点亲和性规则列表,多个规则之间是"且"的关系。

	## 示例
	- 要求节点同时满足标签: gpu-type=NVIDIA-A100 和 zone=cn-north-1a
	*/
	Affinities []NotebookAffinity `json:"affinities"`
}

type NotebookPod

type NotebookPod struct {

	/* Kubernetes命名空间,Pod所在的命名空间。

	## 说明
	- 每个工作空间对应一个命名空间
	- 用于资源隔离
	 (Optional) */
	Namespace string `json:"namespace"`

	/* Pod名称,Kubernetes中Pod的唯一标识。

	## 命名规则
	- 格式: notebook-{notebookId}
	 (Optional) */
	PodName string `json:"podName"`

	/* Pod IP地址,Pod在集群内的IP。

	## 使用说明
	- 仅运行状态时有值
	- 用于集群内服务间通信
	 (Optional) */
	PodIp string `json:"podIp"`

	/* Pod状态,Kubernetes Pod的生命周期阶段。

	## 状态值
	- Pending: 等待调度
	- Running: 运行中
	- Succeeded: 成功完成
	- Failed: 失败
	- Unknown: 未知
	 (Optional) */
	Phase string `json:"phase"`

	/* 容器数量,Pod中容器的总数。

	## 说明
	- 通常包含主容器和Sidecar容器
	 (Optional) */
	ContainerCount int `json:"containerCount"`

	/* 就绪容器数量,已经Ready的容器数量。

	## 使用说明
	- 等于containerCount表示所有容器都已就绪
	- 小于containerCount表示部分容器未就绪
	 (Optional) */
	ReadyContainerCount int `json:"readyContainerCount"`

	/* 重启次数,容器重启的总次数。

	## 使用说明
	- 过多的重启次数可能表示应用有问题
	- 正常情况下应为0
	 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 异常原因,Pod状态异常时的原因。

	## 常见原因
	- CrashLoopBackOff: 容器反复崩溃
	- ImagePullBackOff: 镜像拉取失败
	- InsufficientResources: 资源不足
	 (Optional) */
	Reason string `json:"reason"`

	/* 异常描述,详细的异常信息。

	## 使用说明
	- 用于排查Pod状态异常的原因
	 (Optional) */
	Message string `json:"message"`

	/* 就绪时间,Pod进入Ready状态的时间。

	## 格式示例
	- 2023-06-01 12:22:56
	 (Optional) */
	ReadyTime string `json:"readyTime"`
}

type NotebookSpec

type NotebookSpec struct {

	/* Notebook实例名称。

	## 命名规则
	- 长度:1~32字符
	- 支持字符:中文、数字、大小写字母、英文下划线"_"、中划线"-"、点"."
	- 示例:my-notebook-01
	*/
	Name string `json:"name"`

	/* Notebook实例描述信息。

	## 描述规则
	- 长度:不超过256字符
	- 建议包含实例用途、责任人等关键信息
	 (Optional) */
	Description *string `json:"description"`

	/* 应用类型,指定Notebook运行的开发环境类型。

	## 支持的应用类型
	- JupyterLab: JupyterLab交互式开发环境,支持Python、R等多种编程语言
	*/
	AppType string `json:"appType"`

	/* 镜像来源,指定使用公共镜像还是自定义镜像。

	## 支持的镜像来源
	- public: 公共镜像,由平台提供的预置镜像
	- self: 自定义镜像,用户自己保存或上传的镜像
	*/
	ImageSource string `json:"imageSource"`

	/* 镜像ID,用于唯一标识镜像。

	## 使用说明
	- 公共镜像(public): 镜像ID由平台提供
	- 自定义镜像(self): 镜像ID为用户保存镜像时生成的ID
	 (Optional) */
	ImageId *string `json:"imageId"`

	/* 镜像名称,用于显示和识别镜像。  */
	ImageName string `json:"imageName"`

	/* 镜像URL地址,完整的镜像仓库地址。

	## 格式示例
	- registry.example.com:5000/namespace/image:tag
	*/
	ImageUrl string `json:"imageUrl"`

	/* 负载均衡配置,用于配置Notebook的公网SSH访问能力。

	## 使用说明
	- 仅支持私有资源池中的Notebook配置公网访问
	- 需要传入与资源队列可通信的负载均衡ID和端口
	- 不需要公网SSH访问时不要指定此参数
	 (Optional) */
	LbSpec *LbSpec `json:"lbSpec"`

	/* 工作负载资源配置,定义Notebook的计算资源需求。

	## 配置说明
	- **公共资源池**: 必须指定规格ID(flavorId)
	- **私有资源池**: 必须指定CPU和内存,可选GPU配置
	*/
	WorkloadSpec *WorkloadSpec `json:"workloadSpec"`

	/* 存储空间配置列表,定义Notebook挂载的存储资源。

	## 配置说明
	- 第一块存储默认作为工作目录,必须挂载到`/mnt/workspace`
	- 支持cfs、oss、jpfs三种存储类型
	- 列表顺序决定挂载顺序
	*/
	Storages []StorageSpec `json:"storages"`

	/* 数据集配置列表,定义Notebook挂载的数据集资源。

	## 配置说明
	- 支持公共数据集和个人数据集
	- 可选择数据集版本
	- 建议挂载到`/mnt/datasets/`路径下
	 (Optional) */
	Datasets []DatasetSpec `json:"datasets"`

	/* 模型配置列表,定义Notebook挂载的模型资源。

	## 配置说明
	- 支持公共模型和个人模型
	- 可选择模型版本
	- 建议挂载到`/mnt/models/`路径下
	 (Optional) */
	Models []ModelSpec `json:"models"`

	/* 工作空间中的资源归属权限,控制资源的可见范围。

	## 权限类型
	- public: 公开,工作空间中所有用户可见
	- private: 私有,仅管理员和拥有者可见

	## 默认值
	- 默认为public

	## 权限说明
	- 管理员可查看工作空间中全部资源
	- 其他用户只能查看归属自己的private权限的资源或public权限的资源
	 (Optional) */
	Permission *string `json:"permission"`

	/* 节点亲和性配置,控制Pod调度到特定节点。

	## 配置说明
	- 支持配置多个亲和性规则,每个元素之间是"或"的关系
	- 适用于需要调度到特定硬件或标签节点的场景
	- 例如:调度到特定GPU型号的节点
	 (Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`

	/* 代码库配置列表,定义Notebook挂载的代码仓库。

	## 配置说明
	- 支持Git代码仓库
	- 需要预先在工作空间中配置代码库
	- 指定挂载路径后代码会自动拉取到指定目录
	 (Optional) */
	Codes []NbCodeConfig `json:"codes"`

	/* SSH配置,用于配置SSH远程连接能力。

	## 配置说明
	- 开启SSH后可通过SSH客户端连接Notebook
	- 可配置公钥进行免密登录
	 (Optional) */
	SshSpec *SshSpec `json:"sshSpec"`

	/* 自定义实例标签,用于资源分类和管理。

	## 标签规则
	- 以key-value键值对形式指定
	- 最多支持10个标签
	- key不能以 "jrn:" 或"jdc-"开头
	- 仅支持中文、大/小写英文、数字及如下符号:`\_.,:\/=+-@`
	- 示例:{"env": "dev", "team": "ai"}
	 (Optional) */
	UserTags []Tag `json:"userTags"`

	/* 资源组ID,用于资源分组管理。

	## 使用说明
	- 将资源归属到指定的资源组
	- 便于按资源组进行权限管理和成本核算
	 (Optional) */
	ResourceGroupId *string `json:"resourceGroupId"`

	/* 调度优先级配置,控制Pod调度顺序。

	## 使用说明
	- 非必填,默认使用系统优先级:normal-priority(10000)
	- 优先级越高越优先调度
	- 适用于资源紧张时的调度控制
	 (Optional) */
	SchedulePriority *SchedulePriority `json:"schedulePriority"`
}

type NotebookStateCount

type NotebookStateCount struct {

	/* 状态名称,Notebook实例状态。

	## 状态值
	- queuing: 排队中
	- pending: 启动中
	- failed: 失败
	- running: 运行中
	- stopping: 停止中
	- stopped: 已停止
	- deleting: 删除中
	- saving: 镜像保存中
	- rolling-back: 回滚中
	- rolled-back: 已回滚
	 (Optional) */
	Name string `json:"name"`

	/* 该状态下的实例数量。

	## 使用说明
	- 用于统计各状态的实例分布
	- 帮助运维人员了解资源使用情况
	 (Optional) */
	Value int `json:"value"`
}

type Oss

type Oss struct {

	/* oss 端点。示例:s3-internal.cn-east-2.jdcloud-oss.com。 (Optional) */
	Endpoint string `json:"endpoint"`

	/* oss bucket。示例:bucket-demo。 (Optional) */
	Bucket string `json:"bucket"`

	/* oss 源路径。示例:data/d1。 (Optional) */
	SourcePath string `json:"sourcePath"`
}

type OssDetailForJob

type OssDetailForJob struct {

	/* oss 端点。示例:s3-internal.cn-east-2.jdcloud-oss.com。 (Optional) */
	Endpoint string `json:"endpoint"`

	/* oss bucket。示例:bucket-demo。 (Optional) */
	Bucket string `json:"bucket"`

	/* oss 源路径。示例:/data/d1。 (Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置。示例:/mnt/ws/oss-1。
	建议挂载到/mnt/开头的路径下,不支持挂载到系统目录。
	不支持的系统目录如下:`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`。
	 (Optional) */
	MountPath string `json:"mountPath"`
}

type OssParamForDistill

type OssParamForDistill struct {

	/* OSS 端点地址。

	## 格式
	`s3-internal.{region}.jdcloud-oss.com`

	## 示例
	`s3-internal.cn-east-2.jdcloud-oss.com`

	## 说明
	使用 internal 端点可提高访问速度并降低成本。
	 (Optional) */
	Endpoint string `json:"endpoint"`

	/* OSS Bucket 名称。

	## 示例
	`bucket-demo`

	## 说明
	Bucket 需要提前创建且确保有访问权限。
	 (Optional) */
	Bucket string `json:"bucket"`

	/* OSS 源路径。

	## 格式
	以 `/` 开头的路径。

	## 示例
	`/data/d1`
	 (Optional) */
	SourcePath string `json:"sourcePath"`
}

type OssParamForExperiment

type OssParamForExperiment struct {

	/* OSS 端点地址。

	## 格式
	`s3-internal.{region}.jdcloud-oss.com`

	## 示例
	- 华东-上海:`s3-internal.cn-east-2.jdcloud-oss.com`
	- 华北-北京:`s3-internal.cn-north-1.jdcloud-oss.com`

	## 说明
	使用 internal 端点可提高访问速度并降低成本。
	 (Optional) */
	Endpoint *string `json:"endpoint"`

	/* OSS Bucket 名称。

	## 示例
	`bucket-demo`

	## 说明
	Bucket 需要提前创建,且确保账号有访问权限。
	 (Optional) */
	Bucket *string `json:"bucket"`

	/* OSS 源路径。

	## 格式
	以 `/` 开头的路径。

	## 示例
	- 训练数据:`/data/training`
	- 输出目录:`/output/models`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`
}

type OssParamForJob

type OssParamForJob struct {

	/* OSS 端点地址,用于访问 OSS 服务。

	**格式:** `s3-internal.{region}.jdcloud-oss.com`

	**示例:**
	- 华东-上海:`s3-internal.cn-east-2.jdcloud-oss.com`
	- 华北-北京:`s3-internal.cn-north-1.jdcloud-oss.com`

	**建议:** 使用内网端点,访问速度更快
	 (Optional) */
	Endpoint *string `json:"endpoint"`

	/* OSS Bucket 名称。

	**示例:** `my-training-bucket`

	**说明:** Bucket 需提前创建
	 (Optional) */
	Bucket *string `json:"bucket"`

	/* OSS 源路径,指定要挂载的 Bucket 目录。

	**格式:** 以 `/` 开头的路径

	**示例:**
	- 根目录:`/`
	- 数据目录:`/data/d1`
	- 模型目录:`/models/llama`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`

	/* 挂载点配置,指定 OSS 在容器内的挂载路径。

	**建议:** 挂载到 `/mnt/` 开头的路径下

	**示例:**
	- 数据目录:`/mnt/ws/data`
	- 模型目录:`/mnt/ws/models`
	- 输出目录:`/mnt/ws/output`

	**禁止挂载的系统目录:**
	`/`, `/bin`, `/boot`, `/dev`, `/etc`, `/home`, `/lib`, `/lib32`, `/lib64`, `/libx32`, `/opt`, `/proc`, `/root`, `/run`, `/sbin`, `/sys`, `/tmp`, `/usr`, `/var`
	 (Optional) */
	MountPath *string `json:"mountPath"`
}

type PageInfo

type PageInfo struct {

	/* 当前页码 (Optional) */
	CurrentPage int64 `json:"currentPage"`

	/* 每页大小 (Optional) */
	PageSize int64 `json:"pageSize"`

	/* 总记录数 (Optional) */
	Total int64 `json:"total"`
}

type PatchClusterNodeLabelsRequest

type PatchClusterNodeLabelsRequest struct {

	/* 节点调度标签 (Optional) */
	NodeLabels []PatchNodeLabels `json:"nodeLabels"`
}

type PatchClusterNodeLabelsResult

type PatchClusterNodeLabelsResult struct {

	/*  (Optional) */
	RequestId string `json:"requestId"`

	/*  (Optional) */
	Code int `json:"code"`

	/*  (Optional) */
	Msg string `json:"msg"`

	/* 节点调度标签更新结果 (Optional) */
	Results []NodePatchLabelsResult `json:"results"`
}

type PatchNodeLabels

type PatchNodeLabels struct {

	/*  (Optional) */
	NodeName string `json:"nodeName"`

	/*  (Optional) */
	Labels []NodeLabelKeyValue `json:"labels"`
}

type PodEvent

type PodEvent struct {

	/* 事件类型 (Optional) */
	EventType string `json:"eventType"`

	/* 事件原因 (Optional) */
	EventReason string `json:"eventReason"`

	/* 事件内容 (Optional) */
	EventContent string `json:"eventContent"`

	/* 事件发生时间 (Optional) */
	EventTime string `json:"eventTime"`
}

type PodInfo

type PodInfo struct {

	/* 推理服务名字 (Optional) */
	Name string `json:"name"`

	/* 推理服务ID (Optional) */
	InferenceId string `json:"inferenceId"`

	/* pod ip (Optional) */
	PodIp string `json:"podIp"`

	/* pod重启次数 (Optional) */
	Restarts int `json:"restarts"`

	/* pod状态 (Optional) */
	Status string `json:"status"`

	/* pod中已经running的容器数 (Optional) */
	ReadyContainers int `json:"readyContainers"`

	/* pod中的总容器数 (Optional) */
	TotalContainers int `json:"totalContainers"`

	/* pod所在节点的IP (Optional) */
	NodeIp string `json:"nodeIp"`

	/* pod创建时间 (Optional) */
	CreatedAt string `json:"createdAt"`

	/* pod更新时间 (Optional) */
	UpdatedAt string `json:"updatedAt"`

	/* 是否为旧的pod (Optional) */
	IsOldPod bool `json:"isOldPod"`
}

type PodInfoForDistill

type PodInfoForDistill struct {

	/* Pod 名称。

	## 用途
	用于日志查询、状态监控等操作。
	 (Optional) */
	PodName string `json:"podName"`
}

type PodInfoForExperiment

type PodInfoForExperiment struct {

	/* Pod 名称。

	## 用途
	用于日志查询、终端访问等操作。
	 (Optional) */
	PodName string `json:"podName"`

	/* 终端访问地址。

	## 用途
	通过终端进入容器进行调试。
	 (Optional) */
	TerminalUrl string `json:"terminalUrl"`
}

type PodInfoForJob

type PodInfoForJob struct {

	/* pod名称。 (Optional) */
	PodName string `json:"podName"`

	/* 终端访问地址。 (Optional) */
	TerminalUrl string `json:"terminalUrl"`
}

type PodResourceMetadataForJob

type PodResourceMetadataForJob struct {

	/* Pod所在的命名空间。 (Optional) */
	Namespace string `json:"namespace"`

	/* Pod所在的节点名称。 (Optional) */
	NodeName string `json:"nodeName"`

	/* Pod所在的节点IP。 (Optional) */
	NodeIP string `json:"nodeIP"`

	/* Pod的名称。 (Optional) */
	PodName string `json:"podName"`

	/* Pod的IP。 (Optional) */
	PodIP string `json:"podIP"`

	/* Pod的UID。 (Optional) */
	PodUID string `json:"podUID"`

	/* Pod关联的GPU信息。 (Optional) */
	Gpu GpuInfo `json:"gpu"`
}

type PodsState

type PodsState struct {

	/* 仅查询返回:该角色 pod 总数 (Optional) */
	TotalPods *int `json:"totalPods"`

	/* 仅查询返回:该角色成功 pod 数(ready) (Optional) */
	SuccessPods *int `json:"successPods"`

	/* 仅查询返回:该角色失败 pod 数 (Optional) */
	FailedPods *int `json:"failedPods"`
}

type ProductUpdateInfo

type ProductUpdateInfo struct {

	/* 动态id (Optional) */
	UpdateId string `json:"updateId"`

	/* 动态标题,最大长度64字符 (Optional) */
	Title string `json:"title"`

	/* 动态内容或描述,最大长度128字符 (Optional) */
	Content string `json:"content"`

	/* 动态类型 MODEL-模型上新, FEATURE-产品功能 (Optional) */
	UpdateType string `json:"updateType"`

	/* 发布日期,用于展示给客户, 格式 YYYY-MM-DD (Optional) */
	PublishDate string `json:"publishDate"`

	/* 展示顺序, 数值越大越靠前, 默认0 (Optional) */
	DisplayOrder int `json:"displayOrder"`

	/* 是否置顶, 默认false (Optional) */
	IsSticky bool `json:"isSticky"`

	/* 动态属性键值对 (Optional) */
	Tags []ProductUpdateTag `json:"tags"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 主账号pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新用户。 (Optional) */
	UpdateUser string `json:"updateUser"`
}

type ProductUpdateSpec

type ProductUpdateSpec struct {

	/* 动态标题,最大长度64字符 (Optional) */
	Title string `json:"title"`

	/* 动态内容或描述,最大长度128字符 (Optional) */
	Content string `json:"content"`

	/* 动态类型 MODEL-模型上新, FEATURE-产品功能 (Optional) */
	UpdateType string `json:"updateType"`

	/* 发布日期,用于展示给客户, 格式 YYYY-MM-DD (Optional) */
	PublishDate string `json:"publishDate"`

	/* 展示顺序, 数值越大越靠前, 默认0 (Optional) */
	DisplayOrder int `json:"displayOrder"`

	/* 是否置顶, 默认false (Optional) */
	IsSticky bool `json:"isSticky"`

	/* 动态属性键值对 (Optional) */
	Tags []ProductUpdateTag `json:"tags"`
}

type ProductUpdateTag

type ProductUpdateTag struct {

	/* 标签key,最大长度64字符 (Optional) */
	Key string `json:"key"`

	/* 标签value,最大长度128字符 (Optional) */
	Value string `json:"value"`
}

type PublicImageInfo

type PublicImageInfo struct {

	/* 镜像 iD (Optional) */
	ImageId string `json:"imageId"`

	/* 镜像名称 (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像用途,可选值:
	- notebook 开发
	- training 训练,
	- inference 推理
	 (Optional) */
	ImageUsage string `json:"imageUsage"`

	/* 镜像类型:cpu,gpu (Optional) */
	ImageType string `json:"imageType"`

	/* 镜像地址 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 注册方式,可选值:
	- jcr 容器镜像仓库注册
	- dockerfile Dockerfile方式构建
	- notebook:notebook方式构建
	- base-image 基于基础镜像构建
	 (Optional) */
	SourceType string `json:"sourceType"`

	/* 标签,使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 标签,labels转换的数组格式。 (Optional) */
	LabelList []string `json:"labelList"`

	/* 镜像启动命令。 (Optional) */
	Command string `json:"command"`

	/* 主账号pin (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* true上线,false下线。 (Optional) */
	Online bool `json:"online"`
}

type PublicImageWhitelist

type PublicImageWhitelist struct {

	/* 镜像id (Optional) */
	ImageId string `json:"imageId"`

	/* 灰度主账号pin (Optional) */
	WhitelistPin string `json:"whitelistPin"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`
}

type PublicModelVersionInfo

type PublicModelVersionInfo struct {

	/* 模型ID。 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型名称。 (Optional) */
	ModelName string `json:"modelName"`

	/* 模型描述。 (Optional) */
	ModelDescription string `json:"modelDescription"`

	/* 版本号。 (Optional) */
	Version string `json:"version"`

	/* 版本描述。 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 注册来源:user为用户上传,finetune精调实验。 (Optional) */
	SourceType string `json:"sourceType"`

	/* 基础模型ID。 (Optional) */
	BaseModelId string `json:"baseModelId"`

	/* 基础模型名称。 (Optional) */
	BaseModelName string `json:"baseModelName"`

	/* 存储类型(数据来源),可选值:
	- oss
	- cfs
	- jpfs
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 存储oss对应ossEnpoint, cfs、jpfs对应IP (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket/cfs-pseudo(例如:/cfs) (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path(数据来源path)例如:oss时,bucket后面部分的路径;cfs时,虚根pseudo后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

	/* 存储全路径地址:
	- oss  oss://{storageDomain}/{storageBucket}/{storagePath}
	- cfs  cfs://{storageId}/{storageBucket}/{storagePath}
	- jpfs  jpfs://{storageId}/{storagePath}
	 (Optional) */
	StorageUri string `json:"storageUri"`

	/* 存储ID cfs或jpfs时使用,例如:fs-60z1s969ui (Optional) */
	StorageId string `json:"storageId"`

	/* cfsVpcId (Optional) */
	CfsVpcId string `json:"cfsVpcId"`

	/* 模型介绍。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`

	/* 标签,多个标签使用英文逗号拼接。例如:label1,label2,label3 (Optional) */
	Labels string `json:"labels"`

	/* 标签map格式 (Optional) */
	LabelsMap interface{} `json:"labelsMap"`

	/* 标签对象 (Optional) */
	LabelsObject LabelsObject `json:"labelsObject"`

	/* 模型类型。 (Optional) */
	ModelType string `json:"modelType"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 主账号pin。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 注册来源对应的ID:训练任务ID/精调实验ID等 (Optional) */
	ExperimentId string `json:"experimentId"`

	/* experimentId的运行记录id (Optional) */
	ExperimentRunId string `json:"experimentRunId"`
}

type PublicModelWhitelist

type PublicModelWhitelist struct {

	/* 模型id (Optional) */
	ModelId string `json:"modelId"`

	/* 灰度主账号pin (Optional) */
	WhitelistPin string `json:"whitelistPin"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 创建人 (Optional) */
	CreateUser string `json:"createUser"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户 (Optional) */
	UpdateUser string `json:"updateUser"`
}

type PublicQueue

type PublicQueue struct {

	/* 资源队列ID (Optional) */
	QueueId string `json:"queueId"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 分类。 范围:cpu:cpu规格,gpu:gpu规格 (Optional) */
	Category string `json:"category"`

	/* 规格id (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格名称 (Optional) */
	FlavorName string `json:"flavorName"`

	/* cpu数量 单位:毫核 (Optional) */
	CpuM int `json:"cpuM"`

	/* 内存大小 单位:MiB (Optional) */
	MemoryMiB int `json:"memoryMiB"`

	/* gpu规格 (Optional) */
	Gpu Gpu `json:"gpu"`

	/* RDMA规格 (Optional) */
	Rdma Rdma `json:"rdma"`
}

type Queue

type Queue struct {

	/* 资源队列ID (Optional) */
	Id string `json:"id"`

	/* 资源队列名称 (Optional) */
	Name string `json:"name"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点池相关信息,key值参照NodePool属性,查询时有用 (Optional) */
	NodePoolInfo interface{} `json:"nodePoolInfo"`

	/* 队列下任务的命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* GPU资源配额信息 (Optional) */
	GpuQuotas []GpuQuota `json:"gpuQuotas"`

	/* CPU资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/* 状态,1创建中2创建失败3运行中4更新中5错误6删除中7已删除 (Optional) */
	Status int `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 是否高优 (Optional) */
	Priority bool `json:"priority"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 资源队列名称 (Optional) */
	Desc string `json:"desc"`
}

type QueueWithDeleted

type QueueWithDeleted struct {

	/* 资源队列ID (Optional) */
	Id string `json:"id"`

	/* 资源队列名称 (Optional) */
	Name string `json:"name"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点池相关信息,key值参照NodePool属性,查询时有用(name、poolType、vpcId、vpcName、topology) (Optional) */
	NodePoolInfo interface{} `json:"nodePoolInfo"`

	/* 队列下任务的命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* GPU资源配额信息 (Optional) */
	GpuQuotas []GpuQuota `json:"gpuQuotas"`

	/* CPU资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/* 状态,1创建中2创建失败3运行中4更新中5错误6删除中7已删除 (Optional) */
	Status int `json:"status"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 是否高优 (Optional) */
	Priority bool `json:"priority"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 删除时间,秒 (Optional) */
	DeleteTime int64 `json:"deleteTime"`

	/* 资源队列名称 (Optional) */
	Desc string `json:"desc"`
}

type Quota

type Quota struct {

	/* 已使用 (Optional) */
	Used float64 `json:"used"`

	/* 预留 (Optional) */
	Reserve float64 `json:"reserve"`

	/* 最小(承诺),容量值 (Optional) */
	Min float64 `json:"min"`

	/* 最大 (Optional) */
	Max float64 `json:"max"`

	/* 实际剩余资源,有可能小于配额剩余资源 (Optional) */
	Idle float64 `json:"idle"`

	/* 容量分配值 (Optional) */
	Allocate float64 `json:"allocate"`
}

type Rdma

type Rdma struct {

	/* RDMA网卡个数 (Optional) */
	Count int `json:"count"`

	/* RDMA网卡带宽 (Optional) */
	BandwidthGbps int `json:"bandwidthGbps"`
}

type RealTimeGpuStatistics

type RealTimeGpuStatistics struct {

	/* 空闲显卡数量 (Optional) */
	IdleGPUs int `json:"idleGPUs"`

	/* 故障显卡数量 (Optional) */
	FaultGPUs int `json:"faultGPUs"`

	/* 运行任务显卡数量 (Optional) */
	RunningGPUs int `json:"runningGPUs"`
}

type RealTimeNodeStatistics

type RealTimeNodeStatistics struct {

	/* 空闲节点数量 (Optional) */
	IdleNodes int `json:"idleNodes"`

	/* 故障节点数量 (Optional) */
	FaultNodes int `json:"faultNodes"`

	/* 运行任务节点数量 (Optional) */
	RunningNodes int `json:"runningNodes"`
}

type RealTimeQueueStatistics

type RealTimeQueueStatistics struct {

	/* 运行任务的队列数量 (Optional) */
	RunningQueues int `json:"runningQueues"`

	/* 空闲队列数量 (Optional) */
	IdleQueues int `json:"idleQueues"`
}

type RealTimeResourceStatistics

type RealTimeResourceStatistics struct {

	/* 实时资源统计 (Optional) */
	Item RealTimeResourceStatisticsItem `json:"item"`
}

type RealTimeResourceStatisticsItem

type RealTimeResourceStatisticsItem struct {

	/* 资源类型 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 空闲资源 (Optional) */
	Idle string `json:"idle"`

	/* 已分配资源 (Optional) */
	Allocated string `json:"allocated"`

	/* 资源总量 (Optional) */
	Capacity string `json:"capacity"`

	/* 已分配资源比例 (Optional) */
	AllocatedRate string `json:"allocatedRate"`

	/* 已分配资源使用率 (Optional) */
	UsedUtilization string `json:"usedUtilization"`
}

type RebalanceTrafficRequest

type RebalanceTrafficRequest struct {

	/* 地域ID (Optional) */
	RegionID string `json:"regionID"`

	/*  (Optional) */
	Traffics []TrafficInfo `json:"traffics"`
}

type RegionMember

type RegionMember struct {

	/* 成员名称。 (Optional) */
	MemberUser string `json:"memberUser"`

	/* 成员子账号。 (Optional) */
	MemberPin string `json:"memberPin"`
}

type RelatedInfo

type RelatedInfo struct {

	/* id。 (Optional) */
	Id string `json:"id"`

	/* 名称。 (Optional) */
	Name string `json:"name"`
}

type ResFlavor

type ResFlavor struct {

	/* 分类。 范围:cpu:cpu规格,gpu:gpu规格 (Optional) */
	Category string `json:"category"`

	/* 规格id (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格名称 (Optional) */
	FlavorName string `json:"flavorName"`

	/* cpu数量 单位:毫核 (Optional) */
	CpuM int `json:"cpuM"`

	/* 内存大小 单位:MiB (Optional) */
	MemoryMiB int `json:"memoryMiB"`

	/* gpu规格 (Optional) */
	Gpu Gpu `json:"gpu"`

	/* RDMA规格 (Optional) */
	Rdma Rdma `json:"rdma"`
}

type Resource

type Resource struct {

	/* CPU数量,单位毫核 (如:1, 2)  */
	Cpu int `json:"cpu"`

	/* 内存大小,单位M (如:1024M)  */
	Memory int `json:"memory"`

	/* 是否启用rdma, 1:启用, 0:不启用 (Optional) */
	Rdma *int `json:"rdma"`

	/* 资源队列ID (Optional) */
	QueueId *string `json:"queueId"`

	/* GPU设备类型 (Optional) */
	DeviceModel *string `json:"deviceModel"`

	/* GPU设备显存 (Optional) */
	DeviceMemory *int `json:"deviceMemory"`

	/* 虚拟GPU数量。如果选NV卡则支持选择1~8、0.5/0.25/0.125/0.1卡。如果是910B卡则只支持选1~8。必须与deviceModel同时使用。 (Optional) */
	VcudaCore *string `json:"vcudaCore"`
}

type ResourceActualUsedOverview

type ResourceActualUsedOverview struct {

	/* 维度:Memory(显存),Ratio(算力)或空 (Optional) */
	Dimension string `json:"dimension"`

	/* 利用率 (Optional) */
	Rate string `json:"rate"`
}

type ResourceGroupInfo

type ResourceGroupInfo struct {

	/* 资源组ID (Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称 (Optional) */
	ResourceGroupName string `json:"resourceGroupName"`
}

type ResourceInfo

type ResourceInfo struct {

	/* 资源id。 (Optional) */
	Id string `json:"id"`

	/* 资源类型。["Notebook","TrainJob","FineTuning","Inference","Simulation"] (Optional) */
	Type string `json:"type"`

	/* 资源名称。 (Optional) */
	Name string `json:"name"`

	/* 工作空间id。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 创建人。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 关联信息。
	type为FineTuning时,关联信息为实验信息;
	type为Inference时,关联信息为服务信息;
	 (Optional) */
	RelatedInfo RelatedInfo `json:"relatedInfo"`
}

type ResourceOverview

type ResourceOverview struct {

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 资源类型 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源总量 (Optional) */
	Total string `json:"total"`

	/* 资源分配/使用量 (Optional) */
	Allocate string `json:"allocate"`

	/* 分配/使用率 (Optional) */
	TotalAllocateRate string `json:"totalAllocateRate"`

	/* k8s资源实际剩余 (Optional) */
	Idle string `json:"idle"`

	/* 分配使用率 (Optional) */
	AllocateUsed []ResourceActualUsedOverview `json:"allocateUsed"`

	/* 总量使用率 (Optional) */
	TotalUsed []ResourceActualUsedOverview `json:"totalUsed"`
}

type ResourceOverviewResp

type ResourceOverviewResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/*  (Optional) */
	Data []ResourceOverview `json:"data"`
}

type ResourceParamForDistill

type ResourceParamForDistill struct {

	/* 队列ID。

	## 格式
	示例:`queue-2xxx**********2d*********8b8`

	## 公共资源池
	使用公共资源池时固定为:`joybuilder-public-queue`

	## 选择建议
	- 测试验证:使用公共资源池
	- 生产训练:使用专属资源池
	 (Optional) */
	QueueId string `json:"queueId"`
}

type ResourceParamForExperiment

type ResourceParamForExperiment struct {

	/* 队列ID。

	## 格式
	示例:`queue-2xxx**********2d*********8b8`

	## 公共资源池
	使用公共资源池时固定为:`joybuilder-public-queue`

	## 专属资源池
	使用专属资源池时填写具体的队列ID。

	## 选择建议
	- 测试验证:使用公共资源池
	- 生产训练:使用专属资源池,更稳定可控
	 (Optional) */
	QueueId *string `json:"queueId"`

	/* 公共资源池的规格ID。

	## 说明
	使用公共资源池时,通过此字段选择资源规格。

	## 获取方式
	通过资源规格查询接口获取可用的规格列表。
	 (Optional) */
	FlavorId *string `json:"flavorId"`

	/* 公共资源池的规格详细信息。

	包含 CPU、内存、GPU 等具体配置信息。
	 (Optional) */
	FlavorInfo *interface{} `json:"flavorInfo"`

	/* GPU卡类型。

	## 示例
	- `NVIDIA_G2`
	- `NVIDIA_A100`
	- `NVIDIA_H800`

	## 说明
	不同 GPU 型号的显存和算力不同,根据模型大小和训练需求选择。
	 (Optional) */
	GpuDeviceModel *string `json:"gpuDeviceModel"`

	/* 虚拟GPU卡数量。

	## 英伟达 GPU 可选值
	- 分数卡(适合测试):`0.1`、`0.125`、`0.25`、`0.5`
	- 整数卡(适合生产):`1`、`2`、`3`、`4`、`5`、`6`、`7`、`8`

	## 使用建议
	- 小模型微调可用分数卡
	- 大模型微调建议使用整数卡
	 (Optional) */
	VcudaCore *float64 `json:"vcudaCore"`

	/* CPU大小,单位:毫核(milliCore)。

	## 换算
	- 100m = 0.1 CPU 核心
	- 1000m = 1 CPU 核心
	- 4000m = 4 CPU 核心

	## 使用建议
	CPU 资源主要用于数据预处理,根据数据量合理配置。
	 (Optional) */
	CpuMilli *int `json:"cpuMilli"`

	/* 内存大小,单位:MiB。

	## 换算
	- 1024 MiB = 1 GiB
	- 16384 MiB = 16 GiB

	## 使用建议
	内存不足会导致 OOM,建议根据模型大小预留充足内存。
	 (Optional) */
	MemoryMiB *int `json:"memoryMiB"`
}

type ResourceParamForJob

type ResourceParamForJob struct {

	/* 队列ID,指定任务运行的资源队列。

	**公共资源池:** 固定使用 `joybuilder-public-queue`

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 公共资源池:`joybuilder-public-queue`
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId *string `json:"queueId"`

	/* 规格ID,指定公共资源池的计算规格。

	**说明:**
	- 公共资源池必须填写此字段
	- 专属资源池无需填写,由自定义资源配置决定

	**获取方式:** 通过规格查询接口获取可用规格列表
	 (Optional) */
	FlavorId *string `json:"flavorId"`

	/* 规格描述。
	(Optional) */
	FlavorInfo *interface{} `json:"flavorInfo"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号:**
	- `NVIDIA_G2`:通用 GPU 型号
	- `NVIDIA_V100`:Tesla V100
	- `NVIDIA_A100`:Ampere A100

	**注意:** 不同地域支持的 GPU 型号可能不同
	 (Optional) */
	GpuDeviceModel *string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值(英伟达):**
	- 小规格:`0.1`, `0.125`, `0.25`, `0.5`
	- 中规格:`1`, `2`, `3`, `4`
	- 大规格:`5`, `6`, `7`, `8`

	**使用建议:**
	- 小模型训练:0.5 ~ 2 核
	- 中等模型:2 ~ 4 核
	- 大模型训练:4 ~ 8 核
	 (Optional) */
	VcudaCore *float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000m = 4 核 CPU
	- 32000m = 32 核 CPU

	**建议:** CPU 与 GPU 比例建议 4:1 ~ 8:1
	 (Optional) */
	CpuMilli *int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB

	**建议:** 内存建议为 GPU 显存的 2~4 倍
	 (Optional) */
	MemoryMiB *int `json:"memoryMiB"`
}

type RestartHistoryListForJob

type RestartHistoryListForJob struct {

	/* 训练任务ID。 (Optional) */
	JobId string `json:"jobId"`

	/* 重启开始时间。 (Optional) */
	StartTime string `json:"startTime"`

	/* 重启完成时间。 (Optional) */
	EndTime string `json:"endTime"`

	/* 重启触发条件。 (Optional) */
	TriggerCondition string `json:"triggerCondition"`

	/* 重启详细原因。 (Optional) */
	Reason string `json:"reason"`
}

type RestartPolicyInfoForJob

type RestartPolicyInfoForJob struct {

	/* 是否启用自动重启。默认:0,可选值:[0 表示禁用,1 表示启用]。 (Optional) */
	Enable int `json:"enable"`

	/* 触发条件。默认值:[`resource-failed`]。可以选中多个。
	可选值如下:
	- `resource-failed`: 节点故障。
	- `task-failed`: 任务失败。
	- `environment-failed`: 算力健康检测不通过。
	- `task-hang`: 任务卡住。
	- `process-inspection-failed`: 进程巡检失败。
	 (Optional) */
	TriggerConditions []string `json:"triggerConditions"`

	/* 任务卡住超时时间,即检测任务卡住超过这个时间将会重启任务,单位:秒。默认:1800。可选范围:60 ~ 86400。 (Optional) */
	TaskHangTimeout int `json:"taskHangTimeout"`

	/* 进程巡检启动时机,即当任务运行超过这个时间将会启动进程巡检,单位:秒。默认:300。可选范围:180 ~ 86400。 (Optional) */
	ProcessInspectionStartDelay int `json:"processInspectionStartDelay"`

	/* 最大重启次数。默认:3。可选范围:1 ~ 10。 (Optional) */
	MaxRestartCount int `json:"maxRestartCount"`
}

type RestartPolicyParamForJob

type RestartPolicyParamForJob struct {

	/* 是否启用自动重启。

	**可选值:**
	- `0`:禁用自动重启
	- `1`:启用自动重启

	**默认值:** `0`(禁用)
	 (Optional) */
	Enable *int `json:"enable"`

	/* 触发重启的条件列表。

	**可选值:**
	- `resource-failed`:节点故障(如 GPU 硬件故障、节点宕机)
	- `task-failed`:任务失败(如代码错误、内存溢出)
	- `environment-failed`:算力健康检测不通过(如 GPU 驱动异常、CUDA 错误)
	- `task-hang`:任务卡住(如死锁、梯度爆炸导致长时间无响应)
	- `process-inspection-failed`:进程巡检失败(如进程僵死、资源泄露)

	**默认值:** `["resource-failed"]`

	**注意:** 可选择多个条件
	 (Optional) */
	TriggerConditions []string `json:"triggerConditions"`

	/* 任务卡住超时时间,超过此时间未响应将被判定为卡住并触发重启。

	**单位:** 秒

	**默认值:** 1800(30分钟)

	**取值范围:** 60 ~ 86400(1分钟 ~ 24小时)

	**建议:** 根据训练任务的 checkpoint 间隔设置,避免数据丢失过多
	 (Optional) */
	TaskHangTimeout *int `json:"taskHangTimeout"`

	/* 进程巡检启动延迟时间,任务运行超过此时间后才开始进程巡检。

	**单位:** 秒

	**默认值:** 300(5分钟)

	**取值范围:** 180 ~ 86400(3分钟 ~ 24小时)

	**说明:** 给任务足够的启动时间,避免误判
	 (Optional) */
	ProcessInspectionStartDelay *int `json:"processInspectionStartDelay"`

	/* 最大重启次数,超过此次数后将不再重启,任务保持失败状态。

	**默认值:** 3

	**取值范围:** 1 ~ 10

	**建议:** 根据任务重要性设置,重要任务可设置较大的重启次数
	 (Optional) */
	MaxRestartCount *int `json:"maxRestartCount"`
}

type RoleDeploy

type RoleDeploy struct {

	/* 角色名称(prefill/decode/router/custom) (Optional) */
	RoleName *string `json:"roleName"`

	/* 角色副本数 (Optional) */
	Replica *int `json:"replica"`

	/* 仅查询返回:该角色 pod 状态统计 (Optional) */
	PodsState *PodsState `json:"podsState"`

	/* 角色部署所需资源 (Optional) */
	Resource *Resource `json:"resource"`

	/* 部署类型(distributed/single) (Optional) */
	DeployType *string `json:"deployType"`

	/* 分布式节点数 (Optional) */
	DistributedNodeCount *int `json:"distributedNodeCount"`

	/* 角色部署的节点亲和性配置 (Optional) */
	Affinity *InferenceAffinity `json:"affinity"`

	/* 完整镜像地址 (Optional) */
	ImageUrl *string `json:"imageUrl"`

	/* 镜像仓用户名 (Optional) */
	RegistryUser *string `json:"registryUser"`

	/* 镜像仓密码 (Optional) */
	RegistryPass *string `json:"registryPass"`

	/* 健康检查配置 (Optional) */
	HealthChecks []HealthCheck `json:"healthChecks"`

	/* 镜像名称 (Optional) */
	ImageName *string `json:"imageName"`

	/* 镜像来源,public or self (Optional) */
	ImageSource *string `json:"imageSource"`

	/* 命令行及参数 (Optional) */
	Command *string `json:"command"`

	/* 服务监听端口 (Optional) */
	Port *int `json:"port"`

	/* 环境变量 (Optional) */
	Env []string `json:"env"`

	/* 推理引擎(vllm or sglang) (Optional) */
	InferEngine *string `json:"inferEngine"`

	/* 服务超时时间,单位秒 (Optional) */
	Timeout *int `json:"timeout"`

	/* prefill路由策略 (Optional) */
	RouterPrefillPolicy *string `json:"routerPrefillPolicy"`

	/* decode路由策略 (Optional) */
	RouterDecodePolicy *string `json:"routerDecodePolicy"`
}

type RoleDeployScale

type RoleDeployScale struct {

	/* 角色名称 (Optional) */
	RoleName string `json:"roleName"`

	/* 角色副本数 (Optional) */
	Replica int `json:"replica"`
}

type RoleGateway

type RoleGateway struct {

	/* 用户vpc内服务使用的协议(HTTP, GRPC, UDP or TCP) (Optional) */
	VpcProto *string `json:"vpcProto"`

	/* 协议层(7 or 4) (Optional) */
	ProtoLevel *int `json:"protoLevel"`

	/* 是否允许vpc内访问 (Optional) */
	VpcAccess *bool `json:"vpcAccess"`

	/* vpc ip关联的alb id (Optional) */
	AlbId *string `json:"albId"`

	/* vpc ip关联的子网id (Optional) */
	SubnetId *string `json:"subnetId"`

	/* vpc ip关联的监听端口 (Optional) */
	ListenPort *int `json:"listenPort"`

	/* vpc内地址 (Optional) */
	VpcAddress *string `json:"vpcAddress"`

	/* 是否开启智能路由 (Optional) */
	SmartRouter *bool `json:"smartRouter"`

	/* 网关类型 (Optional) */
	GatewayType *string `json:"gatewayType"`

	/* 用户自定义会话保持header (Optional) */
	SessionPersistentHeader *string `json:"sessionPersistentHeader"`

	/* 是否开启会话保持 (Optional) */
	SessionPersistentEnabled *bool `json:"sessionPersistentEnabled"`
}

type RoleResourceForJob

type RoleResourceForJob struct {

	/* role类型 [Head、Worker]
	(Optional) */
	Type string `json:"type"`

	/* 节点数量 (Optional) */
	Count int `json:"count"`

	/* 队列ID。示例:queue-2xxx**********2d*********8b8
	使用公共资源池时固定为:joybuilder-public-queue。
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 公共资源池的规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格描述。 (Optional) */
	FlavorInfo interface{} `json:"flavorInfo"`

	/* GPU卡类型。示例:NVIDIA_G2 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟GPU卡数量,
	- 英伟达,可选值:[0.1, 0.125, 0.25, 0.5, 1, 2, 3, 4, 5, 6, 7, 8]
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU大小,单位:毫核,例如:0.1 CPU 核心 = 100m (毫核) (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,单位:MiB。 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

type RoleResourceInfoForJob

type RoleResourceInfoForJob struct {

	/* 角色名称,决定节点在分布式训练中的职责。

	**PyTorch 任务:**
	- 仅支持 `Worker` 角色
	- 所有节点配置相同或不同资源

	**Ray 任务:**
	- 必须包含 `Head` 角色(主节点)
	- 可配置 `Worker` 或 `Worker-{name}` 角色(工作节点)
	- 示例:`Head`, `Worker`, `Worker-gpu-1`, `Worker-gpu-2`
	 (Optional) */
	Name *string `json:"name"`

	/* 该角色的节点数量。如果是pytorch任务,count 值等于 Master + Worker 的总数。

	**取值范围:** 1 ~ 正整数

	**建议:**
	- Head 角色:通常设置为 1
	- Worker 角色:根据计算需求设置
	 (Optional) */
	Count *int `json:"count"`

	/* 规格ID,指定公共资源池的计算规格。

	**说明:** 专属资源池无需填写
	 (Optional) */
	FlavorId *string `json:"flavorId"`

	/* 规格描述。
	(Optional) */
	FlavorInfo *interface{} `json:"flavorInfo"`

	/* GPU 卡类型。

	**常见型号:** `NVIDIA_G2`, `NVIDIA_V100`, `NVIDIA_A100`
	 (Optional) */
	GpuDeviceModel *string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数。

	**可选值:** `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`
	 (Optional) */
	VcudaCore *float64 `json:"vcudaCore"`

	/* CPU 大小,单位:毫核。

	**换算:** 1000m = 1 核 CPU
	 (Optional) */
	CpuMilli *int `json:"cpuMilli"`

	/* 内存大小,单位:MiB。

	**换算:** 1024 MiB = 1 GiB
	 (Optional) */
	MemoryMiB *int `json:"memoryMiB"`
}

type RoleResourceInfoForJobList

type RoleResourceInfoForJobList struct {

	/* 队列ID,所有角色共享同一个队列。

	**公共资源池:** 固定使用 `joybuilder-public-queue`

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:** `queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 角色资源配置详细信息列表。

	**PyTorch 任务:** 所有节点均为 Worker 角色

	**Ray 任务:** 必须包含一个 Head 角色,可配置多个 Worker 角色
	 (Optional) */
	Roles []RoleResourceInfoForJob `json:"roles"`
}

type RoleResourceParamForJob

type RoleResourceParamForJob struct {

	/* 队列ID,指定任务运行的资源队列。

	**公共资源池:** 固定使用 `joybuilder-public-queue`

	**专属资源池:** 使用工作空间绑定的队列,需要用户及角色拥有该队列的使用权限

	**示例:** `queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId *string `json:"queueId"`

	/* 角色资源配置详细信息列表。

	**配置规则:**
	- PyTorch 任务:仅支持 Worker 角色
	- Ray 任务:必须包含 Head 角色,可根据需求增加 Worker 角色
	 (Optional) */
	Roles []RoleResourceInfoForJob `json:"roles"`
}

type RoleSet

type RoleSet struct {

	/* 多角色部署副本数 (Optional) */
	Replica *int `json:"replica"`

	/* 角色部署配置列表 (Optional) */
	RoleDeploys []RoleDeploy `json:"roleDeploys"`

	/* 是否开启了多角色部署 (Optional) */
	Enable *bool `json:"enable"`

	/* 多角色部署网关配置 (Optional) */
	RoleGateway *RoleGateway `json:"roleGateway"`
}

type RoleSetScale

type RoleSetScale struct {

	/* 多角色部署副本数 (Optional) */
	Replica int `json:"replica"`

	/* 角色扩缩容配置列表 (Optional) */
	RoleDeploys []RoleDeployScale `json:"roleDeploys"`
}

type RolloutInferenceResponse

type RolloutInferenceResponse struct {

	/* 滚动更新ID (Optional) */
	RolloutId string `json:"rolloutId"`
}

type RolloutInferenceSpec

type RolloutInferenceSpec struct {

	/* 推理服务ID  */
	InferenceId string `json:"inferenceId"`

	/* 回滚指定ID (Optional) */
	RolloutId *string `json:"rolloutId"`

	/*   */
	Runtime *Runtime `json:"runtime"`

	/*   */
	Models []Model `json:"models"`

	/* 最大超预期实例数  */
	MaxSurge int `json:"maxSurge"`

	/* 最大不可用实例数  */
	MaxUnavailable int `json:"maxUnavailable"`

	/* 滚动更新超时时间(秒)  */
	Timeout int `json:"timeout"`
}

type RolloutInfo

type RolloutInfo struct {

	/* 最大超预期实例数 (Optional) */
	MaxSurge int `json:"maxSurge"`

	/* 最大不可用实例数 (Optional) */
	MaxUnavailable int `json:"maxUnavailable"`

	/* 超时时间(秒) (Optional) */
	Timeout int `json:"timeout"`
}

type RunConfigExtraInfoForExperiment

type RunConfigExtraInfoForExperiment struct {

	/* 参数名称。

	## 常见参数
	- `learning_rate`:学习率
	- `batch_size`:批次大小
	- `epochs`:训练轮数
	- `warmup_steps`:预热步数
	 (Optional) */
	Name string `json:"name"`

	/* 参数类型。

	## 常见类型
	- `string`:字符串类型
	- `integer`:整数类型
	- `float`:浮点数类型
	- `boolean`:布尔类型
	 (Optional) */
	ParamType string `json:"paramType"`

	/* 参数描述。

	详细说明参数的含义、取值范围和使用建议。
	 (Optional) */
	Description string `json:"description"`

	/* 参数值。

	参数的实际设置值,以字符串形式表示。
	 (Optional) */
	Value string `json:"value"`
}

type RunConfigExtraParamForDistill

type RunConfigExtraParamForDistill struct {

	/* 参数名称。

	## 常见参数
	- `learning_rate`:学习率
	- `batch_size`:批次大小
	- `num_train_epochs`:训练轮数
	- `warmup_ratio`:预热比例
	 (Optional) */
	Name string `json:"name"`

	/* 参数值。

	## 示例
	- 学习率:`0.0001`
	- 批次大小:`32`
	- 训练轮数:`3`
	 (Optional) */
	Value string `json:"value"`
}

type RunConfigExtraParamForExperiment

type RunConfigExtraParamForExperiment struct {

	/* 参数名称。

	## 常见参数
	- `learning_rate`:学习率,建议值:1e-5 ~ 1e-4
	- `batch_size`:批次大小
	- `num_train_epochs`:训练轮数
	- `warmup_ratio`:预热比例
	- `weight_decay`:权重衰减
	- `max_grad_norm`:梯度裁剪阈值
	 (Optional) */
	Name *string `json:"name"`

	/* 参数值。

	## 示例
	- 学习率:`0.0001` 或 `1e-4`
	- 批次大小:`32`
	- 训练轮数:`3`
	 (Optional) */
	Value *string `json:"value"`
}

type RunDetailInfoForExperiment

type RunDetailInfoForExperiment struct {

	/* 微调运行ID。

	## 格式
	以 `run-` 为前缀。
	 (Optional) */
	RunId string `json:"runId"`

	/* 微调运行名称。
	(Optional) */
	Name string `json:"name"`

	/* 微调运行的描述信息。
	(Optional) */
	Description string `json:"description"`

	/* 微调配置参数。
	(Optional) */
	FinetuningConfig FinetuningConfigInfoForExperiment `json:"finetuningConfig"`

	/* 验证数据集来源。

	- `split`:从训练数据集拆分
	- `provided`:单独提供验证数据集
	 (Optional) */
	EvalDatasetSource string `json:"evalDatasetSource"`

	/* 验证集拆分比例。

	取值范围:0 < value < 1
	 (Optional) */
	EvalDatasetSplitRatio float64 `json:"evalDatasetSplitRatio"`

	/* 数据集配置列表。
	(Optional) */
	Datasets []DatasetParamForExperiment `json:"datasets"`

	/* 资源配置信息。
	(Optional) */
	Resource ResourceParamForExperiment `json:"resource"`

	/* 存储空间配置,用于保存训练后的模型和报告等数据。
	(Optional) */
	StorageSpace string `json:"storageSpace"`

	/* 微调运行的状态。

	| 状态 | 说明 |
	|------|------|
	| `queuing` | 排队中 |
	| `pending` | 启动中 |
	| `failed` | 失败 |
	| `running` | 运行中 |
	| `stopping` | 停止中 |
	| `stopped` | 已停止 |
	| `success` | 成功 |
	| `deleting` | 删除中 |
	| `rolling-back` | 回滚中 |
	| `rolled-back` | 已回滚 |
	 (Optional) */
	State string `json:"state"`

	/* 持续运行时间,单位为秒。
	(Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 关联的 Pod 资源列表。

	包含运行中的 Pod 信息,可用于终端访问。
	 (Optional) */
	Pods []PodInfoForExperiment `json:"pods"`

	/* 微调的输入 token 总数。

	用于衡量训练规模和成本计算。
	 (Optional) */
	Tokens int `json:"tokens"`

	/* 计费信息。

	私有资源池的资源无计费信息。
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 节点亲和性配置。
	(Optional) */
	NodeAffinities NodeAffinityForExperiment `json:"nodeAffinities"`

	/* 资源组ID。
	(Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。
	(Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 用户自定义标签列表。
	(Optional) */
	UserTags []RunTag `json:"userTags"`

	/* 主账号Pin。
	(Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。
	(Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。
	(Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。
	(Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。
	(Optional) */
	UpdateTime string `json:"updateTime"`
}

type RunListInfoForExperiment

type RunListInfoForExperiment struct {

	/* 微调运行ID。

	## 格式
	以 `run-` 为前缀。

	## 用途
	用于查询详情、停止运行、查看日志等操作的标识。
	 (Optional) */
	RunId string `json:"runId"`

	/* 微调运行名称。

	创建时设置的名称。
	 (Optional) */
	Name string `json:"name"`

	/* 微调运行的描述信息。
	(Optional) */
	Description string `json:"description"`

	/* 微调配置参数。

	包含训练阶段、微调方法等信息。
	 (Optional) */
	FinetuningConfig FinetuningConfigInfoForExperiment `json:"finetuningConfig"`

	/* 数据集配置列表。

	训练和验证使用的数据集信息。
	 (Optional) */
	Datasets []DatasetParamForExperiment `json:"datasets"`

	/* 资源配置信息。

	使用的计算资源配置。
	 (Optional) */
	Resource ResourceParamForExperiment `json:"resource"`

	/* 存储空间配置。

	模型和报告的存储位置。
	 (Optional) */
	StorageSpace StorageSpaceParamForExperiment `json:"storageSpace"`

	/* 微调运行的状态。

	## 状态说明

	| 状态 | 说明 | 后续操作 |
	|------|------|----------|
	| `queuing` | 排队中 | 可停止 |
	| `pending` | 启动中 | 可停止 |
	| `failed` | 失败 | 查看日志 |
	| `running` | 运行中 | 可停止 |
	| `stopping` | 停止中 | 等待 |
	| `stopped` | 已停止 | 可重新提交 |
	| `success` | 成功 | 可部署模型 |
	| `deleting` | 删除中 | 等待 |
	| `rolling-back` | 回滚中 | 等待 |
	| `rolled-back` | 已回滚 | - |
	 (Optional) */
	State string `json:"state"`

	/* 持续运行时间,单位为秒。

	用于计算资源消耗。
	 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 计费信息。

	## 说明
	私有资源池的资源无计费信息。
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 资源在集群中的空闲状态。

	## 可选值
	- 空值:资源空闲
	- `in-use`:资源已被占用
	 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 资源组ID。
	(Optional) */
	ResourceGroupId string `json:"resourceGroupId"`

	/* 资源组名称。
	(Optional) */
	ResourceGroupName string `json:"resourceGroupName"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority SchedulePriority `json:"schedulePriority"`

	/* 用户自定义标签列表。
	(Optional) */
	UserTags []RunTag `json:"userTags"`

	/* 主账号Pin。
	(Optional) */
	Pin string `json:"pin"`

	/* 创建用户名称。
	(Optional) */
	CreateUser string `json:"createUser"`

	/* 创建时间。

	格式:北京时间,如 `2025-12-31 12:34:56`。
	 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新用户名称。
	(Optional) */
	UpdateUser string `json:"updateUser"`

	/* 更新时间。
	(Optional) */
	UpdateTime string `json:"updateTime"`
}

type RunParamForExperiment

type RunParamForExperiment struct {

	/* 微调运行名称。

	## 命名规则
	- 长度限制:1~32个字符
	- 支持字符:中文、大小写字母、数字、英文中划线"-"、英文下划线"_"

	## 建议
	名称应体现训练特点,便于识别和管理。
	*/
	Name string `json:"name"`

	/* 微调运行的描述信息。

	## 限制
	不超过256个字符。

	## 建议
	建议填写训练目标、参数特点等信息。
	 (Optional) */
	Description *string `json:"description"`

	/* 微调配置参数。

	包含训练阶段、微调方法、训练参数等核心配置。
	*/
	FinetuningConfig *FinetuningConfigParamForExperiment `json:"finetuningConfig"`

	/* 验证数据集来源。

	## 可选值

	| 值 | 说明 | 要求 |
	|----|------|------|
	| `split` | 从训练数据集拆分 | 必须设置 evalDatasetSplitRatio |
	| `provided` | 单独提供验证数据集 | 必须在 datasets 中配置 evaluation 数据集 |

	## 选择建议
	- 数据量充足时,使用 `split` 自动拆分
	- 有专用验证数据时,使用 `provided`
	 (Optional) */
	EvalDatasetSource *string `json:"evalDatasetSource"`

	/* 验证集拆分比例。

	## 范围
	0 < evalDatasetSplitRatio < 1

	## 说明
	当 `evalDatasetSource` 为 `split` 时必填。

	## 建议值
	- 0.1:10% 作为验证集
	- 0.2:20% 作为验证集
	 (Optional) */
	EvalDatasetSplitRatio *float64 `json:"evalDatasetSplitRatio"`

	/* 数据集配置列表。

	## 配置要求
	- 至少包含一个 `training` 类型的数据集
	- 当 `evalDatasetSource` 为 `provided` 时,需要包含 `evaluation` 类型的数据集
	*/
	Datasets []DatasetParamForExperiment `json:"datasets"`

	/* 资源配置信息。

	配置训练所需的计算资源。
	*/
	Resource *ResourceParamForExperiment `json:"resource"`

	/* 存储空间配置。

	用于保存训练后的模型、报告等数据。
	*/
	StorageSpace *StorageSpaceParamForExperiment `json:"storageSpace"`

	/* 节点亲和性配置。

	## 用途
	- 将任务调度到特定节点
	- 使用特定硬件配置的节点

	## 说明
	支持配置多个亲和性规则,每个元素之间是"或"的关系。
	 (Optional) */
	NodeAffinities []NodeAffinityForExperiment `json:"nodeAffinities"`

	/* 调度优先级配置。 (Optional) */
	SchedulePriority *SchedulePriority `json:"schedulePriority"`

	/* 自定义实例标签。

	## 格式
	key-value 键值对形式。

	## 限制
	- 最多支持10个标签
	- key 不能以 `jrn:` 或 `jdc-` 开头
	- key 支持字符:中文、大小写英文、数字及 `_.,:/=+-@`

	## 用途
	- 资源分类
	- 成本分析
	- 权限控制
	 (Optional) */
	UserTags []RunTag `json:"userTags"`

	/* 资源组ID。

	## 用途
	用于资源分组管理和成本分摊。
	 (Optional) */
	ResourceGroupId *string `json:"resourceGroupId"`
}

type RunTag

type RunTag struct {

	/* 标签键。

	## 限制
	- 不能以 `jrn:` 或 `jdc-` 开头
	- 支持字符:中文、大小写英文、数字及 `_.,:/=+-@`
	*/
	Key string `json:"key"`

	/* 标签值。

	## 限制
	- 支持字符:中文、大小写英文、数字及 `_.,:/=+-@`
	*/
	Value string `json:"value"`
}

type RunTagFilter

type RunTagFilter struct {

	/* 标签键。

	要筛选的标签键名。
	*/
	Key string `json:"key"`

	/* 标签值列表。

	## 说明
	多个值之间是"或"的关系,资源标签值匹配任一值即满足条件。
	*/
	Values []string `json:"values"`
}

type Runtime

type Runtime struct {

	/* 命令行及参数 (如:python3 start.py --port 8080  或者 python3 start.py --port=8080)  */
	Command string `json:"command"`

	/* 环境变量(如:MODEL_PATH=/mnt/models) (Optional) */
	Env []string `json:"env"`

	/* 完整镜像地址 (如:docker.io/nginx:latest) (Optional) */
	ImageUrl *string `json:"imageUrl"`

	/* 镜像仓用户名 (如:user123) (Optional) */
	RegistryUser *string `json:"registryUser"`

	/* 镜像仓密码 (Optional) */
	RegistryPass *string `json:"registryPass"`

	/* 用户挂载到容器内的文件内容 (Optional) */
	FileContent *string `json:"fileContent"`

	/* 用户挂载到容器内的文件路径,含文件名 (Optional) */
	FilePath *string `json:"filePath"`

	/* 健康检查, 最多三个 (Optional) */
	HealthChecks []HealthCheck `json:"healthChecks"`

	/* 是否开启特权模式 (Optional) */
	Privilege *bool `json:"privilege"`

	/* 是否开启用户空间文件系统 (Optional) */
	Fuse *bool `json:"fuse"`

	/* 服务监听端口 (默认8080) (Optional) */
	Port *int `json:"port"`

	/* 创建vpc ip的相关信息 (Optional) */
	VpcInfo *VPCInfo `json:"vpcInfo"`

	/* 字符串,用户VPC内服务协议(HTTP, GRPC, TCP or UDP) (Optional) */
	VpcProto *string `json:"vpcProto"`

	/* 布尔型,是否支持vpc内访问 (Optional) */
	VpcAccess *bool `json:"vpcAccess"`

	/* 推理服务超时时间,单位秒,(默认60s) (Optional) */
	Timeout *int `json:"timeout"`

	/* 本地存储参数 (Optional) */
	LocalStorage *InferenceLocalStorage `json:"localStorage"`

	/* 创建资源时的节点亲和性配置 (Optional) */
	Affinity *InferenceAffinity `json:"affinity"`

	/* 是否开启会话保持 (Optional) */
	SessionPersistentEnabled *bool `json:"sessionPersistentEnabled"`

	/* 是否开启引擎指标采集,当前仅vLLM和SGlang支持 (Optional) */
	EnableEngineMetrics *bool `json:"enableEngineMetrics"`

	/* 自定义服务端口列表 (Optional) */
	CustomServices []CustomService `json:"customServices"`
}

type ScaleInfo

type ScaleInfo struct {

	/* 推理服务实例数 (Optional) */
	Replicas int `json:"replicas"`

	/* 多角色扩缩容配置 (Optional) */
	RoleSet RoleSetScale `json:"roleSet"`
}

type SchedulePolicy

type SchedulePolicy struct {

	/* **调度策略**,可选:StrictFIFO,BestEffortFIFO,默认值为:BestEffortFIFO
	- **StrictFIFO**:严格先入先出,
	- **BestEffortFIFO**:优先调度
	 (Optional) */
	SchedulePolicy *string `json:"schedulePolicy"`

	/* **抢占策略**,可选:Never、LowPriority、LowOrNewerEqualPriority,默认值为:LowPriority
	**抢占范围**:当前同资源队列
	- **Never**: 不抢占
	- **LowPriority**:抢占优先级低的任务
	- **LowOrNewerEqualPriority**:抢占优先级低或者比自己晚创建的任务资源
	 (Optional) */
	PreemptionPolicy *string `json:"preemptionPolicy"`

	/* **借用抢占策略**,可选:Never、LowPriority,默认值为:Never
	借用抢占范围:同一个资源组下的资源队列
	- **Never**: 借用资源时不发生抢占
	- **LowPriority**: 借用资源时抢占优先级低的任务资源
	 (Optional) */
	BorrowPolicy *string `json:"borrowPolicy"`

	/* **归还抢占策略**,可选:Never、LowPriority、Any,默认值为:Any
	- **Never**: 归还资源时不发生抢占
	- **LowPriority**: 归还资源时抢占优先级低的任务资源
	- **Any**: 强制归还被借用资源
	 (Optional) */
	ReclaimPolicy *string `json:"reclaimPolicy"`
}

type SchedulePriority

type SchedulePriority struct {

	/* **优先级类型**,可选:SystemSchedulePriority/CustomSchedulePriority,默认值为 SystemSchedulePriority
	- **SystemSchedulePriority**:系统预置优先级
	- **CustomSchedulePriority**:自定义优先级
	 (Optional) */
	PriorityType *string `json:"priorityType"`

	/* 调度优先级名称,全局唯一。
	系统预置优先级:
	- high-priority: 高
	- middle-priority:中
	- normal-priority:低
	 (Optional) */
	PriorityName *string `json:"priorityName"`

	/* 调度优先级中文名 (Optional) */
	PriorityCNName *string `json:"priorityCNName"`

	/* 优先级数值,数值越大,优先级越高。
	系统预置优先级数值
	- high-priority: 100000
	- middle-priority: 50000
	- normal-priority: 10000
	 (Optional) */
	PriorityValue *int `json:"priorityValue"`
}

type SchedulingPolicy

type SchedulingPolicy struct {

	/* 节点调度策略,binpack:紧凑;spreadout:均衡; (Optional) */
	NodeSchedulerStrategy string `json:"nodeSchedulerStrategy"`

	/* 设备调度策略,binpack:紧凑;spreadout:均衡; (Optional) */
	DeviceSchedulerStrategy string `json:"deviceSchedulerStrategy"`
}

type SchedulingPolicyResult

type SchedulingPolicyResult struct {

	/* 返回码,0表示成功,其他表示失败 (Optional) */
	Code int `json:"code"`

	/* 返回消息,成功返回"success",其他返回具体错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 调度策略 (Optional) */
	Data SchedulingPolicy `json:"data"`
}

type SelectDetailListResp

type SelectDetailListResp struct {

	/*  (Optional) */
	Data []NodePoolTagDetail `json:"data"`
}

type Service

type Service struct {

	/* 服务创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 部署类型(custom, llm) (Optional) */
	DeployType string `json:"deployType"`

	/* 服务名称 (Optional) */
	Name string `json:"name"`

	/* 该服务中运行的版本数 (Optional) */
	Running int `json:"running"`

	/* 服务ID (Optional) */
	ServiceId string `json:"serviceId"`

	/* 推理服务统一调用地址 (Optional) */
	Address string `json:"address"`

	/* 推理服务内网统一调用地址 (Optional) */
	InnerAddress string `json:"innerAddress"`

	/* 资源在集群中的空闲状态,值为空表示是空闲的,in-use表示资源已被占用。 (Optional) */
	ResourceState string `json:"resourceState"`

	/* vpc内调用地址,当前是IP形式提供 (Optional) */
	VpcAddress string `json:"vpcAddress"`

	/* 访问服务的Bearer Token (Optional) */
	AccessToken string `json:"accessToken"`

	/* 推理服务限流阈值(QPS) (Optional) */
	Qps int `json:"qps"`

	/* 该服务中总版本数 (Optional) */
	Total int `json:"total"`
}

type ServiceInfo

type ServiceInfo struct {

	/* 服务地址 (Optional) */
	Address string `json:"address"`

	/* 内部服务地址 (Optional) */
	InnerAddress string `json:"innerAddress"`

	/* 访问服务时携带的Bearer Token (Optional) */
	AccessToken string `json:"accessToken"`

	/* 用户集群内可访问的地址 (Optional) */
	VpcAddress string `json:"vpcAddress"`
}

type SightSchedulingMetrics

type SightSchedulingMetrics struct {

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 用户PIN (Optional) */
	Pin string `json:"pin"`

	/* 节点组信息 (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 时间粒度 (Optional) */
	Granularity string `json:"granularity"`

	/* 时间窗口开始时间 (Optional) */
	TimeWindowStart string `json:"timeWindowStart"`

	/* 时间窗口结束时间 (Optional) */
	TimeWindowEnd string `json:"timeWindowEnd"`

	/* 任务调度数量 (Optional) */
	TotalCount int `json:"totalCount"`

	/* 成功任务调度数量 (Optional) */
	SuccessCount int `json:"successCount"`

	/* 失败任务调度数量 (Optional) */
	FailedCount int `json:"failedCount"`

	/* 成功任务调度比例 (Optional) */
	SuccessRate int `json:"successRate"`

	/* 在线任务数量 (Optional) */
	OnlineCount int `json:"onlineCount"`

	/* 在线成功任务数量 (Optional) */
	OnlineSuccessCount int `json:"onlineSuccessCount"`

	/* 在线成功任务比例 (Optional) */
	OnlineSuccessRate int `json:"onlineSuccessRate"`

	/* 离线任务数量 (Optional) */
	OfflineCount int `json:"offlineCount"`

	/* 离线成功任务数量 (Optional) */
	OfflineSuccessCount int `json:"offlineSuccessCount"`

	/* 离线成功任务比例 (Optional) */
	OfflineSuccessRate int `json:"offlineSuccessRate"`

	/* 平均调度时延(毫秒) (Optional) */
	AvgSchedulingLatencyMs int `json:"avgSchedulingLatencyMs"`

	/* 调度时延中位数(毫秒) (Optional) */
	P50SchedulingLatencyMs int `json:"p50SchedulingLatencyMs"`

	/* 调度时延95分位值(毫秒) (Optional) */
	P95SchedulingLatencyMs int `json:"p95SchedulingLatencyMs"`

	/* 最大调度时延(毫秒) (Optional) */
	MaxSchedulingLatencyMs int `json:"maxSchedulingLatencyMs"`

	/* 最小调度时延(毫秒) (Optional) */
	MinSchedulingLatencyMs int `json:"minSchedulingLatencyMs"`

	/* 平均等待时长(毫秒) (Optional) */
	AvgWaitingDurationMs int `json:"avgWaitingDurationMs"`

	/* 等待时长中位数(毫秒) (Optional) */
	P50WaitingDurationMs int `json:"p50WaitingDurationMs"`

	/* 等待时长95分位值(毫秒) (Optional) */
	P95WaitingDurationMs int `json:"p95WaitingDurationMs"`

	/* 最大等待时长(毫秒) (Optional) */
	MaxWaitingDurationMs int `json:"maxWaitingDurationMs"`

	/* 最小等待时长(毫秒) (Optional) */
	MinWaitingDurationMs int `json:"minWaitingDurationMs"`

	/* 失败原因统计(JSON) (Optional) */
	ReasonStats string `json:"reasonStats"`

	/* 任务类型统计(JSON) (Optional) */
	TaskTypeMetrics string `json:"taskTypeMetrics"`
}

type SimulationDetail

type SimulationDetail struct {

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 最后更新的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后更新的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 仿真资源ID。 (Optional) */
	SimulationId string `json:"simulationId"`

	/* 名称。 (Optional) */
	Name string `json:"name"`

	/* 描述。 (Optional) */
	Description string `json:"description"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`

	/* 任务ID,不为空表示正在执行任务。 (Optional) */
	TaskId string `json:"taskId"`

	/* 状态:
	- queuing: 队排中。
	- pending: 启动中。
	- failed: 失败。
	- running: 运行中。
	- stopping: 停止中。
	- stopped: 已停止。
	- deleting: 删除中。
	 (Optional) */
	State string `json:"state"`

	/* 资源在集群中的空闲状态,值为空表示是空闲的,in-use表示资源已被占用。
	(Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 异常原因。 (Optional) */
	Reason string `json:"reason"`

	/* 开始运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 仿真容器终端地址。 (Optional) */
	TerminalUrl string `json:"terminalUrl"`

	/* 镜像信息。 (Optional) */
	ImageInfo EsImage `json:"imageInfo"`

	/* 工作负载资源配置。 (Optional) */
	WorkloadInfo EsWorkloadSpec `json:"workloadInfo"`

	/* 日志采集配置。 (Optional) */
	LogCollect EsLogCollectConfig `json:"logCollect"`

	/* 节点亲和性配置。 (Optional) */
	NodeAffinities []EsNodeAffinity `json:"nodeAffinities"`

	/* 公网访问配置。 (Optional) */
	Lb EsLbSpec `json:"lb"`

	/* 存储配置。 (Optional) */
	Storages []EsStorageSpec `json:"storages"`

	/* 数据集配置。 (Optional) */
	Datasets []EsDatasetSpec `json:"datasets"`
}

type SimulationEvent

type SimulationEvent struct {

	/* 类型 (Optional) */
	EventType string `json:"eventType"`

	/* 原因 (Optional) */
	Reason string `json:"reason"`

	/* 描述 (Optional) */
	Message string `json:"message"`

	/* 事件产生时间 (Optional) */
	EventTime string `json:"eventTime"`

	/* 记录时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type SimulationInfo

type SimulationInfo struct {

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* 归属用户名称。 (Optional) */
	OwnerUser string `json:"ownerUser"`

	/* 归属用户pin。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 最后更新的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后更新的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 仿真资源ID。 (Optional) */
	SimulationId string `json:"simulationId"`

	/* 名称。 (Optional) */
	Name string `json:"name"`

	/* 描述。 (Optional) */
	Description string `json:"description"`

	/* 工作空间中的资源归属权限。 (Optional) */
	Permission string `json:"permission"`

	/* 任务ID,不为空表示正在执行任务。 (Optional) */
	TaskId string `json:"taskId"`

	/* 状态:
	- queuing: 队排中。
	- pending: 启动中。
	- failed: 失败。
	- running: 运行中。
	- stopping: 停止中。
	- stopped: 已停止。
	- deleting: 删除中。
	 (Optional) */
	State string `json:"state"`

	/* 资源在集群中的空闲状态,值为空表示是空闲的,in-use表示资源已被占用。
	(Optional) */
	ResourceState string `json:"resourceState"`

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间名称。 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 异常原因。 (Optional) */
	Reason string `json:"reason"`

	/* 开始运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 镜像信息。 (Optional) */
	ImageInfo EsImage `json:"imageInfo"`

	/* 工作负载资源配置。 (Optional) */
	WorkloadInfo EsWorkloadSpec `json:"workloadInfo"`
}

type SimulationPod

type SimulationPod struct {

	/* namespace (Optional) */
	Namespace string `json:"namespace"`

	/* pod名称 (Optional) */
	PodName string `json:"podName"`

	/* pod ip (Optional) */
	PodIp string `json:"podIp"`

	/* POD状态 (Optional) */
	Phase string `json:"phase"`

	/* 容器数 (Optional) */
	ContainerCount int `json:"containerCount"`

	/* Ready的容器数 (Optional) */
	ReadyContainerCount int `json:"readyContainerCount"`

	/* 重启次数 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 原因 (Optional) */
	Reason string `json:"reason"`

	/* 描述 (Optional) */
	Message string `json:"message"`

	/* READY时间 (Optional) */
	ReadyTime string `json:"readyTime"`
}

type SimulationSpec

type SimulationSpec struct {

	/* 名称。1~32字符,可以包含中文、数字、大小写字母、英文下划线"_"、中划线"-"或点"。
	 */
	Name string `json:"name"`

	/* 描述。不超过256字符。 (Optional) */
	Description string `json:"description"`

	/* 工作空间中的资源归属权限,支持(public,private)。
	管理员可查看工作空间中全部资源,其他用户只能查看归属自己的private权限的资源或public权限的资源。
	 (Optional) */
	Permission string `json:"permission"`

	/* 镜像配置。  */
	ImageSpec EsImageSpec `json:"imageSpec"`

	/* 工作负载资源配置。  */
	WorkloadSpec EsWorkloadSpec `json:"workloadSpec"`

	/* 存储配置,第一个存储作为工作目录必须挂载到/mnt/workspace不能更改。
	 */
	Storages []EsStorageSpec `json:"storages"`

	/* 数据集配置。 (Optional) */
	Datasets []EsDatasetSpec `json:"datasets"`

	/* 公网访问配置,只支持私有资源池中的仿真资源配置,传入与资源队列可通信的负载均衡。不需要公网访问时不要指定。<br>
	对于isaac-sim环境,需要监听TCP的`49100`端口到后端`49100`端口,以及UDP的`47998`端口到后端`47998`端口。
	 (Optional) */
	LbSpec EsLbSpec `json:"lbSpec"`

	/* 创建资源时的节点亲和性配置,支持配置多个,每个元素之间是或者的关系。
	(Optional) */
	NodeAffinities []EsNodeAffinity `json:"nodeAffinities"`
}

type SshSpec

type SshSpec struct {

	/* 是否启用SSH,控制是否允许SSH连接Notebook。

	## 使用说明
	- true: 启用SSH连接
	- false: 禁用SSH连接
	 (Optional) */
	Enabled *bool `json:"enabled"`

	/* SSH端口,SSH服务监听的端口。

	## 使用说明
	- 默认为22
	- 可自定义端口
	 (Optional) */
	Port *int `json:"port"`

	/* SSH公钥列表,用于免密登录。

	## 格式
	- 标准SSH公钥格式
	- 示例:ssh-rsa AAAAB3NzaC1yc2E...
	 (Optional) */
	PublicKeys []string `json:"publicKeys"`

	/* SSH连接地址,完整的SSH连接URI。

	## 格式
	- ssh://user@host:port
	- 示例:ssh://root@192.168.1.100:22
	 (Optional) */
	ConnectionUri *string `json:"connectionUri"`

	/* SSH用户名,用于SSH登录的用户名。

	## 使用说明
	- 通常为root或特定用户
	- 用于SSH连接命令 (Optional) */
	SshUser *string `json:"sshUser"`
}

type StandardLogConfig

type StandardLogConfig struct {

	/* 是否开启标准输出采集。

	## 使用说明
	- true: 采集标准输出和标准错误
	- false: 不采集
	*/
	Stdout bool `json:"stdout"`
}

type StatsDetail

type StatsDetail struct {

	/* 数量 (Optional) */
	Num int `json:"num"`

	/* 统计维度 (Optional) */
	Dimensions string `json:"dimensions"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type StatsResult

type StatsResult struct {

	/* 返回码,0表示成功,其他表示失败 (Optional) */
	Code int `json:"code"`

	/* 返回消息,成功返回"success",其他返回具体错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 节点池概览信息列表 (Optional) */
	Data []StatsDetail `json:"data"`
}

type Status

type Status struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源有效性 (Optional) */
	Validity bool `json:"validity"`
}

type StorageInstanceItem

type StorageInstanceItem struct {

	/* 存储实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 存储类型 (Optional) */
	StorageType string `json:"storageType"`

	/* 实例名称 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`

	/* 配置项值列表(敏感信息已脱敏) (Optional) */
	Configs []ConfigItemValue `json:"configs"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type StoragePathItem

type StoragePathItem struct {

	/* 文件或目录名称 (Optional) */
	Name string `json:"name"`

	/* 文件或目录路径 (Optional) */
	Path string `json:"path"`

	/* 是否为目录 (Optional) */
	IsDir bool `json:"isDir"`

	/*  (Optional) */
	IsBucket bool `json:"isBucket"`

	/* 文件大小(字节) (Optional) */
	Size int64 `json:"size"`

	/* 最后修改时间 (Optional) */
	LastModified string `json:"lastModified"`
}

type StorageSpaceDetailForJob

type StorageSpaceDetailForJob struct {

	/* 存储类型(数据来源),大小写敏感,地域不同,支持的存储类型也不同,需要根据地域实际支持的存储类型选择:[oss, cfs, jpfs]。
	(Optional) */
	StorageType string `json:"storageType"`

	/* 是否以只读模式挂载存储。只读模式下,无法在挂载的存储中进行写操作。仅当存储类型为oss时有效。
	(Optional) */
	Readonly bool `json:"readonly"`

	/*  (Optional) */
	Oss OssDetailForJob `json:"oss"`

	/*  (Optional) */
	Cfs CfsDetailForJob `json:"cfs"`

	/*  (Optional) */
	Jpfs JpfsDetailForJob `json:"jpfs"`
}

type StorageSpaceParamForDistill

type StorageSpaceParamForDistill struct {

	/* 存储类型(数据来源),大小写敏感。

	## 可选值
	- `oss`:对象存储服务
	- `cfs`:云文件存储
	- `jpfs`:并行文件系统

	## 说明
	地域不同,支持的存储类型也不同,需要根据地域实际支持的存储类型选择。
	 (Optional) */
	StorageType string `json:"storageType"`

	/* OSS 存储配置。

	当 storageType 为 `oss` 时配置此项。
	 (Optional) */
	Oss OssParamForDistill `json:"oss"`

	/* CFS 存储配置。

	当 storageType 为 `cfs` 时配置此项。
	 (Optional) */
	Cfs CfsParamForDistill `json:"cfs"`

	/* JPFS 存储配置。

	当 storageType 为 `jpfs` 时配置此项。
	 (Optional) */
	Jpfs JpfsParamForDistill `json:"jpfs"`
}

type StorageSpaceParamForExperiment

type StorageSpaceParamForExperiment struct {

	/* 存储类型(数据来源),大小写敏感。

	## 可选值
	- `oss`:对象存储服务
	- `cfs`:云文件存储
	- `jpfs`:并行文件系统

	## 说明
	地域不同,支持的存储类型也不同,需要根据地域实际支持的存储类型选择。
	 (Optional) */
	StorageType *string `json:"storageType"`

	/* OSS 存储配置。

	当 storageType 为 `oss` 时需要配置此项。
	 (Optional) */
	Oss *OssParamForExperiment `json:"oss"`

	/* CFS 存储配置。

	当 storageType 为 `cfs` 时需要配置此项。
	 (Optional) */
	Cfs *CfsParamForExperiment `json:"cfs"`

	/* JPFS 存储配置。

	当 storageType 为 `jpfs` 时需要配置此项。
	 (Optional) */
	Jpfs *JpfsParamForExperiment `json:"jpfs"`
}

type StorageSpaceParamForJob

type StorageSpaceParamForJob struct {

	/* 存储类型,决定数据来源和存储方式。

	**可选值:**
	- `oss`:对象存储服务
	- `cfs`:云文件系统
	- `jpfs`:京东云并行文件系统

	**注意:**
	- 大小写敏感
	 (Optional) */
	StorageType *string `json:"storageType"`

	/* 是否以只读模式挂载存储。

	**只读模式:** 无法在挂载的存储中进行写操作

	**注意:** 仅当存储类型为 `oss` 时有效

	**使用场景:**
	- 只读数据集目录
	- 公开模型目录
	- 防止误修改的配置目录
	 (Optional) */
	Readonly *bool `json:"readonly"`

	/*  (Optional) */
	Oss *OssParamForJob `json:"oss"`

	/*  (Optional) */
	Cfs *CfsParamForJob `json:"cfs"`

	/*  (Optional) */
	Jpfs *JpfsParamForJob `json:"jpfs"`
}

type StorageSpec

type StorageSpec struct {

	/* 存储类型,决定存储后端的类型和访问方式。

	## 支持类型
	- cfs: 京东云文件存储,NFS协议
	- oss: 京东云对象存储,S3协议
	- jpfs: 京东云并行文件系统,高性能

	## 选择建议
	- 开发调试: cfs,成本低
	- 大数据存储: oss,容量大
	- 高性能训练: jpfs,速度快
	*/
	StorageType string `json:"storageType"`

	/* 存储资源ID,用于标识存储实例。

	## 各类型ID格式
	- cfs: 文件系统ID,如 fs-xxxxxxxx
	- oss: Bucket名称
	- jpfs: 文件系统ID,如 jfs-xxxxxxxx
	*/
	StorageId string `json:"storageId"`

	/* 存储路径,指定要挂载的目录或对象路径。

	## 各类型路径格式
	- cfs: `10.0.23.45:/dir-path` 或 `/dir-path`
	- oss: `oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path`
	- jpfs: `fs-xxxxxxxxxx:/dir-path` 或 `/dir-path`

	## 使用说明
	- 路径必须存在,否则挂载失败
	- 支持挂载子目录
	*/
	StoragePath string `json:"storagePath"`

	/* 挂载路径,指定存储在Notebook容器中的挂载位置。

	## 挂载规则
	- 第一个存储必须挂载到`/mnt/workspace`,作为工作目录
	- 其他存储建议挂载到`/mnt/`开头的路径
	- 不支持挂载到系统目录

	## 系统目录列表
	`/, /bin, /boot, /dev, /etc, /home, /lib, /lib32, /lib64, /libx32, /opt, /proc, /root, /run, /sbin, /sys, /tmp, /usr, /var`
	*/
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载存储。

	## 使用说明
	- 仅oss类型存储有效
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	- 默认为false(读写模式)
	 (Optional) */
	Readonly *bool `json:"readonly"`
}

type StorageTypeItem

type StorageTypeItem struct {

	/* 存储类型名称 (Optional) */
	Name string `json:"name"`

	/* 存储类型,可选值:
	- third-oss:对象存储
	- third-jpfs:并行文件系统
	 (Optional) */
	Type string `json:"type"`

	/* 存储类型状态,可选值:
	- ENABLED:启用
	- DISABLED:禁用
	 (Optional) */
	State string `json:"state"`

	/* 存储类型描述 (Optional) */
	Description string `json:"description"`

	/* 配置项列表 (Optional) */
	Configs []ConfigItem `json:"configs"`
}

type StudentModelSpec

type StudentModelSpec struct {

	/* 模型来源,目前只支持公共模型(public)。  */
	ModelSource string `json:"modelSource"`

	/* 模型ID。  */
	ModelId string `json:"modelId"`

	/* 模型版本,默认为v1。 (Optional) */
	ModelVersion string `json:"modelVersion"`
}

type SubTaskFlavors

type SubTaskFlavors struct {

	/* 副本数量 (Optional) */
	Replicas int `json:"replicas"`

	/*  (Optional) */
	Flavor Flavor `json:"flavor"`
}

type SubmissionHistoryForDescribeAnnotationTask

type SubmissionHistoryForDescribeAnnotationTask struct {

	/* 提交成功的数量。 (Optional) */
	SubmissionSuccessCount int `json:"submissionSuccessCount"`
}

type SubmissionHistoryForDescribeAnnotationTasks

type SubmissionHistoryForDescribeAnnotationTasks struct {

	/* 提交成功的数量。 (Optional) */
	SubmissionSuccessCount int `json:"submissionSuccessCount"`
}

type Subnet

type Subnet struct {

	/* 子网Id (Optional) */
	Id string `json:"id"`

	/* 子网名字 (Optional) */
	Name string `json:"name"`
}

type SubnetInfo

type SubnetInfo struct {

	/* 子网的网段信息 (Optional) */
	CidrBlock string `json:"cidrBlock"`

	/* +optional (Optional) */
	ExtraArgs interface{} `json:"extraArgs"`

	/* +optional (Optional) */
	RouteTableId string `json:"routeTableId"`

	/* 子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 子网所属VPC的ID (Optional) */
	VpcId string `json:"vpcId"`
}

type Tag

type Tag struct {

	/* Tag键 (Optional) */
	Key *string `json:"key"`

	/* Tag值 (Optional) */
	Value *string `json:"value"`
}

type TagFilter

type TagFilter struct {

	/* Tag键 (Optional) */
	Key *string `json:"key"`

	/* Tag值 (Optional) */
	Values []string `json:"values"`
}

type TagForDescribeAnnotationTask

type TagForDescribeAnnotationTask struct {

	/* 标签ID。 (Optional) */
	TagId string `json:"tagId"`

	/* 标签名称。 (Optional) */
	TagName string `json:"tagName"`

	/* 标签使用次数。 (Optional) */
	UsageCount int `json:"usageCount"`
}

type TaskIdsResult

type TaskIdsResult struct {

	/* 任务ID列表 (Optional) */
	TaskIds []string `json:"taskIds"`

	/* 任务ID总数 (Optional) */
	Total int `json:"total"`

	/* 当前页码 (Optional) */
	Page int `json:"page"`
}

type TaskType

type TaskType struct {

	/* 任务类型描述 (Optional) */
	Description string `json:"description"`

	/* 任务类型 (Optional) */
	Name string `json:"name"`
}

type TaskTypeResp

type TaskTypeResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 任务类型列表 (Optional) */
	Data []TaskType `json:"data"`
}

type TasksOverview

type TasksOverview struct {

	/* 任务类型 (Optional) */
	Task_type string `json:"task_type"`

	/* 任务数量 (Optional) */
	Num int `json:"num"`

	/* 任务状态 (Optional) */
	Status string `json:"status"`

	/* 描述 (Optional) */
	Description string `json:"description"`
}

type TasksOverviewResp

type TasksOverviewResp struct {

	/* 接口响应状态 (Optional) */
	Code string `json:"code"`

	/* 错误信息 (Optional) */
	Msg string `json:"msg"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 概览详情 (Optional) */
	Data []TasksOverview `json:"data"`
}

type TeacherModelSpec

type TeacherModelSpec struct {

	/* 模型来源,目前只支持模型广场(market)。  */
	ModelSource string `json:"modelSource"`

	/* 模型服务ID  */
	ModelServiceId string `json:"modelServiceId"`
}

type TensorBoardInfo

type TensorBoardInfo struct {

	/* 工作空间ID。 (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 队列ID。
	使用免费资源池时固定为:`joybuilder-platform-queue`。
	使用私有资源池时请选择用户工作空间中的私有队列ID。
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 主帐号。 (Optional) */
	Pin string `json:"pin"`

	/* 创建人用户名。 (Optional) */
	CreateUser string `json:"createUser"`

	/* 创建人pin。 (Optional) */
	CreateUserPin string `json:"createUserPin"`

	/* TensorBoardID。 (Optional) */
	TensorBoardId string `json:"tensorBoardId"`

	/* 名称。 (Optional) */
	Name string `json:"name"`

	/* 描述。 (Optional) */
	Description string `json:"description"`

	/* 状态
	`queuing`: 队排中。
	`pending`: 启动中。
	`failed`: 失败。
	`running`: 运行中。
	`stopping`: 停止中。
	`stopped`: 已停止。
	`deleting`: 删除中。
	`rolling-back`: 回滚中(不能做任何操作)。
	`rolled-back`: 已回滚(只能操作删除)。
	 (Optional) */
	State string `json:"state"`

	/* 数据源配置。最少1个,最多10个。 (Optional) */
	DataSourceSpec []DataSourceSpec `json:"dataSourceSpec"`

	/* 控制台地址。 (Optional) */
	Uri string `json:"uri"`

	/* 异常原因。 (Optional) */
	Reason string `json:"reason"`

	/* 开始运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 最后更新的用户名。 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 最后更新的用户pin。 (Optional) */
	UpdateUserPin string `json:"updateUserPin"`

	/* 创建时间。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 更新时间。 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type TensorBoardSpec

type TensorBoardSpec struct {

	/* 名称。1~32字符,可以包含中文、数字、大小写字母、英文下划线“_”、中划线“-”或点“.”。  */
	Name string `json:"name"`

	/* 描述。不超过256字符。 (Optional) */
	Description string `json:"description"`

	/* 队列ID。
	不传queueId,则默认使用免费资源池。
	使用私有资源池时请选择用户工作空间中的私有队列ID。
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 数据源配置。最少1个,最多10个。  */
	DataSourceSpec []DataSourceSpec `json:"dataSourceSpec"`
}

type TrafficInfo

type TrafficInfo struct {

	/* 推理服务版本号, 大于等于1  */
	Version int `json:"version"`

	/* 推理服务的流量占比, 取值范围:0-100  */
	TrafficPercent int `json:"trafficPercent"`
}

type TraningStageArgs

type TraningStageArgs struct {

	/* 参数名称。 (Optional) */
	Name string `json:"name"`

	/* 参数值。 (Optional) */
	Value string `json:"value"`

	/* 参数类型。 (Optional) */
	ParamType string `json:"paramType"`

	/* 参数描述。 (Optional) */
	Description string `json:"description"`
}

type TraningStageInfo

type TraningStageInfo struct {

	/* 学生模型信息。 (Optional) */
	StudentModel DistillModelInfo `json:"studentModel"`

	/* 训练范式(pt,sft,dpo)。 (Optional) */
	TrainMethod string `json:"trainMethod"`

	/* 参数更新策略(lora,full)。 (Optional) */
	TrainStrategy string `json:"trainStrategy"`

	/* 训练参数。 (Optional) */
	TrainArgs []TraningStageArgs `json:"trainArgs"`

	/* 输出模型存储类型(cfs,oss,jpfs)。 (Optional) */
	OutputModelType string `json:"outputModelType"`

	/* 输出模型存储ID。 (Optional) */
	OutputModelId string `json:"outputModelId"`

	/* 输出模型存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。 (Optional) */
	OutputModelPath string `json:"outputModelPath"`

	/* 运行状态(queuing/pending/running/success/failed/stopping/stopped/deleting/deleted)。 (Optional) */
	State string `json:"state"`

	/* 运行时间,如(2023-06-01 12:22:56)。 (Optional) */
	RunningTime string `json:"runningTime"`

	/* 结束时间,如(2023-06-01 12:22:56)。 (Optional) */
	FinishedTime string `json:"finishedTime"`
}

type TraningStageSpec

type TraningStageSpec struct {

	/* 训练范式,当前只支持sft,默认为sft。  */
	TrainMethod string `json:"trainMethod"`

	/* 参数更新策略,支持(lora,full)。  */
	TrainStrategy string `json:"trainStrategy"`

	/* 训练参数。  */
	TrainArgs []TraningStageArgs `json:"trainArgs"`

	/* 输出模型的存储类型(cfs,oss,jpfs)。  */
	OutputModelType string `json:"outputModelType"`

	/* 输出模型的存储ID。  */
	OutputModelId string `json:"outputModelId"`

	/* 输出模型的存储路径,cfs地址加路径示例(10.0.23.45:/dir-path)。oss对象存储url示例(oss://bucket.s3.cn-north-1.jdcloud-oss.com/object-path)。jpfs示例(JPFS-ID:/dir-path)。  */
	OutputModelPath string `json:"outputModelPath"`

	/* 是否将输出的模型自动注册为新模型,与AutoDeployNewModelVersion二选一。 (Optional) */
	AutoDeployNewModel DeployStillNewModel `json:"autoDeployNewModel"`

	/* 是否将输出的模型自动注册为已有模型的新版本,与AutoDeployNewModel二选一。 (Optional) */
	AutoDeployNewModelVersion DeployStillNewModelVersion `json:"autoDeployNewModelVersion"`
}

type UnHealthReason

type UnHealthReason struct {

	/* 类型 (Optional) */
	Type string `json:"type"`

	/* reason (Optional) */
	Reason string `json:"reason"`

	/* condition信息 (Optional) */
	Message string `json:"message"`
}

type UnbindWorkspaceResourceRequest

type UnbindWorkspaceResourceRequest struct {

	/* 要解绑的资源类型。可选值:oss(对象存储)、jpfs(云海)、nfs(网络文件系统)、ddn(分布式存储)、image_repo(镜像仓库)。  */
	ResourceType string `json:"resourceType"`

	/* 要解绑资源类型的主键值,支持多个使用","分隔,最多20个。  */
	ResourceIdVals string `json:"resourceIdVals"`
}

type UpdateAnnotationObjectsParam

type UpdateAnnotationObjectsParam struct {

	/* 标注对象ID。 (Optional) */
	AnnotationObjectId string `json:"annotationObjectId"`

	/* 每个标注对象对应的标注结果。
	根据参数 `dataTypeId` 和 `taskTypeId` 确定不一样的结构。
	 (Optional) */
	AnnotationResult interface{} `json:"annotationResult"`
}

type UpdateAnnotationTaskParam

type UpdateAnnotationTaskParam struct {

	/* 标注任务名称。1~32字符,仅支持中文、大小写字母、数字、英文中划线 “-”和英文下划线“_”。 (Optional) */
	Name string `json:"name"`

	/* 标注任务的描述信息,不超过256个字符。 (Optional) */
	Description string `json:"description"`
}

type UpdateCodeRepoConfigParam

type UpdateCodeRepoConfigParam struct {

	/* 代码库配置名称。为null或空不更新 (Optional) */
	RepoName *string `json:"repoName"`

	/* 描述。为null不更新,传空会更新 (Optional) */
	Description *string `json:"description"`

	/* Coding的projectId。为null或空不更新 (Optional) */
	ProjectId *string `json:"projectId"`

	/* 代码库地址。为null或空不更新 (Optional) */
	Url *string `json:"url"`

	/* 代码库分支。为null不更新,传空会更新 (Optional) */
	Branch *string `json:"branch"`

	/* 代码库commint。为null不更新,传空会更新 (Optional) */
	Commit *string `json:"commit"`

	/* git用户名。为null不更新,传空会更新 (Optional) */
	Username *string `json:"username"`

	/* git访问凭证。为null不更新,传空会更新 (Optional) */
	AccessToken *string `json:"accessToken"`

	/* 工作空间中的资源归属权限,支持(public,private)。 (Optional) */
	Permission *string `json:"permission"`

	/* 归属用户pin。null或空不更新 (Optional) */
	OwnerUserPin *string `json:"ownerUserPin"`
}

type UpdateDatasetParam

type UpdateDatasetParam struct {

	/* 数据集名称,传null或空都不修改 (Optional) */
	DatasetName *string `json:"datasetName"`

	/* 数据集描述,传null不更新,有值或传空都会更新 (Optional) */
	Description *string `json:"description"`

	/* 工作空间中的资源归属权限,null或空不更新 (Optional) */
	Permission *string `json:"permission"`

	/* 归属用户pin。null或空不更新 (Optional) */
	OwnerUserPin *string `json:"ownerUserPin"`
}

type UpdateDatasetVersionParam

type UpdateDatasetVersionParam struct {

	/* 版本描述,传null不更新,有值或传空都会更新 (Optional) */
	VersionDesc *string `json:"versionDesc"`
}

type UpdateIdlePolicy

type UpdateIdlePolicy struct {

	/* 闲置等待时长配置(小时) (Optional) */
	MaxIdleTimeHour int `json:"maxIdleTimeHour"`

	/* CPU利用率阈值,区间(0, 100] (Optional) */
	CpuPercentThreshold float64 `json:"cpuPercentThreshold"`

	/* GPU利用率阈值,区间(0, 100] (Optional) */
	GpuPercentThreshold float64 `json:"gpuPercentThreshold"`

	/* 内存利用率阈值,区间(0, 100] (Optional) */
	MemoryPercentThreshold float64 `json:"memoryPercentThreshold"`

	/* 闲置配置-生效的资源队列id (Optional) */
	QueueIds []string `json:"queueIds"`
}

type UpdateImageParam

type UpdateImageParam struct {

	/* 镜像名称(1~128字符,仅支持小写字母、数字、英文中划线 “-”、英文下划线“_”和点 “.”,只能以字母开头) (Optional) */
	ImageName string `json:"imageName"`

	/* 镜像用途,多个用英文逗号拼接,可选值:
	- notebook Notebook
	- training 训练任务
	- inference 在线服务
	 (Optional) */
	ImageUsage string `json:"imageUsage"`

	/* 镜像类型:cpu,gpu (Optional) */
	ImageType string `json:"imageType"`

	/* 注册/构建后的镜像地址 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 标签,使用英文逗号拼接 (Optional) */
	Labels string `json:"labels"`

	/* 镜像启动命令 (Optional) */
	Command string `json:"command"`
}

type UpdateInferenceServiceSpec

type UpdateInferenceServiceSpec struct {

	/* 推理服务的可见性,public:工作空间内公开,private:所有者和管理员可见。 (Optional) */
	Permission *string `json:"permission"`

	/* 推理服务所有者pin。 (Optional) */
	OwnerUserPin *string `json:"ownerUserPin"`
}

type UpdateInfo

type UpdateInfo struct {

	/* 服务描述信息 (Optional) */
	Description *string `json:"description"`

	/* 是否开启引擎指标采集,当前仅vLLM和SGlang支持 (Optional) */
	EnableEngineMetrics *bool `json:"enableEngineMetrics"`

	/* 访问服务的超时时间 (Optional) */
	Timeout *int `json:"timeout"`
}

type UpdateLogConfigs

type UpdateLogConfigs struct {

	/* 日志集id (Optional) */
	LogsetUID *string `json:"logsetUID"`

	/* 日志主题id (Optional) */
	LogtopicUID *string `json:"logtopicUID"`

	/* 使用任务模块:可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	 (Optional) */
	Usages []string `json:"usages"`
}

type UpdateMemberPolicy

type UpdateMemberPolicy struct {

	/* 成员子账号Pin。 (Optional) */
	MemberPin string `json:"memberPin"`

	/* 成员策略:Default、StorageRestricted; (为空时:第一次加入的成员默认更新Default,否则不更新)。 (Optional) */
	MemberPolicy string `json:"memberPolicy"`
}

type UpdateModelParm

type UpdateModelParm struct {

	/* 模型名称。nil或为空不更新。 (Optional) */
	ModelName *string `json:"modelName"`

	/* 模型描述。nil不更新,传空更新。 (Optional) */
	Description *string `json:"description"`

	/* 工作空间中的资源归属权限,null或空不更新 (Optional) */
	Permission *string `json:"permission"`

	/* 归属用户pin。null或空不更新 (Optional) */
	OwnerUserPin *string `json:"ownerUserPin"`
}

type UpdateModelVersionParm

type UpdateModelVersionParm struct {

	/* 模型描述。为空不更新。 (Optional) */
	VersionDesc *string `json:"versionDesc"`
}

type UpdatePrivateImageParam

type UpdatePrivateImageParam struct {

	/* 镜像名称,,null或空不更新 (Optional) */
	ImageName *string `json:"imageName"`

	/* 标签,使用英文逗号拼接,传null不修改,有值或传空都会更新 (Optional) */
	Labels *string `json:"labels"`

	/* 工作空间中的资源归属权限,null或空不更新 (Optional) */
	Permission *string `json:"permission"`

	/* 归属用户pin。null或空不更新 (Optional) */
	OwnerUserPin *string `json:"ownerUserPin"`
}

type UpdateProductUpdateSpec

type UpdateProductUpdateSpec struct {

	/* 动态标题,最大长度64字符 (Optional) */
	Title string `json:"title"`

	/* 动态内容或描述,最大长度128字符 (Optional) */
	Content string `json:"content"`

	/* 动态类型 MODEL-模型上新, FEATURE-产品功能 (Optional) */
	UpdateType string `json:"updateType"`

	/* 发布日期,用于展示给客户, 格式 YYYY-MM-DD (Optional) */
	PublishDate string `json:"publishDate"`

	/* 展示顺序, 数值越大越靠前, 默认0 (Optional) */
	DisplayOrder int `json:"displayOrder"`

	/* 是否置顶, 默认false (Optional) */
	IsSticky bool `json:"isSticky"`

	/* null不更新,否则全量更新(空数组更新为无) (Optional) */
	Tags []ProductUpdateTag `json:"tags"`
}

type UpdatePublicDatasetVersionParam

type UpdatePublicDatasetVersionParam struct {

	/* 版本描述,传null不更新,有值或传空都会更新 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 数据集介绍,传null不更新,有值或传空都会更新 (Optional) */
	DatasetIntroduction string `json:"datasetIntroduction"`
}

type UpdatePublicModelParm

type UpdatePublicModelParm struct {

	/* 模型名称,nil或空都不更新。 (Optional) */
	ModelName string `json:"modelName"`

	/* 模型描述,传nil不更新,传空会清空。 (Optional) */
	Description string `json:"description"`
}

type UpdatePublicModelVersionParm

type UpdatePublicModelVersionParm struct {

	/* 版本描述,传null不更新,传空会清空。 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 模型介绍,传null不更新,传空会清空。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`
}

type UpdateResourcePropertiesParam

type UpdateResourcePropertiesParam struct {

	/* 镜像来源,指定新镜像的来源类型。

	## 来源类型
	- public: 公共镜像
	- self: 自定义镜像

	## 使用说明
	- 参数`imageSource`和`imageId`必须同时传或者都不传
	 (Optional) */
	ImageSource *string `json:"imageSource"`

	/* 镜像ID,新镜像的唯一标识。

	## 使用说明
	- 参数`imageSource`和`imageId`必须同时传或者都不传
	- 用于指定要更换的镜像
	 (Optional) */
	ImageId *string `json:"imageId"`

	/* 负载均衡配置,用于更新公网访问能力。

	## 使用说明
	- 仅支持私有资源池中的Notebook
	- 需要传入与资源队列可通信的负载均衡ID和端口
	- 不需要公网访问时不要指定此参数
	 (Optional) */
	LbSpec *LbSpec `json:"lbSpec"`

	/* 工作负载资源配置,用于更新计算资源。

	## 更新限制
	- 公共资源池不允许变更资源配置
	- 私有资源池允许更换队列和资源配置
	 (Optional) */
	WorkloadSpec *WorkloadSpec `json:"workloadSpec"`

	/* 存储空间配置,用于更新存储挂载。

	## 使用说明
	- 更新存储配置需要确保新配置与队列的网络连通性
	- 第一个存储仍需挂载到`/mnt/workspace`
	 (Optional) */
	Storages []StorageSpec `json:"storages"`

	/* 数据集配置,用于更新数据集挂载。

	## 使用说明
	- 更新数据集配置需要确保新配置与队列的网络连通性
	 (Optional) */
	Datasets []DatasetSpec `json:"datasets"`

	/* 模型配置,用于更新模型挂载。

	## 使用说明
	- 更新模型配置需要确保新配置与队列的网络连通性
	 (Optional) */
	Models []ModelSpec `json:"models"`

	/* 代码配置,用于更新代码库挂载。

	## 使用说明
	- 传null表示不修改此属性
	- 传空数组表示清空代码配置
	 (Optional) */
	Codes []NbCodeConfig `json:"codes"`

	/* 节点亲和性配置,用于更新Pod调度规则。

	## 使用说明
	- 支持配置多个亲和性规则,每个元素之间是"或"的关系
	- 传null表示不修改此属性
	- 传空数组表示清空亲和性配置
	 (Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`

	/* SSH配置,用于更新SSH连接能力。

	## 使用说明
	- 传null表示不修改此属性
	 (Optional) */
	SshSpec *SshSpec `json:"sshSpec"`
}

type UpdateRuntimePolicy

type UpdateRuntimePolicy struct {

	/* 运行时长配置(小时) (Optional) */
	RuntimeHour int `json:"runtimeHour"`

	/* 运行时长配置-生效的资源队列id(空间已绑定的队列) (Optional) */
	QueueIds []string `json:"queueIds"`
}

type UpdateServiceQpsSpec

type UpdateServiceQpsSpec struct {

	/* 目标QPS。shared网关类型下必填且必须大于0;
	dedicated网关类型下该字段可为空,后端按固定值20处理。
	 (Optional) */
	Qps *int `json:"qps"`

	/* 开启 true 关闭 false  */
	EnableLimit bool `json:"enableLimit"`
}

type UpdateShutdownPolicy

type UpdateShutdownPolicy struct {

	/*  (Optional) */
	RuntimePolicys []UpdateRuntimePolicy `json:"runtimePolicys"`

	/*  (Optional) */
	IdlePolicys []UpdateIdlePolicy `json:"idlePolicys"`

	/* 排除的notebookID (Optional) */
	ExcludedNotebookIds []string `json:"excludedNotebookIds"`
}

type UpdateSimulationSpec

type UpdateSimulationSpec struct {

	/* 镜像配置。传null表示不修改此字段。
	(Optional) */
	ImageSpec EsImageSpec `json:"imageSpec"`

	/* 工作负载资源配置。传null表示不修改此字段。
	(Optional) */
	WorkloadSpec EsWorkloadSpec `json:"workloadSpec"`

	/* 存储配置,第一个存储作为工作目录必须挂载到/mnt/workspace不能更改。
	传null表示不修改此字段。
	 (Optional) */
	Storages []EsStorageSpec `json:"storages"`

	/* 数据集配置。传null表示不修改此字段。
	(Optional) */
	Datasets []EsDatasetSpec `json:"datasets"`

	/* 公网访问配置,只支持私有资源池中的仿真资源配置,传入与资源队列可通信的负载均衡。
	不需要公网访问时不要指定。传null表示不修改此字段。
	 (Optional) */
	LbSpec EsLbSpec `json:"lbSpec"`

	/* 创建资源时的节点亲和性配置,支持配置多个,每个元素之间是或者的关系。
	传null表示不修改此字段。
	 (Optional) */
	NodeAffinities []EsNodeAffinity `json:"nodeAffinities"`
}

type UpdateUserAndAppSpec

type UpdateUserAndAppSpec struct {

	/* 资源ID  */
	ResourceId string `json:"resourceId"`

	/* 原应用联系人信息  */
	OldOwner string `json:"oldOwner"`

	/* 新应用联系人信息  */
	NewOwner string `json:"newOwner"`
}

type UpdateWorkspaceRelatedQueue

type UpdateWorkspaceRelatedQueue struct {

	/* 队列id。 (Optional) */
	QueueId string `json:"queueId"`

	/* true支持所有任务模块,为null不更新 (Optional) */
	AllModuleSupported bool `json:"allModuleSupported"`

	/* 支持使用任务模块,allModuleSupported=false生效:可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用,为null不更新 (Optional) */
	AllMemberSupported bool `json:"allMemberSupported"`

	/* 队列可用成员,子账号pin,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`

	/* 调度测略 (Optional) */
	SchedulePolicy SchedulePolicy `json:"schedulePolicy"`
}

type UserTag

type UserTag struct {

	/* 标签键  */
	Key string `json:"key"`

	/* 标签值  */
	Value string `json:"value"`
}

type VPCInfo

type VPCInfo struct {

	/* 如果用户希望vpc ip复用alb,此处传入复用的alb id (Optional) */
	AlbId *string `json:"albId"`

	/* true:表示alb是复用; false:alb新建 (Optional) */
	AlbReuse *bool `json:"albReuse"`

	/* 用户指定alb监听端口 (Optional) */
	ListenPort *int `json:"listenPort"`

	/* 是否开启vpc访问 (Optional) */
	VpcAccess *bool `json:"vpcAccess"`

	/* vpc ip所属的子网id (Optional) */
	SubnetId *string `json:"subnetId"`

	/* vpc ip支持的协议, 如,HTTP, Grpc, UDP or TCP (Optional) */
	VpcProto *string `json:"vpcProto"`

	/* 协议层, 7 or 4 (Optional) */
	ProtoLevel *int `json:"protoLevel"`
}

type Vpc

type Vpc struct {

	/* vpc Id (Optional) */
	Id string `json:"id"`

	/* vpc 名字 (Optional) */
	Name string `json:"name"`
}

type WorkloadSpec

type WorkloadSpec struct {

	/* 资源队列ID,决定Notebook运行在哪个资源池。

	## 公共资源池
	- 队列ID固定为:`joybuilder-public-queue`
	- 使用平台共享资源,按量计费
	- 需要指定规格ID(flavorId)

	## 私有资源池
	- 队列ID为用户工作空间中的私有队列ID
	- 使用用户专属资源,不计费
	- 需要指定CPU和内存,可选GPU
	*/
	QueueId string `json:"queueId"`

	/* 公共资源池的规格ID,定义固定的资源配置。

	## 使用说明
	- 仅公共资源池需要指定
	- 规格ID对应预定义的CPU、内存、GPU配置
	- 可通过查询规格列表接口获取可用规格

	## 示例
	- cpu.2g4: 2核CPU,4GB内存
	- gpu.t4.8g32: T4 GPU,8核CPU,32GB内存
	 (Optional) */
	FlavorId *string `json:"flavorId"`

	/* CPU配置(单位:毫核),仅私有资源池有效。

	## 配置说明
	- 1000毫核 = 1核
	- 示例:2000表示2核CPU

	## 建议
	- 开发调试:2-4核
	- 模型训练:4-8核或更高
	 (Optional) */
	CpuM *int `json:"cpuM"`

	/* 内存配置(单位:MiB),仅私有资源池有效。

	## 配置说明
	- 1024 MiB = 1 GB
	- 示例:8192表示8GB内存

	## 建议
	- 开发调试:4-8GB
	- 模型训练:根据模型大小配置
	 (Optional) */
	MemoryMiB *int `json:"memoryMiB"`

	/* GPU设备类型,仅私有资源池有效。

	## 支持的GPU类型
	- NVIDIA_H20-3e: 华为昇腾910B
	- NVIDIA_A100: NVIDIA A100
	- NVIDIA_A800: NVIDIA A800
	- NVIDIA_T4: NVIDIA T4
	- 更多型号请咨询平台支持
	 (Optional) */
	DeviceModel *string `json:"deviceModel"`

	/* 虚拟GPU数量,仅私有资源池有效。

	## NVIDIA GPU配置
	- 支持整数:1、2、4、8(卡)
	- 支持小数:0.125、0.25、0.5(卡切分)

	## 昇腾GPU配置
	- 仅支持整数:1-8(卡)

	## 使用说明
	- 必须与deviceModel同时使用
	- 小数表示GPU切分,共享GPU资源
	 (Optional) */
	VcudaCore *string `json:"vcudaCore"`
}

type WorkspaceIdlePolicy

type WorkspaceIdlePolicy struct {

	/* 闲置等待时长配置(小时) (Optional) */
	MaxIdleTimeHour int `json:"maxIdleTimeHour"`

	/* CPU利用率阈值,0表示未配置 (Optional) */
	CpuPercentThreshold float64 `json:"cpuPercentThreshold"`

	/* GPU利用率阈值,0表示未配置 (Optional) */
	GpuPercentThreshold float64 `json:"gpuPercentThreshold"`

	/* 内存利用率阈值,0表示未配置 (Optional) */
	MemoryPercentThreshold float64 `json:"memoryPercentThreshold"`

	/* 闲置策略配置-生效的资源队列id (Optional) */
	QueueIds []string `json:"queueIds"`
}

type WorkspaceInfoWithRole

type WorkspaceInfoWithRole struct {

	/* 工作空间名称 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间描述 (Optional) */
	WorkspaceDesc string `json:"workspaceDesc"`

	/* 工作空间管理员 (Optional) */
	Admins string `json:"admins"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 资源队列ID (Optional) */
	ResourceQueueId []string `json:"resourceQueueId"`

	/* 创建用户账号 (Optional) */
	CreateUser string `json:"createUser"`

	/* 主账号 (Optional) */
	Pin string `json:"pin"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户账号 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 当前账号的角色。 (Optional) */
	Role string `json:"role"`
}

type WorkspaceInfoWithoutRole

type WorkspaceInfoWithoutRole struct {

	/* 工作空间名称 (Optional) */
	WorkspaceName string `json:"workspaceName"`

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 工作空间描述 (Optional) */
	WorkspaceDesc string `json:"workspaceDesc"`

	/* 工作空间管理员 (Optional) */
	Admins string `json:"admins"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 资源队列ID (Optional) */
	ResourceQueueId []string `json:"resourceQueueId"`

	/* 创建用户账号 (Optional) */
	CreateUser string `json:"createUser"`

	/* 主账号 (Optional) */
	Pin string `json:"pin"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 更新用户账号 (Optional) */
	UpdateUser string `json:"updateUser"`

	/* 当前查询用户对应空间角色:admin管理员,developer开发者,visitor访客。 (Optional) */
	MemberRole string `json:"memberRole"`
}

type WorkspaceMember

type WorkspaceMember struct {

	/* 成员名称。 (Optional) */
	MemberUser *string `json:"memberUser"`

	/* 成员角色。 (Optional) */
	MemberRole *string `json:"memberRole"`

	/* 成员子账号。 (Optional) */
	MemberPin *string `json:"memberPin"`
}

type WorkspaceMemberQueue

type WorkspaceMemberQueue struct {

	/* 成员名称。 (Optional) */
	MemberUser string `json:"memberUser"`

	/* 成员角色。 (Optional) */
	MemberRole string `json:"memberRole"`

	/* 成员子账号。 (Optional) */
	MemberPin string `json:"memberPin"`

	/* 队列ID (Optional) */
	QueueIds []string `json:"queueIds"`
}

type WorkspaceQueue

type WorkspaceQueue struct {

	/* 队列id。 (Optional) */
	QueueId string `json:"queueId"`

	/* true支持所有任务模块 (Optional) */
	AllModuleSupported bool `json:"allModuleSupported"`

	/* 支持使用任务模块,allModuleSupported=false生效:可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用 (Optional) */
	AllMemberSupported bool `json:"allMemberSupported"`

	/* 队列可用成员,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`

	/* 调度测略 (Optional) */
	SchedulePolicy SchedulePolicy `json:"schedulePolicy"`
}

type WorkspaceRelatedQueue

type WorkspaceRelatedQueue struct {

	/* 队列id。 (Optional) */
	QueueId *string `json:"queueId"`

	/* true支持所有任务模块,默认true (Optional) */
	AllModuleSupported *bool `json:"allModuleSupported"`

	/* 支持使用任务模块,allModuleSupported=false生效:可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用,默认true (Optional) */
	AllMemberSupported *bool `json:"allMemberSupported"`

	/* 调度测略 (Optional) */
	SchedulePolicy *SchedulePolicy `json:"schedulePolicy"`

	/* 队列可用成员,子账号pin,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`
}

type WorkspaceRuntimePolicy

type WorkspaceRuntimePolicy struct {

	/* 运行时长配置(小时) (Optional) */
	RuntimeHour int `json:"runtimeHour"`

	/* 运行时长配置-生效的资源队列id (Optional) */
	QueueIds []string `json:"queueIds"`
}

type WorkspaceShutdownPolicy

type WorkspaceShutdownPolicy struct {

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 运行时长策略配置 (Optional) */
	RuntimePolicys []WorkspaceRuntimePolicy `json:"runtimePolicys"`

	/* 闲置策略配置 (Optional) */
	IdlePolicys []WorkspaceIdlePolicy `json:"idlePolicys"`

	/* 排除的notebookID (Optional) */
	ExcludedNotebookIds []string `json:"excludedNotebookIds"`

	/* 版本 (Optional) */
	Version string `json:"version"`
}

type WorkspaceShutdownPolicyVersion

type WorkspaceShutdownPolicyVersion struct {

	/* 工作空间ID (Optional) */
	WorkspaceId string `json:"workspaceId"`

	/* 版本 (Optional) */
	Version string `json:"version"`
}

type WorkspaceSpec

type WorkspaceSpec struct {

	/* 工作空间名称。  */
	WorkspaceName string `json:"workspaceName"`

	/* 工作空间描述,256个字符内。 (Optional) */
	WorkspaceDesc *string `json:"workspaceDesc"`

	/* 资源队列。【废弃】该字段即将下线,建议使用新的资源队列配置字段[queueConfigs]。  */
	ResourceQueue []string `json:"resourceQueue"`

	/* 资源队列配置。 (Optional) */
	QueueConfigs []WorkspaceRelatedQueue `json:"queueConfigs"`

	/* 工作空间成员。 (Optional) */
	WorkspaceMember []WorkspaceMember `json:"workspaceMember"`

	/* 空间关联的日志配置。 (Optional) */
	LogConfigs []UpdateLogConfigs `json:"logConfigs"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL