models

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ActionOutputForCreateJobDefinition

type ActionOutputForCreateJobDefinition struct {

	/* 修改时必填,环节ID (Optional) */
	ActionId int `json:"actionId"`

	/* 输出参数排序  */
	Order string `json:"order"`

	/* 默认值 (Optional) */
	VarDefault string `json:"varDefault"`

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

type AddNodeParam

type AddNodeParam struct {

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

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

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

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

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

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

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

type AdminDedicatedGatewayInfo

type AdminDedicatedGatewayInfo struct {

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

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

	/* 专属网关实例数 (Optional) */
	Replicas int `json:"replicas"`

	/* 专属网关单个实例所需cpu资源, 单位豪核,如: 1000=1核 (Optional) */
	Cpu int `json:"cpu"`

	/* 专属网关单个实例所需内存资源, 单位M, 如1024=1Gi (Optional) */
	Memory int `json:"memory"`

	/* 是否开启专属网关限流 (Optional) */
	EnableLimit bool `json:"enableLimit"`

	/* 限流qps值 (Optional) */
	Qps int `json:"qps"`

	/* true表示LB实例不会绑定公网IP,只内部使用;false表示为外部服务,会绑定公网IP (Optional) */
	Internal bool `json:"internal"`

	/* 就绪网关实例数 (Optional) */
	ReadyReplicas int `json:"readyReplicas"`

	/* 专属网关状态,创建中(creating)、正常(running)、异常(failed)、扩缩中(scaling)、删除中(deleting) (Optional) */
	Status string `json:"status"`

	/* NLB信息 (Optional) */
	Nlb Nlb `json:"nlb"`

	/* NLB所属子网 (Optional) */
	Subnet Subnet `json:"subnet"`

	/* NLB所属私有网络 (Optional) */
	Vpc Vpc `json:"vpc"`

	/* NLB所属可用区 (Optional) */
	Azs []Az `json:"azs"`

	/* 公网IP相关信息 (Optional) */
	ElasticIp ElasticIp `json:"elasticIp"`

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

	/* 专属网关pod名字列表 (Optional) */
	Pods []string `json:"pods"`
}

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 AdminFlavor

type AdminFlavor struct {

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格类型。 (Optional) */
	Category string `json:"category"`

	/* CPU核数。 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存大小,单位MB。 (Optional) */
	MemoryMb int `json:"memoryMb"`

	/* GPU卡数。 (Optional) */
	Gpu float64 `json:"gpu"`

	/* 单卡显存大小,单位GB。 (Optional) */
	GpuMemoryGb float64 `json:"gpuMemoryGb"`

	/* GPU设备名。 (Optional) */
	GpuDeviceName string `json:"gpuDeviceName"`

	/* 是否支持RDMA。 (Optional) */
	Rdma bool `json:"rdma"`

	/* 是否为灰度规格。 (Optional) */
	Gray bool `json:"gray"`

	/* 是否上架。 (Optional) */
	Online bool `json:"online"`

	/* 是否允许公网访问。 (Optional) */
	AllowInternet bool `json:"allowInternet"`

	/* 调度标签列表。 (Optional) */
	SchedulerLabels []FlavorSchedulerLabel `json:"schedulerLabels"`

	/* 灰度可见pin列表。 (Optional) */
	GrayPins []string `json:"grayPins"`
}

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"`

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

	/* 任务调度优先级,数值越大,优先级越高。
	**取值范围:** 1 ~ 9
	**使用前提:**
	- 空间私有队列且开启了调度优先级功能
	 (Optional) */
	TaskPriority int `json:"taskPriority"`

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

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

	/* 用户标签 (Optional) */
	UserTags []UserTag `json:"userTags"`

	/* 资源组信息 (Optional) */
	ResourceGroupInfo ResourceGroupInfo `json:"resourceGroupInfo"`
}

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` | 成功,任务执行完成 | 可查看结果 |
	| `partial-success` | 部分成功,仅 Batch 任务返回 | 可查看各副本结果 |
	| `deleting` | 删除中,正在删除任务 | 等待 |
	| `rolling-back` | 回滚中,正在回滚 | 等待 |
	| `rolled-back` | 已回滚,回滚完成 | - |
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型。

	## 失败类型说明

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

	/* 训练任务失败原因。

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

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

	/* 重启次数。

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

	/* 任务类型。

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

	/* 是否为用户训练主容器开启容器特权模式。 (Optional) */
	Privileged bool `json:"privileged"`

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

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

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

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

	/* 队列ID。

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

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

	/* 队列类型。公共资源池为 `public`,共享资源池为 `exclusive`,安全资源池为 `secure`。 (Optional) */
	QueueType string `json:"queueType"`

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

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

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

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

	/* 任务优先级。共享资源池取值范围为 `1..9`;未配置优先级时返回 `0`。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 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"`

	/* 出公网配置(任务级,公共资源池和共享资源池训练任务生效)。未配置时为 null。
	(Optional) */
	InternetEgress InternetEgressForJob `json:"internetEgress"`

	/* 实例详情信息。

	包含实例的运行状态、节点信息等详细数据。
	 (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 AdminQueue

type AdminQueue struct {

	/* 队列类型。 (Optional) */
	QueueType string `json:"queueType"`

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

	/* 资源池ID。 (Optional) */
	PoolId string `json:"poolId"`

	/* 队列所属资源池详情。 (Optional) */
	Pool QueuePool `json:"pool"`

	/* 集群所属范围。 (Optional) */
	Scope string `json:"scope"`

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

	/* 是否启用。 (Optional) */
	Enable bool `json:"enable"`

	/* 是否支持抢占。 (Optional) */
	Preemptible bool `json:"preemptible"`

	/* CPU/内存quota。 (Optional) */
	BaseQuota QueueBaseQuota `json:"baseQuota"`

	/* GPU quota列表。 (Optional) */
	GpuQuotas []QueueGpuQuota `json:"gpuQuotas"`

	/* user queue用户pin列表。 (Optional) */
	QueueUsers []string `json:"queueUsers"`
}

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"`

	/* 任务优先级。

	共享资源池取值范围为 `1..9`,数值越大优先级越高;未配置优先级时返回 `0`。

	## 使用场景
	当队列开启优先级调度时生效,用于任务排队时的调度排序。
	 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 业务类型。

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

	## 可选值

	| 值 | 说明 | 特点 |
	|----|------|------|
	| `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 AggregatedTaskItem

type AggregatedTaskItem struct {

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

	/* 任务名称 (Optional) */
	TaskName string `json:"taskName"`

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

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

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

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

	/* 任务优先级,从 DescribeResources 取,取不到默认 5 (Optional) */
	Priority string `json:"priority"`

	/* 任务状态 (Optional) */
	TaskStatus string `json:"taskStatus"`

	/* 创建时间 (Optional) */
	CreationTime string `json:"creationTime"`

	/* 删除时间 (Optional) */
	DeletionTime string `json:"deletionTime"`

	/* 排队时长(秒) (Optional) */
	QueueDurationSeconds float64 `json:"queueDurationSeconds"`

	/* 运行时长(秒) (Optional) */
	RunningDurationSeconds float64 `json:"runningDurationSeconds"`
}

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 + remoteNodeName + 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"`

	/* 排队中的请求数阈值 (Optional) */
	WaitingRequestCountThreshold *int `json:"waitingRequestCountThreshold"`

	/* 首token时延阈值,单位毫秒 (Optional) */
	TimeToFirstTokenP99Threshold *int `json:"timeToFirstTokenP99Threshold"`
}

type AvailableCluster

type AvailableCluster struct {

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 可用区类型 (Optional) */
	AzType string `json:"azType"`

	/* 实例网络集群ID (Optional) */
	HpcClusterId string `json:"hpcClusterId"`

	/* 实例网络集群名称 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 实例所属网络拓扑的PodIds (Optional) */
	PodIds string `json:"podIds"`

	/* 实例所属网络拓扑的SuIds (Optional) */
	SuIds string `json:"suIds"`

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

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

type AvailableClusters

type AvailableClusters struct {

	/*  (Optional) */
	Clusters []AvailableCluster `json:"clusters"`
}

type Az

type Az struct {

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

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

type BPlumberTemplateForCreateJobDefinition

type BPlumberTemplateForCreateJobDefinition struct {

	/* 是否更新模板  */
	IsInterfaceRequest bool `json:"isInterfaceRequest"`

	/* 用户自定义模板信息  */
	CustomizeTemplateJson string `json:"customizeTemplateJson"`
}

type BPlumberTemplateForDescribeJobDefinition

type BPlumberTemplateForDescribeJobDefinition struct {

	/* 是否更新模板  */
	IsInterfaceRequest bool `json:"isInterfaceRequest"`

	/* 用户自定义模板信息  */
	CustomizeTemplateJson string `json:"customizeTemplateJson"`
}

type BatchNodePoolDevicesReq

type BatchNodePoolDevicesReq struct {

	/* 显卡UUID列表 (Optional) */
	Uuids []string `json:"uuids"`
}

type BatchNodePoolNodesReq

type BatchNodePoolNodesReq struct {

	/* 节点IP列表 (Optional) */
	Ips []string `json:"ips"`

	/* 目标节点池ID,迁移节点时必填 (Optional) */
	TargetNodePoolId string `json:"targetNodePoolId"`
}

type BatchNodePoolSchedulingReq

type BatchNodePoolSchedulingReq struct {

	/* 节点IP列表 (Optional) */
	Ips []string `json:"ips"`
}

type BatchSummaryForJob

type BatchSummaryForJob struct {

	/* 副本总数。 (Optional) */
	Total int `json:"total"`

	/* 尚未出现 Pod 的逻辑副本数。 (Optional) */
	Scheduling int `json:"scheduling"`

	/* 正在等待调度或启动的副本数。 (Optional) */
	Pending int `json:"pending"`

	/* 正在运行的副本数。 (Optional) */
	Running int `json:"running"`

	/* 执行成功的副本数。 (Optional) */
	Succeeded int `json:"succeeded"`

	/* 执行失败的副本数。 (Optional) */
	Failed int `json:"failed"`

	/* 用户停止或删除任务时已中止的副本数。 (Optional) */
	Terminated int `json:"terminated"`

	/* 状态无法识别的副本数。 (Optional) */
	Unknown int `json:"unknown"`
}

type BatchSwitchNodePoolDevicesReq

type BatchSwitchNodePoolDevicesReq struct {

	/* 显卡UUID列表 (Optional) */
	Uuids []string `json:"uuids"`

	/* 是否开启算力切分,true为开启,false为关闭 (Optional) */
	Enable bool `json:"enable"`
}

type BillingBuyResult

type BillingBuyResult struct {

	/* 商业平台购买单ID,用于跳转收银台或查询订单 (Optional) */
	BuyId string `json:"buyId"`

	/* 本次预分配的资源ID (Optional) */
	ResourceId string `json:"resourceId"`
}

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 BuffaloConsistencyCheckForDescribeBuffaloDependency

type BuffaloConsistencyCheckForDescribeBuffaloDependency struct {

	/* 是否通过全部一致性检查。 (Optional) */
	Passed bool `json:"passed"`

	/* 未通过的检查项数量。 (Optional) */
	FailureCount int `json:"failureCount"`

	/* 逐项一致性检查结果。 (Optional) */
	Items []BuffaloConsistencyCheckItemForDescribeBuffaloDependency `json:"items"`
}

type BuffaloConsistencyCheckItemForDescribeBuffaloDependency

type BuffaloConsistencyCheckItemForDescribeBuffaloDependency struct {

	/* 检查项编码。可选值:`MANAGER`、`TASK_STATE`、`PARENT_DEPENDENCY`、`SCHEDULE_MODE`、`RUN_CYCLE`、`RUN_TIME`。 (Optional) */
	Code string `json:"code"`

	/* 检查项页面名称。 (Optional) */
	Name string `json:"name"`

	/* Ku+ 旧任务的页面展示值。 (Optional) */
	KuplusValue string `json:"kuplusValue"`

	/* JoyBuilder 新任务的页面展示值。 (Optional) */
	JoybuilderValue string `json:"joybuilderValue"`

	/* 当前检查项是否通过。 (Optional) */
	Passed bool `json:"passed"`

	/* 检查结果说明。 (Optional) */
	Message string `json:"message"`
}

type BuffaloDependencyResultForUpdateBuffaloDependency

type BuffaloDependencyResultForUpdateBuffaloDependency struct {

	/* 下游 Buffalo 任务ID。 (Optional) */
	DownstreamBuffaloId int64 `json:"downstreamBuffaloId"`

	/* 下游 Buffalo 任务名称。 (Optional) */
	DownstreamBuffaloName string `json:"downstreamBuffaloName"`

	/* 更新状态。可选值:`success`、`failed`。 (Optional) */
	UpdateStatus string `json:"updateStatus"`

	/* 可直接展示的更新结果摘要,不包含内部审计 JSON。 (Optional) */
	ResultDetail string `json:"resultDetail"`
}

type BuffaloDependencyUpdateRecordForDescribeBuffaloDependencyUpdateRecords

type BuffaloDependencyUpdateRecordForDescribeBuffaloDependencyUpdateRecords struct {

	/* 本次批量操作ID。 (Optional) */
	OperationId string `json:"operationId"`

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

	/* 任务定义ID。 (Optional) */
	JobDefinitionId string `json:"jobDefinitionId"`

	/* 任务定义名称。 (Optional) */
	JobDefinitionName string `json:"jobDefinitionName"`

	/* 本次删除的原父 Buffalo 任务ID。 (Optional) */
	SourceBuffaloId int64 `json:"sourceBuffaloId"`

	/* 本次删除的原父 Buffalo 任务名称快照。 (Optional) */
	SourceBuffaloName string `json:"sourceBuffaloName"`

	/* 本次新增的目标父 Buffalo 任务ID。 (Optional) */
	TargetBuffaloId int64 `json:"targetBuffaloId"`

	/* 本次新增的目标父 Buffalo 任务名称快照。 (Optional) */
	TargetBuffaloName string `json:"targetBuffaloName"`

	/* 下游 Buffalo 任务ID。 (Optional) */
	DownstreamBuffaloId int64 `json:"downstreamBuffaloId"`

	/* 下游 Buffalo 任务名称快照。 (Optional) */
	DownstreamBuffaloName string `json:"downstreamBuffaloName"`

	/* 下游 Buffalo 任务负责人账号快照。 (Optional) */
	DownstreamManagers string `json:"downstreamManagers"`

	/* 下游 Buffalo 任务负责人名称快照。 (Optional) */
	DownstreamManagersName string `json:"downstreamManagersName"`

	/* 操作类型。可选值:`switch`、`rollback`。 (Optional) */
	OperationType string `json:"operationType"`

	/* 更新状态。可选值:`success`、`failed`。 (Optional) */
	UpdateStatus string `json:"updateStatus"`

	/* 可直接展示的更新结果摘要,不包含内部审计 JSON。 (Optional) */
	ResultDetail string `json:"resultDetail"`

	/* 操作人ID。 (Optional) */
	OperatorUserId string `json:"operatorUserId"`

	/* 操作人名称。 (Optional) */
	OperatorUserName string `json:"operatorUserName"`

	/* 操作开始时间,北京时间,格式为 yyyy-MM-dd HH:mm:ss。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 操作完成时间,北京时间,格式为 yyyy-MM-dd HH:mm:ss;页面时间列使用该字段。 (Optional) */
	FinishTime string `json:"finishTime"`
}

type BuffaloForCreateJobDefinition

type BuffaloForCreateJobDefinition struct {

	/* 任务属性  */
	Task DefTaskForCreateJobDefinition `json:"task"`

	/* 环节操作类型
	- `replace`:全量替换
	- `patch`:增量变更
	*/
	ActionOptType string `json:"actionOptType"`

	/* 环节列表  */
	ActionList []DefActionForCreateJobDefinition `json:"actionList"`
}

type BuffaloForDescribeBuffaloDependency

type BuffaloForDescribeBuffaloDependency struct {

	/* Buffalo 任务ID。 (Optional) */
	BuffaloId int64 `json:"buffaloId"`

	/* Buffalo 任务名称。 (Optional) */
	BuffaloName string `json:"buffaloName"`
}

type BuffaloForDescribeJobDefinition

type BuffaloForDescribeJobDefinition struct {

	/* 任务ID。 (Optional) */
	TaskId int `json:"taskId"`

	/* 任务名称。 (Optional) */
	TaskName string `json:"taskName"`

	/* 任务类型。
	- `single`:标准任务
	- `wf`:工作流任务
	 (Optional) */
	TaskType string `json:"taskType"`

	/* 任务引擎类型。
	- `buffalo`
	- `oozie`
	 (Optional) */
	EngineType string `json:"engineType"`

	/* 环节类型。 (Optional) */
	ActionType string `json:"actionType"`

	/* 环节类型名称。 (Optional) */
	ActionTypeName string `json:"actionTypeName"`

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

	/* 任务所属项目空间ID。 (Optional) */
	AppGroupId int `json:"appGroupId"`

	/* 任务所属项目空间名称。 (Optional) */
	AppGroupName string `json:"appGroupName"`

	/* 项目类型。
	- `1`:基础模式
	- `2`:开发生产隔离模式
	 (Optional) */
	Type int `json:"type"`

	/* 任务负责人。 (Optional) */
	Managers string `json:"managers"`

	/* 任务负责人名字。 (Optional) */
	ManagersName string `json:"managersName"`

	/* 任务负责人名字和邮箱。 (Optional) */
	ManagersNameAndEmail string `json:"managersNameAndEmail"`

	/* 任务执行优先级。 (Optional) */
	Priority int `json:"priority"`

	/* 优先级描述。如 L1/L2/L3 (Optional) */
	PriorityDesc string `json:"priorityDesc"`

	/* 调度方式。
	- `cycle`:周期任务
	- `temp`:临时任务
	- `manual`:手动任务
	 (Optional) */
	PeriodicType string `json:"periodicType"`

	/* 周期类型。 (Optional) */
	CycleType string `json:"cycleType"`

	/* 周期类型描述。 (Optional) */
	CycleTypeDesc string `json:"cycleTypeDesc"`

	/* 周期日期。 (Optional) */
	CycleDay string `json:"cycleDay"`

	/* 执行时间的天。 (Optional) */
	Day int `json:"day"`

	/* 执行时间的小时。 (Optional) */
	Hour int `json:"hour"`

	/* 执行时间的分钟。 (Optional) */
	Minute int `json:"minute"`

	/* 周期步长。 (Optional) */
	CycleStep int `json:"cycleStep"`

	/* 自定义运行规则。 (Optional) */
	CronExpression string `json:"cronExpression"`

	/* 执行时间。 (Optional) */
	NextTime string `json:"nextTime"`

	/* 任务生效时间。 (Optional) */
	EffectiveTime string `json:"effectiveTime"`

	/* 预计完成时间。 (Optional) */
	SlaTime string `json:"slaTime"`

	/* 最多等待实例个数。 (Optional) */
	Throttle string `json:"throttle"`

	/* 实例等待超时时间。 (Optional) */
	TimeOut int `json:"timeOut"`

	/* 失败是否重试。 (Optional) */
	FailRetry int `json:"failRetry"`

	/* 失败重试次数。 (Optional) */
	RetryTimes int `json:"retryTimes"`

	/* 失败重试间隔(秒)。 (Optional) */
	RetryInterval int `json:"retryInterval"`

	/* 实例执行策略。 (Optional) */
	SelfDepend int `json:"selfDepend"`

	/* 实例执行顺序。
	- `FIFO`
	- `LATEST_ONLY`
	 (Optional) */
	ExeOrder string `json:"exeOrder"`

	/* 同一任务允许同时执行实例数。 (Optional) */
	Concurrency int `json:"concurrency"`

	/* 跟随父任务重跑策略。 (Optional) */
	ParentRerunPolicy int `json:"parentRerunPolicy"`

	/* 是否失败报警。 (Optional) */
	FailAlarm int `json:"failAlarm"`

	/* 开始时间超时报警。 (Optional) */
	StartAlarm int `json:"startAlarm"`

	/* 开始时间阀值。 (Optional) */
	StartFa string `json:"startFa"`

	/* 结束时间超时报警。 (Optional) */
	EndAlarm int `json:"endAlarm"`

	/* 结束时间阀值。 (Optional) */
	EndFa string `json:"endFa"`

	/* 报警方式。 (Optional) */
	AlarmType string `json:"alarmType"`

	/* 报警组ID。 (Optional) */
	AlarmId string `json:"alarmId"`

	/* 报警组名称。 (Optional) */
	AlarmName string `json:"alarmName"`

	/* 任务状态。 (Optional) */
	Status int `json:"status"`

	/* 过期时间。 (Optional) */
	DueDate string `json:"dueDate"`

	/* 禁用状态。
	- `1`:禁用
	- `0`:启用
	 (Optional) */
	Disabled int `json:"disabled"`

	/* 冻结状态。
	- `1`:冻结
	- `0`:启用
	 (Optional) */
	Suspended int `json:"suspended"`

	/* 业务系统ID。 (Optional) */
	AppId string `json:"appId"`

	/* appid是否满足跳开发中心。 (Optional) */
	CanAppIdToDevCenter bool `json:"canAppIdToDevCenter"`

	/* 是否开启项目资源。 (Optional) */
	OpenPrjRes bool `json:"openPrjRes"`

	/* 集群code。 (Optional) */
	ClusterCode string `json:"clusterCode"`

	/* 集市code。 (Optional) */
	MarketCode string `json:"marketCode"`

	/* 集市名称。 (Optional) */
	MarketName string `json:"marketName"`

	/* 生产账号code。 (Optional) */
	AccountCode string `json:"accountCode"`

	/* 生产账号名称。 (Optional) */
	AccountName string `json:"accountName"`

	/* 队列code。 (Optional) */
	QueueCode string `json:"queueCode"`

	/* 队列名称。 (Optional) */
	QueueName string `json:"queueName"`

	/* 执行引擎。 (Optional) */
	HadoopEngineType string `json:"hadoopEngineType"`

	/* 节点类型。 (Optional) */
	TaskNodeType int `json:"taskNodeType"`

	/* 节点名称。 (Optional) */
	TaskNodeName string `json:"taskNodeName"`

	/* 节点id。 (Optional) */
	TaskNodeId string `json:"taskNodeId"`

	/* 资源设置方式(第三方可返回 null)。 (Optional) */
	CgroupSetType int `json:"cgroupSetType"`

	/* CPU限制。 (Optional) */
	CpuLimitSize int `json:"cpuLimitSize"`

	/* 内存限制。 (Optional) */
	MemLimitSize int `json:"memLimitSize"`

	/* 脚本ID。 (Optional) */
	ScriptId int `json:"scriptId"`

	/* 脚本路径。 (Optional) */
	ScriptPath string `json:"scriptPath"`

	/* 脚本启动项。 (Optional) */
	ScriptStartFile string `json:"scriptStartFile"`

	/* 任务参数。 (Optional) */
	Args string `json:"args"`

	/* 执行超时时长(分)。 (Optional) */
	MaxRunTime int `json:"maxRunTime"`

	/* 模板ID(第三方可返回 null)。 (Optional) */
	EtlTemplateId int `json:"etlTemplateId"`

	/* 创建者erp。 (Optional) */
	Creator string `json:"creator"`

	/* 创建者名字。 (Optional) */
	CreatorName string `json:"creatorName"`

	/* 创建者名字和邮箱。 (Optional) */
	CreatorNameAndEmail string `json:"creatorNameAndEmail"`

	/* 创建时间。 (Optional) */
	Created string `json:"created"`

	/* 修改者erp。 (Optional) */
	Modifier string `json:"modifier"`

	/* 修改者名字。 (Optional) */
	ModifierName string `json:"modifierName"`

	/* 修改者名字和邮箱。 (Optional) */
	ModifierNameAndEmail string `json:"modifierNameAndEmail"`

	/* 修改时间。 (Optional) */
	Modified string `json:"modified"`

	/* 任务全局参数。 (Optional) */
	TaskVariableList []TaskVariableForDescribeJobDefinition `json:"taskVariableList"`

	/* 环节列表。 (Optional) */
	ActionList []DefActionForDescribeJobDefinition `json:"actionList"`

	/* 环节关系列表。 (Optional) */
	ActionDependList []DefActionDependForDescribeJobDefinition `json:"actionDependList"`
}

type BuffaloForDescribeJobDefinitions

type BuffaloForDescribeJobDefinitions struct {

	/* 任务ID。 (Optional) */
	TaskId int `json:"taskId"`

	/* 任务名称。 (Optional) */
	TaskName string `json:"taskName"`

	/* 任务类型。
	- `single`:单环节普通任务
	- `wf`:工作流任务
	 (Optional) */
	TaskType string `json:"taskType"`

	/* 任务版本号。 (Optional) */
	TaskVersion int `json:"taskVersion"`

	/* 任务引擎类型。
	- `buffalo`
	- `oozie`
	 (Optional) */
	EngineType string `json:"engineType"`

	/* 环节类型。
	- `custom`:普通任务
	- `pyscript`:数据计算(py/sh/zip)
	- `plumber_input`:数据入库任务
	- `plumber_output`:数据出库任务
	- `market_sync`:数据同步任务
	- `rtchain4`:实时拉链任务
	- `moonfall`:登月算法任务
	- `chain`:数据拉链任务
	 (Optional) */
	ActionType string `json:"actionType"`

	/* 环节类型名称。 (Optional) */
	ActionTypeName string `json:"actionTypeName"`

	/* 环节数量。 (Optional) */
	ActionCount int `json:"actionCount"`

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

	/* 任务所属项目空间ID。 (Optional) */
	AppGroupId int `json:"appGroupId"`

	/* 任务所属项目空间名称。 (Optional) */
	AppGroupName string `json:"appGroupName"`

	/* 项目类型。
	- `1`:基础模式
	- `2`:开发生产隔离模式
	 (Optional) */
	Type int `json:"type"`

	/* 任务负责人erp。 (Optional) */
	Managers string `json:"managers"`

	/* 任务负责人名字。 (Optional) */
	ManagersName string `json:"managersName"`

	/* 任务负责人名字和邮箱。 (Optional) */
	ManagersNameAndEmail string `json:"managersNameAndEmail"`

	/* 任务执行优先级。 (Optional) */
	Priority int `json:"priority"`

	/* 优先级描述。如 L1/L2/L3 (Optional) */
	PriorityDesc string `json:"priorityDesc"`

	/* 调度方式。
	- `temp`:临时任务
	- `cycle`:周期任务
	 (Optional) */
	PeriodicType string `json:"periodicType"`

	/* 周期类型。
	- `month`:月
	- `week`:周
	- `day`:天
	- `hour`:小时
	- `minute`:分钟
	- `custom`:自定义规则
	 (Optional) */
	CycleType string `json:"cycleType"`

	/* 周期类型描述。 (Optional) */
	CycleTypeDesc string `json:"cycleTypeDesc"`

	/* 周期步长。分钟任务时,代表每几分钟执行一次。 (Optional) */
	CycleStep int `json:"cycleStep"`

	/* 周期日期。 (Optional) */
	CycleDay string `json:"cycleDay"`

	/* 执行时间的天。
	月任务代表每月几号,周任务代表每周的周几。
	 (Optional) */
	Day int `json:"day"`

	/* 执行时间的小时(每天几点执行)。 (Optional) */
	Hour int `json:"hour"`

	/* 执行时间的分钟(每小时的几分执行)。 (Optional) */
	Minute int `json:"minute"`

	/* 自定义规则类型的任务运行规则。 (Optional) */
	CronExpression string `json:"cronExpression"`

	/* 下次实例时间(毫秒时间戳)。 (Optional) */
	NextTime int64 `json:"nextTime"`

	/* 下次实例时间。
	**格式:** yyyy-MM-dd HH:mm:ss
	 (Optional) */
	NextTimeStr string `json:"nextTimeStr"`

	/* 生效时间(毫秒时间戳)。 (Optional) */
	EffectiveTime int64 `json:"effectiveTime"`

	/* 失效时间(毫秒时间戳)。 (Optional) */
	EndTime int64 `json:"endTime"`

	/* 预计完成时间。 (Optional) */
	SlaTime string `json:"slaTime"`

	/* 最多等待实例个数。 (Optional) */
	Throttle string `json:"throttle"`

	/* 实例等待超时时间。 (Optional) */
	TimeOut int `json:"timeOut"`

	/* 是否失败报警。 (Optional) */
	FailAlarm int `json:"failAlarm"`

	/* 开始时间超时报警。 (Optional) */
	StartAlarm int `json:"startAlarm"`

	/* 开始时间阀值。 (Optional) */
	StartFa string `json:"startFa"`

	/* 结束时间超时报警。 (Optional) */
	EndAlarm int `json:"endAlarm"`

	/* 结束时间阀值。 (Optional) */
	EndFa string `json:"endFa"`

	/* 报警方式。 (Optional) */
	AlarmType string `json:"alarmType"`

	/* 报警组ID。 (Optional) */
	AlarmId string `json:"alarmId"`

	/* 创建者erp。 (Optional) */
	Creator string `json:"creator"`

	/* 创建者名字。 (Optional) */
	CreatorName string `json:"creatorName"`

	/* 创建者名字和邮箱。 (Optional) */
	CreatorNameAndEmail string `json:"creatorNameAndEmail"`

	/* 创建时间(毫秒时间戳)。 (Optional) */
	Created int64 `json:"created"`

	/* 修改者erp。 (Optional) */
	Modifier string `json:"modifier"`

	/* 修改者名字。 (Optional) */
	ModifierName string `json:"modifierName"`

	/* 修改者名字和邮箱。 (Optional) */
	ModifierNameAndEmail string `json:"modifierNameAndEmail"`

	/* 修改时间(毫秒时间戳)。 (Optional) */
	Modified int64 `json:"modified"`

	/* 冻结状态。
	- `1`:冻结
	- `0`:启用
	 (Optional) */
	Suspended int `json:"suspended"`

	/* 审批状态。
	- `1`:测试任务
	- `2`:上线审批中
	- `3`:线上任务
	- `4`:下线审批中
	 (Optional) */
	Status int `json:"status"`

	/* 过期时间(毫秒时间戳)。 (Optional) */
	DueDate int64 `json:"dueDate"`

	/* 测试任务的有效时间。 (Optional) */
	DeadLine int `json:"deadLine"`

	/* 禁用状态。
	- `1`:禁用
	- `0`:启用
	 (Optional) */
	Disabled int `json:"disabled"`

	/* 业务系统ID。 (Optional) */
	AppId string `json:"appId"`

	/* appid是否满足跳开发中心。 (Optional) */
	CanAppIdToDevCenter bool `json:"canAppIdToDevCenter"`

	/* 任务是否可配置数据质量。 (Optional) */
	EnableDqc bool `json:"enableDqc"`

	/* 是否开启项目资源。 (Optional) */
	OpenPrjRes bool `json:"openPrjRes"`

	/* 平台版本。 (Optional) */
	PlatformVersion string `json:"platformVersion"`

	/* 实例ID。 (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例状态。如 wait/running/success/fail
	(Optional) */
	InsStatus string `json:"insStatus"`

	/* 运行状态。 (Optional) */
	RunStatus string `json:"runStatus"`

	/* 运行时间(毫秒时间戳)。 (Optional) */
	RunTime int64 `json:"runTime"`

	/* 排队时间(毫秒时间戳)。 (Optional) */
	QueueTime int64 `json:"queueTime"`

	/* 实例调度时间(毫秒时间戳)。 (Optional) */
	InstScheTime int64 `json:"instScheTime"`

	/* 实例锁定时间(毫秒时间戳)。 (Optional) */
	InsLockTime int64 `json:"insLockTime"`
}

type BuffaloTaskDataResourceDbForCreateJobDefinition

type BuffaloTaskDataResourceDbForCreateJobDefinition struct {

	/* 数据源库信息  */
	DbName string `json:"dbName"`

	/* 数据源表信息  */
	DbTable string `json:"dbTable"`
}

type BuffaloTaskDataResourceForCreateJobDefinition

type BuffaloTaskDataResourceForCreateJobDefinition struct {

	/* 数据源ID (Optional) */
	DsId int `json:"dsId"`

	/* 数据源类型。枚举值:hive、mysql、es、hbase
	(Optional) */
	DsType string `json:"dsType"`

	/* 输入/输出类型 (Optional) */
	SrcTargetType int `json:"srcTargetType"`

	/* 集群code (Optional) */
	ClusterCode string `json:"clusterCode"`

	/* 集市code (Optional) */
	MarketCode string `json:"marketCode"`

	/* 账号Code (Optional) */
	AccountCode string `json:"accountCode"`

	/* 数据源对应库表信息 (Optional) */
	BuffaloTaskDataResourceDbList []BuffaloTaskDataResourceDbForCreateJobDefinition `json:"buffaloTaskDataResourceDbList"`
}

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"`

	/* 单位 (Optional) */
	Unit string `json:"unit"`
}

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 CalculateTaskResourceSpec

type CalculateTaskResourceSpec struct {

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

type CalculateTaskResourcesRequest

type CalculateTaskResourcesRequest struct {

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

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

	/* 多组任务试算规格 (Optional) */
	Specs []CalculateTaskResourceSpec `json:"specs"`
}

type CalculateTaskResourcesResp

type CalculateTaskResourcesResp struct {

	/* 多组任务试算结果 (Optional) */
	Data []CalculateTaskResourceResp `json:"data"`
}

type CategoryFlavor

type CategoryFlavor struct {

	/* 规格类型。 (Optional) */
	Category string `json:"category"`

	/* 可用区维度规格列表。 (Optional) */
	ZoneFlavors []ZoneFlavor `json:"zoneFlavors"`
}

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 CfsForCreateJobDefinition

type CfsForCreateJobDefinition struct {

	/* CFS 文件系统 ID。

	**示例:** `fs-rz*******r`
	 */
	Id string `json:"id"`

	/* CFS 挂载目标 IP 地址。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`
	 (Optional) */
	Host string `json:"host"`
}

type CfsForDescribeJobDefinition

type CfsForDescribeJobDefinition struct {

	/* CFS 文件系统 ID。

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

	/* CFS 挂载目标 IP 地址。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`
	 (Optional) */
	Host string `json:"host"`
}

type CfsForDescribeJobDefinitions

type CfsForDescribeJobDefinitions struct {

	/* CFS 文件系统 ID。
	(Optional) */
	Id string `json:"id"`

	/* CFS 挂载目标 IP 地址。
	(Optional) */
	Host string `json:"host"`
}

type CfsForUpdateJobDefinition

type CfsForUpdateJobDefinition struct {

	/* CFS 文件系统 ID。

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

	/* CFS 挂载目标 IP 地址。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`
	 (Optional) */
	Host string `json:"host"`
}

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 ChargeDuration

type ChargeDuration struct {

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

	/* 购买周期 (Optional) */
	ChargeDuration string `json:"chargeDuration"`

	/* 开始时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 过期时间 (Optional) */
	ExpireTime string `json:"expireTime"`

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

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

type CheckStorageAvailabilityRequest

type CheckStorageAvailabilityRequest struct {

	/* 队列ID。  */
	QueueId string `json:"queueId"`

	/* 存储类型。可选值:cfs, jpfs, oss  */
	StorageType string `json:"storageType"`

	/* 文件系统ID(CFS/JPFS)。 (Optional) */
	FsId string `json:"fsId"`

	/* OSS 域名。 (Optional) */
	Endpoint string `json:"endpoint"`
}

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 CodeForCreateJobDefinition

type CodeForCreateJobDefinition struct {

	/* 代码仓ID,唯一标识一个代码仓。
	 */
	RepoId string `json:"repoId"`

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

	**建议:** 挂载到 `/mnt/` 开头的路径下
	 */
	MountPath string `json:"mountPath"`
}

type CodeForDescribeJobDefinition

type CodeForDescribeJobDefinition struct {

	/* 代码仓ID,唯一标识一个代码仓。
	(Optional) */
	RepoId string `json:"repoId"`

	/* 代码仓名称。 (Optional) */
	RepoName string `json:"repoName"`

	/* 挂载点配置,指定代码仓在容器内的挂载路径。
	(Optional) */
	MountPath string `json:"mountPath"`
}

type CodeForUpdateJobDefinition

type CodeForUpdateJobDefinition struct {

	/* 代码仓ID,唯一标识一个代码仓。
	(Optional) */
	RepoId string `json:"repoId"`

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

	**建议:** 挂载到 `/mnt/` 开头的路径下
	 (Optional) */
	MountPath string `json:"mountPath"`
}

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 CommercialDatasetDetail

type CommercialDatasetDetail struct {

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

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 任务类型,可选值:
	- Job
	 (Optional) */
	TaskType string `json:"taskType"`

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

	/* 数据集描述,256字符以内。 (Optional) */
	Description string `json:"description"`

	/* 数据集预估大小,单位:GiB。 (Optional) */
	EstimatedSize int `json:"estimatedSize"`

	/* 数据集预估大小(展示用,带单位)。 示例:684 GiB (Optional) */
	EstimatedSizeDisplay string `json:"estimatedSizeDisplay"`

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

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

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

type CommercialDatasetInfo

type CommercialDatasetInfo struct {

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

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 任务类型,可选值:
	- Job
	 (Optional) */
	TaskType string `json:"taskType"`

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

	/* 数据集描述,256字符以内。 (Optional) */
	Description string `json:"description"`

	/* 数据集预估大小,单位:GiB。 (Optional) */
	EstimatedSize int `json:"estimatedSize"`

	/* 数据集预估大小(展示用,带单位)。 示例:684 GiB (Optional) */
	EstimatedSizeDisplay string `json:"estimatedSizeDisplay"`

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

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

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

type CommercialDatasetSpec

type CommercialDatasetSpec struct {

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 任务类型,可选值:
	- Job
	 (Optional) */
	TaskType string `json:"taskType"`

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

	/* 数据集描述,256字符以内。 (Optional) */
	Description string `json:"description"`

	/* 数据集预估大小,单位:GiB。 (Optional) */
	EstimatedSize int `json:"estimatedSize"`
}

type Common

type Common struct {

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

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

type ControlWarmTaskResult

type ControlWarmTaskResult struct {

	/* 预热任务ID (Optional) */
	WarmTaskId string `json:"warmTaskId"`

	/* 操作后的任务状态,可选值:
	- running:运行中(继续成功后返回)
	- paused:已暂停(暂停成功后返回)
	 (Optional) */
	Status string `json:"status"`

	/* 当前预热进度,沿用操作前的本地值,后续由定时同步更新 (Optional) */
	Progress int `json:"progress"`

	/* 最近更新时间 (Optional) */
	UpdatedTime string `json:"updatedTime"`
}

type ControllerConfig

type ControllerConfig struct {

	/* 节点调度策略 (Optional) */
	NodeSchedulerStrategy string `json:"nodeSchedulerStrategy"`

	/* 显卡调度策略 (Optional) */
	DeviceSchedulerStrategy string `json:"deviceSchedulerStrategy"`
}

type CpuQuota

type CpuQuota struct {

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

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

type CreateAclRulesSpec

type CreateAclRulesSpec struct {

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

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

	/* Pod IP列表  */
	IpAddresses []string `json:"ipAddresses"`

	/* 资源ID(训练任务等)  */
	ResourceId string `json:"resourceId"`
}

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 CreateAzSpec

type CreateAzSpec struct {

	/* 物理可用区名称。  */
	Az string `json:"az"`

	/* 可用区类型。  */
	Type string `json:"type"`
}

type CreateBindWorkspaceRequest

type CreateBindWorkspaceRequest struct {

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

type CreateClusterSpec

type CreateClusterSpec struct {

	/* 集群ID。  */
	ClusterId string `json:"clusterId"`

	/* 集群归属pin。  */
	Pin string `json:"pin"`

	/* 集群所属范围。  */
	Scope string `json:"scope"`

	/* 描述信息。 (Optional) */
	Description string `json:"description"`
}

type CreateCodeRepoConfigParam

type CreateCodeRepoConfigParam struct {

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

	/* 代码库类型,可选值:
	- GitHub  需配置 Git 地址,GitHub 为公网访问,请确保当前环境可正常访问公网;
	- Coding  需配置ProjectID。请注意: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:文本生成-SFT指令微调
	- dpo:文本生成-DPO偏好训练
	- cpt:文本生成-增量预训练
	- distill:文本生成-模型蒸馏
	- 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-60****ui (Optional) */
	StorageId *string `json:"storageId"`

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

	/* 标注状态:未标注unmarked,已标注marked。 taskType="image-classification"时必填 (Optional) */
	MarkStatus *string `json:"markStatus"`

	/* 标注文件:仅支持oss,bucket后面部分的路径。 taskType="image-classification"时必填 (Optional) */
	MarkFile *string `json:"markFile"`

	/* 数据集资源归属权限,支持(public,private),默认为public。(创建【新数据集】生效) (Optional) */
	Permission *string `json:"permission"`
}

type CreateDeployTemplateSpec

type CreateDeployTemplateSpec struct {

	/* 模版名称/标题 (Optional) */
	TplName string `json:"tplName"`

	/* 模版内容,json字符串 (Optional) */
	TplContent string `json:"tplContent"`

	/* 适用任务模块:notebook:Notebook,training:训练任务,inference:在线服务,finetune:精调实验,simulation仿真任务 (Optional) */
	TplModule string `json:"tplModule"`

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

	/* 标签 (Optional) */
	Labels []string `json:"labels"`
}

type CreateFlavorSpec

type CreateFlavorSpec struct {

	/* 规格ID。  */
	FlavorId string `json:"flavorId"`

	/* 规格类型。  */
	Category string `json:"category"`

	/* CPU核数。  */
	Cpu int `json:"cpu"`

	/* 内存大小,单位MB。  */
	MemoryMb int `json:"memoryMb"`

	/* GPU卡数。 (Optional) */
	Gpu float64 `json:"gpu"`

	/* 单卡显存大小,单位GB。 (Optional) */
	GpuMemoryGb float64 `json:"gpuMemoryGb"`

	/* GPU设备名。 (Optional) */
	GpuDeviceName string `json:"gpuDeviceName"`

	/* 是否支持RDMA。 (Optional) */
	Rdma bool `json:"rdma"`

	/* 是否为灰度规格。 (Optional) */
	Gray bool `json:"gray"`

	/* 是否上架。 (Optional) */
	Online bool `json:"online"`

	/* 是否允许公网访问。 (Optional) */
	AllowInternet bool `json:"allowInternet"`

	/* 调度标签列表。 (Optional) */
	SchedulerLabels []FlavorSchedulerLabel `json:"schedulerLabels"`
}

type CreateImageParam

type CreateImageParam struct {

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

	/* 镜像用途,多个用英文逗号拼接,可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务

	示例:notebook,training,inference
	 (Optional) */
	ImageUsage *string `json:"imageUsage"`

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

	/* 注册/构建后的镜像地址
	示例:k8stest-sq-cn-east-1.jcr.service.jdcloud.com/train/test:tag-test
	 (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方式构建时生效必传。
	示例:
	  FROM aip-public-cn-north-1.jcr.service.jdcloud.com/train/jupyter-cuda13.0.1-cudnn-devel-ubuntu24.04
	  RUN pip install numpy pandas scikit-learn
	 (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 CreateJpfsBuyRequest

type CreateJpfsBuyRequest struct {

	/* 文件系统名称  */
	Name string `json:"name"`

	/* 文件系统类型,未填写时使用productType或服务端默认值 (Optional) */
	FileSystemType string `json:"fileSystemType"`

	/* 产品类型,兼容fileSystemType (Optional) */
	ProductType string `json:"productType"`

	/* 文件系统及物理集群所在可用区,单次请求只能填写一个  */
	Az string `json:"az"`

	/* 是否使用边缘可用区网络;false按地域共享网络,true按可用区隔离网络  */
	Edge bool `json:"edge"`

	/* 文件系统规格  */
	Spec JpfsSpec `json:"spec"`

	/* 计费周期单位  */
	TimeUnit string `json:"timeUnit"`

	/* 计费周期数量  */
	TimeCount int `json:"timeCount"`

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

	/* 计费配置项JSON字符串,原样传递给商业平台  */
	Formula string `json:"formula"`

	/* 商品数量  */
	Quantity int `json:"quantity"`

	/* 支付完成后的前端跳转地址,原样传递给商业平台  */
	ReturnUrl string `json:"returnUrl"`
}

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 CreateNodeBuyRequest

type CreateNodeBuyRequest struct {

	/* 目标节点池ID  */
	NodePoolId string `json:"nodePoolId"`

	/* 安全节点配置,其中config为商业平台商品名称(规格标识),购买时必填  */
	NodeInfo Node `json:"nodeInfo"`

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

	/* 计费周期单位  */
	TimeUnit string `json:"timeUnit"`

	/* 计费周期数量  */
	TimeCount int `json:"timeCount"`

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

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

	/* 指定的节点IP列表 (Optional) */
	NodeIps []string `json:"nodeIps"`

	/* 计费配置项JSON字符串,原样传递给商业平台  */
	Formula string `json:"formula"`

	/* 商品数量  */
	Quantity int `json:"quantity"`

	/* 支付完成后的前端跳转地址,原样传递给商业平台  */
	ReturnUrl string `json:"returnUrl"`
}

type CreateNodePoolBuyRequest

type CreateNodePoolBuyRequest struct {

	/* 节点池配置;未指定ID时由服务端生成  */
	NodePool NodePool `json:"nodePool"`

	/* 安全节点配置,其中config为商业平台商品名称(规格标识),购买时必填  */
	NodeInfo Node `json:"nodeInfo"`

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

	/* 计费周期单位  */
	TimeUnit string `json:"timeUnit"`

	/* 计费周期数量  */
	TimeCount int `json:"timeCount"`

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

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

	/* 指定的节点IP列表 (Optional) */
	NodeIps []string `json:"nodeIps"`

	/* 计费配置项JSON字符串,原样传递给商业平台  */
	Formula string `json:"formula"`

	/* 商品数量  */
	Quantity int `json:"quantity"`

	/* 支付完成后的前端跳转地址,原样传递给商业平台  */
	ReturnUrl string `json:"returnUrl"`
}

type CreatePoolSpec

type CreatePoolSpec struct {

	/* 所属集群ID。  */
	ClusterId string `json:"clusterId"`

	/* 资源池ID。  */
	PoolId string `json:"poolId"`

	/* 资源池名称。默认由 Scale GetNodePool 接口获取;force=true 且 Scale 不可用时可作为兜底值。 (Optional) */
	PoolName string `json:"poolName"`

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

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。  */
	PoolType string `json:"poolType"`

	/* 资源池规格类型。  */
	Category string `json:"category"`

	/* 资源池物理可用区列表。默认通过 Scale ListNode 查询已启用节点的逻辑 AZ,并结合 UC 映射转换为管理员已登记的物理 AZ;force=true 时可作为兜底值。 (Optional) */
	PoolAzs []string `json:"poolAzs"`

	/* HPC物理集群名称。默认由 Scale GetNodePool 接口获取;force=true 时可作为兜底值,非HPC资源池会清空。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 是否跳过 Scale 资源池校验。默认 false;为 true 时节点池不存在或节点查询失败不阻止注册。 (Optional) */
	Force bool `json:"force"`
}

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:文本生成-SFT指令微调
	- dpo:文本生成-DPO偏好训练
	- cpt:文本生成-增量预训练
	- distill:文本生成-模型蒸馏
	- image-classification:图像维度-图像分类
	- custom:自定义
	 (Optional) */
	TaskType string `json:"taskType"`

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

	/* 存储类型(数据集来源),公共数据集仅支持oss
	(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"`

	/* 标签。多个标签使用英文逗号拼接,每个标签格式 key:value。
	key值说明
	  - scenario任务场景
	  - language语言
	  - license开源协议
	  - datasize数据大小
	  - keyword其他关键词,可设置多个
	  - support.task支持的任务模块,可设置多个,可选值:notebook、trainjob训练任务、finetune模型精调、distill模型蒸馏、simulation仿真任务

	例如:scenario:文本生成,language:中文,license:Apache License 2.0,datasize:810.65MB,support.task:notebook,support.task:trainjob,support.task:finetune
	 (Optional) */
	Labels string `json:"labels"`

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

type CreatePublicImageParam

type CreatePublicImageParam struct {

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

	/* 镜像用途,可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务

	示例: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"`

	/* 标签。多个标签使用英文逗号拼接,每个标签格式 key:value。
	key值说明
	  - baseinfo 镜像基础环境信息:vllm0.25.0、pytorch2.11.0、cuda13.0、gpu等
	  - jobtype 训练任务镜像专属,任务类型,可选值pytorch、ray、batch
	  - protocol 在线服务镜像专属,自定义部署-协议,支持多个http、grpc、tcp、udp
	  - distributed 在线服务镜像专属,分布式,支持单个,可选值sglang、vllm

	示例:baseinfo:vllm0.25.0,baseinfo:pytorch2.11.0,baseinfo:transformers5.13.0,baseinfo:cuda13.0,baseinfo:gpu,baseinfo:python3.12.3,baseinfo:ubuntu24.04,baseinfo:jupyterlab,baseinfo:vscode,protocol:http,protocol:grpc
	 (Optional) */
	Labels string `json:"labels"`

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

	/* 描述。最大长度256 (Optional) */
	Description string `json:"description"`
}

type CreatePublicImageWhitelistParm

type CreatePublicImageWhitelistParm struct {

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

type CreateQueueSpec

type CreateQueueSpec struct {

	/* 队列类型。  */
	QueueType string `json:"queueType"`

	/* 队列ID。  */
	QueueId string `json:"queueId"`

	/* 资源池ID。  */
	PoolId string `json:"poolId"`

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

	/* 是否启用。 (Optional) */
	Enable bool `json:"enable"`

	/* 是否支持抢占。默认由 Scale GetQueue 接口的 taskPreempt 获取;force=true 时可作为兜底值。 (Optional) */
	Preemptible bool `json:"preemptible"`

	/* CPU/内存quota。默认由 Scale GetQueue 接口获取;内存由 GiB 转换为 MB,force=true 时可作为兜底值。 (Optional) */
	BaseQuota QueueBaseQuota `json:"baseQuota"`

	/* vGPU quota列表。默认由 Scale GetQueue 接口获取并统一使用 vGPU,force=true 时可作为兜底值;GPU/HPC资源池必须存在至少一个 quota。 (Optional) */
	GpuQuotas []QueueGpuQuota `json:"gpuQuotas"`

	/* 允许访问user queue的pin列表,仅user queue可配置。 (Optional) */
	QueueUsers []string `json:"queueUsers"`

	/* 是否跳过 Scale 队列校验。默认 false;为 true 时队列不存在不阻止注册。 (Optional) */
	Force bool `json:"force"`
}

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 DashboardComponentRatio

type DashboardComponentRatio struct {

	/* 责任方 (Optional) */
	Component string `json:"component"`

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

	/* 比例 (Optional) */
	Ratio int `json:"ratio"`
}

type DashboardScheduleItem

type DashboardScheduleItem struct {

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

	/* 调度分析结果v2 (Optional) */
	Metrics DashboardScheduleMetrics `json:"metrics"`
}

type DashboardScheduleItems

type DashboardScheduleItems struct {

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

type DashboardScheduleMetrics

type DashboardScheduleMetrics struct {

	/* 时间窗口开始时间 (Optional) */
	TimeWindowStart string `json:"timeWindowStart"`

	/* 时间窗口结束时间 (Optional) */
	TimeWindowEnd string `json:"timeWindowEnd"`

	/* 调度成功率统计项(总计) (Optional) */
	Total DashboardScheduleMetricsItem `json:"total"`

	/* 调度成功率统计项(在线任务) (Optional) */
	Online DashboardScheduleMetricsItem `json:"online"`

	/* 调度成功率统计项(离线任务) (Optional) */
	Offline DashboardScheduleMetricsItem `json:"offline"`

	/* 责任方占比 (Optional) */
	ComponentRatios []DashboardComponentRatio `json:"componentRatios"`

	/* 等待时长统计结果 (Optional) */
	WaitDuration DashboardWaitDurationMetrics `json:"waitDuration"`
}

type DashboardScheduleMetricsItem

type DashboardScheduleMetricsItem struct {

	/* 成功个数 (Optional) */
	SuccessCount int `json:"successCount"`

	/* 失败个数 (Optional) */
	FailedCount int `json:"failedCount"`

	/* 排队个数 (Optional) */
	GatedCount int `json:"gatedCount"`

	/* 成功率 (Optional) */
	SuccessRate int `json:"successRate"`
}

type DashboardWaitDurationMetrics

type DashboardWaitDurationMetrics struct {

	/* 平均等待时长(毫秒) (Optional) */
	AvgMilliseconds int `json:"avgMilliseconds"`

	/* P50等待时长(毫秒) (Optional) */
	MedianMilliseconds int `json:"medianMilliseconds"`

	/* P95等待时长(毫秒) (Optional) */
	P95Milliseconds int `json:"p95Milliseconds"`
}

type DataInfo

type DataInfo struct {

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

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

	/* 所有文件总token数(-1 表示无统计数据,老数据兼容) (Optional) */
	TotalToken int `json:"totalToken"`

	/* 所有文件总样本数(-1 表示无统计数据,老数据兼容) (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 DataMigrationTask

type DataMigrationTask struct {

	/* 数据流转任务ID (Optional) */
	DataMigrationId string `json:"dataMigrationId"`

	/* 源存储 (Optional) */
	Source SourceStorage `json:"source"`

	/* 目标存储 (Optional) */
	Target TargetStorage `json:"target"`

	/* 流转任务状态,pending/stopping/stopped/running/succeeded/failed (Optional) */
	State string `json:"state"`

	/* 创建时间,秒级时间戳 (Optional) */
	CreateTime int64 `json:"createTime"`
}

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:文本生成-SFT指令微调
	- dpo:文本生成-DPO偏好训练
	- cpt:文本生成-增量预训练
	- distill:文本生成-模型蒸馏
	- 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"`

	/* 数据集资源归属权限。支持(public,private) (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"`

	/* JPFS 挂载点 ID,指定数据集使用的 JPFS 挂载点。

	**使用场景:** 当数据集底层存储为 JPFS 且文件系统有多个挂载点时,可通过此字段指定具体的挂载点。

	**示例:** `mt-xxxxxxxx`
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* CFS 挂载点 IP 地址,指定数据集使用的 CFS 挂载目标。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`

	**说明:**
	- 非必传参数
	- 如需指定特定挂载点,请传此参数
	 (Optional) */
	Host *string `json:"host"`
}

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"`

	/* JPFS 挂载点 ID。 (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* CFS 挂载点 IP 地址。 (Optional) */
	Host string `json:"host"`

	/* 存储参数。 (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: `JPFS-ID:/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数据集强制只读
	- 安全队列(`queueType=security`或`sec-vm`)上的实例:数据集强制只读,详见`storageSpec.readonly`
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly *bool `json:"readonly"`

	/* 挂载点ID,仅对`storageType=jpfs`生效。

	## 使用场景
	- 当JPFS文件系统有多个挂载点时,可通过此字段指定具体的挂载点
	- 用于支持同一JPFS文件系统的多挂载点
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 挂载点IP,仅对`storageType=cfs`生效。

	## 使用场景
	- 当CFS文件系统有多个挂载点时,可通过此字段匹配同一CFS文件系统的多挂载点

	## 兼容逻辑
	- 不传时从`datasetUrl`的格式(`ip:/path`)解析,兼容旧逻辑
	 (Optional) */
	Host *string `json:"host"`
}

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:文本生成-SFT指令微调
	- dpo:文本生成-DPO偏好训练
	- cpt:文本生成-增量预训练
	- distill:文本生成-模型蒸馏
	- 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 DatasetWarmCommercialDatasetInfo

type DatasetWarmCommercialDatasetInfo struct {

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

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线"-"和英文下划线"_"
	 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 任务类型,可选值:
	- Job
	 (Optional) */
	TaskType string `json:"taskType"`

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

	/* 数据集描述,256字符以内。 (Optional) */
	Description string `json:"description"`

	/* 数据集预估大小,单位:GiB。 (Optional) */
	EstimatedSize int64 `json:"estimatedSize"`

	/* 数据集预估大小(展示用,带单位)。 (Optional) */
	EstimatedSizeDisplay string `json:"estimatedSizeDisplay"`

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

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

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

	/* 该数据集在当前安全存储下是否存在非删除状态的预热任务。JPFS 场景按 safeStorageId 判断,OSS 场景按 taskType=oss + bucketName 判断;OSS 场景未传 bucketName 时,safeStorageId 按 bucketName 兼容处理 (Optional) */
	HasDatasetWarmTask bool `json:"hasDatasetWarmTask"`
}

type DatasetWarmTask

type DatasetWarmTask struct {

	/* 预热任务ID,生成规则为数据集ID加当前时间戳 (Optional) */
	WarmTaskId string `json:"warmTaskId"`

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

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

	/* 预热任务状态,可选值:
	- preparing:准备中
	- running:预热中
	- paused:预热暂停
	- completed:预热完成
	- failed:预热失败
	- deleting:删除中
	- deleteFailed:删除失败
	 (Optional) */
	Status string `json:"status"`

	/* 预热进度,取值范围[0, 100] (Optional) */
	Progress int `json:"progress"`

	/* 创建时间,Unix秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 完成时间,Unix秒;未完成时返回0或不返回 (Optional) */
	CompleteTime int64 `json:"completeTime"`

	/* 安全存储ID,JPFS 任务返回;OSS 任务可为空 (Optional) */
	SafeStorageId string `json:"safeStorageId"`

	/* 安全存储展示ID,在安全存储ID前拼接sec-前缀;当安全存储ID已包含sec-前缀时保持不变;OSS 任务可为空 (Optional) */
	SafeStorageDisplayId string `json:"safeStorageDisplayId"`

	/* 安全存储名称快照,JPFS 任务返回;OSS 任务可为空 (Optional) */
	SafeStorageName string `json:"safeStorageName"`

	/* 预热目标路径,JPFS/OSS 共用,生成规则保持一致 (Optional) */
	FolderName string `json:"folderName"`

	/* 预热任务类型,可选值:jpfs、oss;存量任务可为空字符串 (Optional) */
	TaskType string `json:"taskType"`

	/* OSS bucket 名称;taskType=oss 时返回,JPFS 任务可为空或不返回 (Optional) */
	BucketName string `json:"bucketName"`

	/* 数据集预估大小,单位GB (Optional) */
	EstimatedSize int64 `json:"estimatedSize"`

	/* 错误码,仅任务失败或控制操作异常时返回 (Optional) */
	ErrorCode string `json:"errorCode"`

	/* 错误信息,仅任务失败或控制操作异常时返回 (Optional) */
	ErrorMessage string `json:"errorMessage"`
}

type DefActionDependForCreateJobDefinition

type DefActionDependForCreateJobDefinition struct {

	/* 父环节Id。已有环节必填 (Optional) */
	PActionId int `json:"pActionId"`

	/* 环节Id。已有环节必填 (Optional) */
	ActionId int `json:"actionId"`

	/* 分支判定时使用,传值switch
	(Optional) */
	ConfirmType string `json:"confirmType"`

	/* 分支判定时使用,按照环节输出参数。
	示例:${actionData('check_jdh_jdh_app_jdh_app_right_community_topic_rt_i','dataOut') eq 0}
	 (Optional) */
	DependCase string `json:"dependCase"`
}

type DefActionDependForDescribeJobDefinition

type DefActionDependForDescribeJobDefinition struct {

	/* 父环节Id。已有环节必填 (Optional) */
	PActionId int `json:"pActionId"`

	/* 环节Id。已有环节必填 (Optional) */
	ActionId int `json:"actionId"`

	/* 分支判定时使用,传值switch
	(Optional) */
	ConfirmType string `json:"confirmType"`

	/* 分支判定时使用,按照环节输出参数。
	(Optional) */
	DependCase string `json:"dependCase"`

	/* 判断顺序。 (Optional) */
	DecideOrder string `json:"decideOrder"`
}

type DefActionForCreateJobDefinition

type DefActionForCreateJobDefinition struct {

	/* 环节描述。长度[0,512]
	(Optional) */
	Description string `json:"description"`

	/* 环节类型。pyscript=数据计算
	 */
	ActionType string `json:"actionType"`

	/* 集市code。逻辑计算集群集市code。-1代表不使用集市资源。
	如需要动态传参数请联系IAM数据权限系统(http://dp.jd.com/iam/#/)对接开放API;
	如果需要固定传参,直接联系接口负责人即可
	*/
	MarketCode string `json:"marketCode"`

	/* 集群code。marketCode不为-1时必填。逻辑计算集群的code信息。
	如需要动态传参数请联系IAM数据权限系统(http://dp.jd.com/iam/#/)对接开放API;
	如果需要固定传参,直接联系接口负责人即可
	 (Optional) */
	ClusterCode string `json:"clusterCode"`

	/* 集市生产账号code。marketCode不为-1时必填。格式:mart_xxxx。
	如需要动态传参数请联系IAM数据权限系统(http://dp.jd.com/iam/#/)对接开放API;
	如果需要固定传参,直接联系接口负责人即可
	 (Optional) */
	AccountCode string `json:"accountCode"`

	/* 任务运行集市队列code。marketCode不为-1时必填。
	如需要动态传参数请联系IAM数据权限系统(http://dp.jd.com/iam/#/)对接开放API;
	如果需要固定传参,直接联系接口负责人即可
	 (Optional) */
	QueueCode string `json:"queueCode"`

	/* 执行引擎。custom=普通任务,pyscript=数据计算任务有效。
	枚举值:hive、spark,不传使用默认引擎。
	新建任务设置为spark时,默认使用spark3.4
	 (Optional) */
	HadoopEngineType string `json:"hadoopEngineType"`

	/* 引擎版本。执行引擎版本,如果传空字符串,会清空原有配置
	(Optional) */
	HadoopEngineVersion string `json:"hadoopEngineVersion"`

	/* 节点类型。枚举类型:
	- 1:普通节点
	- 2:虚拟节点
	- 3:弹性节点
	*/
	TaskNodeType int `json:"taskNodeType"`

	/* 节点名称。patch方式修改节点必须指定taskNodeName,否则不生效。
	机器学习任务(mlp)只允许使用"vip_jdh_client_ea_online_pool_仅机器学习任务使用"弹性节点(节点名称)
	非机器学习任务不允许使用"vip_jdh_client_ea_online_pool_仅机器学习任务使用"弹性节点(节点名称)
	 (Optional) */
	TaskNodeName string `json:"taskNodeName"`

	/* 节点id。弹性节点(taskNodeType=3)必填。
	机器学习任务(mlp)只允许使用"1201"弹性节点(节点ID)
	非机器学习任务不允许使用"1201"弹性节点(节点ID)
	 (Optional) */
	TaskNodeId string `json:"taskNodeId"`

	/* 镜像id。默认镜像。taskNodeType=3时,该字段有效
	(Optional) */
	RunImageId int `json:"runImageId"`

	/* CPU限制。单位:核数(如:2代表2核)
	(Optional) */
	CpuLimitSize int `json:"cpuLimitSize"`

	/* 内存限制,单位:M
	(Optional) */
	MemLimitSize int `json:"memLimitSize"`

	/* 执行超时时长(分)。默认1440。
	从进入"队列"状态开始计时,未在指定时间内完成运行的任务实例将强制终止并置于"失败"状态。
	0表示不超时,取值范围大于等于0的正整数 0-3600
	 (Optional) */
	MaxRunTime int `json:"maxRunTime"`

	/* 模板ID。模板任务类型须指定 (Optional) */
	EtlTemplateId int `json:"etlTemplateId"`

	/* 输入、输出数据源和表信息 (Optional) */
	BuffaloTaskDataResourceList []BuffaloTaskDataResourceForCreateJobDefinition `json:"buffaloTaskDataResourceList"`

	/* 集成模板 (Optional) */
	PlumberTemplate BPlumberTemplateForCreateJobDefinition `json:"plumberTemplate"`

	/* dataSql模板。datasql类型任务修改spark参数、变量时必填 (Optional) */
	SqlTemplate SqlTemplateForCreateJobDefinition `json:"sqlTemplate"`

	/* 环节输出参数。设置环节输出参数 (Optional) */
	ActionOutput ActionOutputForCreateJobDefinition `json:"actionOutput"`
}

type DefActionForDescribeJobDefinition

type DefActionForDescribeJobDefinition struct {

	/* 环节Id。 (Optional) */
	ActionId int `json:"actionId"`

	/* 环节名称。 (Optional) */
	ActionName string `json:"actionName"`

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

	/* 环节类型。 (Optional) */
	ActionType string `json:"actionType"`

	/* 集市code。 (Optional) */
	MarketCode string `json:"marketCode"`

	/* 集群code。 (Optional) */
	ClusterCode string `json:"clusterCode"`

	/* 集市生产账号code。 (Optional) */
	AccountCode string `json:"accountCode"`

	/* 生产账号名称。 (Optional) */
	AccountName string `json:"accountName"`

	/* 任务运行集市队列code。 (Optional) */
	QueueCode string `json:"queueCode"`

	/* 队列名称。 (Optional) */
	QueueName string `json:"queueName"`

	/* 执行引擎。 (Optional) */
	HadoopEngineType string `json:"hadoopEngineType"`

	/* 节点类型。 (Optional) */
	TaskNodeType int `json:"taskNodeType"`

	/* 节点名称。 (Optional) */
	TaskNodeName string `json:"taskNodeName"`

	/* 节点id。 (Optional) */
	TaskNodeId string `json:"taskNodeId"`

	/* 镜像id(第三方可返回 null)。 (Optional) */
	RunImageId int `json:"runImageId"`

	/* 使用CPU/内存上限方式(第三方可返回 null)。 (Optional) */
	CgroupSetType int `json:"cgroupSetType"`

	/* CPU限制。 (Optional) */
	CpuLimitSize int `json:"cpuLimitSize"`

	/* 内存限制。 (Optional) */
	MemLimitSize int `json:"memLimitSize"`

	/* 脚本Id。 (Optional) */
	ScriptId int `json:"scriptId"`

	/* 启动项。 (Optional) */
	ScriptStartFile string `json:"scriptStartFile"`

	/* 脚本名称。 (Optional) */
	ScriptPath string `json:"scriptPath"`

	/* 任务参数。 (Optional) */
	Args string `json:"args"`

	/* 执行超时时长(分)。 (Optional) */
	MaxRunTime int `json:"maxRunTime"`

	/* 模板ID(第三方可返回 null)。 (Optional) */
	EtlTemplateId int `json:"etlTemplateId"`

	/* 失败重试策略。 (Optional) */
	FailRetry int `json:"failRetry"`

	/* 重试次数。 (Optional) */
	RetryTimes int `json:"retryTimes"`

	/* 重试间隔(秒)。 (Optional) */
	RetryInterval int `json:"retryInterval"`

	/* 任务失败监控。 (Optional) */
	FailAlarm int `json:"failAlarm"`

	/* 开始时间延迟监控。 (Optional) */
	StartAlarm int `json:"startAlarm"`

	/* 开始时间阈值。 (Optional) */
	StartFa string `json:"startFa"`

	/* 结束时间延迟监控。 (Optional) */
	EndAlarm int `json:"endAlarm"`

	/* 结束时间阈值。 (Optional) */
	EndFa string `json:"endFa"`

	/* 报警方式。 (Optional) */
	AlarmType string `json:"alarmType"`

	/* 报警组ID。 (Optional) */
	AlarmId string `json:"alarmId"`

	/* 报警组名称。 (Optional) */
	AlarmName string `json:"alarmName"`

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

	/* 创建时间。 (Optional) */
	Created string `json:"created"`

	/* 修改者。 (Optional) */
	Modifier string `json:"modifier"`

	/* 修改时间。 (Optional) */
	Modified string `json:"modified"`

	/* 集成模板 (Optional) */
	PlumberTemplate BPlumberTemplateForDescribeJobDefinition `json:"plumberTemplate"`
}

type DefTaskDataDependForCreateJobDefinition

type DefTaskDataDependForCreateJobDefinition struct {

	/* 数据依赖类型。枚举值:
	- `hdfs`:HDFS数据依赖
	- `hcat`:HCat数据依赖
	- `sftp`:SFTP数据依赖
	- `hudi`:Hudi数据依赖(灰度中)
	 (Optional) */
	PathType string `json:"pathType"`

	/* 数据依赖路径。同一个集市下唯一。
	hdfs、hcat、sftp必填;hudi依赖时不必填
	 (Optional) */
	DependDataUrl string `json:"dependDataUrl"`

	/* 首次生成实例时间。hdfs、hcat、sftp必填;hudi不必填。
	格式:yyyy-MM-dd HH:mm:ss
	 (Optional) */
	InitialTime string `json:"initialTime"`

	/* 数据周期。可选值:month、week、day、hour、minute。
	hudi数据依赖目前仅支持day
	 (Optional) */
	Frequency string `json:"frequency"`

	/* 步长。默认1。
	当数据周期为minute时,step应取【1,5,10,15,30】。
	hudi数据依赖目前仅支持1
	 (Optional) */
	Step int `json:"step"`

	/* 开始时间范围。hudi时只支持-1
	(Optional) */
	RangeStart int `json:"rangeStart"`

	/* 结束时间范围。hudi时只支持-1
	(Optional) */
	RangeStop int `json:"rangeStop"`

	/* 集市code。当为hcat、hdfs、hudi必填
	(Optional) */
	MarketCode string `json:"marketCode"`

	/* 账号code。当为hcat、hdfs、hudi必填(需填写表owner)
	(Optional) */
	AccountCode string `json:"accountCode"`

	/* 数据源id。当为sftp类型必填
	(Optional) */
	DsId int `json:"dsId"`

	/* hudi库名称。当为hudi必填
	(Optional) */
	DbName string `json:"dbName"`

	/* hudi表名称。当为hudi必填
	(Optional) */
	TbName string `json:"tbName"`
}

type DefTaskDataDependForDescribeJobDefinition

type DefTaskDataDependForDescribeJobDefinition struct {

	/* 数据依赖类型。枚举值:
	- `hdfs`:HDFS数据依赖
	- `hcat`:HCat数据依赖
	- `sftp`:SFTP数据依赖
	- `hudi`:Hudi数据依赖(灰度中)
	 (Optional) */
	PathType string `json:"pathType"`

	/* 数据依赖路径。
	(Optional) */
	DependDataUrl string `json:"dependDataUrl"`

	/* 首次生成实例时间。
	(Optional) */
	InitialTime string `json:"initialTime"`

	/* 数据周期。可选值:month、week、day、hour、minute。
	(Optional) */
	Frequency string `json:"frequency"`

	/* 步长。默认1。
	(Optional) */
	Step int `json:"step"`

	/* 开始时间范围。
	(Optional) */
	RangeStart int `json:"rangeStart"`

	/* 结束时间范围。
	(Optional) */
	RangeStop int `json:"rangeStop"`

	/* 集市code。
	(Optional) */
	MarketCode string `json:"marketCode"`

	/* 账号code。
	(Optional) */
	AccountCode string `json:"accountCode"`

	/* 数据源id。
	(Optional) */
	DsId int `json:"dsId"`

	/* hudi库名称。
	(Optional) */
	DbName string `json:"dbName"`

	/* hudi表名称。
	(Optional) */
	TbName string `json:"tbName"`
}

type DefTaskDependForCreateJobDefinition

type DefTaskDependForCreateJobDefinition struct {

	/* 父依赖任务ID或环节ID。依赖的任务或者环节ID
	(Optional) */
	ParentObjId int `json:"parentObjId"`

	/* 父依赖类型。父依赖类型:
	- 1:任务
	- 2:环节
	 (Optional) */
	ParentObjType int `json:"parentObjType"`

	/* 依赖类型。默认强依赖。
	- 0:弱依赖
	- 1:强依赖
	 (Optional) */
	DependType int `json:"dependType"`

	/* 依赖父任务周期范围 (Optional) */
	TaskDependRanges []DefTaskDependRangeForCreateJobDefinition `json:"taskDependRanges"`
}

type DefTaskDependForDescribeJobDefinition

type DefTaskDependForDescribeJobDefinition struct {

	/* 父依赖任务ID或环节ID。
	(Optional) */
	ParentObjId int `json:"parentObjId"`

	/* 父依赖类型。
	- 1:任务
	- 2:环节
	 (Optional) */
	ParentObjType int `json:"parentObjType"`

	/* 依赖类型。默认强依赖。
	- 0:弱依赖
	- 1:强依赖
	 (Optional) */
	DependType int `json:"dependType"`

	/* 依赖父任务周期范围 (Optional) */
	TaskDependRanges []DefTaskDependRangeForDescribeJobDefinition `json:"taskDependRanges"`
}

type DefTaskDependRangeForCreateJobDefinition

type DefTaskDependRangeForCreateJobDefinition struct {

	/* 依赖范围类型。
	- `simple`:简单模式
	- `complex`:复杂模式
	 (Optional) */
	DependModel string `json:"dependModel"`

	/* 依赖范围。
	- 1:全部
	- 2:最后一个
	- 3:任意
	- 4:最近一个
	 (Optional) */
	DependRange int `json:"dependRange"`

	/* 依赖周期范围开始。
	- 0:当前
	- -1:前一个
	 (Optional) */
	StartRange int `json:"startRange"`

	/* 依赖范围开始的单位。可选值:month、week、day、hour
	(Optional) */
	StartUnit string `json:"startUnit"`

	/* 周期范围开始的月 (Optional) */
	StartMonth int `json:"startMonth"`

	/* 周期范围开始的天 (Optional) */
	StartDay int `json:"startDay"`

	/* 周期范围开始的小时 (Optional) */
	StartHour int `json:"startHour"`

	/* 周期范围开始的分钟 (Optional) */
	StartMinute int `json:"startMinute"`

	/* 依赖周期范围结束。
	- 0:当前
	- -1:前一个
	 (Optional) */
	EndRange int `json:"endRange"`

	/* 依赖范围结束的单位。可选值:month、week、day、hour
	(Optional) */
	EndUnit string `json:"endUnit"`

	/* 周期范围结束的月 (Optional) */
	EndMonth int `json:"endMonth"`

	/* 周期范围结束的天 (Optional) */
	EndDay int `json:"endDay"`

	/* 周期范围结束的小时 (Optional) */
	EndHour int `json:"endHour"`

	/* 周期范围结束的分钟 (Optional) */
	EndMinute int `json:"endMinute"`
}

type DefTaskDependRangeForDescribeJobDefinition

type DefTaskDependRangeForDescribeJobDefinition struct {

	/* 依赖范围类型。
	- `simple`:简单模式
	- `complex`:复杂模式
	 (Optional) */
	DependModel string `json:"dependModel"`

	/* 依赖范围。
	- 1:全部
	- 2:最后一个
	- 3:任意
	- 4:最近一个
	 (Optional) */
	DependRange int `json:"dependRange"`

	/* 依赖周期范围开始。
	- 0:当前
	- -1:前一个
	 (Optional) */
	StartRange int `json:"startRange"`

	/* 依赖范围开始的单位。可选值:month、week、day、hour
	(Optional) */
	StartUnit string `json:"startUnit"`

	/* 周期范围开始的月 (Optional) */
	StartMonth int `json:"startMonth"`

	/* 周期范围开始的天 (Optional) */
	StartDay int `json:"startDay"`

	/* 周期范围开始的小时 (Optional) */
	StartHour int `json:"startHour"`

	/* 周期范围开始的分钟 (Optional) */
	StartMinute int `json:"startMinute"`

	/* 依赖周期范围结束。
	- 0:当前
	- -1:前一个
	 (Optional) */
	EndRange int `json:"endRange"`

	/* 依赖范围结束的单位。可选值:month、week、day、hour
	(Optional) */
	EndUnit string `json:"endUnit"`

	/* 周期范围结束的月 (Optional) */
	EndMonth int `json:"endMonth"`

	/* 周期范围结束的天 (Optional) */
	EndDay int `json:"endDay"`

	/* 周期范围结束的小时 (Optional) */
	EndHour int `json:"endHour"`

	/* 周期范围结束的分钟 (Optional) */
	EndMinute int `json:"endMinute"`
}

type DefTaskForCreateJobDefinition

type DefTaskForCreateJobDefinition struct {

	/* 任务类型。枚举类型,取值范围:
	- `single`:标准任务
	- `wf`:工作流任务
	*/
	TaskType string `json:"taskType"`

	/* 任务描述。长度[0,512]
	(Optional) */
	Description string `json:"description"`

	/* 任务所属项目空间ID。正确应用ID,操作用户必须具有当前项目空间权限
	 */
	AppGroupId int `json:"appGroupId"`

	/* 任务负责人,多个用逗号分割。默认接口调用用户erp(userToken解密后),负责人必须具有当前项目空间权限(任务修改时,不支持此字段修改)
	(Optional) */
	Managers string `json:"managers"`

	/* 调度方式。枚举类型,取值范围:
	- `cycle`:周期任务
	- `temp`:临时任务
	- `manual`:手动任务
	*/
	PeriodicType string `json:"periodicType"`

	/* 周期类型。周期任务(periodicType="cycle")必填。枚举类型,取值范围:
	- `quarter`:季度
	- `month`:月
	- `week`:周
	- `day`:天
	- `hour`:小时
	- `minute`:分钟
	- `custom`:自定义
	 (Optional) */
	CycleType string `json:"cycleType"`

	/* 执行时间的天。
	月周期任务(periodicType="cycle",cycleType="month")和周周期任务(periodicType="cycle",cycleType="week")必填。
	月任务取值范围:1-32(1日-31日,32代表月末),周任务取值范围:1-7(周一-周日)
	 (Optional) */
	Day int `json:"day"`

	/* 执行时间的小时。月/周/天周期任务必填。取值范围0-23正整数
	(Optional) */
	Hour int `json:"hour"`

	/* 执行时间的分钟。月/天/周/小时周期任务必填。取值范围0-59正整数
	(Optional) */
	Minute int `json:"minute"`

	/* 周期步长。分周期任务(periodicType="cycle",cycleType="minute")必填。范围:1,5,10,15,30
	(Optional) */
	CycleStep int `json:"cycleStep"`

	/* 自定义运行规则。自定义周期任务(periodicType="cycle",cycleType="custom")必填。
	格式: [秒] [分] [小时] [日] [月] [周] [年]
	举例:0 0 12 * * ? 每天12点触发;0 * 14 * * ? 每天下午2点到2点59分每分触发
	 (Optional) */
	CronExpression string `json:"cronExpression"`

	/* 执行时间。周期任务(periodicType="temp")必填。时间格式:yyyy-MM-dd HH:mm:ss
	(Optional) */
	NextTime string `json:"nextTime"`

	/* 任务生效时间。周期任务(periodicType="cycle")有效。
	任务生成实例的开始时间,格式(YYYY-MM-DD HH:mm:ss)。
	1. 若该时间早于当前时间,将补齐该时间至当前时间内的实例
	2. 若该时间晚于当前时间,将从该时间开始生成实例
	3. 该时间保存后不可修改
	 (Optional) */
	EffectiveTime string `json:"effectiveTime"`

	/* 预计完成时间 (Optional) */
	SlaTime string `json:"slaTime"`

	/* 失败是否重试。枚举类型,1=重试,0=不重试。默认开启,重试1次,重试间隔30s
	(Optional) */
	FailRetry int `json:"failRetry"`

	/* 失败重试次数。失败重试开启(failRetry=1)时必填,默认1。
	未指定失败是否重试时(failRetry=null),默认值有效。取值范围:1-10
	 (Optional) */
	RetryTimes int `json:"retryTimes"`

	/* 失败重试间隔(秒)。失败重试开启(failRetry=1)时必填,默认30。
	未指定失败是否重试时(failRetry=null),默认值有效。取值范围:0-36000
	 (Optional) */
	RetryInterval int `json:"retryInterval"`

	/* 实例执行策略。默认0。取值范围:
	- 0:不依赖上一周期
	- 1:依赖上一周期
	- 2:只运行最新周期
	 (Optional) */
	SelfDepend int `json:"selfDepend"`

	/* 同一任务允许同时执行实例数。默认5。可选值:1,2,3,5,10,15,20
	(Optional) */
	Concurrency int `json:"concurrency"`

	/* 跟随父任务重跑策略。默认0。可选值:
	- 0:不通知任务负责人,不自动重跑
	- 1:通知任务负责人,不自动重跑
	- 3:通知任务负责人,自动重跑(正在执行时除外)
	 (Optional) */
	ParentRerunPolicy int `json:"parentRerunPolicy"`

	/* 标签id列表 (Optional) */
	TagIdList []int `json:"tagIdList"`

	/* 默认监控开关。可选值:
	- 1:开启默认监控
	- 2:关闭默认监控
	 (Optional) */
	MonitorStatus int `json:"monitorStatus"`

	/* 任务状态。1=测试任务,3=线上任务
	(Optional) */
	Status int `json:"status"`
}

type DeleteAclRulesSpec

type DeleteAclRulesSpec struct {

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

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

	/* Pod IP列表 (Optional) */
	IpAddresses []string `json:"ipAddresses"`

	/* 资源ID(训练任务等)  */
	ResourceId string `json:"resourceId"`
}

type DeleteDatasetWarmTaskResult

type DeleteDatasetWarmTaskResult struct {

	/* 空字符串 (Optional) */
	Data string `json:"data"`
}

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 DeployTemplateInfo

type DeployTemplateInfo struct {

	/* 动态id (Optional) */
	TplId string `json:"tplId"`

	/* 模版名称/标题 (Optional) */
	TplName string `json:"tplName"`

	/* 模版内容,json字符串 (Optional) */
	TplContent string `json:"tplContent"`

	/* 适用任务模块:notebook:Notebook,training:训练任务,inference:在线服务,finetune:精调实验,simulation仿真任务 (Optional) */
	TplModule string `json:"tplModule"`

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

	/* 标签 (Optional) */
	Labels []string `json:"labels"`
}

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 DescribeChargeDurationResult

type DescribeChargeDurationResult struct {

	/*  (Optional) */
	ChargeDuration ChargeDuration `json:"chargeDuration"`
}

type DescribeClustersSummary

type DescribeClustersSummary struct {

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

	/* 租户PIN (Optional) */
	Pin string `json:"pin"`

	/* 公司名称 (Optional) */
	Company string `json:"company"`

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

	/* 节点池数量 (Optional) */
	NodepoolCount int `json:"nodepoolCount"`

	/* 集群节点池状态概览 (Optional) */
	Nodepool ResourceSummaryDetail `json:"nodepool"`

	/* 集群节点状态概览 (Optional) */
	Node ResourceSummaryDetail `json:"node"`

	/* 集群GPU状态概览 (Optional) */
	Gpu ResourceSummaryDetail `json:"gpu"`

	/* 集群队列状态概览 (Optional) */
	Queue ResourceSummaryDetail `json:"queue"`
}

type DescribeIdleDeviceItem

type DescribeIdleDeviceItem struct {

	/* 租户PIN (Optional) */
	Pin string `json:"pin"`

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

	/* 故障显卡总数 (Optional) */
	Fault int `json:"fault"`

	/* 空闲显卡总数 (Optional) */
	Idle int `json:"idle"`

	/* 所属集群 (Optional) */
	Cluster string `json:"cluster"`

	/* 显卡型号 (Optional) */
	Device_model string `json:"device_model"`
}

type DescribeNodePoolsSummary

type DescribeNodePoolsSummary struct {

	/* 节点池ID (Optional) */
	Id string `json:"id"`

	/* 租户PIN (Optional) */
	Pin string `json:"pin"`

	/* 公司名称 (Optional) */
	Company string `json:"company"`

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

	/* 集群ID (Optional) */
	Cluster string `json:"cluster"`

	/* 节点池节点状态概览 (Optional) */
	Node ResourceSummaryDetail `json:"node"`

	/* 节点池GPU状态概览 (Optional) */
	Gpu ResourceSummaryDetail `json:"gpu"`

	/* 节点池队列状态概览 (Optional) */
	Queue ResourceSummaryDetail `json:"queue"`
}

type DescribeResources

type DescribeResources struct {

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

type Device

type Device struct {

	/* 显卡ID (Optional) */
	Id string `json:"id"`

	/* 显卡品牌 (Optional) */
	DeviceBrand string `json:"deviceBrand"`

	/* 显卡型号 (Optional) */
	GpuModel string `json:"gpuModel"`

	/* 显卡编号 (Optional) */
	DeviceNo int `json:"deviceNo"`

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 租户PIN或租户名称 (Optional) */
	Pin string `json:"pin"`

	/* 节点ID (Optional) */
	NodeId string `json:"nodeId"`

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

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

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点池名称 (Optional) */
	NodePoolName string `json:"nodePoolName"`

	/* 节点池类型 (Optional) */
	NodePoolType string `json:"nodePoolType"`

	/* 节点池计费方式 (Optional) */
	ChargeType string `json:"chargeType"`

	/* 节点标签 (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`

	/* 节点状态,对应节点表ReadyStatus (Optional) */
	NodeReadyStatus string `json:"nodeReadyStatus"`

	/* 节点规格,对应节点表InstanceConfig (Optional) */
	NodeSpec string `json:"nodeSpec"`

	/* 节点创建时间,Unix秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 节点类型 (Optional) */
	NodeType string `json:"nodeType"`

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

	/* 集群名称 (Optional) */
	ClusterName string `json:"clusterName"`

	/* 运行状态,idle为空闲,allocated为已分配,unavailable为不可用 (Optional) */
	RunStatus string `json:"runStatus"`

	/*  (Optional) */
	Compute DeviceResource `json:"compute"`

	/*  (Optional) */
	Memory DeviceResource `json:"memory"`

	/* 设备状态,active为活跃,confined为受限,error为故障 (Optional) */
	DeviceStatus string `json:"deviceStatus"`

	/* 显卡故障状态,对应设备表DeviceStatus (Optional) */
	GpuFaultStatus int `json:"gpuFaultStatus"`

	/* 显卡故障信息,对应设备表ErrMsg (Optional) */
	GpuFaultMessage string `json:"gpuFaultMessage"`

	/* 是否开启虚拟化 (Optional) */
	Virtualized bool `json:"virtualized"`

	/* 显卡余量,计算方式为显卡ratio余量除以100 (Optional) */
	GpuRemaining float64 `json:"gpuRemaining"`
}

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 DeviceResource

type DeviceResource struct {

	/* 已使用量 (Optional) */
	Used int64 `json:"used"`

	/* 已分配量 (Optional) */
	Allocated int64 `json:"allocated"`

	/* 总量 (Optional) */
	Total int64 `json:"total"`

	/* 单位,显存为GB (Optional) */
	Unit string `json:"unit"`
}

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"`

	/* 磁盘分类,取值为 cloud(云盘) 或 local(本地盘) (Optional) */
	DiskCategory string `json:"diskCategory"`

	/* 磁盘Id, 仅云盘有效 (Optional) */
	DiskId string `json:"diskId"`
}

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 DownstreamBuffaloForDescribeBuffaloDependency

type DownstreamBuffaloForDescribeBuffaloDependency struct {

	/* Buffalo 任务ID。 (Optional) */
	BuffaloId int64 `json:"buffaloId"`

	/* Buffalo 任务名称。 (Optional) */
	BuffaloName string `json:"buffaloName"`

	/* 负责人账号。 (Optional) */
	Managers string `json:"managers"`

	/* 负责人名称。 (Optional) */
	ManagersName string `json:"managersName"`
}

type DownstreamBuffaloListForDescribeBuffaloDependency

type DownstreamBuffaloListForDescribeBuffaloDependency struct {

	/* 下游 Buffalo 任务总数。 (Optional) */
	TotalCount int `json:"totalCount"`

	/* 全量下游 Buffalo 任务。 (Optional) */
	Items []DownstreamBuffaloForDescribeBuffaloDependency `json:"items"`
}

type DssDatasetInfo

type DssDatasetInfo struct {

	/* 关联的数据工厂-数据集ID。 (Optional) */
	Id int `json:"id"`

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

	/* 是否已关联, 查询条件中有工作空间筛选的时候生效。 (Optional) */
	IsRelated string `json:"isRelated"`
}

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 EPPSpec

type EPPSpec struct {

	/* EPP Deployment 副本数  */
	Replicas int `json:"replicas"`

	/* 单个 EPP 实例 CPU,单位 mCPU  */
	Cpu int `json:"cpu"`

	/* 单个 EPP 实例内存,单位 MiB  */
	Memory int `json:"memory"`
}

type ElasticIp

type ElasticIp struct {

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

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

	/* 绑定的公网 IP 类型;none:仅内网、不绑定公网 IP,new:新建,exist:使用已有公网 IP (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 EmptyObj

type EmptyObj struct {
}

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或fs-xxxxx:fsmt-yyyyy:/dir-path或/dir-path)。
	*/
	DatasetUrl string `json:"datasetUrl"`

	/* 挂载点ID。仅当存储类型为`jpfs`时生效,用于指定JPFS的挂载点ID。
	(Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* 挂载点IP。仅当存储类型为`cfs`时生效,用于指定CFS的挂载点IP地址。
	(Optional) */
	Host string `json:"host"`

	/* 建议挂载到/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或fs-xxxxx:fsmt-yyyyy:/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"`

	/* 挂载点ID。仅当存储类型为`jpfs`时生效,用于指定JPFS的挂载点ID。
	(Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* 挂载点IP。仅当存储类型为`cfs`时生效,用于指定CFS的挂载点IP地址。
	(Optional) */
	Host string `json:"host"`

	/* 是否以只读模式挂载存储。只读模式下,用户无法在挂载的存储中进行写操作。仅当存储类型为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 EventForAdminDescribeJobDefinitionEvents

type EventForAdminDescribeJobDefinitionEvents struct {

	/* 记录ID。
	(Optional) */
	Id int64 `json:"id"`

	/* 事件唯一ID(UUID)。
	(Optional) */
	EventId string `json:"eventId"`

	/* 事件名称(路由键)。
	(Optional) */
	EventName string `json:"eventName"`

	/* 所属聚合根ID。
	(Optional) */
	AggregateId string `json:"aggregateId"`

	/* 事件 JSON 载荷。
	(Optional) */
	Payload string `json:"payload"`

	/* 事件发生时间。
	(Optional) */
	OccurredAt string `json:"occurredAt"`

	/* 投递状态。
	- `0`:pending(待投递)
	- `1`:delivered(已投递)
	- `2`:dead-letter(死信)
	 (Optional) */
	Status int `json:"status"`

	/* 投递成功时间。
	(Optional) */
	DeliveredAt string `json:"deliveredAt"`

	/* 已重试次数。
	(Optional) */
	RetryCount int `json:"retryCount"`

	/* 最近一次投递错误。
	(Optional) */
	LastError string `json:"lastError"`

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

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

type EventForAdminDescribeJobExecutionEvents

type EventForAdminDescribeJobExecutionEvents struct {

	/* 记录ID。
	(Optional) */
	Id int64 `json:"id"`

	/* 事件唯一ID(UUID)。
	(Optional) */
	EventId string `json:"eventId"`

	/* 事件名称(路由键)。
	(Optional) */
	EventName string `json:"eventName"`

	/* 所属聚合根ID。
	(Optional) */
	AggregateId string `json:"aggregateId"`

	/* 事件 JSON 载荷。
	(Optional) */
	Payload string `json:"payload"`

	/* 事件发生时间。
	(Optional) */
	OccurredAt string `json:"occurredAt"`

	/* 投递状态。
	- `0`:pending(待投递)
	- `1`:delivered(已投递)
	- `2`:dead-letter(死信)
	 (Optional) */
	Status int `json:"status"`

	/* 投递成功时间。
	(Optional) */
	DeliveredAt string `json:"deliveredAt"`

	/* 已重试次数。
	(Optional) */
	RetryCount int `json:"retryCount"`

	/* 最近一次投递错误。
	(Optional) */
	LastError string `json:"lastError"`

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

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

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"`

	/* 归属用户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"`

	/* 归属用户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 ExternalNode

type ExternalNode struct {

	/* 节点ID (Optional) */
	Id string `json:"id"`

	/* 节点类型,vm为云主机节点,hpc为物理集群节点 (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"`

	/*  (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`

	/* 设备品牌 (Optional) */
	DeviceBrand string `json:"deviceBrand"`

	/* 所属租户 (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	UnhealthReasons []UnHealthReason `json:"unhealthReasons"`

	/*  (Optional) */
	RealTimeResourceStatistics []RealTimeResourceStatisticsItem `json:"realTimeResourceStatistics"`
}

type ExternalNodePool

type ExternalNodePool 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"`

	/*  (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"`

	/*  (Optional) */
	RealTimeResourceStatistics []RealTimeResourceStatisticsItem `json:"realTimeResourceStatistics"`
}

type ExternalQueue

type ExternalQueue 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和内存资源配额信息;CPU单位为核,内存单位为GiB (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) */
	TaskPriority bool `json:"taskPriority"`

	/* 是否开启任务抢占 (Optional) */
	TaskPreempt bool `json:"taskPreempt"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 资源队列名称 (Optional) */
	Desc string `json:"desc"`

	/* 队列类型,common:普通队列;security:安全队列 (Optional) */
	QueueType string `json:"queueType"`

	/*  (Optional) */
	RealTimeResourceStatistics []RealTimeResourceStatisticsItem `json:"realTimeResourceStatistics"`
}

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 {

	/* CPU 核数 (Optional) */
	Cpu float32 `json:"cpu"`

	/* 内存大小(GiB) (Optional) */
	Memory float32 `json:"memory"`

	/* 设备模型 (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 FlavorConfig

type FlavorConfig struct {

	/* 可用区编码。GPU/CPU 中心随机为 `center_random`;除 `center_random` 外均为逻辑可用区编码。  */
	Zone string `json:"zone"`

	/* 规格ID。  */
	FlavorId string `json:"flavorId"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 副本数量。  */
	Count int `json:"count"`
}

type FlavorDetail

type FlavorDetail struct {

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格类型。 (Optional) */
	Category string `json:"category"`

	/* CPU核数。 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存大小,单位MB。 (Optional) */
	MemoryMb int `json:"memoryMb"`

	/* GPU卡数。 (Optional) */
	Gpu float64 `json:"gpu"`

	/* 单卡显存大小,单位GB。 (Optional) */
	GpuMemoryGb float64 `json:"gpuMemoryGb"`

	/* GPU设备名。 (Optional) */
	GpuDeviceName string `json:"gpuDeviceName"`

	/* 是否支持RDMA。 (Optional) */
	Rdma bool `json:"rdma"`

	/* 是否允许公网访问。 (Optional) */
	AllowInternet bool `json:"allowInternet"`
}

type FlavorGrayChange

type FlavorGrayChange struct {

	/* 变更动作。  */
	Action string `json:"action"`

	/* 用户pin。  */
	Pin string `json:"pin"`
}

type FlavorGraySpec

type FlavorGraySpec struct {

	/* 规格ID。  */
	FlavorId string `json:"flavorId"`

	/* 可见用户pin。  */
	Pin string `json:"pin"`
}

type FlavorSchedulerLabel

type FlavorSchedulerLabel struct {

	/* 标签key。 (Optional) */
	LabelKey string `json:"labelKey"`

	/* 标签值,多个值按调度侧约定编码。 (Optional) */
	LabelValues string `json:"labelValues"`
}

type FlavorSoldInfo

type FlavorSoldInfo struct {

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 可用区编码。 (Optional) */
	Zone string `json:"zone"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

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

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

	/* 是否通过预调度。 (Optional) */
	SchedulerPass bool `json:"schedulerPass"`
}

type FlavorSoldInfoSpec

type FlavorSoldInfoSpec struct {

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。  */
	PoolType string `json:"poolType"`

	/* 已选规格配置列表。  */
	FlavorConfigs []FlavorConfig `json:"flavorConfigs"`
}

type FragmentStatistics

type FragmentStatistics struct {

	/* 剩余资源,算力或者卡数 (Optional) */
	Key string `json:"key"`

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

type FragmentStatsDetail

type FragmentStatsDetail struct {

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 节点ip (Optional) */
	Ip string `json:"ip"`

	/* 节点id (Optional) */
	InstanceId string `json:"instanceId"`

	/* 节点类型,vm/hpc (Optional) */
	NodeType string `json:"nodeType"`

	/* 所属集群名称 (Optional) */
	Cluster string `json:"cluster"`

	/* 调度状态 (Optional) */
	Enable bool `json:"enable"`

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

	/* 显卡型号 (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 string `json:"idleCpu"`

	/* 内存空闲数量 (Optional) */
	IdleNMemory string `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 GetPublicNodepoolRuleResult

type GetPublicNodepoolRuleResult struct {

	/* CFS存储规则,map格式。 (Optional) */
	CfsRule interface{} `json:"cfsRule"`

	/* JPFS存储规则,map格式。 (Optional) */
	JpfsRule interface{} `json:"jpfsRule"`

	/* OSS存储规则,map格式。 (Optional) */
	OssRule interface{} `json:"ossRule"`
}

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 GracefulShutdown

type GracefulShutdown struct {

	/* 是否启用优雅退出 (Optional) */
	Enabled *bool `json:"enabled"`

	/* preStop 固定执行时间;启用时未传或传 0 默认取 30,范围 1-2592000 秒 (Optional) */
	TimeoutSeconds *int64 `json:"timeoutSeconds"`

	/* Pod 退出前执行的自定义 Shell,可为空,最大 16384 字节(UTF-8) (Optional) */
	PreStopScript *string `json:"preStopScript"`
}

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。 示例img-lh****3p (Optional) */
	ImageId string `json:"imageId"`

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

	/* 镜像用途,可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务

	示例: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
	- 公共镜像示例:baseinfo:vllm0.25.0,baseinfo:pytorch2.11.0,baseinfo:transformers5.13.0,baseinfo:cuda13.0,baseinfo:gpu,baseinfo:python3.12.3,baseinfo:ubuntu24.04,baseinfo:jupyterlab,baseinfo:vscode,protocol:http,protocol:grpc
	 (Optional) */
	Labels string `json:"labels"`

	/* 标签,labels转换的数组格式。公共镜像仅包含baseinfo对应的标签 (Optional) */
	LabelList []string `json:"labelList"`

	/* 标签对象(公共镜像使用)。
	labels转化对象, key:value中key值如果有._会删除转发成驼峰式。 如aaa.bbb_ccc换成aaaBbbCcc
	 (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"`

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

type ImageLabelsObject

type ImageLabelsObject struct {

	/* 镜像基础环境信息:vllm0.25.0、pytorch2.11.0、cuda13.0、gpu等 (Optional) */
	Baseinfo []string `json:"baseinfo"`

	/* 训练任务,当imageUsage包含training时, 使用该字段在创建训练任务时,任务类型使用,可选值pytorch、ray、batch
	训练任务文档参考: [创建训练任务](https://docs.jdcloud.com/cn/jdaip/create-trainjob)
	 (Optional) */
	Jobtype []string `json:"jobtype"`

	/* 在线服务自定义部署-支持协议,支持多个http、grpc、tcp、udp (Optional) */
	Protocol []string `json:"protocol"`

	/* 在线服务-分布式, 有值代表支持分布式,支持单个,可选值sglang、vllm (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"`

	/* 在线服务类型 (Optional) */
	ServiceType string `json:"serviceType"`

	/* 智能路由配置,仅智能路由服务返回 (Optional) */
	SmartRouterConfig SmartRouterConfig `json:"smartRouterConfig"`

	/* 推理服务限流阈值(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 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"`

	/* 在线服务类型 (Optional) */
	ServiceType string `json:"serviceType"`

	/* 智能路由配置,仅智能路由服务返回 (Optional) */
	SmartRouterConfig SmartRouterConfig `json:"smartRouterConfig"`

	/* 推理服务资源所在队列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) */
	ResourceGroupInfo ResourceGroupInfo `json:"resourceGroupInfo"`
}

type InferenceDedicatedGatewaySpec

type InferenceDedicatedGatewaySpec struct {

	/* 专属网关实例数, 大于等于1,默认为2, 为安全起见,建议最少为2 (Optional) */
	Replicas int `json:"replicas"`

	/* 专属网关单个实例所需 CPU,单位 mCPU;须与 memory 按 1000/2048、2000/4096、4000/8192 配对 (Optional) */
	Cpu int `json:"cpu"`

	/* 专属网关单个实例所需内存,单位 MiB;须与 cpu 按 1000/2048、2000/4096、4000/8192 配对 (Optional) */
	Memory int `json:"memory"`

	/* 是否仅内网可用;当前实际内外网类型以 elasticIp.bindType 为准 (Optional) */
	Internal bool `json:"internal"`

	/* 专属网关所属vpc (Optional) */
	Vpc Vpc `json:"vpc"`

	/* 子网信息 (Optional) */
	Subnet Subnet `json:"subnet"`

	/* 公网信息 (Optional) */
	ElasticIp ElasticIp `json:"elasticIp"`

	/* 可用区集合(逗号分隔) (Optional) */
	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"`

	/* 在线服务类型;standard:普通服务,smartRouter:智能路由服务 (Optional) */
	ServiceType *string `json:"serviceType"`

	/* 智能路由配置;serviceType=smartRouter 时必填,serviceType=standard 时不得传递 (Optional) */
	SmartRouterConfig *SmartRouterConfig `json:"smartRouterConfig"`

	/* 推理服务元数据(如:名字,ID等)  */
	Metadata *Metadata `json:"metadata"`

	/* 推理服务加载的模型信息(如:模型名字,存放地址,挂载路径)  */
	Models []Model `json:"models"`

	/* 推理服务所需资源(如:CPU, 内存等)。非多角色分离模式时,该字段为必填项 (Optional) */
	Resource *Resource `json:"resource"`

	/* 推理服务运行环境(如:镜像,命令行,环境变量等)  */
	Runtime *Runtime `json:"runtime"`

	/* 多角色部署配置 (Optional) */
	RoleSet *RoleSet `json:"roleSet"`
}

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"`

	/* 物理节点名称。

	**说明:**
	- 仅专属队列返回
	- 公共资源池队列返回空值
	 (Optional) */
	NodeName string `json:"nodeName"`

	/* 实例的状态。

	**状态说明:**
	- `scheduling`:调度中,正在等待调度到计算节点
	- `pending`:启动中,已调度,正在创建容器
	- `running`:运行中,实例正常运行中
	- `succeeded`:成功,训练正常完成
	- `failed`:失败,实例执行失败
	- `terminating`:终止中,正在终止实例
	- `terminated`:已终止;Batch 的历史 attempt 或任务停止后可能返回
	- `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 InternetEgress

type InternetEgress struct {

	/* 公网出口开关。on 表示开启,off 表示关闭;off 时 egressType 无效。  */
	SwitchStatus string `json:"switchStatus"`

	/* 公网出口类型。switchStatus=on 时必传,当前仅支持 SHARE_GATEWAY(平台共享 NAT 网关)。 (Optional) */
	EgressType *string `json:"egressType"`
}

type InternetEgressForJob

type InternetEgressForJob struct {

	/* 公网出口开关,必须显式传值。

	## 取值
	- on: 开启公网出口,需配合egressType指定出口类型
	- off: 关闭公网出口,此时egressType字段无效
	*/
	SwitchStatus string `json:"switchStatus"`

	/* 公网出口类型,switchStatus=on时必传,指定训练任务出公网的访问方式;switchStatus=off时无需传值。

	## 支持的类型
	- SHARE_GATEWAY: 经平台共享NAT网关出公网

	## 使用说明
	- 仅公共资源池和共享资源池生效
	- 设为 SHARE_GATEWAY 时,要求实例规格支持出公网
	 (Optional) */
	EgressType *string `json:"egressType"`
}

type InternetEgressInfo

type InternetEgressInfo struct {

	/* 公网出口开关,必须显式传值。


	## 取值
	- on: 开启公网出口,需配合egressType指定出口类型
	- off: 关闭公网出口,此时egressType字段无效
	*/
	SwitchStatus string `json:"switchStatus"`

	/* 公网出口类型,switchStatus=on时必传,指定Notebook出公网的访问方式;switchStatus=off时无需传值。

	## 支持的类型
	- SHARE_GATEWAY: 经平台共享NAT网关出公网

	## 使用说明
	- 仅公共资源池生效
	- 设为 SHARE_GATEWAY 时,要求实例规格支持出公网
	 (Optional) */
	EgressType *string `json:"egressType"`
}

type JobAffinitity

type JobAffinitity struct {

	/* 亲和性标签键,对应节点的标签名称。

	**常用标签键:**
	- `gpu-type`:GPU 型号
	- `rack`:机架
	- `zone`:可用区
	- `storage-type`:存储类型
	*/
	Key string `json:"key"`

	/* 亲和性标签值列表,多个值之间是 **或(OR)** 的关系。

	**说明:** 节点标签值匹配其中任意一个即满足条件
	 */
	Values []string `json:"values"`
}

type JobDefinitionForCreateJobDefinition

type JobDefinitionForCreateJobDefinition struct {

	/* 任务定义的名称。

	**命名规则:**
	- 长度:4~64字符
	- 支持字符:仅支持大小写字母、数字、英文中划线"-"、英文下划线"_"
	*/
	Name string `json:"name"`

	/* 任务定义的描述信息。

	**限制:** 不超过256个字符
	 (Optional) */
	Description string `json:"description"`

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

	**可选值:**
	- `public`:公开资源,工作空间所有成员可见可操作
	- `private`:私有资源,仅创建者和空间管理员可见可操作

	**默认值:** `public`
	*/
	Permission string `json:"permission"`

	/* 镜像可见性,表示镜像的使用权限范围。

	**可选值:**
	- `public`:公开镜像,平台预置镜像或用户公开的镜像,所有用户可使用
	- `private`:私有镜像,仅当前用户可使用
	*/
	ImageVisibility string `json:"imageVisibility"`

	/* 镜像ID,用于指定训练环境的基础镜像。

	**示例:** `img-9axxxxxxjh`
	 */
	ImageId string `json:"imageId"`

	/* 用户指定的启动命令。

	**常用格式:**
	- Python 脚本:`python /mnt/ws/train.py [参数]`
	- Shell 脚本:`bash /mnt/ws/start.sh`

	**注意事项:**
	- 路径需与存储挂载路径对应
	*/
	UserStartupCommand string `json:"userStartupCommand"`

	/* 资源配置。
	 */
	Resource ResourceForCreateJobDefinition `json:"resource"`

	/* 共享内存配置。
	(Optional) */
	SharedMemory SharedMemorySpec `json:"sharedMemory"`

	/* 存储空间配置列表,用于挂载外部存储到容器中。

	**支持的存储类型:**
	- `oss`:对象存储服务,适合大规模数据存储
	- `cfs`:云文件系统,提供高性能文件存储
	- `jpfs`:京东云并行文件系统,高并发场景优化
	*/
	StorageSpaces []StorageSpaceForCreateJobDefinition `json:"storageSpaces"`

	/* 模型配置列表,用于挂载模型到容器中。
	(Optional) */
	Models []ModelForCreateJobDefinition `json:"models"`

	/* 代码仓配置列表,用于挂载代码仓到容器中。
	(Optional) */
	Codes []CodeForCreateJobDefinition `json:"codes"`

	/* 调度任务配置。 (Optional) */
	Buffalo BuffaloForCreateJobDefinition `json:"buffalo"`

	/* 通知投递配置列表(event -> channels 映射)。
	(Optional) */
	NotifyConfig []NotifyRuleSpec `json:"notifyConfig"`

	/* 排队超时时间(分钟);不传或者传`0` 表示使用全局默认值,非 `0` 时取值范围为 5~1440。 (Optional) */
	QueuingTimeoutMinutes int `json:"queuingTimeoutMinutes"`

	/* 任务优先级;当队列开启优先级调度时生效。
	(Optional) */
	TaskPriority int `json:"taskPriority"`
}

type JobDefinitionForDescribeJobDefinition

type JobDefinitionForDescribeJobDefinition struct {

	/* 任务定义ID,唯一标识一个任务定义。
	**示例:** `jd-abc123def456`
	 (Optional) */
	JobDefinitionId string `json:"jobDefinitionId"`

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

	/* 任务定义的描述信息。 (Optional) */
	Description string `json:"description"`

	/* 最新一条任务执行的状态。
	(Optional) */
	LatestState string `json:"latestState"`

	/* 最新一条任务执行的失败原因。 (Optional) */
	LatestFailureReason string `json:"latestFailureReason"`

	/* 最新一条任务执行的开始时间。
	(Optional) */
	LatestStartTime string `json:"latestStartTime"`

	/* 最新一条任务执行的结束时间。
	(Optional) */
	LatestEndTime string `json:"latestEndTime"`

	/* 最新一条任务执行的运行时长(秒)。
	(Optional) */
	LatestRunningTimeInSec int `json:"latestRunningTimeInSec"`

	/* 最新一条任务执行的计划运行时间,精确到秒。示例:2026-05-29 10:10:10
	(Optional) */
	LatestScheduledTime string `json:"latestScheduledTime"`

	/* 最新一条任务执行的计划运行时间-1天,精确到天。示例:2026-05-28
	(Optional) */
	LatestScheduledMinusOneDay string `json:"latestScheduledMinusOneDay"`

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

	**可选值:** `public`, `private`
	 (Optional) */
	Permission string `json:"permission"`

	/* 镜像可见性。

	**可选值:** `public`, `private`
	 (Optional) */
	ImageVisibility string `json:"imageVisibility"`

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

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

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

	/* 用户指定的启动命令。
	(Optional) */
	UserStartupCommand string `json:"userStartupCommand"`

	/* 资源配置信息。 (Optional) */
	Resource ResourceForDescribeJobDefinition `json:"resource"`

	/* 共享内存配置。 (Optional) */
	SharedMemory SharedMemorySpec `json:"sharedMemory"`

	/* 存储空间配置列表。
	(Optional) */
	StorageSpaces []StorageSpaceForDescribeJobDefinition `json:"storageSpaces"`

	/* 模型配置列表。
	(Optional) */
	Models []ModelForDescribeJobDefinition `json:"models"`

	/* 代码仓配置列表。
	(Optional) */
	Codes []CodeForDescribeJobDefinition `json:"codes"`

	/* 调度任务详情信息,包含调度任务的属性、环节、依赖关系等完整配置。
	(Optional) */
	Buffalo BuffaloForDescribeJobDefinition `json:"buffalo"`

	/* 已绑定的 Ku+ Buffalo 任务ID;未绑定时返回 null。 (Optional) */
	KuplusBuffaloId int64 `json:"kuplusBuffaloId"`

	/* 通知投递配置列表(event -> channels 映射)。
	(Optional) */
	NotifyConfig []NotifyRuleSpec `json:"notifyConfig"`

	/* 排队超时时间(分钟);`0` 表示使用全局默认值,非 `0` 时取值范围为 5~1440。 (Optional) */
	QueuingTimeoutMinutes int `json:"queuingTimeoutMinutes"`

	/* 计费信息;私有队列时为空。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 任务优先级;当队列开启优先级调度时生效。
	(Optional) */
	TaskPriority int `json:"taskPriority"`

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

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

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

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

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

	/* 更新用户ID。 (Optional) */
	UpdateUserId string `json:"updateUserId"`

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

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

type JobDefinitionForDescribeJobDefinitions

type JobDefinitionForDescribeJobDefinitions struct {

	/* 任务定义ID,唯一标识一个任务定义。
	**示例:** `jd-abc123def456`
	 (Optional) */
	JobDefinitionId string `json:"jobDefinitionId"`

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

	/* 任务定义的描述信息。 (Optional) */
	Description string `json:"description"`

	/* 最新一条任务执行的状态。
	(Optional) */
	LatestState string `json:"latestState"`

	/* 最新一条任务执行的失败原因。 (Optional) */
	LatestFailureReason string `json:"latestFailureReason"`

	/* 最新一条任务执行的开始时间。
	(Optional) */
	LatestStartTime string `json:"latestStartTime"`

	/* 最新一条任务执行的结束时间。
	(Optional) */
	LatestEndTime string `json:"latestEndTime"`

	/* 最新一条任务执行的运行时长(秒)。
	(Optional) */
	LatestRunningTimeInSec int `json:"latestRunningTimeInSec"`

	/* 最新一条任务执行的计划运行时间,精确到秒。示例:2026-05-29 10:10:10
	(Optional) */
	LatestScheduledTime string `json:"latestScheduledTime"`

	/* 最新一条任务执行的计划运行时间-1天,精确到天。示例:2026-05-28
	(Optional) */
	LatestScheduledMinusOneDay string `json:"latestScheduledMinusOneDay"`

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

	/* 镜像可见性。
	(Optional) */
	ImageVisibility string `json:"imageVisibility"`

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

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

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

	/* 资源配置信息。 (Optional) */
	Resource ResourceForDescribeJobDefinitions `json:"resource"`

	/* 模型配置列表。
	(Optional) */
	Models []ModelForDescribeJobDefinitions `json:"models"`

	/* 存储空间配置列表。
	(Optional) */
	StorageSpaces []StorageSpaceForDescribeJobDefinitions `json:"storageSpaces"`

	/* 计费信息;私有队列时为空。 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 任务优先级;当队列开启优先级调度时生效。
	(Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 调度任务列表项信息,包含调度相关的基本信息和状态概览。
	(Optional) */
	Buffalo BuffaloForDescribeJobDefinitions `json:"buffalo"`

	/* 已绑定的 Ku+ Buffalo 任务ID;未绑定时返回 null。 (Optional) */
	KuplusBuffaloId int64 `json:"kuplusBuffaloId"`

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

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

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

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

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

	/* 更新用户ID。 (Optional) */
	UpdateUserId string `json:"updateUserId"`

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

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

type JobDefinitionForUpdateJobDefinition

type JobDefinitionForUpdateJobDefinition struct {

	/* 任务定义的名称。

	**命名规则:**
	- 长度:4~64字符
	- 支持字符:仅支持大小写字母、数字、英文中划线"-"、英文下划线"_"
	 (Optional) */
	Name string `json:"name"`

	/* 任务定义的描述信息。

	**限制:** 不超过256个字符
	 (Optional) */
	Description string `json:"description"`

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

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

	/* 镜像可见性,表示镜像的使用权限范围。

	**可选值:**
	- `public`:公开镜像,平台预置镜像或用户公开的镜像,所有用户可使用
	- `private`:私有镜像,仅当前用户可使用
	 (Optional) */
	ImageVisibility string `json:"imageVisibility"`

	/* 镜像ID,用于指定训练环境的基础镜像。

	**示例:** `img-9axxxxxxjh`
	 (Optional) */
	ImageId string `json:"imageId"`

	/* 用户指定的启动命令。

	**常用格式:**
	- Python 脚本:`python /mnt/ws/train.py [参数]`
	- Shell 脚本:`bash /mnt/ws/start.sh`

	**注意事项:**
	- 路径需与存储挂载路径对应
	 (Optional) */
	UserStartupCommand string `json:"userStartupCommand"`

	/* 资源配置。
	(Optional) */
	Resource ResourceForUpdateJobDefinition `json:"resource"`

	/* 共享内存配置;不传表示不更新,传入后整体替换。
	(Optional) */
	SharedMemory SharedMemorySpec `json:"sharedMemory"`

	/* 存储空间配置列表,用于挂载外部存储到容器中。

	**支持的存储类型:**
	- `oss`:对象存储服务,适合大规模数据存储
	- `cfs`:云文件系统,提供高性能文件存储
	- `jpfs`:京东云并行文件系统,高并发场景优化
	 (Optional) */
	StorageSpaces []StorageSpaceForUpdateJobDefinition `json:"storageSpaces"`

	/* 模型配置列表,用于挂载模型到容器中。
	(Optional) */
	Models []ModelForUpdateJobDefinition `json:"models"`

	/* 代码仓配置列表,用于挂载代码仓到容器中。
	(Optional) */
	Codes []CodeForUpdateJobDefinition `json:"codes"`

	/* 新所有者 pin。传入时更新任务定义的归属用户,nil 则不更新所有者。
	(Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 通知投递配置列表(event -> channels 映射)。
	(Optional) */
	NotifyConfig []NotifyRuleSpec `json:"notifyConfig"`

	/* 排队超时时间(分钟);不传表示不更新,`0` 表示恢复全局默认值,非 `0` 时取值范围为 5~1440。 (Optional) */
	QueuingTimeoutMinutes int `json:"queuingTimeoutMinutes"`

	/* 任务优先级;当队列开启优先级调度时生效。
	(Optional) */
	TaskPriority int `json:"taskPriority"`
}

type JobDetailInfoForJob

type JobDetailInfoForJob struct {

	/* 训练任务ID。 (Optional) */
	JobId string `json:"jobId"`

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

	/* 训练任务的状态。取值范围如下:
	`queuing`:`排队中`
	`pending`:`启动中`
	`failed`:`失败`
	`running`:`运行中`
	`stopping`:`停止中`
	`stopped`:`停止`
	`success`:`成功`
	`partial-success`:`部分成功`(仅 Batch 任务)
	`deleting`: `删除中`
	`rolling-back`:`回滚中`
	`rolled-back`:`已回滚`
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型。可选值如下:
	- `resource-failed`: 节点故障。
	- `task-failed`: 任务失败。
	- `environment-failed`: 算力健康检测不通过。
	- `task-hang`: 任务卡住。
	- `process-inspection-failed`: 进程巡检失败。
	- `task-evict`: 任务副本被抢占或归还。
	 (Optional) */
	FailureType string `json:"failureType"`

	/* 训练任务失败原因。详细描述失败原因信息。
	(Optional) */
	FailureReason string `json:"failureReason"`

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

	/* 任务类型。 (Optional) */
	JobType string `json:"jobType"`

	/* Batch 任务开始调度的最小副本数;非 Batch 任务不返回。 (Optional) */
	MinAvailable int `json:"minAvailable"`

	/* Batch 任务的逻辑副本状态统计;非 Batch 任务不返回。 (Optional) */
	BatchSummary BatchSummaryForJob `json:"batchSummary"`

	/* 是否为用户训练主容器开启容器特权模式。 (Optional) */
	Privileged bool `json:"privileged"`

	/* 是否为安全训练任务。 (Optional) */
	SecJob bool `json:"secJob"`

	/* 是否支持导出模型。 (Optional) */
	SupportExportModel bool `json:"supportExportModel"`

	/* 持续时间,单位为秒。 (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"`

	/* 存储空间配置列表(外部共享存储,JSON 字符串)。 (Optional) */
	StorageSpaces string `json:"storageSpaces"`

	/* 存储空间配置列表(外部共享存储:oss/cfs/jpfs)。 (Optional) */
	StorageSpacesObject []StorageSpaceDetailForJob `json:"storageSpacesObject"`

	/* 本地存储挂载配置。未开启时为 null。
	(Optional) */
	LocalStorage LocalStorageDetailForJob `json:"localStorage"`

	/* 数据集。 (Optional) */
	Datasets []DatasetResultForJob `json:"datasets"`

	/* 科技数据集列表,返回训练容器的只读挂载及存储配置信息。 (Optional) */
	TechDatasets []TechDatasetResultForJob `json:"techDatasets"`

	/* 模型。 (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"`

	/* 出公网配置(任务级,公共资源池和共享资源池训练任务生效)。未配置时为 null。
	(Optional) */
	InternetEgress InternetEgressForJob `json:"internetEgress"`

	/* 框架高级配置;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"`

	/* 任务优先级。共享资源池创建时必填,范围 `1..9`。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 是否开启性能分析。

	**取值说明:**
	- `true`:已开启性能分析
	- `false`:未开启性能分析
	- `null`:该任务类型不支持性能分析

	**注意:** 仅 `jobType` 为 `pytorch` 的任务返回该字段的布尔值,其他任务类型返回 `null`。
	 (Optional) */
	ProfilingEnable bool `json:"profilingEnable"`

	/* 归属用户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 JobExecutionForDescribeJobExecutions

type JobExecutionForDescribeJobExecutions struct {

	/* 任务执行ID,唯一标识一个任务执行。
	(Optional) */
	JobExecutionId string `json:"jobExecutionId"`

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

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

	/* 计划运行时间,精确到秒。示例:2026-05-29 10:10:10
	(Optional) */
	ScheduledTime string `json:"scheduledTime"`

	/* 计划运行时间-1天,精确到天。示例:2026-05-28
	(Optional) */
	ScheduledMinusOneDay string `json:"scheduledMinusOneDay"`

	/* 任务执行的状态。
	(Optional) */
	State string `json:"state"`

	/* 任务执行的开始时间。
	(Optional) */
	StartTime string `json:"startTime"`

	/* 任务执行的结束时间。
	(Optional) */
	EndTime string `json:"endTime"`

	/* 任务执行的运行时长(秒)。
	(Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 资源配置信息。 (Optional) */
	Resource ResourceForDescribeJobExecutions `json:"resource"`
}

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`:成功,训练任务正常完成
	- `partial-success`:部分成功,仅 Batch 任务返回;有副本成功且有副本失败
	- `failed`:失败,训练任务执行失败
	- `stopping`:停止中,正在执行停止操作
	- `stopped`:已停止,任务已被手动停止
	- `deleting`:删除中,正在执行删除操作
	- `rolling-back`:回滚中,正在执行回滚操作
	- `rolled-back`:已回滚,回滚操作完成
	 (Optional) */
	State string `json:"state"`

	/* 训练任务失败类型。

	**可选值:**
	- `resource-failed`:节点故障
	- `task-failed`:任务失败
	- `environment-failed`:算力健康检测不通过
	- `task-hang`:任务卡住
	- `process-inspection-failed`:进程巡检失败
	- `task-evict`:任务副本被调度器抢占或跨队列归还
	 (Optional) */
	FailureType string `json:"failureType"`

	/* 训练任务失败原因的详细描述。
	(Optional) */
	FailureReason string `json:"failureReason"`

	/* 重启次数,记录任务因异常而自动重启的次数。

	**说明:** 仅当启用了重启策略时才会增加
	 (Optional) */
	RestartCount int `json:"restartCount"`

	/* 训练框架类型。

	**可选值:** `pytorch`, `ray`, `batch`
	 (Optional) */
	JobType string `json:"jobType"`

	/* 是否为用户训练主容器开启容器特权模式。 (Optional) */
	Privileged bool `json:"privileged"`

	/* 是否为安全训练任务。 (Optional) */
	SecJob bool `json:"secJob"`

	/* 是否支持导出模型。 (Optional) */
	SupportExportModel bool `json:"supportExportModel"`

	/* 任务运行时长,单位:秒。

	**说明:** 从任务开始运行到当前或结束的时间
	 (Optional) */
	RunningTimeInSec int `json:"runningTimeInSec"`

	/* 计费信息。

	**说明:** 私有资源池的资源无计费信息
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* **已废弃:** 请参考 `roleResource` 字段
	(Optional) */
	Replica int `json:"replica"`

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

	/* 队列类型。

	**可选值:**
	- `public`:公共资源池
	- `exclusive`:共享资源池
	- `private`:专属资源池
	- `security`:安全异构节点池
	- `sec-vm`:安全云主机节点池
	 (Optional) */
	QueueType string `json:"queueType"`

	/* 公共资源池或共享资源池的规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格描述。 (Optional) */
	FlavorInfo interface{} `json:"flavorInfo"`

	/* 任务优先级。共享资源池取值范围为 `1..9`;未配置优先级时返回 `0`。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 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"`

	/* 出公网配置(任务级,公共资源池和共享资源池训练任务生效)。未配置时为 null。
	(Optional) */
	InternetEgress InternetEgressForJob `json:"internetEgress"`

	/* 实例状态统计信息。

	包含总实例数、运行中实例数、异常实例数等。
	 (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"`

	/* 主账号。 (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~256个字符
	- 支持字符:中文、大小写字母、数字、英文中划线 "-" 和英文下划线 "_"
	- 同一工作空间内名称不能重复

	**示例:**
	- `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 框架,适用于分布式计算、强化学习
	- `batch`:批量任务,多个同规格 Worker 独立执行

	**注意:** 大小写敏感,必须使用小写
	*/
	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"`

	/* Batch 任务的最小可调度副本数,范围为 `[1, roleResource.roles[0].count]`;非 Batch 任务不传。 (Optional) */
	MinAvailable *int `json:"minAvailable"`

	/* 任务优先级,取值范围 `1..9`。

	- 共享资源池:创建时必填,仅校验取值范围
	- 公共资源池:不支持配置,传入任意值均拒绝
	- 其他资源队列:可选,按队列优先级策略校验
	 (Optional) */
	TaskPriority *int `json:"taskPriority"`

	/* 环境变量列表,用于向训练脚本传递配置参数。

	**使用场景:**
	- 传递训练参数(如学习率、批次大小)
	- 配置框架参数(如 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`:京东云并行文件系统,高并发场景优化

	**使用场景:**
	- 挂载训练数据目录
	- 挂载输出目录保存模型和日志
	- 挂载共享存储用于分布式训练

	**说明:** 训练节点本地临时盘请使用顶层字段 `localStorage`,不要放在本列表中。
	 (Optional) */
	StorageSpaces []StorageSpaceParamForJob `json:"storageSpaces"`

	/* 本地存储挂载配置,与 `storageSpaces` / `datasets` / `models` 平级。

	在训练节点本地高速盘上为训练容器分配一块临时空间,仅支持专属资源池,每个任务最多一个。
	字段定义见 `localStorageParamForJob`。未开启时不传本字段。
	 (Optional) */
	LocalStorage *LocalStorageParamForJob `json:"localStorage"`

	/* 数据集配置列表,用于挂载已创建的数据集到训练容器。

	**优势:**
	- 支持数据集版本管理
	- 支持公开/私有数据集
	- 自动处理存储挂载

	**使用场景:**
	- 挂载训练数据集
	- 挂载验证数据集
	- 挂载测试数据集
	 (Optional) */
	Datasets []DatasetParamForJob `json:"datasets"`

	/* 科技数据集配置列表,用于将科技数据集只读挂载到训练容器,仅限京东内部用户使用。

	科技数据集固定使用 OSS 并以只读模式挂载,存储信息由服务端根据数据集版本查询,调用方无需传入。
	 (Optional) */
	TechDatasets []TechDatasetParamForJob `json:"techDatasets"`

	/* 模型配置列表,用于挂载预训练模型或检查点文件。

	**使用场景:**
	- 加载预训练模型进行迁移学习
	- 加载检查点继续训练
	- 挂载基础模型进行微调
	 (Optional) */
	Models []ModelParamForJob `json:"models"`

	/* 角色资源配置信息,用于配置不同角色的节点资源。

	**适用场景:**
	- Ray 分布式训练(必须配置 Head 和 Worker)
	- PyTorch 分布式训练(可配置不同规格的 Worker)
	- Batch 批量任务(必须且只能配置一个 Worker,`count` 为副本总数)
	 (Optional) */
	RoleResource *RoleResourceParamForJob `json:"roleResource"`

	/* 是否为用户训练主容器开启容器特权模式,默认值为 `false`。

	**开启条件:**
	- 仅支持工作空间绑定的资源队列,公共资源池和共享资源池不支持
	- 仅支持整机 GPU 任务:`Ascend` 前缀型号要求单实例申请 16 卡,其他非空 GPU 型号要求单实例申请 8 卡
	- Ray 任务的 Head 和全部 Worker 角色都必须满足整机条件

	不满足开启条件时,创建接口返回参数错误,不会静默降级为 `false`。
	 (Optional) */
	Privileged *bool `json:"privileged"`

	/* 出公网配置(任务级,公共资源池和共享资源池训练任务生效)。不需要出公网时不传此参数。
	(Optional) */
	InternetEgress *InternetEgressForJob `json:"internetEgress"`

	/* 框架高级配置,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"`

	/* 公共资源池或共享资源池排队超时时间,单位:分钟。

	**取值范围:** 5 ~ 1440

	**默认值:** 5

	**说明:**
	- 仅公共资源池和共享资源池训练任务生效
	- 排队超过此时间后,任务将自动回滚为创建失败
	 (Optional) */
	QueuingTimeoutMinutes *int `json:"queuingTimeoutMinutes"`

	/* 用户自定义标签,用于资源分类和筛选。

	**限制:**
	- 最多支持 10 个标签
	- key 不能以 `jrn:` 或 `jdc-` 开头
	- key 支持中文、大小写英文、数字及符号:`\_.,:\/=+-@`

	**使用场景:**
	- 标记项目或团队
	- 成本分账
	- 资源分类管理
	 (Optional) */
	UserTags []JobTag `json:"userTags"`

	/* 资源组ID,用于将任务归属到特定的资源组进行管理。

	**使用场景:**
	- 按项目隔离资源
	- 按团队分配资源配额
	- 资源使用统计和计费
	 (Optional) */
	ResourceGroupId *string `json:"resourceGroupId"`

	/* 是否启用性能分析。(仅支持pytorch训练任务)

	**默认值:** `false`(禁用)
	**使用场景:**
	- 性能调优
	- 资源瓶颈分析
	- 模型训练优化
	 (Optional) */
	ProfilingEnable *bool `json:"profilingEnable"`
}

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 Jpfs

type Jpfs struct {

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

	/* 云端JPFS文件系统ID (Optional) */
	FileSystemId string `json:"fileSystemId"`

	/* 文件系统名称 (Optional) */
	Name string `json:"name"`

	/* 所属用户PIN (Optional) */
	Pin string `json:"pin"`

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

	/* 文件系统类型 (Optional) */
	FileSystemType string `json:"fileSystemType"`

	/* 产品类型 (Optional) */
	ProductType string `json:"productType"`

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 是否为边缘网络作用域 (Optional) */
	Edge bool `json:"edge"`

	/* 文件系统规格 (Optional) */
	Spec JpfsSpec `json:"spec"`

	/* 文件系统状态 (Optional) */
	Status string `json:"status"`

	/* JPFS资源计费配置 (Optional) */
	BillingInfo JpfsBillingInfo `json:"billingInfo"`

	/* 商业平台返回的JPFS到期时间原始值;无有效到期时间时返回空字符串 (Optional) */
	ChargeExpiredTime string `json:"chargeExpiredTime"`

	/* 商业平台返回的JPFS释放时间原始值;无有效释放时间时返回空字符串 (Optional) */
	ChargeReleaseTime string `json:"chargeReleaseTime"`

	/* RDMA协议挂载目标ID (Optional) */
	RdmaMountTargetId string `json:"rdmaMountTargetId"`

	/* TCP协议挂载目标ID,仅general规格返回 (Optional) */
	TcpMountTargetId string `json:"tcpMountTargetId"`

	/* NFS协议挂载目标ID,仅intelligent规格返回 (Optional) */
	NfsMountTargetId string `json:"nfsMountTargetId"`

	/* 商业平台购买单ID (Optional) */
	BuyId string `json:"buyId"`

	/* 商业平台订单号 (Optional) */
	OrderNumber string `json:"orderNumber"`

	/* VPC ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 子网ID (Optional) */
	SubnetId string `json:"subnetId"`

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

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

	/* 创建时间,Unix秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 更新时间,Unix秒 (Optional) */
	UpdateTime int64 `json:"updateTime"`
}

type JpfsAzMap

type JpfsAzMap struct {

	/* 可用区名称 (Optional) */
	AzName string `json:"azName"`

	/* 逻辑可用区 (Optional) */
	Laz string `json:"laz"`

	/* 物理可用区 (Optional) */
	Paz string `json:"paz"`

	/* 可用区所属云厂商 (Optional) */
	CloudManufacturer string `json:"cloudManufacturer"`

	/* 是否可见,0=不可见,1=可见 (Optional) */
	Visible int `json:"visible"`

	/* 是否可售,0=可售,1=已售罄 (Optional) */
	CanSale int `json:"canSale"`

	/* 可用区类别,AZ-center或EZ-edge (Optional) */
	ZoneType string `json:"zoneType"`

	/* 可用区排序 (Optional) */
	SerialNumber int `json:"serialNumber"`
}

type JpfsAzMapping

type JpfsAzMapping struct {

	/* 逻辑地域编码 (Optional) */
	RegionCode string `json:"regionCode"`

	/* 逻辑地域名称 (Optional) */
	RegionName string `json:"regionName"`

	/* 地域别名 (Optional) */
	Alias string `json:"alias"`

	/* 是否可见,0=不可见,1=可见 (Optional) */
	Visible int `json:"visible"`

	/* 物理地域和云厂商集合 (Optional) */
	PhysicRegionCodes []JpfsPhysicRegionCode `json:"physicRegionCodes"`

	/* 可用区集合 (Optional) */
	AzMapList []JpfsAzMap `json:"azMapList"`

	/* 地域排序 (Optional) */
	SerialNumber int `json:"serialNumber"`

	/* 合作模式,0=公有云,1=多云纳管,2=渠道转售,3=渠道分销 (Optional) */
	CooperateType int `json:"cooperateType"`
}

type JpfsAzMappingResult

type JpfsAzMappingResult struct {

	/* 可用区映射列表 (Optional) */
	AzMappingVos []JpfsAzMapping `json:"azMappingVos"`
}

type JpfsBillingInfo

type JpfsBillingInfo struct {

	/* 计费模式 (Optional) */
	ChargeMode string `json:"chargeMode"`

	/* 计费时长单位 (Optional) */
	ChargeUnit string `json:"chargeUnit"`

	/* 计费时长 (Optional) */
	ChargeDuration int `json:"chargeDuration"`
}

type JpfsDetailForJob

type JpfsDetailForJob struct {

	/* jpfs ID。示例:fs-11******us。 (Optional) */
	Id string `json:"id"`

	/* JPFS 挂载点 ID,指定要使用的挂载点。

	**使用场景:** 当 JPFS 文件系统有多个挂载点时,可通过此字段指定具体的挂载点。

	**选点规则:** 如果不指定,系统将根据节点池类型和 JPFS 规格自动选择匹配的挂载点:
	- 异构节点池(combined):选择 RDMA 协议的挂载点
	- 云主机节点池(vm):智能型规格选择 NFS 协议,通用型规格选择 TCP 协议

	**示例:** `mt-xxxxxxxx`
	 (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* 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 JpfsFileSystemType

type JpfsFileSystemType struct {

	/* 文件系统类型,例如advance_100、advance_200 (Optional) */
	FileSystemType string `json:"fileSystemType"`

	/* 文件系统最大容量,单位GB (Optional) */
	CapacityMax int `json:"capacityMax"`

	/* 文件系统最小容量,单位GB (Optional) */
	CapacityMin int `json:"capacityMin"`

	/* 文件系统扩容步长,单位GB (Optional) */
	CapacityStep int `json:"capacityStep"`

	/* 可用区列表 (Optional) */
	AzInfo []JpfsFileSystemTypeAzInfo `json:"azInfo"`
}

type JpfsFileSystemTypeAzInfo

type JpfsFileSystemTypeAzInfo struct {

	/* 可用区名称 (Optional) */
	Az string `json:"az"`

	/* true表示可售,false表示不可售 (Optional) */
	InStock string `json:"inStock"`
}

type JpfsFileSystemTypeDetail

type JpfsFileSystemTypeDetail struct {

	/* 文件系统类型,例如advance_100、advance_200、advance_400 (Optional) */
	FileSystemType string `json:"fileSystemType"`

	/* 是否可售 (Optional) */
	InStock bool `json:"inStock"`
}

type JpfsFileSystemTypesResult

type JpfsFileSystemTypesResult struct {

	/* 规格信息列表 (Optional) */
	SpecificationInfos []JpfsSpecificationInfo `json:"specificationInfos"`

	/* 结果数量 (Optional) */
	TotalCount int `json:"totalCount"`
}

type JpfsForCreateJobDefinition

type JpfsForCreateJobDefinition struct {

	/* JPFS 文件系统 ID。

	**示例:** `fs-11******us`
	 */
	Id string `json:"id"`
}

type JpfsForDescribeJobDefinition

type JpfsForDescribeJobDefinition struct {

	/* JPFS 文件系统 ID。

	**示例:** `fs-11******us`
	 (Optional) */
	Id string `json:"id"`
}

type JpfsForDescribeJobDefinitions

type JpfsForDescribeJobDefinitions struct {

	/* JPFS 文件系统 ID。
	(Optional) */
	Id string `json:"id"`
}

type JpfsForUpdateJobDefinition

type JpfsForUpdateJobDefinition struct {

	/* JPFS 文件系统 ID。

	**示例:** `fs-11******us`
	 (Optional) */
	Id string `json:"id"`
}

type JpfsHpcClusterAzInfoDetail

type JpfsHpcClusterAzInfoDetail struct {

	/* 可用区名称 (Optional) */
	Az string `json:"az"`

	/* 可用HPC物理集群列表 (Optional) */
	HpcClusterInfos []JpfsHpcClusterInfoDetail `json:"hpcClusterInfos"`
}

type JpfsHpcClusterInfoDetail

type JpfsHpcClusterInfoDetail struct {

	/* HPC物理集群列表 (Optional) */
	HpcClusters []JpfsHpcClusterItem `json:"hpcClusters"`

	/* 文件系统规格列表 (Optional) */
	Specifications []JpfsSpecificationHpcDetail `json:"specifications"`
}

type JpfsHpcClusterItem

type JpfsHpcClusterItem struct {

	/* HPC物理集群ID (Optional) */
	HpcClusterId string `json:"hpcClusterId"`

	/* HPC物理集群名称 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`
}

type JpfsHpcClustersDetailResult

type JpfsHpcClustersDetailResult struct {

	/* 可用区信息列表 (Optional) */
	AzInfos []JpfsHpcClusterAzInfoDetail `json:"azInfos"`

	/* 可用区信息总数 (Optional) */
	TotalCount int `json:"totalCount"`
}

type JpfsNetworkByNodePoolResult

type JpfsNetworkByNodePoolResult struct {

	/* 节点池所属安全网络的VPC ID列表;正常情况下返回0个或1个 (Optional) */
	VpcIds []string `json:"vpcIds"`

	/* 节点池所属安全网络的JPFS TCP挂载子网ID列表;正常情况下返回0个或1个 (Optional) */
	SubnetIds []string `json:"subnetIds"`
}

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 挂载点 ID,指定要使用的挂载点。

	**使用场景:** 当 JPFS 文件系统有多个挂载点时,可通过此字段指定具体的挂载点。

	**选点规则:** 如果不指定,系统将根据节点池类型和 JPFS 规格自动选择匹配的挂载点:
	- 异构节点池(combined):选择 RDMA 协议的挂载点
	- 云主机节点池(vm):智能型规格选择 NFS 协议,通用型规格选择 TCP 协议

	**示例:** `mt-xxxxxxxx`
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 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 挂载点 ID,指定要使用的挂载点。

	**使用场景:** 当 JPFS 文件系统有多个挂载点时,可通过此字段指定具体的挂载点。

	**选点规则:** 如果不指定,系统将根据节点池类型和 JPFS 规格自动选择匹配的挂载点:
	- 异构节点池(combined):选择 RDMA 协议的挂载点
	- 云主机节点池(vm):智能型规格选择 NFS 协议,通用型规格选择 TCP 协议

	**示例:** `mt-xxxxxxxx`
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 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 JpfsPhysicRegionCode

type JpfsPhysicRegionCode struct {

	/* 物理地域编码 (Optional) */
	PhysicRegionCode string `json:"physicRegionCode"`

	/* 地域所属云厂商 (Optional) */
	CloudManufacturer string `json:"cloudManufacturer"`
}

type JpfsSpec

type JpfsSpec struct {

	/* 文件系统描述 (Optional) */
	Description string `json:"description"`

	/* 文件系统容量 (Optional) */
	Capacity int `json:"capacity"`

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

	/* 用户标签 (Optional) */
	UserTags []JpfsTag `json:"userTags"`

	/* HPC集群名称,多个值按JPFS服务约定分隔 (Optional) */
	HpcClusterNames string `json:"hpcClusterNames"`

	/* JPFS规格编码;intelligent仅支持RDMA挂载,general同时支持RDMA和TCP挂载  */
	Specification string `json:"specification"`
}

type JpfsSpecificationHpcDetail

type JpfsSpecificationHpcDetail struct {

	/* 文件系统规格,支持intelligent和general (Optional) */
	Specification string `json:"specification"`

	/* 可用文件系统类型列表 (Optional) */
	FileSystemTypes []JpfsFileSystemTypeDetail `json:"fileSystemTypes"`
}

type JpfsSpecificationInfo

type JpfsSpecificationInfo struct {

	/* 文件系统规格,支持intelligent和general (Optional) */
	Specification string `json:"specification"`

	/* 文件系统类型列表 (Optional) */
	FileSystemTypes []JpfsFileSystemType `json:"fileSystemTypes"`
}

type JpfsTag

type JpfsTag struct {

	/* 标签键  */
	Key string `json:"key"`

	/* 标签值 (Optional) */
	Value string `json:"value"`
}

type K8sEventInfoForGetJobExecutionK8sEvents

type K8sEventInfoForGetJobExecutionK8sEvents struct {

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

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

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

	/* 任务执行ID(Job) 或 PodName(Pod)。 (Optional) */
	ResourceId string `json:"resourceId"`

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

	/* 事件消息。 (Optional) */
	Message string `json:"message"`

	/* 事件类型。 (Optional) */
	Type string `json:"type"`

	/* 事件最近发生时间。 (Optional) */
	LastTimestamp string `json:"lastTimestamp"`
}

type KV

type KV struct {

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

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

type LabelsObject

type LabelsObject struct {

	/* 精调实验计费项中的模型命名。仅一个value值 (Optional) */
	FinetuneModelBillingItem []string `json:"finetuneModelBillingItem"`

	/* 精调实验关注(模型系列,如Llama系列-前端使用)。仅一个value值 (Optional) */
	FinetuneModelSeries []string `json:"finetuneModelSeries"`

	/* 精调实验关注(模型版本系列,如Llama2、Llama3-后端使用)。仅一个value值 (Optional) */
	FinetuneModelTemplate []string `json:"finetuneModelTemplate"`

	/* 支持平台任务类型,可设置多个。可选值:
	- notebook:Notebook
	- trainjob:训练任务
	- finetune:精调实验
	- llm-deploy:在线服务-LLM部署
	- custom-deploy:在线服务-自定义部署
	 (Optional) */
	SupportTask []string `json:"supportTask"`

	/* 模型icon地址。仅一个value值 (Optional) */
	Icon []string `json:"icon"`

	/* 其他关键词,可设置多个 (Optional) */
	Keyword []string `json:"keyword"`

	/* 模型参数。仅一个value值 (Optional) */
	ParameterSize []string `json:"parameterSize"`

	/* 模型许可类型。仅一个value值 (Optional) */
	License []string `json:"license"`

	/* 品牌/系列。仅一个value值 (Optional) */
	Provider []string `json:"provider"`

	/* 场景,可设置多个 (Optional) */
	Scenario []string `json:"scenario"`
}

type LbInfo

type LbInfo struct {

	/* 负载均衡实例ID。 (Optional) */
	LbId string `json:"lbId"`

	/* 监听端口,负载均衡监听此端口并转发到Notebook。 (Optional) */
	LbPort int `json:"lbPort"`

	/* 负载均衡类型,由所选负载均衡实例自动确定,用户无需也无法在请求中指定。

	## 取值
	- alb: 应用型负载均衡
	- nlb: 网络型负载均衡
	- dnlb: 分布式网络型负载均衡
	 (Optional) */
	LbType string `json:"lbType"`
}

type LbSpec

type LbSpec struct {

	/* 负载均衡实例ID,需要在京东云负载均衡产品中预先创建。

	## 要求
	- 私有资源池必填
	- 公共资源池、安全队列(`queueType=security`或`sec-vm`)均无需指定(系统自动分配),传入会被忽略
	- 负载均衡需要与资源队列在同一VPC下
	- 支持四层(TCP)负载均衡
	 (Optional) */
	LbId *string `json:"lbId"`

	/* 监听端口,负载均衡监听此端口并转发到Notebook。

	## 端口范围
	- 私有资源池必填
	- 公共资源池、安全队列(`queueType=security`或`sec-vm`)均无需指定(系统自动分配),传入会被忽略
	- 1-65534
	- 需要指定一个未被占用的空闲可用端口
	- 建议使用1024以上端口
	 (Optional) */
	LbPort *int `json:"lbPort"`

	/* 是否开启公网访问,对公共资源池与安全队列(`queueType=security`或`sec-vm`)有效。

	## 使用说明
	- 公共资源池: 为true时表示需要公网访问,系统会自动分配LB,无需指定lbId和lbPort
	- 安全队列(`queueType=security`或`sec-vm`): 为true时即开启SSH访问,系统会自动分配LB与端口(LB取自该安全队列所属集群绑定的负载均衡),无需也不应指定lbId和lbPort
	- 普通私有资源池: 无效,需要通过lbId和lbPort指定负载均衡
	- 默认为false
	 (Optional) */
	LbEnable *bool `json:"lbEnable"`
}

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 ListDeviceRequest

type ListDeviceRequest struct {

	/* 关键字,支持显卡 ID、节点 IP、节点名称模糊查询 (Optional) */
	Keyword string `json:"keyword"`

	/* 显卡型号,支持批量查询 (Optional) */
	GpuModel []string `json:"gpuModel"`

	/* 节点ID,支持节点名称和节点表InstanceId查询 (Optional) */
	NodeId string `json:"nodeId"`

	/* 节点名称,精确查询 (Optional) */
	NodeName string `json:"nodeName"`

	/* 节点IP,精确查询 (Optional) */
	NodeIp string `json:"nodeIp"`

	/* 节点规格,对应节点表InstanceConfig,支持批量查询 (Optional) */
	NodeSpec []string `json:"nodeSpec"`

	/* 显卡ID(UUID),精确查询 (Optional) */
	Uuid string `json:"uuid"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

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

	/* 运行状态,idle为空闲,allocated为已分配,unavailable为不可用 (Optional) */
	RunStatus string `json:"runStatus"`

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 设备状态,active为活跃,confined为受限,error为故障,支持批量查询 (Optional) */
	DeviceStatus []string `json:"deviceStatus"`

	/* 节点状态,对应节点表ReadyStatus,支持批量查询 (Optional) */
	NodeReadyStatus []string `json:"nodeReadyStatus"`

	/* 是否开启虚拟化,true为已开启,false为已关闭 (Optional) */
	Virtualized string `json:"virtualized"`

	/* 排序字段 (Optional) */
	OrderBy string `json:"orderBy"`

	/* 升降序 (Optional) */
	OrderType string `json:"orderType"`
}

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 LiveMigrateNode

type LiveMigrateNode struct {

	/* 必须选择多少张卡 (Optional) */
	MustDeviceCount int64 `json:"mustDeviceCount"`

	/*  (Optional) */
	Node NodeInfo `json:"node"`

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

type LiveMigrateStatistics

type LiveMigrateStatistics struct {

	/*  (Optional) */
	TotalCount int `json:"totalCount"`

	/*  (Optional) */
	SuccessRate float32 `json:"successRate"`

	/*  (Optional) */
	MigratingCount int `json:"migratingCount"`

	/*  (Optional) */
	AverageDurationSeconds float32 `json:"averageDurationSeconds"`
}

type LiveMigrateTask

type LiveMigrateTask struct {

	/*  (Optional) */
	MigrateId string `json:"migrateId"`

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

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

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

	/*  (Optional) */
	TaskType string `json:"taskType"`

	/*  (Optional) */
	SubTaskId string `json:"subTaskId"`

	/*  (Optional) */
	TaskCreator string `json:"taskCreator"`

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

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

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

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

	/*  (Optional) */
	BeforeNode NodeInfo `json:"beforeNode"`

	/*  (Optional) */
	AfterNode NodeInfo `json:"afterNode"`

	/*  (Optional) */
	TargetDeviceModel string `json:"targetDeviceModel"`

	/*  (Optional) */
	RatioPerGpu float32 `json:"ratioPerGpu"`

	/*  (Optional) */
	MemoryPerGpu float32 `json:"memoryPerGpu"`

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

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

	/*  (Optional) */
	CreateTimestamp int `json:"createTimestamp"`

	/*  (Optional) */
	FinishedTimestamp int `json:"finishedTimestamp"`

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

	/*  (Optional) */
	NodeGroupName string `json:"nodeGroupName"`

	/*  (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 LocalStorageDetailForJob

type LocalStorageDetailForJob struct {

	/* 本地存储容量,单位:GB。示例:100。 (Optional) */
	Size int `json:"size"`

	/* 挂载点配置。示例:/mnt/tempstorage。
	建议挂载到/mnt/开头的路径下,不支持挂载到系统目录及平台预置路径(/dev/shm、/mnt/configmap、/mnt/joybuilder-training)。
	 (Optional) */
	MountPath string `json:"mountPath"`
}

type LocalStorageParamForJob

type LocalStorageParamForJob struct {

	/* 本地存储容量,单位:GB,按每个 Pod 计算(多副本任务每个副本各自独立分配,互不共享)。

	**取值范围:** 10 ~ 350
	 */
	Size int `json:"size"`

	/* 挂载点配置,指定本地存储在容器内的挂载路径。

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

	**示例:**
	- `/mnt/tempstorage`

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

	**禁止挂载的平台预置路径:**
	`/dev/shm`, `/mnt/configmap`, `/mnt/joybuilder-training`
	*/
	MountPath string `json:"mountPath"`
}

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 LogResultData

type LogResultData struct {

	/* 结果类型,例如 streams (Optional) */
	ResultType string `json:"resultType"`

	/*  (Optional) */
	Stream LogStreamInfo `json:"stream"`

	/* 日志条目列表 (Optional) */
	Values []LogValueItem `json:"values"`
}

type LogStreamInfo

type LogStreamInfo struct {

	/* 产品名称 (Optional) */
	Product_name string `json:"product_name"`

	/* 实例名称 (Optional) */
	Instance_name string `json:"instance_name"`

	/* Pod 名称 (Optional) */
	Pod_name string `json:"pod_name"`

	/* 命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* 日志文件路径 (Optional) */
	FilePath string `json:"filePath"`
}

type LogValueItem

type LogValueItem struct {

	/* 日志时间戳及日志内容 (Optional) */
	Value string `json:"value"`
}

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"`

	/* 用户指定的cfs或者jpfs挂载点 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 是否只读挂载模型,仅当 `source=self` 且 `storageType=oss` 时生效,默认 `false`。
	开启后容器内对模型挂载路径的写操作将被拒绝(K8s 原生 volumeMount.readOnly),可防止业务进程误写覆盖 OSS 上的模型文件。
	公共模型、本地模型(hostpath)、私有 CFS/JPFS 模型本字段忽略。
	 (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 ModelExportListItem

type ModelExportListItem struct {

	/* 导出任务ID。 (Optional) */
	ExportId string `json:"exportId"`

	/* 关联的训练任务ID。 (Optional) */
	ResourceId string `json:"resourceId"`

	/* 安全存储文件系统ID,表示模型的来源安全存储。

	**示例:** `fs-11******us`
	 (Optional) */
	SecureId string `json:"secureId"`

	/* 安全存储名称,表示模型的来源安全存储名称。 (Optional) */
	SecureName string `json:"secureName"`

	/* 导出目标存储信息,模型导出的目标存储配置。 (Optional) */
	TargetStorage ModelExportStorageInfo `json:"targetStorage"`

	/* 导出目录,安全存储output下的子目录。

	**示例:** `/output/my-model/`
	 (Optional) */
	ExportDir string `json:"exportDir"`

	/* 模型格式。

	**可选值:**
	- `HuggingFace`:HuggingFace 格式
	- `SavedModel`:TensorFlow SavedModel 格式
	- `TorchScript`:PyTorch TorchScript 格式
	- `ONNX`:ONNX 格式
	- `XGBoost`:XGBoost 格式
	- `Frozen`:TensorFlow Frozen 格式
	- `Caffe`:Caffe 格式
	- `PMML`:PMML 格式
	- `TensorRT`:TensorRT 格式
	 (Optional) */
	ModelFormat string `json:"modelFormat"`

	/* 模型框架,与模型格式联动。

	**联动规则:**
	- `HuggingFace` → SafeTensor、Transformers、Diffusers
	- `SavedModel` → TensorFlow
	- `TorchScript` → PyTorch
	- `ONNX` → ONNX
	- `XGBoost` → XGBoost
	- `Frozen` → TensorFlow
	- `Caffe` → Caffe
	- `PMML` → PMML
	- `TensorRT` → TensorRT
	 (Optional) */
	ModelFramework string `json:"modelFramework"`

	/* 模型参数量,单位为B(十亿)。支持输入实际模型参数量,如 7 表示 7B、14 表示 14B、123.4 表示 123.4B 等。

	**约束:** 最大值为 1000。

	**示例:** `7`、`14`、`123.4`
	 (Optional) */
	ModelParams int `json:"modelParams"`

	/* 导出任务状态。

	**可选值:**
	- `pending`:等待中,导出任务已创建但尚未开始
	- `exporting`:导出中,正在导出模型
	- `stopping`:停止中,导出任务正在停止
	- `stopped`:已停止,导出任务已被手动停止
	- `completed`:已完成,模型导出成功
	- `failed`:失败,模型导出失败
	 (Optional) */
	State string `json:"state"`

	/* 失败或停止原因,仅当状态为 failed 或 stopped 时有值。 (Optional) */
	Reason string `json:"reason"`

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

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

type ModelExportParam

type ModelExportParam struct {

	/* 目标OSS存储配置,指定模型导出的目标存储位置。  */
	TargetStorage *ModelExportStorageInfo `json:"targetStorage"`

	/* 导出目录,指定安全存储output下的子目录。

	**默认值:** 不传时默认为 `/output/`。

	**约束:** 必须以 `/output/` 为前缀。

	**示例:** `/output/my-model/`
	 (Optional) */
	ExportDir *string `json:"exportDir"`

	/* 模型格式。

	**可选值:**
	- `HuggingFace`:HuggingFace 格式
	- `SavedModel`:TensorFlow SavedModel 格式
	- `TorchScript`:PyTorch TorchScript 格式
	- `ONNX`:ONNX 格式
	- `XGBoost`:XGBoost 格式
	- `Frozen`:TensorFlow Frozen 格式
	- `Caffe`:Caffe 格式
	- `PMML`:PMML 格式
	- `TensorRT`:TensorRT 格式
	*/
	ModelFormat string `json:"modelFormat"`

	/* 模型框架,与模型格式联动。

	**联动规则:**
	- `HuggingFace` → SafeTensor、Transformers、Diffusers
	- `SavedModel` → TensorFlow
	- `TorchScript` → PyTorch
	- `ONNX` → ONNX
	- `XGBoost` → XGBoost
	- `Frozen` → TensorFlow
	- `Caffe` → Caffe
	- `PMML` → PMML
	- `TensorRT` → TensorRT
	*/
	ModelFramework string `json:"modelFramework"`

	/* 模型参数量,单位为B(十亿)。支持输入实际模型参数量,如 7 表示 7B、14 表示 14B、123.4 表示 123.4B 等。

	**约束:** 最大值为 1000。

	**示例:** `7`、`14`、`123.4`
	 */
	ModelParams int `json:"modelParams"`
}

type ModelExportStorageInfo

type ModelExportStorageInfo struct {

	/* OSS服务的endpoint地址

	**示例:** `oss.cn-north-1.jdcloud-oss.com`
	 */
	Endpoint string `json:"endpoint"`

	/* OSS Bucket 名称。

	**注意:** 需确保目标Bucket已存在且有写入权限。
	 */
	Bucket string `json:"bucket"`

	/* 存储路径(不含Bucket名称),为相对路径。

	**默认值:** 不传时默认导出到 Bucket 根目录。

	**示例:** `models/export-abc123/model.tar.gz`
	 (Optional) */
	Path *string `json:"path"`
}

type ModelForCreateJobDefinition

type ModelForCreateJobDefinition struct {

	/* 模型可见性,决定模型的访问权限。

	**可选值:**
	- `public`:公开模型,工作空间所有成员可使用
	- `private`:私有模型,仅创建者和空间管理员可使用
	*/
	ModelVisibility string `json:"modelVisibility"`

	/* 模型ID,唯一标识一个模型。

	**示例:** `model-11******us`
	 */
	ModelId string `json:"modelId"`

	/* 模型版本,指定要使用的模型版本。

	**示例:**
	- 版本号:`v1`, `v2`
	*/
	ModelVersion string `json:"modelVersion"`

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

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

	**示例:**
	- 预训练模型:`/mnt/models/m1`

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

	/* 是否以只读模式挂载模型。

	**只读模式:** 无法在挂载的模型目录中进行写操作
	 (Optional) */
	Readonly bool `json:"readonly"`
}

type ModelForDescribeJobDefinition

type ModelForDescribeJobDefinition struct {

	/* 模型可见性,决定模型的访问权限。

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

	/* 模型ID,唯一标识一个模型。

	**示例:** `model-11******us`
	 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型版本,指定要使用的模型版本。

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

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

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

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

	**示例:**
	- 预训练模型:`/mnt/models/m1`

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

	/* 是否以只读模式挂载模型。

	**只读模式:** 无法在挂载的模型目录中进行写操作
	 (Optional) */
	Readonly bool `json:"readonly"`
}

type ModelForDescribeJobDefinitions

type ModelForDescribeJobDefinitions struct {

	/* 模型可见性,决定模型的访问权限。

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

	/* 模型ID,唯一标识一个模型。

	**示例:** `model-11******us`
	 (Optional) */
	ModelId string `json:"modelId"`

	/* 模型版本,指定要使用的模型版本。
	(Optional) */
	ModelVersion string `json:"modelVersion"`

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

	/* 挂载点配置,指定模型在容器内的挂载路径。
	(Optional) */
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载模型。
	(Optional) */
	Readonly bool `json:"readonly"`
}

type ModelForUpdateJobDefinition

type ModelForUpdateJobDefinition 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/m1`

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

	/* 是否以只读模式挂载模型。

	**只读模式:** 无法在挂载的模型目录中进行写操作
	 (Optional) */
	Readonly bool `json:"readonly"`
}

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"`

	/* JPFS 挂载点 ID,指定模型使用的 JPFS 挂载点。

	**使用场景:** 当模型底层存储为 JPFS 且文件系统有多个挂载点时,可通过此字段指定具体的挂载点。

	**示例:** `mt-xxxxxxxx`
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* CFS 挂载点 IP 地址,指定模型使用的 CFS 挂载目标。

	**格式:** IPv4 地址

	**示例:** `192.168.0.1`

	**说明:**
	- 非必传参数
	- 如需指定特定挂载点,请传此参数
	 (Optional) */
	Host *string `json:"host"`
}

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-60****ui。 (Optional) */
	StorageId string `json:"storageId"`

	/* 标签。多个标签使用英文逗号拼接,每个标签格式 key:value。
	key值说明
	  - scenario 任务场景
	  - provider 品牌/系列
	  - license 模型许可类型
	  - parameterSize 模型大小
	  - keyword 其他关键词,可设置多个
	  - icon 模型icon地址。例如:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/Qwen3-235B-A22B-Instruct-2507/qwen-color.svg
	  - support.task 支持的任务模块,可设置多个,可选值:notebook、trainjob训练任务、finetune模型精调、distill模型蒸馏、simulation仿真任务
	  - finetune.model_template 精调关注(模型版本,如llama2、llama3)
	  - finetune.model_series 精调关注(模型系列,如llama、qwen)
	  - finetune.model_billing_item 精调实验计费项中的模型命名

	例如:scenario:文本生成,provider:DeepSeek,license:MIT,parameterSize:158.07B,icon:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/DeepSeek-V3.2/deepseek-color.svg,support.task:notebook,support.task:trainjob,support.task:custom-deploy
	 (Optional) */
	Labels string `json:"labels"`

	/* 模型介绍md文件。例如:https://yanxi-public-bj.s3.cn-north-1.jdcloud-oss.com/models/Qwen3-32B/README.md (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"`

	/* JPFS 挂载点 ID。 (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* CFS 挂载点 IP 地址。 (Optional) */
	Host string `json:"host"`

	/* 存储参数。 (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: `JPFS-ID:/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模型强制只读
	- 安全队列(`queueType=security`或`sec-vm`)上的实例:模型强制只读,详见`storageSpec.readonly`
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly *bool `json:"readonly"`

	/* 挂载点ID,仅对`storageType=jpfs`生效。

	## 使用场景
	- 当JPFS文件系统有多个挂载点时,可通过此字段指定具体的挂载点
	- 用于支持同一JPFS文件系统的多挂载点
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 挂载点IP,仅对`storageType=cfs`生效。

	## 使用场景
	- 当CFS文件系统有多个挂载点时,可通过此字段匹配同一CFS文件系统的多挂载点

	## 兼容逻辑
	- 不传时从`modelUrl`的格式(`ip:/path`)解析,兼容旧逻辑
	 (Optional) */
	Host *string `json:"host"`
}

type ModelSpecPrivate

type ModelSpecPrivate struct {

	/* 模型名称(创建【新模型】生效且必填)。
	命名规则:1~128字符,仅支持中文、大小写字母、数字、英文中划线“-”、英文下划线“_”和点 “.”。
	 (Optional) */
	ModelName *string `json:"modelName"`

	/* 模型ID(创建【新版本】生效且必填)。示例:model-yp****qu (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-60****ui (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"`

	/* 训练任务/精调实验等的运行记录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-60****ui (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"`

	/* 训练任务/精调实验等的运行记录id (Optional) */
	ExperimentRunId string `json:"experimentRunId"`

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

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

	/* 模型资源归属权限,支持(public,private)。 (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"`

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

type ModelsPublic

type ModelsPublic struct {

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

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

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

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

	/* 对象存储(OSS)域名 (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"`

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

	/* CFS/JPFS存储ID (Optional) */
	StorageId string `json:"storageId"`

	/* 标签。多个标签使用英文逗号拼接,每个标签格式 key:value。
	key值说明
	  - scenario 任务场景
	  - provider 品牌/系列
	  - license 模型许可类型
	  - parameterSize 模型大小
	  - keyword 其他关键词,可设置多个
	  - icon 模型icon地址。例如:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/Qwen3-235B-A22B-Instruct-2507/qwen-color.svg
	  - support.task 支持的任务模块,可设置多个,可选值:notebook:Notebook,trainjob:训练任务,finetune:精调实验,llm-deploy:在线服务-LLM部署,custom-deploy:在线服务-自定义部署
	  - finetune.model_template 精调关注(模型版本,如llama2、llama3)
	  - finetune.model_series 精调关注(模型系列,如llama、qwen)
	  - finetune.model_billing_item 精调实验计费项中的模型命名

	例如:scenario:文本生成,provider:DeepSeek,license:MIT,parameterSize:158.07B,icon:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/DeepSeek-V3.2/deepseek-color.svg,support.task:notebook,support.task:trainjob,support.task:custom-deploy
	 (Optional) */
	Labels string `json:"labels"`

	/* 标签map格式 (Optional) */
	LabelsMap interface{} `json:"labelsMap"`

	/* 标签对象。
	labels转化对象, key:value中key值如果有._会删除转发成驼峰式。 如aaa.bbb_ccc换成aaaBbbCcc
	 (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: `JPFS-ID:/dir-path` 或 `/dir-path`
	 (Optional) */
	DatasetUrl string `json:"datasetUrl"`

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

	## 挂载建议
	- 建议挂载到`/mnt/datasets/`开头的路径
	 (Optional) */
	MountPath string `json:"mountPath"`

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

	## 使用说明
	- 仅oss类型且self来源的数据集有效
	- public数据集强制只读
	- 安全队列(`queueType=security`或`sec-vm`)上的实例:数据集强制只读,详见`storageSpec.readonly`
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly bool `json:"readonly"`

	/* 挂载点ID,仅对`storageType=jpfs`生效。

	## 使用场景
	- 当JPFS文件系统有多个挂载点时,可通过此字段指定具体的挂载点
	- 用于支持同一JPFS文件系统的多挂载点
	 (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* 挂载点IP,仅对`storageType=cfs`生效。

	## 使用场景
	- 当CFS文件系统有多个挂载点时,可通过此字段匹配同一CFS文件系统的多挂载点

	## 兼容逻辑
	- 为空时从`datasetUrl`的格式(`ip:/path`)解析,兼容旧逻辑
	 (Optional) */
	Host string `json:"host"`
}

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: `JPFS-ID:/dir-path` 或 `/dir-path`
	 (Optional) */
	ModelUrl string `json:"modelUrl"`

	/* 挂载路径,模型在Notebook容器中的挂载位置。

	## 挂载建议
	- 建议挂载到`/mnt/models/`开头的路径
	 (Optional) */
	MountPath string `json:"mountPath"`

	/* 是否以只读模式挂载模型。

	## 使用说明
	- 仅oss类型且self来源的模型有效
	- public模型强制只读
	- 安全队列(`queueType=security`或`sec-vm`)上的实例:模型强制只读,详见`storageSpec.readonly`
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	 (Optional) */
	Readonly bool `json:"readonly"`

	/* 挂载点ID,仅对`storageType=jpfs`生效。

	## 使用场景
	- 当JPFS文件系统有多个挂载点时,可通过此字段指定具体的挂载点
	- 用于支持同一JPFS文件系统的多挂载点
	 (Optional) */
	MountTargetId string `json:"mountTargetId"`

	/* 挂载点IP,仅对`storageType=cfs`生效。

	## 使用场景
	- 当CFS文件系统有多个挂载点时,可通过此字段匹配同一CFS文件系统的多挂载点

	## 兼容逻辑
	- 为空时从`modelUrl`的格式(`ip:/path`)解析,兼容旧逻辑
	 (Optional) */
	Host string `json:"host"`
}

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 NbTechDatasetDetail

type NbTechDatasetDetail struct {

	/* 科技数据集来源,public表示公共数据集,self表示工作空间自有数据集。 (Optional) */
	Source string `json:"source"`

	/* 科技数据集名称;资产查询失败时可能为空。 (Optional) */
	StorageName string `json:"storageName"`

	/* 存储类型,数据集的存储后端类型。

	## 支持类型
	- oss: 京东云对象存储
	 (Optional) */
	StorageType string `json:"storageType"`

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

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

	/* 科技数据集在Notebook容器中的挂载路径。 (Optional) */
	MountPath string `json:"mountPath"`

	/* 是否只读,科技数据集固定返回true。 (Optional) */
	Readonly bool `json:"readonly"`
}

type NbWorkloadDetail

type NbWorkloadDetail struct {

	/* 资源队列ID,实例运行所在的资源队列。

	## 公共资源池
	- 固定为:`joybuilder-public-queue`

	## 专享资源池
	- 固定为:`joybuilder-exclusive-queue`

	## 私有资源池
	- 用户工作空间中的私有队列ID
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 队列类型,实例运行所在资源队列的类型。

	## 取值
	- private: 私有资源池队列
	- public: 公共资源池队列
	- exclusive: 专享资源池队列
	- security: 安全异构队列,出站网络受管控,禁止修改资源属性
	- sec-vm: 安全云主机队列,管控约束与`security`一致

	## 使用说明
	- 该字段为查询返回值,创建/更新时无需传入,队列类型由`queueId`推导

	## 兼容性说明
	- 存量实例以及创建时未查询到队列信息的实例,该字段返回空串
	- 调用方需同时容忍空串与`private`两种表示私有资源池的情形

	## 安全队列使用限制
	以下限制对`security`与`sec-vm`两类安全队列同样生效:
	- 仅支持`jpfs`/`oss`两种存储类型,其他存储类型(如`cfs`)会被拒绝
	- 不支持开启大数据(BDP)功能,因其依赖CFS挂载
	- 不支持修改资源属性、不支持在启动时变更资源规格/队列、不支持保存镜像
	- 不允许把已有实例的资源属性变更到安全队列
	- 除安全存储(`storageSource=security`的jpfs/oss)本身外,其余挂载点强制只读,详见`storageSpec.readonly`
	 (Optional) */
	QueueType string `json:"queueType"`

	/* 规格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卡数总量。

	## 使用说明
	- 整数表示整卡,小数表示卡切分
	- 各芯片厂商支持的取值不同,详见创建参数workloadSpec.vcudaCore
	- 取值为0或空表示CPU实例
	 (Optional) */
	VcudaCore string `json:"vcudaCore"`

	/* 虚拟GPU总显存(单位:Mi)。

	## 使用说明
	- 所有虚拟GPU卡的总显存
	 (Optional) */
	VcudaMemory int `json:"vcudaMemory"`

	/* 虚拟GPU总算力百分比(0-100)。

	## 使用说明
	- 所有虚拟GPU卡的总算力占比
	- 取值范围:0-100
	 (Optional) */
	VcudaRatio int `json:"vcudaRatio"`

	/* 逻辑可用区编码,实例运行的逻辑可用区。

	## 使用说明
	- 仅公共/专享资源池有效
	- 私有资源池时为空
	 (Optional) */
	LogicAzCode string `json:"logicAzCode"`

	/* 物理集群名称,实例运行的物理集群名称。

	## 使用说明
	- 仅公共/专享资源池有效
	- 与规格(flavorId)对应的物理集群名称
	 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 排队超时时间(分钟),Notebook在排队状态的最大等待时间。

	## 使用说明
	- 仅公共/专享资源池有效
	- 不传或传0时默认使用系统配置 5分钟
	- 取值范围:5~1440
	- 超过排队超时时间后,Notebook将自动停止排队
	 (Optional) */
	QueuingTimeoutMinutes int `json:"queuingTimeoutMinutes"`
}

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"`

	/* 节点类型,vm为云主机节点,hpc为物理集群节点 (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"`

	/* 商业平台返回的节点到期时间原始值;无有效到期时间时返回空字符串 (Optional) */
	ExpireTime string `json:"expireTime"`

	/* 商业平台返回的节点释放时间原始值;无有效释放时间时返回空字符串 (Optional) */
	ReleaseTime string `json:"releaseTime"`

	/* GPU资源配额信息 (Optional) */
	GpuQuota GpuQuota `json:"gpuQuota"`

	/* 资源配额信息 (Optional) */
	CpuQuota CpuQuota `json:"cpuQuota"`

	/*  (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`

	/* 设备品牌 (Optional) */
	DeviceBrand string `json:"deviceBrand"`

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

	/* 驱动版本 (Optional) */
	DriverVersion string `json:"driverVersion"`

	/* 所属租户 (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	UnhealthReasons []UnHealthReason `json:"unhealthReasons"`

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

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

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

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"`

	/* 节点类型,vm为云主机节点,hpc为物理集群节点 (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:混合节点池;security:安全HPC节点池;sec-vm:安全VM节点池 (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 NodePoolAllocationStats

type NodePoolAllocationStats struct {

	/*  (Optional) */
	Pool NodePoolAllocationStatsItem `json:"pool"`

	/* 节点池资源分配情况 (Optional) */
	Queue []QueueAllocationStatsItem `json:"queue"`
}

type NodePoolAllocationStatsItem

type NodePoolAllocationStatsItem struct {

	/* 资源总量 (Optional) */
	Total string `json:"total"`

	/* 剩余资源量 (Optional) */
	Idle string `json:"idle"`

	/* 分配率 (Optional) */
	Rate string `json:"rate"`

	/* 资源单位 (Optional) */
	Unit string `json:"unit"`
}

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 NodePoolInfo

type NodePoolInfo struct {

	/* 节点池名称 (Optional) */
	Name string `json:"name"`

	/* 节点池类型,
	- general 普通云主机节点池
	- combined 异构节点池
	- mixture 混合节点池
	- security 安全异构节点池
	- sec-vm 安全云主机节点池
	 (Optional) */
	PoolType string `json:"poolType"`

	/* VPC ID (Optional) */
	VpcId string `json:"vpcId"`

	/* VPC名称 (Optional) */
	VpcName string `json:"vpcName"`

	/* 拓扑类型 (Optional) */
	Topology string `json:"topology"`
}

type NodePoolNodeInfo

type NodePoolNodeInfo struct {

	/* 节点唯一标识 (Optional) */
	Id string `json:"id"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

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

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

	/* 节点名称 (Optional) */
	Name string `json:"name"`

	/* 节点IP列表 (Optional) */
	Ips []string `json:"ips"`

	/* 是否启用调度 (Optional) */
	Enable bool `json:"enable"`

	/* 是否已分配 (Optional) */
	Used bool `json:"used"`

	/* 节点状态 (Optional) */
	Status string `json:"status"`

	/* 使用状态 (Optional) */
	UseStatus string `json:"useStatus"`

	/* Hook模式 (Optional) */
	HookMode string `json:"hookMode"`

	/*  (Optional) */
	Capacity GPUResourceFloat `json:"capacity"`

	/*  (Optional) */
	Allocated GPUResourceFloat `json:"allocated"`

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

	/*  (Optional) */
	Available GPUResourceFloat `json:"available"`

	/*  (Optional) */
	DeviceNum int64 `json:"deviceNum"`

	/*  (Optional) */
	DeviceGpuNum int64 `json:"deviceGpuNum"`

	/*  (Optional) */
	DeviceVgpuNum int64 `json:"deviceVgpuNum"`

	/*  (Optional) */
	DeviceUsedNum int64 `json:"deviceUsedNum"`

	/*  (Optional) */
	DeviceAllocatedNum int64 `json:"deviceAllocatedNum"`

	/* 显卡厂商 (Optional) */
	Manufacturer string `json:"manufacturer"`

	/* 驱动版本 (Optional) */
	DriverVersion string `json:"driverVersion"`

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

	/*  (Optional) */
	PodCount int64 `json:"podCount"`

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

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

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 调度标签 (Optional) */
	NodeLabels []NodeLabel `json:"nodeLabels"`
}

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 NodePoolOverview3J

type NodePoolOverview3J struct {

	/*  (Optional) */
	Data NodePoolOverviewData3J `json:"data"`
}

type NodePoolOverviewCount3J

type NodePoolOverviewCount3J struct {

	/* 总量;页面“计算节点数量(总量)”使用 nodes.total (Optional) */
	Total int64 `json:"total"`

	/* 已分配数量 (Optional) */
	Allocated int64 `json:"allocated"`
}

type NodePoolOverviewData3J

type NodePoolOverviewData3J struct {

	/* 节点池ID (Optional) */
	Id string `json:"id"`

	/* 节点池名称;页面“节点池总名称”使用该字段 (Optional) */
	Name string `json:"name"`

	/* Controller节点组ID;页面“节点池ID”使用该字段 (Optional) */
	NodeGroupId string `json:"nodeGroupId"`

	/* 集群ID;页面“集群”使用该字段 (Optional) */
	ClusterId string `json:"clusterId"`

	/* 业务类型;online表示在线,offline表示离线,mix表示混部 (Optional) */
	BizType string `json:"bizType"`

	/* 节点池状态 (Optional) */
	Status string `json:"status"`

	/* 节点池是否启用 (Optional) */
	Enable bool `json:"enable"`

	/* 备注;页面“备注”使用该字段 (Optional) */
	Description string `json:"description"`

	/*  (Optional) */
	Nodes NodePoolOverviewCount3J `json:"nodes"`

	/*  (Optional) */
	GpuCards NodePoolOverviewGpuCards3J `json:"gpuCards"`

	/*  (Optional) */
	VirtualGpus NodePoolOverviewQuantity3J `json:"virtualGpus"`

	/*  (Optional) */
	Compute NodePoolOverviewResource3J `json:"compute"`

	/*  (Optional) */
	Memory NodePoolOverviewResource3J `json:"memory"`

	/*  (Optional) */
	Scheduler NodePoolOverviewScheduler3J `json:"scheduler"`

	/*  (Optional) */
	Workloads NodePoolOverviewWorkloads3J `json:"workloads"`
}

type NodePoolOverviewGpuCards3J

type NodePoolOverviewGpuCards3J struct {

	/* 真实GPU物理卡总量 (Optional) */
	Total int64 `json:"total"`

	/* 已分配真实GPU物理卡数量 (Optional) */
	Allocated int64 `json:"allocated"`

	/* 各显卡型号对应的真实GPU物理卡数量 (Optional) */
	Models interface{} `json:"models"`

	/*  (Optional) */
	Virtualized NodePoolOverviewCount3J `json:"virtualized"`

	/*  (Optional) */
	NonVirtualized NodePoolOverviewCount3J `json:"nonVirtualized"`
}

type NodePoolOverviewQuantity3J

type NodePoolOverviewQuantity3J struct {

	/* 总量;页面“虚拟化显卡数量(已分配/总量)”的总量使用 virtualGpus.total (Optional) */
	Total float32 `json:"total"`

	/* 已分配数量;页面“虚拟化显卡数量(已分配/总量)”的已分配使用 virtualGpus.allocated (Optional) */
	Allocated float32 `json:"allocated"`
}

type NodePoolOverviewResource3J

type NodePoolOverviewResource3J struct {

	/* 资源总量;compute单位为百分比算力,memory单位为GB (Optional) */
	Total float32 `json:"total"`

	/* 已分配资源量;compute单位为百分比算力,memory单位为GB (Optional) */
	Allocated float32 `json:"allocated"`

	/* 分配率,单位百分比 (Optional) */
	AllocationRate float32 `json:"allocationRate"`

	/* 利用率,单位百分比 (Optional) */
	UsageRate float32 `json:"usageRate"`
}

type NodePoolOverviewScheduler3J

type NodePoolOverviewScheduler3J struct {

	/* 节点调度策略 (Optional) */
	NodeSchedulerStrategy string `json:"nodeSchedulerStrategy"`

	/* 显卡调度策略 (Optional) */
	DeviceSchedulerStrategy string `json:"deviceSchedulerStrategy"`
}

type NodePoolOverviewWorkloads3J

type NodePoolOverviewWorkloads3J struct {

	/* 运行中任务数量 (Optional) */
	RunningTaskCount int64 `json:"runningTaskCount"`

	/* Pod数量 (Optional) */
	PodCount int64 `json:"podCount"`
}

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"`

	/* 是否支持rdma网络 (Optional) */
	Rdma bool `json:"rdma"`

	/* 错误信息 (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"`

	/* Controller节点组别名 (Optional) */
	Alias string `json:"alias"`

	/* Controller节点组备注 (Optional) */
	Note string `json:"note"`

	/* Controller节点组节点数量;不覆盖原 nodeCount 字段 (Optional) */
	ControllerNodeCount int64 `json:"controllerNodeCount"`

	/* 各显卡型号的显卡总数 (Optional) */
	DeviceCount interface{} `json:"deviceCount"`

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

	/* 节点组已分配资源 (Optional) */
	Used GPUResourceFloat `json:"used"`

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

	/* 节点调度策略 (Optional) */
	NodeSchedulerStrategy string `json:"nodeSchedulerStrategy"`

	/* 显卡调度策略 (Optional) */
	DeviceSchedulerStrategy string `json:"deviceSchedulerStrategy"`

	/* Controller返回的集群ID;不覆盖原 cluster 对象 (Optional) */
	ControllerCluster string `json:"controllerCluster"`

	/* 是否默认节点池 (Optional) */
	IsDefault bool `json:"isDefault"`

	/* Controller节点组运行模式 (Optional) */
	OperationMode string `json:"operationMode"`

	/* 资源组已使用资源 (Optional) */
	ResourceGroupUsed GPUResourceFloat `json:"resourceGroupUsed"`

	/* 各显卡型号开启算力切分的显卡数量 (Optional) */
	DeviceVgpuCount interface{} `json:"deviceVgpuCount"`

	/* 各显卡型号未开启算力切分的显卡数量 (Optional) */
	DeviceGpuCount interface{} `json:"deviceGpuCount"`

	/* 绑定资源组数量 (Optional) */
	ResourceGroupCount int64 `json:"resourceGroupCount"`

	/* 关联队列数量 (Optional) */
	ResourceQueueCount int64 `json:"resourceQueueCount"`

	/* 运行中任务数量 (Optional) */
	RunningTaskCount int64 `json:"runningTaskCount"`

	/* Pod数量 (Optional) */
	PodCount int64 `json:"podCount"`

	/* 已分配节点数量 (Optional) */
	NodeAllocatedCount int64 `json:"nodeAllocatedCount"`

	/* 已使用显卡数量 (Optional) */
	DeviceUsedCount int64 `json:"deviceUsedCount"`

	/* 已分配显卡数量 (Optional) */
	DeviceAllocatedCount int64 `json:"deviceAllocatedCount"`

	/* Controller节点组ID (Optional) */
	NodeGroupId string `json:"nodeGroupId"`
}

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 NodeSpecification

type NodeSpecification struct {

	/* 实例规格族 (Optional) */
	Family string `json:"family"`

	/* 实例机型 (Optional) */
	MachineInfo string `json:"machineInfo"`

	/* JoyScale实例规格,使用joy前缀 (Optional) */
	InstanceType string `json:"instanceType"`

	/* CPU个数 (Optional) */
	Cpu int `json:"cpu"`

	/* 系统架构,可选值为x86_64或arm64 (Optional) */
	Architecture string `json:"architecture"`

	/* 内存大小,单位MB (Optional) */
	MemoryMB int `json:"memoryMB"`

	/* 支持绑定的弹性网卡数量,包括主网卡 (Optional) */
	NicLimit int `json:"nicLimit"`

	/* 实例规格描述 (Optional) */
	Description string `json:"description"`

	/* 是否禁用弹性公网IP (Optional) */
	ForbiddenElasticIp bool `json:"forbiddenElasticIp"`

	/* 白名单内可用区的规格售卖状态 (Optional) */
	State []NodeSpecificationState `json:"state"`

	/* GPU配置 (Optional) */
	Gpu NodeSpecificationGpu `json:"gpu"`

	/* RDMA配置 (Optional) */
	Rdma NodeSpecificationRdma `json:"rdma"`

	/* 实例规格代数 (Optional) */
	Generation int `json:"generation"`

	/* 本地数据盘配置 (Optional) */
	LocalDisks []NodeSpecificationLocalDisk `json:"localDisks"`
}

type NodeSpecificationGpu

type NodeSpecificationGpu struct {

	/* GPU卡型号 (Optional) */
	Model string `json:"model"`

	/* GPU卡数量 (Optional) */
	Number int `json:"number"`

	/* 显存大小,单位GB (Optional) */
	Vram int `json:"vram"`
}

type NodeSpecificationLocalDisk

type NodeSpecificationLocalDisk struct {

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

	/* 磁盘大小,单位GB (Optional) */
	DiskSizeGB int `json:"diskSizeGB"`

	/* 本地设备ID (Optional) */
	DeviceId string `json:"deviceId"`
}

type NodeSpecificationRdma

type NodeSpecificationRdma struct {

	/* RDMA网卡个数 (Optional) */
	Count int `json:"count"`

	/* RDMA网卡带宽 (Optional) */
	BandwidthGbps int `json:"bandwidthGbps"`
}

type NodeSpecificationState

type NodeSpecificationState struct {

	/* 可用区 (Optional) */
	Az string `json:"az"`

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

	/* 是否可售卖 (Optional) */
	InStock bool `json:"inStock"`

	/* 可用库存数量 (Optional) */
	AvailableCount int `json:"availableCount"`
}

type NodeSpecifications

type NodeSpecifications struct {

	/* 节点规格详情 (Optional) */
	InstanceTypes []NodeSpecification `json:"instanceTypes"`

	/* 过滤后的节点规格数量 (Optional) */
	TotalCount int `json:"totalCount"`
}

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 LbInfo `json:"lb"`

	/* 公网出口配置,Notebook的出公网访问方式。

	## 使用说明
	- 配置了公网出口时有值
	- 用于访问外部网络资源
	 (Optional) */
	InternetEgress InternetEgressInfo `json:"internetEgress"`

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

	/* 归属用户pin,资源归属的用户标识。
	(Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

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

	## 权限值
	- public: 公开,工作空间所有用户可见
	- private: 私有,仅管理员和拥有者可见
	 (Optional) */
	Permission string `json:"permission"`

	/* 队列ID,实例运行所在的资源队列(真实队列)。 (Optional) */
	Queue string `json:"queue"`

	/* 公共/专享队列ID,公共/专享资源池场景下的队列标识。 (Optional) */
	PublicQueue string `json:"publicQueue"`

	/* 队列类型,实例运行所在资源队列的类型。

	## 取值
	- private: 私有资源池队列
	- public: 公共资源池队列
	- exclusive: 专享资源池队列
	- security: 安全异构队列,出站网络受管控,禁止修改资源属性
	- sec-vm: 安全云主机队列,管控约束与`security`一致

	## 使用说明
	- 该字段为查询返回值,创建/更新时无需传入
	- 存量实例以及创建时未查询到队列信息的实例返回空串,调用方需同时容忍空串与`private`两种表示私有资源池的情形
	- 安全队列的完整使用限制见`nbWorkloadDetail.queueType`
	 (Optional) */
	QueueType string `json:"queueType"`
}

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 LbInfo `json:"lb"`

	/* 公网出口配置,Notebook的出公网访问方式。

	## 使用说明
	- 配置了公网出口时有值
	- 用于访问外部网络资源
	 (Optional) */
	InternetEgress InternetEgressInfo `json:"internetEgress"`

	/* Notebook的计费信息,公共/专享资源池的计费详情。

	## 使用说明
	- 仅公共/专享资源池有计费信息
	- 私有资源池的资源无计费信息
	 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 存储空间列表,实例挂载的存储配置详情。

	## 包含信息
	- 存储类型、ID、路径
	- 挂载路径
	- 读写模式
	 (Optional) */
	Storages []StorageSpec `json:"storages"`

	/* 数据集列表,实例挂载的数据集配置详情。

	## 包含信息
	- 数据集来源、ID、版本
	- 存储类型、URL
	- 挂载路径、读写模式
	 (Optional) */
	Datasets []NbDatasetDetail `json:"datasets"`

	/* 科技数据集列表,返回Notebook本地只读挂载信息。 (Optional) */
	TechDatasets []NbTechDatasetDetail `json:"techDatasets"`

	/* 模型列表,实例挂载的模型配置详情。

	## 包含信息
	- 模型来源、ID、版本
	- 存储类型、URL
	- 挂载路径、读写模式
	 (Optional) */
	Models []NbModelDetail `json:"models"`

	/* 代码配置列表,实例挂载的代码库配置详情。

	## 包含信息
	- 代码库ID、名称
	- 挂载路径
	 (Optional) */
	Codes []NbCodeConfigInfo `json:"codes"`

	/* 用户配置的环境变量列表。仅返回用户原始配置,不包含平台系统环境变量;与系统变量同名时,返回值可能与Notebook运行时实际值不同。
	(Optional) */
	Envs []NotebookEnv `json:"envs"`

	/* 日志采集配置,容器日志采集到日志服务的配置。

	## 包含信息
	- 日志集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"`

	/* 任务调度优先级,数值越大,优先级越高。
	(Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 节点亲和性配置,控制Pod调度到特定节点。
	(Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`

	/* SSH配置和连接信息。

	## 包含信息
	- 密码认证开关
	- SSH公钥列表
	- SSH连接地址
	 (Optional) */
	SshSpec SshConnectionInfo `json:"sshSpec"`
}

type NotebookEnv

type NotebookEnv struct {

	/* 环境变量名称。仅支持大小写字母、数字和下划线,必须以字母或下划线开头,最长255个字符。
	 */
	Name string `json:"name"`

	/* 环境变量值,按UTF-8编码计算,最大2048字节,最终字节上限以后端校验结果为准。
	 */
	Value string `json:"value"`
}

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"`

	/* RDMA高速网络的最终生效状态。

	## 返回值说明
	- `true`:启动Notebook时会申请RDMA资源
	- `false`:当前配置不会申请RDMA资源,历史Notebook未配置时也返回`false`
	- 公共/专享资源池返回所选规格的RDMA属性
	 (Optional) */
	Rdma bool `json:"rdma"`

	/* 公网访问配置,负载均衡配置信息。

	## 使用说明
	- 配置了公网访问时有值
	- 用于SSH或其他公网服务访问
	 (Optional) */
	Lb LbInfo `json:"lb"`

	/* 公网出口配置,Notebook的出公网访问方式。

	## 使用说明
	- 配置了公网出口时有值
	- 用于访问外部网络资源
	 (Optional) */
	InternetEgress InternetEgressInfo `json:"internetEgress"`

	/* 归属用户名称,资源归属的用户名称。 (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) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`

	/* 任务调度优先级,数值越大,优先级越高。
	(Optional) */
	TaskPriority int `json:"taskPriority"`
}

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~256字符
	- 支持字符:中文、数字、大小写字母、英文下划线"_"、中划线"-"、点"."
	- 示例: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访问能力。

	## 使用说明
	- **公共资源池**: 可通过lbEnable=true开启公网访问,系统自动分配LB,无需指定lbId/lbPort
	- **私有资源池**: 需要传入与资源队列可通信的负载均衡ID和端口
	- **安全队列(`queueType=security`或`sec-vm`)**: 可通过lbEnable=true开启SSH访问,系统自动分配LB与端口,无需指定lbId/lbPort
	- 不需要公网SSH访问时不要指定此参数
	 (Optional) */
	LbSpec *LbSpec `json:"lbSpec"`

	/* 公网出口配置,用于配置Notebook的出公网访问方式。

	## 使用说明
	- switchStatus必须显式传值,为on时开启公网出口,为off时关闭公网出口且egressType无效
	- **公共资源池**: switchStatus=on时可设置 internetEgress.egressType=SHARE_GATEWAY,经平台共享NAT网关出公网
	- **私有资源池**: 暂不支持公网出口配置
	 (Optional) */
	InternetEgress *InternetEgressInfo `json:"internetEgress"`

	/* 工作负载资源配置,定义Notebook的计算资源需求。

	## 配置说明
	- **公共/专享资源池**: 必须指定规格ID(flavorId)和逻辑可用区编码(logicAzCode)
	- **私有资源池**: 必须指定CPU和内存,可选GPU配置
	*/
	WorkloadSpec *WorkloadSpec `json:"workloadSpec"`

	/* 存储空间配置列表,定义Notebook挂载的存储资源。

	## 配置说明
	- 第一块存储默认作为工作目录,必须挂载到`/mnt/workspace`
	- 支持cfs、oss、jpfs三种存储类型
	- 列表顺序决定挂载顺序
	*/
	Storages []StorageSpec `json:"storages"`

	/* 数据集配置列表,定义Notebook挂载的数据集资源。

	## 配置说明
	- 支持公共数据集和个人数据集
	- 可选择数据集版本
	- 建议挂载到`/mnt/datasets/`路径下
	 (Optional) */
	Datasets []DatasetSpec `json:"datasets"`

	/* 科技数据集配置列表,独立最多挂载50条,仅限京东内部用户使用。

	## 配置说明
	- 支持公共数据集和个人数据集
	- 可选择数据集版本
	- 建议挂载到`/mnt/techdataset-x/`路径下
	- 默认强制只读挂载
	 (Optional) */
	TechDatasets []TechDatasetSpec `json:"techDatasets"`

	/* 模型配置列表,定义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"`

	/* 是否启用RDMA高速网络,默认值为`false`。

	## 生效规则
	- 仅私有资源池中的Notebook支持设置该参数
	- 计算资源必须包含GPU,且GPU卡数必须为正整数
	- 未配置GPU或配置非整卡GPU时,即使传`true`也会静默按`false`处理
	- 公共/专享资源池忽略该参数,是否启用由所选规格的RDMA属性决定
	 (Optional) */
	Rdma *bool `json:"rdma"`

	/* 代码库配置列表,定义Notebook挂载的代码仓库。

	## 配置说明
	- 支持Git代码仓库
	- 需要预先在工作空间中配置代码库
	- 指定挂载路径后代码会自动拉取到指定目录
	 (Optional) */
	Codes []NbCodeConfig `json:"codes"`

	/* 用户环境变量列表。该参数可选,未配置时不注入用户环境变量。

	## 配置规则
	- 最多支持100个环境变量
	- 变量名仅支持大小写字母、数字和下划线,必须以字母或下划线开头,最长255个字符
	- 单个变量值最大2048字节,全部用户环境变量总量最大32768字节
	- 用户变量名不能重复,变量名区分大小写
	- 与平台系统变量同名时允许配置,Notebook运行时以平台系统变量为准
	- 请勿使用环境变量保存密码、密钥或Token等敏感信息
	 (Optional) */
	Envs []NotebookEnv `json:"envs"`

	/* 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"`
}

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 NotifyRuleSpec

type NotifyRuleSpec struct {

	/* 事件名。

	**可选值:**
	- `JobExecutionRunning`:任务执行开始运行
	- `JobExecutionCreateFailed`:任务执行创建失败
	 (Optional) */
	Event string `json:"event"`

	/* 投递渠道列表。

	**可选值:**
	- `sms`:短信通知
	 (Optional) */
	Channels []string `json:"channels"`
}

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 OssForCreateJobDefinition

type OssForCreateJobDefinition struct {

	/* OSS 端点地址,用于访问 OSS 服务。
	 */
	Endpoint string `json:"endpoint"`

	/* OSS Bucket 名称。
	 */
	Bucket string `json:"bucket"`
}

type OssForDescribeJobDefinition

type OssForDescribeJobDefinition struct {

	/* OSS 端点地址,用于访问 OSS 服务。
	(Optional) */
	Endpoint string `json:"endpoint"`

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

type OssForDescribeJobDefinitions

type OssForDescribeJobDefinitions struct {

	/* OSS 端点地址,用于访问 OSS 服务。
	(Optional) */
	Endpoint string `json:"endpoint"`

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

type OssForUpdateJobDefinition

type OssForUpdateJobDefinition struct {

	/* OSS 端点地址,用于访问 OSS 服务。
	(Optional) */
	Endpoint string `json:"endpoint"`

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

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 Pool

type Pool struct {

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

	/* 集群所属范围。 (Optional) */
	ClusterType string `json:"clusterType"`

	/* 资源池ID。 (Optional) */
	PoolId string `json:"poolId"`

	/* 资源池名称。 (Optional) */
	PoolName string `json:"poolName"`

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

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。 (Optional) */
	PoolType string `json:"poolType"`

	/* 资源池规格类型。 (Optional) */
	Category string `json:"category"`

	/* 资源池物理可用区列表。 (Optional) */
	PoolAzs []string `json:"poolAzs"`

	/* `center_random` 或 `edge`。 (Optional) */
	ZoneType string `json:"zoneType"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`
}

type ProductUpdateInfo

type ProductUpdateInfo struct {

	/* 动态id (Optional) */
	UpdateId string `json:"updateId"`

	/* 动态标题,最大长度64字符 (Optional) */
	Title string `json:"title"`

	/* 动态内容或描述,最大长度128字符 (Optional) */
	Content string `json:"content"`

	/* 动态类型 PUBLIC_ASSETS-公共资产, 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"`

	/* 动态类型 PUBLIC_ASSETS-公共资产, 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 ProfilingInstanceCollectInfo

type ProfilingInstanceCollectInfo struct {

	/* 实例名称。 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 所属节点名称。 (Optional) */
	NodeName string `json:"nodeName"`

	/* 筛选的PID列表。

	- **pid 模式**:有值,表示采集的指定PID
	- **instance 模式**:空数组,表示采集全部进程
	 (Optional) */
	Pids []string `json:"pids"`

	/* 采集状态。

	**可选值:**
	- `pending`:等待采集
	- `collecting`:正在采集
	- `success`:采集成功
	- `failed`:采集失败
	 (Optional) */
	CollectStatus string `json:"collectStatus"`

	/* 采集信息(失败原因等)。 (Optional) */
	CollectMsg string `json:"collectMsg"`

	/* 实例采集完成时间(success/failed时写入)。 (Optional) */
	FinishTime string `json:"finishTime"`

	/* 该实例结果文件下载次数(每次下载该实例结果时加1)。 (Optional) */
	DownloadTimes int `json:"downloadTimes"`
}

type ProfilingPidInfo

type ProfilingPidInfo struct {

	/* 进程ID。 (Optional) */
	Pid string `json:"pid"`

	/* 进程启动命令。 (Optional) */
	Command string `json:"command"`

	/* 进程所属用户。 (Optional) */
	User string `json:"user"`

	/* 是否使用GPU。 (Optional) */
	UseGpu bool `json:"useGpu"`
}

type ProfilingTarget

type ProfilingTarget struct {

	/* 实例名称。  */
	InstanceName string `json:"instanceName"`

	/* 筛选的PID列表。

	- **pid 模式**:必填,至少一个PID,且每个PID只允许纯数字
	- **instance 模式**:可不传或传空数组,表示采集该实例全部进程
	 (Optional) */
	Pids []string `json:"pids"`
}

type ProfilingTaskDetail

type ProfilingTaskDetail struct {

	/* 性能分析任务ID。 (Optional) */
	ProfilingId string `json:"profilingId"`

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

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

	/* 任务状态。

	**可选值:**
	- `pending`:等待中,任务已创建但尚未开始采集
	- `running`:运行中,正在采集数据
	- `success`:已完成,所有实例采集结束
	- `failed`:失败,部分或全部实例采集失败
	- `expired`:结果已过期。采集结果在平台存储上仅保留有限时长,超期后被回收;此状态表示采集本身成功但结果已不可下载、也不可转存至OSS。由查询接口惰性判定并写回,仅从 `success` 流转而来
	 (Optional) */
	Status string `json:"status"`

	/* 监控时长(秒)。 (Optional) */
	Duration int `json:"duration"`

	/* 监控目标类型。

	**可选值:** `instance`、`pid`
	 (Optional) */
	TargetType string `json:"targetType"`

	/* 采集指标列表。 (Optional) */
	Metrics []string `json:"metrics"`

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

	/* 监控完成时间。 (Optional) */
	FinishTime string `json:"finishTime"`
}

type ProfilingTaskListInfo

type ProfilingTaskListInfo struct {

	/* 性能分析任务ID。 (Optional) */
	ProfilingId string `json:"profilingId"`

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

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

	/* 任务状态。

	**可选值:**
	- `pending`:等待中,任务已创建但尚未开始采集
	- `running`:运行中,正在采集数据
	- `success`:已完成,所有实例采集结束
	- `failed`:失败,部分或全部实例采集失败
	- `expired`:结果已过期。采集结果在平台存储上仅保留有限时长,超期后被回收;此状态表示采集本身成功但结果已不可下载、也不可转存至OSS。由查询接口惰性判定并写回,仅从 `success` 流转而来
	 (Optional) */
	Status string `json:"status"`

	/* 监控时长(秒)。 (Optional) */
	Duration int `json:"duration"`

	/* 监控目标类型。

	**可选值:** `instance`、`pid`
	 (Optional) */
	TargetType string `json:"targetType"`

	/* 采集指标列表。 (Optional) */
	Metrics []string `json:"metrics"`

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

	/* 监控完成时间(全部实例采集完成时写入)。 (Optional) */
	FinishTime string `json:"finishTime"`
}

type PublicImageInfo

type PublicImageInfo struct {

	/* 镜像ID。 示例:img-lh****3p (Optional) */
	ImageId string `json:"imageId"`

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

	/* 镜像用途,可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务

	示例:notebook,training,inference
	 (Optional) */
	ImageUsage string `json:"imageUsage"`

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

	/* 镜像地址。
	示例:aip-public-sq-cn-east-1.jcr.service.jdcloud.com/serving/vllm:minimaxm3-vllm0.1.dev17492-pytorch2.11.0-transformers5.11.0-cu13.0-gpu-py3.12.13-ubuntu22.04
	 (Optional) */
	ImageUrl string `json:"imageUrl"`

	/* 注册方式,可选值:
	- jcr 容器镜像仓库注册,公共镜像仅支持已有镜像注册
	 (Optional) */
	SourceType string `json:"sourceType"`

	/* 标签,使用英文逗号拼接。
	示例:baseinfo:vllm0.25.0,baseinfo:pytorch2.11.0,baseinfo:transformers5.13.0,baseinfo:cuda13.0,baseinfo:gpu,baseinfo:python3.12.3,baseinfo:ubuntu24.04,baseinfo:jupyterlab,baseinfo:vscode,protocol:http,protocol:grpc
	 (Optional) */
	Labels string `json:"labels"`

	/* 标签,labels转换的数组格式, 仅包含baseinfo对应的标签。 (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"`

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

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-60****ui (Optional) */
	StorageId string `json:"storageId"`

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

	/* 模型介绍md文件。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`

	/* 标签。多个标签使用英文逗号拼接,每个标签格式 key:value。
	key值说明
	  - scenario 任务场景
	  - provider 品牌/系列
	  - license 模型许可类型
	  - parameterSize 模型大小
	  - keyword 其他关键词,可设置多个
	  - icon 模型icon地址。例如:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/Qwen3-235B-A22B-Instruct-2507/qwen-color.svg
	  - support.task 支持的任务模块,可设置多个,可选值:notebook:Notebook,trainjob:训练任务,finetune:精调实验,llm-deploy:在线服务-LLM部署,custom-deploy:在线服务-自定义部署
	  - finetune.model_template 精调关注(模型版本,如llama2、llama3)
	  - finetune.model_series 精调关注(模型系列,如llama、qwen)
	  - finetune.model_billing_item 精调实验计费项中的模型命名

	例如:scenario:文本生成,provider:DeepSeek,license:MIT,parameterSize:158.07B,icon:https://yanxi-public-sq.s3.cn-east-1.jdcloud-oss.com/models/DeepSeek-V3.2/deepseek-color.svg,support.task:notebook,support.task:trainjob,support.task:custom-deploy
	 (Optional) */
	Labels string `json:"labels"`

	/* 标签map格式 (Optional) */
	LabelsMap interface{} `json:"labelsMap"`

	/* 标签对象。
	labels转化对象, key:value中key值如果有._会删除转发成驼峰式。 如aaa.bbb_ccc换成aaaBbbCcc
	 (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 PublicPoolCluster

type PublicPoolCluster struct {

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

	/* 集群归属pin。 (Optional) */
	Pin string `json:"pin"`

	/* 集群所属范围。 (Optional) */
	Scope string `json:"scope"`

	/* 描述信息。 (Optional) */
	Description string `json:"description"`
}

type PublicTechDatasetInfo

type PublicTechDatasetInfo struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

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

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

	/* 标签信息,仅做展示使用,多个值的由;拼接 (Optional) */
	Labels PublicTechDatasetLabel `json:"labels"`

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

	/* 是否可用:false表示不可用,dss数据集查不到 (Optional) */
	IsAvailable bool `json:"isAvailable"`
}

type PublicTechDatasetLabel

type PublicTechDatasetLabel struct {

	/* 场景 (Optional) */
	Scenario []string `json:"scenario"`

	/* 语言 (Optional) */
	Language []string `json:"language"`

	/* 其他关键词 (Optional) */
	Keyword []string `json:"keyword"`

	/* 数据大小或行数 (Optional) */
	DataSize string `json:"dataSize"`

	/* 开源协议 (Optional) */
	License string `json:"license"`
}

type PublicTechDatasetVersionDetail

type PublicTechDatasetVersionDetail struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

	/* 存储oss对应Enpoint (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path,bucket后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

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

type PublicTechDatasetVersionInfo

type PublicTechDatasetVersionInfo struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

	/* 存储oss对应Enpoint (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket (Optional) */
	StorageBucket string `json:"storageBucket"`

	/* 存储path,bucket后面部分的路径 (Optional) */
	StoragePath string `json:"storagePath"`

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

type QueryLogResult

type QueryLogResult struct {

	/* 查询状态(success / error) (Optional) */
	Status string `json:"status"`

	/* 查询是否已完成 (Optional) */
	Completed bool `json:"completed"`

	/*  (Optional) */
	Data LogResultData `json:"data"`
}

type Queue

type Queue struct {

	/* 资源队列ID (Optional) */
	Id string `json:"id"`

	/* 资源队列名称 (Optional) */
	Name string `json:"name"`

	/* 节点池ID (Optional) */
	NodePoolId string `json:"nodePoolId"`

	/* 节点池相关信息 (Optional) */
	NodePoolInfo NodePoolInfo `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) */
	TaskPriority bool `json:"taskPriority"`

	/* 是否开启任务抢占 (Optional) */
	TaskPreempt bool `json:"taskPreempt"`

	/* 创建时间,秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 资源队列名称 (Optional) */
	Desc string `json:"desc"`

	/* 废弃,参考nodePoolInfo.poolType,队列类型,common:普通队列;security:安全队列 (Optional) */
	QueueType string `json:"queueType"`

	/* 计费模式,创建时确定不可修改
	- 1 按量计费(不承诺配额,min 默认 0)
	- 2 按配置计费(强制 min=max)
	 (Optional) */
	BillingMode int `json:"billingMode"`

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

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

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

type QueueAllocationStatsItem

type QueueAllocationStatsItem struct {

	/* 队列名称 (Optional) */
	Name string `json:"name"`

	/* 资源总量 (Optional) */
	Total string `json:"total"`

	/* 占比 (Optional) */
	Proportion string `json:"proportion"`
}

type QueueBaseQuota

type QueueBaseQuota struct {

	/* 队列ID。创建或更新时可不填,由路径或队列参数确定。 (Optional) */
	QueueId string `json:"queueId"`

	/* CPU保障额度,单位核。 (Optional) */
	CpuDeserved int `json:"cpuDeserved"`

	/* CPU最大额度,单位核。 (Optional) */
	CpuMax int `json:"cpuMax"`

	/* 内存保障额度,单位MB。 (Optional) */
	MemoryMbDeserved int `json:"memoryMbDeserved"`

	/* 内存最大额度,单位MB。 (Optional) */
	MemoryMbMax int `json:"memoryMbMax"`
}

type QueueGpuQuota

type QueueGpuQuota struct {

	/* 队列ID。创建或更新时可不填,由路径或队列参数确定。 (Optional) */
	QueueId string `json:"queueId"`

	/* GPU设备名。 (Optional) */
	DeviceName string `json:"deviceName"`

	/* GPU保障额度。 (Optional) */
	Deserved float64 `json:"deserved"`

	/* GPU最大额度。 (Optional) */
	Max float64 `json:"max"`
}

type QueueGpuQuotaChange

type QueueGpuQuotaChange struct {

	/* 变更动作。  */
	Action string `json:"action"`

	/* GPU设备名。  */
	DeviceName string `json:"deviceName"`

	/* GPU保障额度。 (Optional) */
	Deserved float64 `json:"deserved"`

	/* GPU最大额度。 (Optional) */
	Max float64 `json:"max"`
}

type QueueLoadBalancer

type QueueLoadBalancer struct {

	/* 负载均衡ID (Optional) */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 负载均衡名称 (Optional) */
	LoadBalancerName string `json:"loadBalancerName"`

	/* 负载均衡私网IP (Optional) */
	LoadBalancerPrivateIp string `json:"loadBalancerPrivateIp"`

	/* 负载均衡状态 (Optional) */
	LoadBalancerState string `json:"loadBalancerState"`

	/* 负载均衡状态说明 (Optional) */
	LoadBalancerMsg string `json:"loadBalancerMsg"`

	/* 负载均衡弹性公网IP ID (Optional) */
	LoadBalancerElasticIpId string `json:"loadBalancerElasticIpId"`

	/* 负载均衡弹性公网IP地址 (Optional) */
	LoadBalancerElasticIpAddress string `json:"loadBalancerElasticIpAddress"`
}

type QueuePool

type QueuePool struct {

	/* 资源池所属集群详情。 (Optional) */
	Cluster PublicPoolCluster `json:"cluster"`

	/* 资源池ID。 (Optional) */
	PoolId string `json:"poolId"`

	/* 资源池名称。 (Optional) */
	PoolName string `json:"poolName"`

	/* 资源池描述。 (Optional) */
	Description string `json:"description"`

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。 (Optional) */
	PoolType string `json:"poolType"`

	/* 资源池规格类型。 (Optional) */
	Category string `json:"category"`

	/* 资源池物理可用区列表。 (Optional) */
	PoolAzs []string `json:"poolAzs"`

	/* `center_random` 或 `edge`。 (Optional) */
	ZoneType string `json:"zoneType"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`
}

type QueueUserChange

type QueueUserChange struct {

	/* 变更动作。  */
	Action string `json:"action"`

	/* 用户pin。  */
	Pin string `json:"pin"`
}

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 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 interface{} `json:"usedUtilization"`

	/* 已分配资源的使用率 (Optional) */
	AllocatedUtilization interface{} `json:"allocatedUtilization"`
}

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 RenewalResourceIdInfo

type RenewalResourceIdInfo struct {

	/* 此组资源所在地域,与资源归属地域校验  */
	Region string `json:"region"`

	/* A租户可见的sec-开头资源ID列表;节点接口只接受安全节点,JPFS接口只接受安全JPFS  */
	ResourceIds []string `json:"resourceIds"`
}

type RenewalTempOrderParam

type RenewalTempOrderParam struct {

	/* 业务线,当前固定为jcloud  */
	AppCode string `json:"appCode"`

	/* 产品线,当前固定为jdaip  */
	ServiceCode string `json:"serviceCode"`

	/* RENEW(默认) 续费 MONTH_CHANGE_CONFIG 包年包月转按配置 MONTH_CHANGE_FLOW 包年包月转按按用量 CONFIG_CHANGE_FLOW按配置转按用量 FLOW_CHANGE_CONFIG 按用量转按配置。建议前端一定要传。 (Optional) */
	ResizeFormulaType string `json:"resizeFormulaType"`

	/* 按资源地域组织的续费资源  */
	ResourceIdInfos []RenewalResourceIdInfo `json:"resourceIdInfos"`
}

type RenewalTempOrderRequest

type RenewalTempOrderRequest struct {

	/* 按业务线、产品线和续费类型组织的资源列表,逐个校验通过后整体提交  */
	ParamList []RenewalTempOrderParam `json:"paramList"`
}

type RenewalTempOrderResult

type RenewalTempOrderResult struct {

	/* 续费系统submitTempOrderV2返回的result.stringResult (Optional) */
	StringResult string `json:"stringResult"`
}

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 ResourceForCreateJobDefinition

type ResourceForCreateJobDefinition struct {

	/* 队列ID,指定任务运行的资源队列。

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 规格ID,池化队列按规格申请资源时使用。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 逻辑可用区编码。 (Optional) */
	LogicAzCode string `json:"logicAzCode"`

	/* HPC集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号示例:**
	- `NVIDIA_G2`:NVIDIA_G2
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值:**
	- `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `16`
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000 = 4 核 CPU
	- 32000 = 32 核 CPU
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

type ResourceForDescribeJobDefinition

type ResourceForDescribeJobDefinition struct {

	/* 队列ID,指定任务运行的资源队列。

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 队列类型。 (Optional) */
	QueueType string `json:"queueType"`

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 逻辑可用区编码。 (Optional) */
	LogicAzCode string `json:"logicAzCode"`

	/* HPC集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 规格类别。 (Optional) */
	FlavorCategory string `json:"flavorCategory"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号示例:**
	- `NVIDIA_G2`:NVIDIA_G2
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值:**
	- `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `16`
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000 = 4 核 CPU
	- 32000 = 32 核 CPU
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

type ResourceForDescribeJobDefinitions

type ResourceForDescribeJobDefinitions struct {

	/* 队列ID,指定任务运行的资源队列。

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 队列类型。 (Optional) */
	QueueType string `json:"queueType"`

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 逻辑可用区编码。 (Optional) */
	LogicAzCode string `json:"logicAzCode"`

	/* HPC集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 规格类别。 (Optional) */
	FlavorCategory string `json:"flavorCategory"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号示例:**
	- `NVIDIA_G2`:NVIDIA_G2
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值:**
	- `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `16`
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000 = 4 核 CPU
	- 32000 = 32 核 CPU
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

type ResourceForDescribeJobExecutions

type ResourceForDescribeJobExecutions struct {

	/* 队列ID,指定任务运行的资源队列。

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号示例:**
	- `NVIDIA_G2`:NVIDIA_G2
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值:**
	- `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `16`
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000 = 4 核 CPU
	- 32000 = 32 核 CPU
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

type ResourceForUpdateJobDefinition

type ResourceForUpdateJobDefinition struct {

	/* 队列ID,指定任务运行的资源队列。

	**专属资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 专属资源池:`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* 规格ID,池化队列按规格申请资源时使用。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 逻辑可用区编码。 (Optional) */
	LogicAzCode string `json:"logicAzCode"`

	/* HPC集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* GPU 卡类型,指定使用的 GPU 型号。

	**常见型号示例:**
	- `NVIDIA_G2`:NVIDIA_G2
	 (Optional) */
	GpuDeviceModel string `json:"gpuDeviceModel"`

	/* 虚拟 GPU 核数,支持细粒度的 GPU 资源分配。

	**可选值:**
	- `0.1`, `0.125`, `0.25`, `0.5`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `16`
	 (Optional) */
	VcudaCore float64 `json:"vcudaCore"`

	/* CPU 大小,以毫核为单位。

	**换算关系:**
	- 1000m = 1 核 CPU
	- 100m = 0.1 核 CPU

	**示例:**
	- 4000 = 4 核 CPU
	- 32000 = 32 核 CPU
	 (Optional) */
	CpuMilli int `json:"cpuMilli"`

	/* 内存大小,以 MiB 为单位。

	**换算关系:**
	- 1024 MiB = 1 GiB

	**示例:**
	- 16384 = 16 GiB
	- 65536 = 64 GiB
	 (Optional) */
	MemoryMiB int `json:"memoryMiB"`
}

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"`

	/* 创建时间,格式为 `2026-01-01T00:00:00Z`。 (Optional) */
	CreateTime string `json:"createTime"`

	/* 任务优先级。取值范围为 `1..9`;未配置优先级时返回 `0`。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 关联信息。
	type为FineTuning时,关联信息为实验信息;
	type为Inference时,关联信息为服务信息;
	 (Optional) */
	RelatedInfo RelatedInfo `json:"relatedInfo"`
}

type ResourceItem

type ResourceItem struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 资源类型 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 资源详情对象,不同resourceType对应不同的数据结构 (Optional) */
	Resource interface{} `json:"resource"`
}

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`

	**共享资源池:** 固定使用 `joybuilder-exclusive-queue`

	**专属资源池/安全资源池:** 使用创建队列时返回的队列ID

	**示例:**
	- 公共资源池:`joybuilder-public-queue`
	- 共享资源池:`joybuilder-exclusive-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`

	**昇腾整机规格:** `16`

	**使用建议:**
	- 小模型训练: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 ResourceSummaryDetail

type ResourceSummaryDetail struct {

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

	/* 资源空闲率 (Optional) */
	IdleRate string `json:"idleRate"`
}

type ResourcesResp

type ResourcesResp struct {

	/* 数据总数 (Optional) */
	TotalCount int `json:"totalCount"`

	/*  (Optional) */
	Resources []ResourceItem `json:"resources"`
}

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 ResultForDisableJobDefinition

type ResultForDisableJobDefinition struct {

	/* 失败任务数。 (Optional) */
	FailTaskCount int `json:"failTaskCount"`

	/* 成功提交审批任务数。 (Optional) */
	ApproveTaskCount int `json:"approveTaskCount"`

	/* 生效任务数。 (Optional) */
	SuccessTaskCount int `json:"successTaskCount"`

	/* 批量操作整体结果。

	- `true`:提交成功
	- `false`:失败
	 (Optional) */
	Success bool `json:"success"`

	/* 处理信息列表。 (Optional) */
	List []ResultItemForDisableJobDefinition `json:"list"`
}

type ResultForEnableJobDefinition

type ResultForEnableJobDefinition struct {

	/* 失败任务数。 (Optional) */
	FailTaskCount int `json:"failTaskCount"`

	/* 成功提交审批任务数。 (Optional) */
	ApproveTaskCount int `json:"approveTaskCount"`

	/* 生效任务数。 (Optional) */
	SuccessTaskCount int `json:"successTaskCount"`

	/* 批量操作整体结果。

	- `true`:提交成功
	- `false`:失败
	 (Optional) */
	Success bool `json:"success"`

	/* 处理信息列表。 (Optional) */
	List []ResultItemForEnableJobDefinition `json:"list"`
}

type ResultForPublishJobDefinition

type ResultForPublishJobDefinition struct {

	/* 任务ID。 (Optional) */
	TaskId int `json:"taskId"`

	/* 任务名称。 (Optional) */
	TaskName string `json:"taskName"`

	/* 任务上线结果。

	- `true`:提交上线成功
	- `false`:任务上线失败
	 (Optional) */
	Success bool `json:"success"`

	/* 申请单ID,提交上线成功时有值。
	(Optional) */
	RequestId int `json:"requestId"`

	/* 任务上线处理信息。
	(Optional) */
	Message string `json:"message"`
}

type ResultForRerunJobExecution

type ResultForRerunJobExecution struct {

	/* 任务实例ID。 (Optional) */
	TaskInstId string `json:"taskInstId"`

	/* 环节实例ID。可能为 null。 (Optional) */
	ActionInstId int64 `json:"actionInstId"`

	/* 任务ID。可能为 null。 (Optional) */
	TaskId int64 `json:"taskId"`

	/* 环节ID。可能为 null。 (Optional) */
	ActionId int64 `json:"actionId"`

	/* 是否处理成功。

	- `true`:重跑成功
	- `false`:重跑失败
	 (Optional) */
	Success bool `json:"success"`

	/* 结果码值。 (Optional) */
	ResultCode int `json:"resultCode"`

	/* 结果原因。 (Optional) */
	ResultMessage string `json:"resultMessage"`
}

type ResultItemForBatchDeleteJobDefinitions

type ResultItemForBatchDeleteJobDefinitions struct {

	/* 任务定义ID。 (Optional) */
	JobDefinitionId string `json:"jobDefinitionId"`

	/* 是否删除成功。

	- `true`:删除成功
	- `false`:删除失败
	 (Optional) */
	Success bool `json:"success"`

	/* 失败错误码(成功时为空)。 (Optional) */
	ErrorCode string `json:"errorCode"`

	/* 失败原因(成功时为空)。 (Optional) */
	ErrorMessage string `json:"errorMessage"`
}

type ResultItemForDisableJobDefinition

type ResultItemForDisableJobDefinition struct {

	/* 任务ID。 (Optional) */
	TaskId int `json:"taskId"`

	/* 任务名称。 (Optional) */
	TaskName string `json:"taskName"`

	/* 动作类型。

	**示例:** `pyscript`
	 (Optional) */
	ActionType string `json:"actionType"`

	/* 错误信息。 (Optional) */
	ErrorMessage string `json:"errorMessage"`

	/* 操作类型。

	- `1`:禁用操作
	 (Optional) */
	OptType string `json:"optType"`

	/* 优先级。 (Optional) */
	Priority string `json:"priority"`

	/* 子任务数。 (Optional) */
	SubTaskCount int `json:"subTaskCount"`
}

type ResultItemForEnableJobDefinition

type ResultItemForEnableJobDefinition struct {

	/* 任务ID。 (Optional) */
	TaskId int `json:"taskId"`

	/* 任务名称。 (Optional) */
	TaskName string `json:"taskName"`

	/* 动作类型。

	**示例:** `pyscript`
	 (Optional) */
	ActionType string `json:"actionType"`

	/* 错误信息。 (Optional) */
	ErrorMessage string `json:"errorMessage"`

	/* 优先级。 (Optional) */
	Priority string `json:"priority"`

	/* 父任务数。 (Optional) */
	ParentTaskCount int `json:"parentTaskCount"`

	/* 申请单ID。 (Optional) */
	RequestId int `json:"requestId"`
}

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"`

	/* 多角色部署KVCache传输协议类型 (Optional) */
	KvTransferProtocol *string `json:"kvTransferProtocol"`
}

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。
	使用共享资源池时固定为:joybuilder-exclusive-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`
	**Batch 任务:** 只能使用 `Worker`。
	 (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`, `16`
	 (Optional) */
	VcudaCore *float64 `json:"vcudaCore"`

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

	**换算:** 1000m = 1 核 CPU
	 (Optional) */
	CpuMilli *int `json:"cpuMilli"`

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

	**换算:** 1024 MiB = 1 GiB
	 (Optional) */
	MemoryMiB *int `json:"memoryMiB"`

	/* 逻辑可用区编码。

	**说明:**
	- 公共资源池和共享资源池必传
	- CPU/GPU 规格可填具体边缘可用区,或填中心随机(center_random)
	- 异构(HPC)规格须填具体可用区
	 (Optional) */
	LogicAzCode *string `json:"logicAzCode"`

	/* 物理集群名称。

	**说明:** 仅异构(HPC)规格需要且必填,如 `A1`、`C1`
	 (Optional) */
	HpcClusterName *string `json:"hpcClusterName"`
}

type RoleResourceInfoForJobList

type RoleResourceInfoForJobList struct {

	/* 队列类型。

	**可选值:**
	- `public`:公共资源池
	- `exclusive`:共享资源池
	- `private`:专属资源池
	- `security`:安全异构节点池
	- `sec-vm`:安全云主机节点池
	 (Optional) */
	QueueType string `json:"queueType"`

	/* 队列ID,所有角色共享同一个队列。

	**公共资源池:** 固定使用 `joybuilder-public-queue`

	**共享资源池:** 固定使用 `joybuilder-exclusive-queue`

	**专属资源池/安全资源池:** 使用创建队列时返回的队列ID

	**示例:** `queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId string `json:"queueId"`

	/* RDMA 开关,控制是否为该任务开启 RDMA 高速网络。
	(Optional) */
	RdmaSwitch string `json:"rdmaSwitch"`

	/* 角色资源配置详细信息列表。

	**PyTorch 任务:** 所有节点均为 Worker 角色

	**Ray 任务:** 必须包含一个 Head 角色,可配置多个 Worker 角色
	 (Optional) */
	Roles []RoleResourceInfoForJob `json:"roles"`
}

type RoleResourceParamForJob

type RoleResourceParamForJob struct {

	/* 队列ID,指定任务运行的资源队列。

	**公共资源池:** 固定使用 `joybuilder-public-queue`

	**共享资源池:** 固定使用 `joybuilder-exclusive-queue`

	**专属资源池:** 使用工作空间绑定的队列,需要用户及角色拥有该队列的使用权限

	**示例:** `joybuilder-public-queue`、`joybuilder-exclusive-queue`、`queue-2xxx**********2d*********8b8`
	 (Optional) */
	QueueId *string `json:"queueId"`

	/* RDMA 开关,控制是否为该任务开启 RDMA 高速网络。

	**生效范围:** 仅对专属资源池中的GPU分布式任务生效,含CPU或非整卡的任务不生效,单实例任务不生效;公共资源池不生效。

	**可选值:**
	- `on`:开启 RDMA
	- `off`:关闭 RDMA

	**默认值(不设置时):**
	- GPU 分布式任务:默认为 `on`;若所选计算资源不支持 RDMA,必须显式传 `off` 关闭。
	- 单实例任务:默认为 `off`。
	- 带CPU的任务:默认为 `off`。
	 (Optional) */
	RdmaSwitch *string `json:"rdmaSwitch"`

	/* 角色资源配置详细信息列表。

	**配置规则:**
	- PyTorch 任务:仅支持 Worker 角色
	- Ray 任务:必须包含 Head 角色,可根据需求增加 Worker 角色
	- Batch 任务:必须且只能包含一个 Worker 角色,`count` 不小于 1
	 (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 RolloutHistory

type RolloutHistory struct {

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

	/* 推理服务资源所在队列ID (Optional) */
	QueueId string `json:"queueId"`

	/* 当前运行中的 pod 数量 (Optional) */
	RunningPods int64 `json:"runningPods"`

	/* 当前总 pod 数量 (Optional) */
	TotalPods int64 `json:"totalPods"`

	/* 当前异常 pod 数量 (Optional) */
	FailedPods int64 `json:"failedPods"`

	/* 实际占用的资源数量 (Optional) */
	ResourceAmount int64 `json:"resourceAmount"`

	/*  (Optional) */
	Metadata Metadata `json:"metadata"`

	/*  (Optional) */
	Resource Resource `json:"resource"`

	/*  (Optional) */
	Runtime Runtime `json:"runtime"`

	/*  (Optional) */
	Service ServiceInfo `json:"service"`

	/* 流量占比 (Optional) */
	TrafficPercent int `json:"trafficPercent"`

	/* 资源状态,空表示空闲,in-use 表示已占用 (Optional) */
	ResourceState string `json:"resourceState"`

	/* 是否开启自动扩缩容 (Optional) */
	AutoScale bool `json:"autoScale"`

	/*  (Optional) */
	Models []Model `json:"models"`

	/*  (Optional) */
	Codes []Code `json:"codes"`

	/* 部署方式(custom, llm) (Optional) */
	DeployType string `json:"deployType"`

	/* 推理服务状态 (Optional) */
	Status string `json:"status"`

	/* 当前绑定的滚动更新记录ID (Optional) */
	CurrentRolloutId string `json:"currentRolloutId"`

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

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

	/*  (Optional) */
	LogCollectConfig LogCollectConfigDetail `json:"logCollectConfig"`

	/*  (Optional) */
	RolloutInfo RolloutInfo `json:"rolloutInfo"`

	/* 滚动更新ID (Optional) */
	RolloutId string `json:"rolloutId"`

	/* 是否是当前使用的版本 (Optional) */
	IsCurrent bool `json:"isCurrent"`

	/* 滚动更新开始时间 (Optional) */
	RolloutStartTime string `json:"rolloutStartTime"`

	/* 滚动更新记录创建时间 (Optional) */
	RolloutCreateTime string `json:"rolloutCreateTime"`
}

type RolloutInferenceRequest

type RolloutInferenceRequest struct {

	/*   */
	RolloutInferenceSpec *RolloutInferenceSpec `json:"rolloutInferenceSpec"`
}

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"`

	/* 运行时配置;当 rolloutId 为空时必填。
	支持通过 runtime.gracefulShutdown 配置优雅退出,仅适用于普通单机推理。
	滚动更新不支持修改公网出口配置,不得传入 internetEgress。
	 (Optional) */
	Runtime *Runtime `json:"runtime"`

	/* 模型配置;不传时按空数组处理,指定 rolloutId 时可选 (Optional) */
	Models []Model `json:"models"`

	/* 代码挂载配置;不传时按空数组处理,指定 rolloutId 时可选 (Optional) */
	Codes []Code `json:"codes"`

	/* 最大超预期实例数  */
	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) */
	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) */
	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"`

	/* 自定义实例标签。

	## 格式
	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) */
	InternetEgress *InternetEgress `json:"internetEgress"`

	/* 优雅退出配置,仅支持普通单机推理 (Optional) */
	GracefulShutdown *GracefulShutdown `json:"gracefulShutdown"`

	/* 自定义服务端口列表 (Optional) */
	CustomServices []CustomService `json:"customServices"`
}

type SafeBucket

type SafeBucket struct {

	/* 桶名称 (Optional) */
	BucketName string `json:"bucketName"`

	/* 可用区 (Optional) */
	Zone string `json:"zone"`

	/* 创建时间,秒 (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/* 桶大小,Byte (Optional) */
	Capacity int64 `json:"capacity"`

	/* s3服务地址 (Optional) */
	Endpoint string `json:"endpoint"`
}

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 SecFileSystemAvailable

type SecFileSystemAvailable struct {

	/* 安全存储ID (Optional) */
	SafeStorageId string `json:"safeStorageId"`

	/* 安全存储名称 (Optional) */
	SafeStorageName string `json:"safeStorageName"`

	/* 文件系统总容量,单位GiB (Optional) */
	Capacity float64 `json:"capacity"`

	/* 文件系统已使用容量,单位Byte (Optional) */
	UsedBytes int64 `json:"usedBytes"`

	/* 文件系统已使用容量,单位GiB,保留两位小数 (Optional) */
	UsedGiB float64 `json:"usedGiB"`

	/* 文件系统剩余可用容量,单位GiB,计算方式为capacity减usedGiB,保留两位小数 (Optional) */
	Available float64 `json:"available"`
}

type SecureDetailForJob

type SecureDetailForJob struct {

	/* 安全存储 ID。示例:fs-11******us。 (Optional) */
	Id string `json:"id"`

	/* 安全存储源路径。可选值:/data、/output。 (Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置。示例:/mnt/secure-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 SecureOssDetailForJob

type SecureOssDetailForJob struct {

	/* OSS 端点地址。示例:s3-internal.cn-north-1.jdcloud-oss.com。 (Optional) */
	Endpoint string `json:"endpoint"`

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

	/* 安全存储源路径。可选值:/data、/output。 (Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置。示例:/mnt/secure-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 SecureOssParamForJob

type SecureOssParamForJob struct {

	/* OSS 端点地址,用于访问安全 OSS 服务。

	**格式:** `s3-internal.{region}.jdcloud-oss.com`

	**建议:** 使用内网端点,访问速度更快
	 (Optional) */
	Endpoint *string `json:"endpoint"`

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

	/* 安全存储源路径,指定要挂载的目录。

	**可选值:**
	- `/data`:数据目录,用于存放训练数据
	- `/output`:输出目录

	**示例:** `/data`, `/output`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`

	/* 挂载点配置,指定安全存储在容器内的挂载路径。

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

	**示例:**
	- 数据存储:`/mnt/secure-oss-data`
	- 输出存储:`/mnt/secure-oss-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 SecureParamForJob

type SecureParamForJob struct {

	/* 安全存储文件系统 ID。

	**示例:** `fs-11******us`

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

	/* 安全存储源路径,指定要挂载的目录。

	**可选值:**
	- `/data`:数据目录,用于存放训练数据
	- `/output`:输出目录

	**示例:** `/data`, `/output`
	 (Optional) */
	SourcePath *string `json:"sourcePath"`

	/* 挂载点配置,指定安全存储在容器内的挂载路径。

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

	**示例:**
	- 数据存储:`/mnt/secure-data`
	- 输出存储:`/mnt/secure-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 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) */
	ServiceType string `json:"serviceType"`

	/* 服务名称 (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"`

	/* 网关类型 (Optional) */
	GatewayType string `json:"gatewayType"`

	/* 专属网关公网调用地址 (Optional) */
	DgAddress string `json:"dgAddress"`

	/* 专属网关内网调用地址 (Optional) */
	DgInnerAddress string `json:"dgInnerAddress"`

	/* 推理服务限流阈值(QPS) (Optional) */
	Qps int `json:"qps"`

	/* 服务关联的产品ID (Optional) */
	ProductId string `json:"productId"`

	/* 服务关联的产品名称,层级之间使用连字符分隔 (Optional) */
	ProductName string `json:"productName"`

	/* 服务关联产品所属BG/BU (Optional) */
	Bgbu string `json:"bgbu"`

	/* 该服务中总版本数 (Optional) */
	Total int `json:"total"`
}

type ServiceExportInfo

type ServiceExportInfo struct {

	/* 是否导出可见范围 (Optional) */
	Visibility bool `json:"visibility"`

	/* 是否导出服务所有者 (Optional) */
	ServiceOwner bool `json:"serviceOwner"`

	/* 是否导出版本描述 (Optional) */
	VersionDescription bool `json:"versionDescription"`

	/* 是否导出版本创建者 (Optional) */
	VersionCreator bool `json:"versionCreator"`

	/* 是否导出状态 (Optional) */
	Status bool `json:"status"`

	/* 是否导出流量分配 (Optional) */
	TrafficAllocation bool `json:"trafficAllocation"`

	/* 是否导出资源类型 (Optional) */
	ResourceType bool `json:"resourceType"`

	/* 是否导出资源队列 (Optional) */
	ResourceQueue bool `json:"resourceQueue"`

	/* 是否导出实例数量 (Optional) */
	ResourceAmount bool `json:"resourceAmount"`

	/* 是否导出运行Pod数/总Pod数 (Optional) */
	RunningPodsDividedByTotalPods bool `json:"runningPodsDividedByTotalPods"`

	/* 是否导出资源配置 (Optional) */
	ResourceConfiguration bool `json:"resourceConfiguration"`

	/* 是否导出创建时间 (Optional) */
	CreateTime bool `json:"createTime"`

	/* 是否导出更新时间 (Optional) */
	UpdateTime bool `json:"updateTime"`
}

type ServiceInfo

type ServiceInfo struct {

	/* 服务地址 (Optional) */
	Address string `json:"address"`

	/* 内部服务地址 (Optional) */
	InnerAddress string `json:"innerAddress"`

	/* 专属网关公网调用地址 (Optional) */
	DgAddress string `json:"dgAddress"`

	/* 专属网关内网调用地址 (Optional) */
	DgInnerAddress string `json:"dgInnerAddress"`

	/* 访问服务时携带的Bearer Token (Optional) */
	AccessToken string `json:"accessToken"`

	/* 用户集群内可访问的地址 (Optional) */
	VpcAddress string `json:"vpcAddress"`
}

type SharedMemorySpec

type SharedMemorySpec struct {

	/* 是否启用共享内存。

	**可选值:** `enable`, `disable`
	 (Optional) */
	Enabled string `json:"enabled"`

	/* 共享内存大小,单位为 MiB;启用共享内存时必填。 (Optional) */
	SizeMiB int `json:"sizeMiB"`
}

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"`

	/* 任务优先级。非必填,取值范围1~9,默认值为0。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 任务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"`

	/* 任务优先级。非必填,取值范围1~9,默认值为0。 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 任务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"`

	/* 任务优先级,取值范围1~9,队列开启优先级情况下必传 (Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 镜像配置。  */
	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 SmartRouterConfig

type SmartRouterConfig struct {

	/* 智能路由策略,目前仅支持 prefixCache  */
	Strategy string `json:"strategy"`

	/* EPP 资源规格  */
	EppSpec *EPPSpec `json:"eppSpec"`
}

type Soldout

type Soldout struct {

	/* 云硬盘所属的可用区  */
	AzName string `json:"azName"`

	/* 云硬盘类型,取值为ssd、premium-hdd、ssd.gp1、ssd.io1、hdd.std1之一  */
	MediaType string `json:"mediaType"`

	/* 是否售罄  */
	IsSoldOut bool `json:"isSoldOut"`
}

type SourceStorage

type SourceStorage struct {

	/* 源存储类型,jpfs/oss  */
	Type string `json:"type"`

	/* 源存储ID,jpfs为jpfsId,oss为bucketName  */
	Id string `json:"id"`

	/* 源存储根路径,jpfs为/data,oss为空或/  */
	RootPath string `json:"rootPath"`

	/* 源存储子路径,rootPath+subPath为源存储迁移路径  */
	SubPath string `json:"subPath"`

	/* 存储安全类型:secure(安全存储),common(通用存储);当前不用传,未来扩展用 (Optional) */
	SecurityType string `json:"securityType"`
}

type SqlExecConfigForCreateJobDefinition

type SqlExecConfigForCreateJobDefinition struct {

	/* 执行引擎。如果通过模板设置参数,则以此参数优先级高
	 */
	ExecEngine string `json:"execEngine"`

	/* spark参数  */
	SparkArgs string `json:"sparkArgs"`
}

type SqlScriptParamForCreateJobDefinition

type SqlScriptParamForCreateJobDefinition struct {

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

	/* 参数类型。
	- `db`:库变量
	- `common`:普通变量
	 (Optional) */
	Type string `json:"type"`

	/* 参数值 (Optional) */
	Value string `json:"value"`
}

type SqlTemplateForCreateJobDefinition

type SqlTemplateForCreateJobDefinition struct {

	/* 执行参数 (Optional) */
	SqlExecConfig []SqlExecConfigForCreateJobDefinition `json:"sqlExecConfig"`

	/* 脚本id (Optional) */
	ScriptSqlId string `json:"scriptSqlId"`

	/* 脚本版本 (Optional) */
	ScriptSqlVersion string `json:"scriptSqlVersion"`

	/* 脚本名称 (Optional) */
	ScriptSqlName string `json:"scriptSqlName"`

	/* 脚本来源。
	- `dataDev`:IDE脚本
	 (Optional) */
	ScriptSource string `json:"scriptSource"`

	/* 脚本参数。此参数只支持全量替换,不支持对列表中的单个参数进行修改
	(Optional) */
	SqlScriptParamList []SqlScriptParamForCreateJobDefinition `json:"sqlScriptParamList"`
}

type SshConnectionInfo

type SshConnectionInfo struct {

	/* SSH密码认证开关。

	## 取值
	- yes: 允许密码认证
	- no: 禁用密码认证,仅允许公钥登录
	 (Optional) */
	SshPasswordAuth string `json:"sshPasswordAuth"`

	/* SSH公钥列表,已配置的免密登录公钥。
	(Optional) */
	PublicKeys []string `json:"publicKeys"`

	/* SSH公网连接地址(经负载均衡),用于通过公网SSH连接Notebook实例。

	## 使用说明
	- 仅开启SSH且负载均衡配置了弹性公网IP时有值
	- 格式: ssh root@host -p port
	- 示例:ssh root@120.26.1.100 -p 22
	 (Optional) */
	SshConnection string `json:"sshConnection"`

	/* SSH VPC内网连接地址(经负载均衡),用于在VPC内网通过SSH连接Notebook实例。

	## 使用说明
	- 仅开启SSH且负载均衡配置了VPC内网VIP时有值
	- 格式: ssh root@host -p port
	- 示例:ssh root@192.168.1.100 -p 22
	 (Optional) */
	SshVpcConnection string `json:"sshVpcConnection"`

	/* POD直连地址(VPC内网),直连Pod IP,固定22端口。

	## 使用说明
	- 开启SSH时持续展示此字段
	- 无Pod IP时(如重启后排队中、启动中)返回占位符 "--"
	- 格式: ssh root@podIp -p 22
	- 示例:ssh root@10.0.23.45 -p 22
	 (Optional) */
	SshPodConnection string `json:"sshPodConnection"`
}

type SshSpec

type SshSpec struct {

	/* SSH密码认证开关,控制是否允许密码登录。

	## 取值
	- yes: 允许密码认证(默认)
	- no: 禁用密码认证,仅允许公钥登录

	## 使用说明
	- 不传时默认为yes,密码认证可用
	- 设为no时确保已配置publicKeys,否则将无法登录
	 (Optional) */
	SshPasswordAuth *string `json:"sshPasswordAuth"`

	/* SSH公钥列表,用于免密登录。

	## 格式
	- 标准SSH公钥格式
	- 示例:ssh-rsa AAAAB3NzaC1yc2E...

	## 限制
	- 最多10条,超出部分将校验失败
	 (Optional) */
	PublicKeys []string `json:"publicKeys"`
}

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 StorageSpaceDetailForJob

type StorageSpaceDetailForJob struct {

	/* 存储类型(数据来源),大小写敏感,地域不同,支持的存储类型也不同,需要根据地域实际支持的存储类型选择:[oss, cfs, jpfs, secure, secureOss]。其中 `secure` 和 `secureOss` 仅限安全队列使用。
	(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"`

	/*  (Optional) */
	Secure SecureDetailForJob `json:"secure"`

	/*  (Optional) */
	SecureOss SecureOssDetailForJob `json:"secureOss"`
}

type StorageSpaceForCreateJobDefinition

type StorageSpaceForCreateJobDefinition struct {

	/* 存储类型,决定数据来源和存储方式。

	**可选值:**
	- `oss`:对象存储服务
	- `cfs`:云文件系统
	- `jpfs`:京东云并行文件系统
	*/
	StorageType string `json:"storageType"`

	/* 是否以只读模式挂载存储。
	(Optional) */
	Readonly bool `json:"readonly"`

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

	**示例:需要是相对路径开头:**
	- `data/d1`
	*/
	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`
	*/
	MountPath string `json:"mountPath"`

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

	/*  (Optional) */
	Cfs CfsForCreateJobDefinition `json:"cfs"`

	/*  (Optional) */
	Jpfs JpfsForCreateJobDefinition `json:"jpfs"`
}

type StorageSpaceForDescribeJobDefinition

type StorageSpaceForDescribeJobDefinition struct {

	/* 存储类型,决定数据来源和存储方式。

	**可选值:**
	- `oss`:对象存储服务
	- `cfs`:云文件系统
	- `jpfs`:京东云并行文件系统
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 是否以只读模式挂载存储。
	(Optional) */
	Readonly bool `json:"readonly"`

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

	**示例:需要是相对路径开头:**
	- `data/d1`
	 (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"`

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

	/*  (Optional) */
	Cfs CfsForDescribeJobDefinition `json:"cfs"`

	/*  (Optional) */
	Jpfs JpfsForDescribeJobDefinition `json:"jpfs"`
}

type StorageSpaceForDescribeJobDefinitions

type StorageSpaceForDescribeJobDefinitions struct {

	/* 存储类型,决定数据来源和存储方式。

	**可选值:**
	- `oss`:对象存储服务
	- `cfs`:云文件系统
	- `jpfs`:京东云并行文件系统
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 是否以只读模式挂载存储。
	(Optional) */
	Readonly bool `json:"readonly"`

	/* 源路径,指定要挂载的源目录。
	(Optional) */
	SourcePath string `json:"sourcePath"`

	/* 挂载点配置,指定存储在容器内的挂载路径。
	(Optional) */
	MountPath string `json:"mountPath"`

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

	/*  (Optional) */
	Cfs CfsForDescribeJobDefinitions `json:"cfs"`

	/*  (Optional) */
	Jpfs JpfsForDescribeJobDefinitions `json:"jpfs"`
}

type StorageSpaceForUpdateJobDefinition

type StorageSpaceForUpdateJobDefinition struct {

	/* 存储类型,决定数据来源和存储方式。

	**可选值:**
	- `oss`:对象存储服务
	- `cfs`:云文件系统
	- `jpfs`:京东云并行文件系统
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 是否以只读模式挂载存储。
	(Optional) */
	Readonly bool `json:"readonly"`

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

	**示例:需要是相对路径开头:**
	- `data/d1`
	 (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"`

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

	/*  (Optional) */
	Cfs CfsForUpdateJobDefinition `json:"cfs"`

	/*  (Optional) */
	Jpfs JpfsForUpdateJobDefinition `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`:京东云并行文件系统
	- `secure`:安全存储(JPFS),**仅安全队列可用**
	- `secureOss`:安全存储(OSS),**仅安全队列可用**

	**注意:**
	- 大小写敏感
	- `secure` 和 `secureOss` 仅在安全队列下可用,非安全队列使用将返回错误
	 (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"`

	/*  (Optional) */
	Secure *SecureParamForJob `json:"secure"`

	/*  (Optional) */
	SecureOss *SecureOssParamForJob `json:"secureOss"`
}

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: `JPFS-ID:/dir-path`

	## 使用说明
	- 路径必须存在,否则挂载失败
	- 支持挂载子目录
	- jpfs带挂载点ID(`fsmt-`)的三段格式与不带挂载点ID的两段格式均可传入;服务端会按传入的段数规范化后落库,查询详情返回规范化后的值
	*/
	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"`

	/* 是否以只读模式挂载存储。

	## 取值
	- true: 只读模式,无法写入
	- false: 读写模式,可读写
	- 默认为false(读写模式)

	## 生效范围
	- `oss`类型存储与安全存储(`storageSource=security`的jpfs/oss):按用户传入值挂载
	- 其他存储类型:该字段被忽略,恒挂载为可写

	## 限制
	- 安全队列(`queueType=security`或`sec-vm`)上的实例:除安全存储本身外,其余所有挂载点(普通oss、普通jpfs、数据集、模型)会被强制置为只读,用户传入的`readonly=false`不生效
	- 上述强制只读只取决于队列类型:安全队列上的实例即使未挂载任何安全存储,其余挂载点同样强制只读
	- 查询详情时返回的是服务端裁定后的值,可能与创建时传入的值不同
	- 公共(`source=public`)数据集/模型恒为只读
	 (Optional) */
	Readonly *bool `json:"readonly"`

	/* 存储来源,区分这块存储是用户自有的还是平台统一管理的安全存储。

	## 取值
	- user: 用户自有的存储(默认)
	- security: 平台统一管理的安全存储,仅安全队列可用

	## 使用说明
	- 仅`storageType=jpfs`或`oss`时有意义,`cfs`/`hostpath`忽略该字段
	- 不传或传空串时按`user`处理
	- 安全队列的完整使用限制见`nbWorkloadDetail.queueType`

	## 限制
	- 取值为`security`时,`storageType`必须是`jpfs`或`oss`,否则返回参数错误
	- 取值为`security`时,该实例必须创建在安全队列(`queueType=security`或`sec-vm`)上,非安全队列使用会被拒绝
	- 安全jpfs的`storagePath`不能为空,且只能是`/data`或其子目录(`/data/...`);安全oss不受该路径限制
	- 安全jpfs的`storagePath`会被服务端规范化后落库(如`/data/foo/../bar`规范化为`/data/bar`),查询详情返回的是规范化后的值
	- 更新资源属性场景不支持切换为`security`:安全队列实例禁止修改资源属性,非安全队列不允许传`security`
	 (Optional) */
	StorageSource *string `json:"storageSource"`

	/* 挂载点ID,仅对`storageType=jpfs`生效。

	## 使用场景
	- 当JPFS文件系统有多个挂载点时,可通过此字段指定具体的挂载点
	- 用于支持同一JPFS文件系统的多挂载点
	 (Optional) */
	MountTargetId *string `json:"mountTargetId"`

	/* 挂载点IP,仅对`storageType=cfs`生效。

	## 使用场景
	- 当CFS文件系统有多个挂载点时,可通过此字段匹配同一CFS文件系统的多挂载点

	## 兼容逻辑
	- 不传时从`storagePath`的格式(`ip:/path`)解析,兼容旧逻辑
	 (Optional) */
	Host *string `json:"host"`
}

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 TargetStorage

type TargetStorage struct {

	/* 目标存储类型,jpfs/oss  */
	Type string `json:"type"`

	/* 目标存储ID,jpfs为jpfsId,oss为bucketName  */
	Id string `json:"id"`

	/* 目标存储根路径,jpfs为/data,oss为空或/  */
	RootPath string `json:"rootPath"`

	/* 目标存储子路径,rootPath+subPath为源存储迁移路径  */
	SubPath string `json:"subPath"`

	/* 存储安全类型:secure(安全存储),common(通用存储);当前不用传,未来扩展用 (Optional) */
	SecurityType string `json:"securityType"`
}

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 TaskVariableForDescribeJobDefinition

type TaskVariableForDescribeJobDefinition struct {

	/* 任务ID (Optional) */
	TaskId int `json:"taskId"`

	/* 参数key (Optional) */
	Key string `json:"key"`

	/* 参数value (Optional) */
	Value string `json:"value"`
}

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 TechDatasetInfo

type TechDatasetInfo struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

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

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

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

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

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

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

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

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

	/* 数据集资源归属权限。支持(public,private) (Optional) */
	Permission string `json:"permission"`

	/* 是否可用:false表示不可用,dss数据集查不到 (Optional) */
	IsAvailable bool `json:"isAvailable"`
}

type TechDatasetParamForJob

type TechDatasetParamForJob struct {

	/* 科技数据集来源。

	**可选值:**
	- `public`:表示产品页面[资产管理-科技数据集]对应的公共数据集,平台预置,所有用户可使用
	- `private`:表示产品页面[资产管理-科技数据集]对应的个人数据集
	 (Optional) */
	DatasetVisibility *string `json:"datasetVisibility"`

	/* 科技数据集 ID。 **示例:** `dst-11******ik`
	**获取方式:** 通过科技数据集管理接口创建或查询 (Optional) */
	DatasetId *string `json:"datasetId"`

	/* 科技数据集版本。 **示例:** - 版本号:`v1`, `v2` (Optional) */
	DatasetVersion *string `json:"datasetVersion"`

	/* 科技数据集在训练容器中的挂载路径,建议挂载到 `/mnt/techdataset-x/` 开头的路径下。

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

type TechDatasetResultForJob

type TechDatasetResultForJob struct {

	/* 科技数据集来源,`public` 表示公共数据集,`private` 表示工作空间自有数据集。 (Optional) */
	DatasetVisibility string `json:"datasetVisibility"`

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

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

	/* 科技数据集在训练容器中的挂载路径。 (Optional) */
	MountPath string `json:"mountPath"`

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

type TechDatasetSpec

type TechDatasetSpec struct {

	/* 科技数据集来源。

	- public: 公共科技数据集
	- self: 工作空间自有科技数据集
	*/
	Source string `json:"source"`

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

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

	/* 科技数据集在Notebook容器中的挂载路径。

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

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

type TechDatasetVersionDetail

type TechDatasetVersionDetail struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

	/* 存储oss对应Enpoint (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket (Optional) */
	StorageBucket string `json:"storageBucket"`

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

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

type TechDatasetVersionInfo

type TechDatasetVersionInfo struct {

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

	/* 关联的数据工厂-数据集ID。 (Optional) */
	DssDatasetId string `json:"dssDatasetId"`

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

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

	/* 存储oss对应Enpoint (Optional) */
	StorageDomain string `json:"storageDomain"`

	/* oss-bucket (Optional) */
	StorageBucket string `json:"storageBucket"`

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

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

type TestRunActionParamForCreateJobDefinition

type TestRunActionParamForCreateJobDefinition struct {

	/* 环节ID (Optional) */
	ActionId int `json:"actionId"`

	/* 环节名称  */
	ActionName string `json:"actionName"`

	/* 集市 (Optional) */
	MarketCode string `json:"marketCode"`

	/* 队列 (Optional) */
	QueueCode string `json:"queueCode"`

	/* 账号 (Optional) */
	AccountCode string `json:"accountCode"`
}

type TestRunParamForCreateJobDefinition

type TestRunParamForCreateJobDefinition struct {

	/* 调试类型。
	- `cycle`:周期试跑
	- `single`:单次试跑
	- `none`:不试跑
	*/
	TestRunType string `json:"testRunType"`

	/* 业务时间。
	1. 周期试跑,选择cron表达式时间时
	2. 单次试跑,实例指定执行时间
	 (Optional) */
	BusiTime string `json:"busiTime"`

	/* 非分钟、小时级周期任务,试跑时间-小时
	(Optional) */
	Hour int `json:"hour"`

	/* 周期任务,选择周期试跑时间-分钟
	(Optional) */
	Minute int `json:"minute"`

	/* 依赖环境类型。
	- 0:依赖开发
	- 1:依赖生产
	 (Optional) */
	DependEnvType int `json:"dependEnvType"`

	/* 周期试跑天数 (Optional) */
	EffectiveDays int `json:"effectiveDays"`

	/* 环节参数配置  */
	Actions []TestRunActionParamForCreateJobDefinition `json:"actions"`

	/* 任务ID  */
	TaskId int `json:"taskId"`
}

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 TransferToOssParam

type TransferToOssParam struct {

	/* OSS存储空间名称。

	**注意:** 需确保目标Bucket已存在且有写入权限。
	 */
	OssBucket string `json:"ossBucket"`

	/* OSS服务的endpoint地址(如 `oss.cn-north-1.jdcloud-oss.com`)。

	**注意:** 需与目标Bucket所在地域一致。
	 */
	Endpoint string `json:"endpoint"`

	/* 对象存储路径(不含Bucket名称)。

	**示例:** `profiling/prof-abc123/result.tar.gz`
	 */
	ObjectPath string `json:"objectPath"`
}

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 {

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

	/* 描述。传空字符串会清空 (Optional) */
	Description *string `json:"description"`

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

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

	/* 代码库分支。传空字符串会清空(确保branch和commit最低一个有值) (Optional) */
	Branch *string `json:"branch"`

	/* 代码库commint。传空字符串会清空(确保branch和commit最低一个有值) (Optional) */
	Commit *string `json:"commit"`

	/* git用户名。传空字符串会清空 (Optional) */
	Username *string `json:"username"`

	/* git访问凭证。传空字符串会清空 (Optional) */
	AccessToken *string `json:"accessToken"`

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

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

type UpdateCommercialDatasetSpec

type UpdateCommercialDatasetSpec struct {

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	 (Optional) */
	DatasetName string `json:"datasetName"`

	/* 数据集描述,256字符以内。 (Optional) */
	Description string `json:"description"`

	/* 数据集预估大小,单位:GiB (Optional) */
	EstimatedSize int `json:"estimatedSize"`
}

type UpdateDatasetParam

type UpdateDatasetParam struct {

	/* 数据集名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	 (Optional) */
	DatasetName *string `json:"datasetName"`

	/* 数据集描述,传空字符串会更新成空 (Optional) */
	Description *string `json:"description"`

	/* 工作空间中的资源归属权限,仅支持修改为公共资源public (Optional) */
	Permission *string `json:"permission"`

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

type UpdateDatasetVersionParam

type UpdateDatasetVersionParam struct {

	/* 版本描述,传空字符串会更新成空 (Optional) */
	VersionDesc *string `json:"versionDesc"`
}

type UpdateDeployTemplate

type UpdateDeployTemplate struct {

	/* 模版名称/标题 (Optional) */
	TplName string `json:"tplName"`

	/* 模版内容,json字符串 (Optional) */
	TplContent string `json:"tplContent"`

	/* 适用任务模块:notebook:Notebook,training:训练任务,inference:在线服务,finetune:精调实验,simulation仿真任务 (Optional) */
	TplModule string `json:"tplModule"`

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

	/* 标签 (Optional) */
	Labels []string `json:"labels"`
}

type UpdateDeviceVirtualizationParams

type UpdateDeviceVirtualizationParams struct {

	/* 显卡ID  */
	Id string `json:"id"`

	/* Region ID,例如:cn-southwest-1 (Optional) */
	RegionId string `json:"regionId"`

	/* 租户PIN,没选租户时传 *,选了租户时传具体 pin (Optional) */
	Pin string `json:"pin"`

	/* 是否开启虚拟化,true为开启,false为关闭  */
	Virtualized bool `json:"virtualized"`
}

type UpdateDeviceVirtualizationRequest

type UpdateDeviceVirtualizationRequest struct {

	/*  (Optional) */
	Params UpdateDeviceVirtualizationParams `json:"params"`
}

type UpdateFlavorSpec

type UpdateFlavorSpec struct {

	/* 规格ID,也可由路径参数填充。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* 规格类型。 (Optional) */
	Category string `json:"category"`

	/* CPU核数。 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存大小,单位MB。 (Optional) */
	MemoryMb int `json:"memoryMb"`

	/* GPU卡数。 (Optional) */
	Gpu float64 `json:"gpu"`

	/* 单卡显存大小,单位GB。 (Optional) */
	GpuMemoryGb float64 `json:"gpuMemoryGb"`

	/* GPU设备名。 (Optional) */
	GpuDeviceName string `json:"gpuDeviceName"`

	/* 是否支持RDMA。 (Optional) */
	Rdma bool `json:"rdma"`

	/* 是否为灰度规格。 (Optional) */
	Gray bool `json:"gray"`

	/* 是否上架。 (Optional) */
	Online bool `json:"online"`

	/* 是否允许公网访问。 (Optional) */
	AllowInternet bool `json:"allowInternet"`

	/* 调度标签列表。传入时会按标签key与现有标签比较后同步。 (Optional) */
	SchedulerLabels []FlavorSchedulerLabel `json:"schedulerLabels"`

	/* 灰度pin变更列表。 (Optional) */
	GrayPins []FlavorGrayChange `json:"grayPins"`
}

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, 可选值:
	- 空间已绑定的专属队列,示例:queue-2xxx**********2d*********8b8
	- joybuilder-public-queue 公共队列
	- joybuilder-exclusive-queue 专享队
	 (Optional) */
	QueueIds []string `json:"queueIds"`
}

type UpdateImageParam

type UpdateImageParam struct {

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

	/* 镜像用途,多个使用英文逗号,拼接,可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务

	示例: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"`

	/* 描述。最大长度256,传空字符串会更新为空 (Optional) */
	Description string `json:"description"`
}

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。示例:logset-jk****ny (Optional) */
	LogsetUID *string `json:"logsetUID"`

	/* 日志主题id。示例:logtopic-vy****va (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 {

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

	/* 模型描述。传空字符串会清空。 (Optional) */
	Description *string `json:"description"`

	/* 模型资源归属权限,仅支持修改为公共资源public (Optional) */
	Permission *string `json:"permission"`

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

type UpdateModelVersionParm

type UpdateModelVersionParm struct {

	/* 模型描述。为空不更新。 (Optional) */
	VersionDesc *string `json:"versionDesc"`
}

type UpdateNotebookInfo

type UpdateNotebookInfo struct {

	/* 名称。1~256字符,可以包含中文、数字、大小写字母、英文下划线"_"、中划线"-"或点"."。传null表示不修改此字段。 (Optional) */
	Name string `json:"name"`

	/* 描述。不超过256字符。传null表示不修改此字段。 (Optional) */
	Description string `json:"description"`

	/* 工作空间中的资源归属权限,支持(public,private),只有管理员和拥有者可以修改。传null表示不修改此字段。
	管理员可查看工作空间中全部资源,其他用户只能查看归属自己的private权限的资源或public权限的资源。 (Optional) */
	Permission string `json:"permission"`

	/* 资源归属用户。传null表示不修改此字段。 (Optional) */
	OwnerUserPin string `json:"ownerUserPin"`

	/* 公网出口配置,用于配置Notebook的出公网访问方式。传null表示不修改此字段。

	## 使用说明
	- switchStatus必须显式传值,为on时开启公网出口,为off时关闭公网出口且egressType无效
	- **公共资源池**: switchStatus=on时可设置 internetEgress.egressType=SHARE_GATEWAY,经平台共享NAT网关出公网
	- **私有资源池**: 暂不支持公网出口配置 (Optional) */
	InternetEgress InternetEgressInfo `json:"internetEgress"`
}

type UpdatePoolSpec

type UpdatePoolSpec struct {

	/* 资源池ID,也可由路径参数填充。 (Optional) */
	PoolId string `json:"poolId"`

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

	/* 资源池名称。 (Optional) */
	PoolName string `json:"poolName"`

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

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。 (Optional) */
	PoolType string `json:"poolType"`

	/* 资源池规格类型。 (Optional) */
	Category string `json:"category"`

	/* 资源池物理可用区列表。 (Optional) */
	PoolAzs []string `json:"poolAzs"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`
}

type UpdatePrivateImageParam

type UpdatePrivateImageParam struct {

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

	/* 标签,使用英文逗号拼接。传空字符串会更新为空 (Optional) */
	Labels *string `json:"labels"`

	/* 镜像资源归属权限,仅支持修改为公共资源public (Optional) */
	Permission *string `json:"permission"`

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

type UpdateProductUpdateSpec

type UpdateProductUpdateSpec struct {

	/* 动态标题,最大长度64字符 (Optional) */
	Title string `json:"title"`

	/* 动态内容或描述,最大长度128字符 (Optional) */
	Content string `json:"content"`

	/* 动态类型 PUBLIC_ASSETS-公共资产, 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 {

	/* 版本描述,传空字符串会更新成空 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 数据集介绍,传空字符串会更新成空 (Optional) */
	DatasetIntroduction string `json:"datasetIntroduction"`
}

type UpdatePublicModelParm

type UpdatePublicModelParm struct {

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

	/* 模型描述,传空字符串会清空。 (Optional) */
	Description string `json:"description"`
}

type UpdatePublicModelVersionParm

type UpdatePublicModelVersionParm struct {

	/* 版本描述,传空字符串会清空。 (Optional) */
	VersionDesc string `json:"versionDesc"`

	/* 模型介绍,传空字符串会清空。 (Optional) */
	ModelIntroduction string `json:"modelIntroduction"`
}

type UpdateQueueModulePriorityConfig

type UpdateQueueModulePriorityConfig struct {

	/* notebook-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	Notebook []UpdateQueueModulePriorityRule `json:"notebook"`

	/* 训练任务-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	Training []UpdateQueueModulePriorityRule `json:"training"`

	/* 在线服务-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	Inference []UpdateQueueModulePriorityRule `json:"inference"`

	/* 精调实验-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	Finetune []UpdateQueueModulePriorityRule `json:"finetune"`

	/* 仿真任务-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	Simulation []UpdateQueueModulePriorityRule `json:"simulation"`

	/* 离线任务-优先级规则,传空数组表示删除对应所有规则。不传或传null表示不更新 (Optional) */
	OfflineTask []UpdateQueueModulePriorityRule `json:"offlineTask"`
}

type UpdateQueueModulePriorityRule

type UpdateQueueModulePriorityRule struct {

	/* 生效范围类型, 可选值:
	- role:空间角色
	- user:空间用户user
	 (Optional) */
	ScopeType string `json:"scopeType"`

	/* 生效对象值,具体角色(admin/developer)或用户pin (Optional) */
	ScopeValue string `json:"scopeValue"`

	/* 优先级,范围1-9 (Optional) */
	Priority int `json:"priority"`
}

type UpdateQueueQuotaSpec

type UpdateQueueQuotaSpec struct {

	/* 队列ID,也可由路径参数填充。 (Optional) */
	QueueId string `json:"queueId"`

	/* CPU/内存quota。 (Optional) */
	BaseQuota QueueBaseQuota `json:"baseQuota"`

	/* GPU quota变更列表。 (Optional) */
	GpuQuotas []QueueGpuQuotaChange `json:"gpuQuotas"`
}

type UpdateQueueSpec

type UpdateQueueSpec struct {

	/* 队列ID,也可由路径参数填充。 (Optional) */
	QueueId string `json:"queueId"`

	/* 队列类型。 (Optional) */
	QueueType string `json:"queueType"`

	/* 资源池ID。 (Optional) */
	PoolId string `json:"poolId"`

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

	/* 是否启用。 (Optional) */
	Enable bool `json:"enable"`

	/* 是否支持抢占。 (Optional) */
	Preemptible bool `json:"preemptible"`

	/* CPU/内存quota。 (Optional) */
	BaseQuota QueueBaseQuota `json:"baseQuota"`

	/* GPU quota变更列表。 (Optional) */
	GpuQuotas []QueueGpuQuotaChange `json:"gpuQuotas"`

	/* user queue用户变更列表。 (Optional) */
	QueueUsers []QueueUserChange `json:"queueUsers"`
}

type UpdateResourcePropertiesParam

type UpdateResourcePropertiesParam struct {

	/* 镜像来源,指定新镜像的来源类型。

	## 来源类型
	- public: 公共镜像
	- self: 自定义镜像

	## 使用说明
	- 参数`imageSource`和`imageId`必须同时传或者都不传
	 (Optional) */
	ImageSource *string `json:"imageSource"`

	/* 镜像ID,新镜像的唯一标识。

	## 使用说明
	- 参数`imageSource`和`imageId`必须同时传或者都不传
	- 用于指定要更换的镜像
	 (Optional) */
	ImageId *string `json:"imageId"`

	/* 负载均衡配置,用于更新公网访问能力。

	## 使用说明
	- 私有资源池中的Notebook: 需要传入与资源队列可通信的负载均衡ID和端口
	- 公共资源池中的Notebook: 可通过lbEnable=true开启公网访问,系统自动分配LB
	- 安全队列(`queueType=security`或`sec-vm`)中的Notebook: 可通过lbEnable=true开启SSH访问,系统自动分配LB与端口,无需指定lbId/lbPort
	- 不需要公网访问时不要指定此参数
	 (Optional) */
	LbSpec *LbSpec `json:"lbSpec"`

	/* 工作负载资源配置,用于更新计算资源。

	## 更新限制
	- 公共/专享资源池不允许变更资源配置
	- 私有资源池允许更换队列和资源配置
	 (Optional) */
	WorkloadSpec *WorkloadSpec `json:"workloadSpec"`

	/* 存储空间配置,用于更新存储挂载。

	## 使用说明
	- 更新存储配置需要确保新配置与队列的网络连通性
	- 第一个存储仍需挂载到`/mnt/workspace`
	 (Optional) */
	Storages []StorageSpec `json:"storages"`

	/* 数据集配置,用于更新数据集挂载。

	## 使用说明
	- 更新数据集配置需要确保新配置与队列的网络连通性
	 (Optional) */
	Datasets []DatasetSpec `json:"datasets"`

	/* 科技数据集配置,用于整体替换科技数据集挂载。

	## 使用说明
	- 不传或传null表示保留原配置,传空数组表示清空,传非空数组表示全量替换;独立最多50条。
	- 默认强制只读挂载
	 (Optional) */
	TechDatasets []TechDatasetSpec `json:"techDatasets"`

	/* 模型配置,用于更新模型挂载。

	## 使用说明
	- 更新模型配置需要确保新配置与队列的网络连通性
	 (Optional) */
	Models []ModelSpec `json:"models"`

	/* 代码配置,用于更新代码库挂载。

	## 使用说明
	- 传null表示不修改此属性
	- 传空数组表示清空代码配置
	 (Optional) */
	Codes []NbCodeConfig `json:"codes"`

	/* 用户环境变量列表。

	## 更新语义
	- 该参数可选
	- 不传或传null表示不修改原配置
	- 传空数组表示清空全部用户环境变量
	- 传非空数组表示全量替换原配置
	- 数量、名称和变量值限制与创建Notebook时一致
	 (Optional) */
	Envs []NotebookEnv `json:"envs"`

	/* 节点亲和性配置,用于更新Pod调度规则。

	## 使用说明
	- 支持配置多个亲和性规则,每个元素之间是"或"的关系
	- 传null表示不修改此属性
	- 传空数组表示清空亲和性配置
	 (Optional) */
	NodeAffinities []NotebookNodeAffinity `json:"nodeAffinities"`

	/* 是否启用RDMA高速网络。

	## 更新语义
	- 不传或传`null`表示不修改原配置
	- 传`true`表示开启,传`false`表示关闭;配置在Notebook下次启动时生效

	## 生效规则
	- 仅私有资源池中的Notebook支持修改该参数
	- 计算资源必须包含GPU,且GPU卡数必须为正整数
	- 未配置GPU或配置非整卡GPU时,即使传`true`也会静默按`false`处理
	- 公共/专享资源池忽略该参数,是否启用由所选规格的RDMA属性决定
	 (Optional) */
	Rdma *bool `json:"rdma"`

	/* SSH配置,用于更新SSH连接能力。

	## 使用说明
	- 传null表示不修改此属性
	 (Optional) */
	SshSpec *SshSpec `json:"sshSpec"`

	/* 任务调度优先级,数值越大,优先级越高。

	## 使用说明
	- 可选参数,传null表示不修改(保持原值)
	- **取值范围:** 1 ~ 9
	- **按资源池类型区分:**
	  - 专享队列:必须设置(1~9)。
	  - 空间私有队列:开启调度优先级时必填。
	  - 公共队列:不支持设置。
	 (Optional) */
	TaskPriority *int `json:"taskPriority"`
}

type UpdateRuntimePolicy

type UpdateRuntimePolicy struct {

	/* 运行时长配置(小时) (Optional) */
	RuntimeHour int `json:"runtimeHour"`

	/* 运行时长配置-生效的资源队列id, 可选值:
	- 空间已绑定的专属队列,示例:queue-2xxx**********2d*********8b8
	- joybuilder-public-queue 公共队列
	- joybuilder-exclusive-queue 专享队列
	 (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 {

	/* 任务优先级,取值范围1~9,传null表示不修改此字段。
	(Optional) */
	TaskPriority int `json:"taskPriority"`

	/* 镜像配置。传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 UpdateSimulationTaskPrioritySpec

type UpdateSimulationTaskPrioritySpec struct {

	/* 任务优先级。取值范围1~9。
	 */
	TaskPriority int `json:"taskPriority"`
}

type UpdateTaskPriorityParam

type UpdateTaskPriorityParam struct {

	/* 任务调度优先级,数值越大,优先级越高。
	**取值范围:** 1 ~ 9
	**按资源池类型区分:**
	- 专享队列:必须设置(1~9)。
	- 空间私有队列:开启调度优先级时必填。
	- 公共队列:不支持设置。
	*/
	TaskPriority int `json:"taskPriority"`
}

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:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用,为null不更新 (Optional) */
	AllMemberSupported bool `json:"allMemberSupported"`

	/* 队列可用成员,子账号pin,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`
}

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 VisibleFlavor

type VisibleFlavor struct {

	/* 规格ID。 (Optional) */
	FlavorId string `json:"flavorId"`

	/* CPU核数。 (Optional) */
	Cpu int `json:"cpu"`

	/* 内存大小,单位MB。 (Optional) */
	MemoryMb int `json:"memoryMb"`

	/* GPU卡数。 (Optional) */
	Gpu float64 `json:"gpu"`

	/* 单卡显存大小,单位GB。 (Optional) */
	GpuMemoryGb float64 `json:"gpuMemoryGb"`

	/* GPU设备名。 (Optional) */
	GpuDeviceName string `json:"gpuDeviceName"`

	/* 是否支持RDMA。 (Optional) */
	SupportRdma bool `json:"supportRdma"`

	/* 是否允许公网访问。 (Optional) */
	AllowInternet bool `json:"allowInternet"`

	/* 是否有库存。 (Optional) */
	InStock bool `json:"inStock"`
}

type VisiblePool

type VisiblePool struct {

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

	/* 资源池ID。 (Optional) */
	PoolId string `json:"poolId"`

	/* 资源池名称。默认由 Scale GetNodePool 接口获取;force=true 且 Scale 不可用时可作为兜底值。 (Optional) */
	PoolName string `json:"poolName"`

	/* 资源池描述。 (Optional) */
	Description string `json:"description"`

	/* 资源池类型。`public` 为公共资源池,`exclusive` 为专享公共池。 (Optional) */
	PoolType string `json:"poolType"`

	/* 资源池规格类型。 (Optional) */
	Category string `json:"category"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`
}

type VisibleQueue

type VisibleQueue struct {

	/* 队列类型。 (Optional) */
	QueueType string `json:"queueType"`

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

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

	/* 是否支持抢占。默认由 Scale GetQueue 接口的 taskPreempt 获取;force=true 时可作为兜底值。 (Optional) */
	Preemptible bool `json:"preemptible"`

	/* 队列所属资源池。 (Optional) */
	Pool VisiblePool `json:"pool"`
}

type VmDescribeInstanceTypesResult

type VmDescribeInstanceTypesResult struct {

	/* 实例规格详情列表 (Optional) */
	InstanceTypes []VmInstanceType `json:"instanceTypes"`

	/* 特定实例规格列表 (Optional) */
	SpecificInstanceTypes []string `json:"specificInstanceTypes"`

	/* 实例规格总数 (Optional) */
	TotalCount int `json:"totalCount"`
}

type VmInstanceType

type VmInstanceType struct {

	/* 实例规格族 (Optional) */
	Family string `json:"family"`

	/* 实例机型信息 (Optional) */
	MachineInfo string `json:"machineInfo"`

	/* 大页内存大小,单位MB (Optional) */
	HugePageSize int `json:"hugePageSize"`

	/* 实例规格标识,使用joy前缀 (Optional) */
	InstanceType string `json:"instanceType"`

	/* CPU核数 (Optional) */
	Cpu int `json:"cpu"`

	/* 系统架构,可选值为x86_64或arm64 (Optional) */
	Architecture string `json:"architecture"`

	/* 内存大小,单位MB (Optional) */
	MemoryMB int `json:"memoryMB"`

	/* 支持绑定的弹性网卡数量,包括主网卡 (Optional) */
	NicLimit int `json:"nicLimit"`

	/* 云盘挂载数量上限 (Optional) */
	CloudDiskCountLimit int `json:"cloudDiskCountLimit"`

	/* 实例规格描述 (Optional) */
	Desc string `json:"desc"`

	/* 各可用区的规格售卖状态 (Optional) */
	State []VmInstanceTypeState `json:"state"`

	/* GPU配置 (Optional) */
	Gpu VmInstanceTypeGpu `json:"gpu"`

	/* RDMA配置 (Optional) */
	Rdma VmInstanceTypeRdma `json:"rdma"`

	/* 本地数据盘配置 (Optional) */
	LocalDisks []VmInstanceTypeLocalDisk `json:"localDisks"`

	/* 实例规格代数 (Optional) */
	Generation int `json:"generation"`

	/* 突发性能配置 (Optional) */
	BurstInfo VmInstanceTypeBurstInfo `json:"burstInfo"`

	/* 支持的云盘类型列表 (Optional) */
	CloudDiskTypes []string `json:"cloudDiskTypes"`

	/* 是否为裸金属实例 (Optional) */
	Baremetal bool `json:"baremetal"`

	/* 是否支持在线扩容 (Optional) */
	SupportLiveResize bool `json:"supportLiveResize"`

	/* 是否禁用公网访问 (Optional) */
	DisableInternetAccess bool `json:"disableInternetAccess"`

	/* 机型名称 (Optional) */
	MachineName string `json:"machineName"`
}

type VmInstanceTypeBurstInfo

type VmInstanceTypeBurstInfo struct {

	/* 每小时获取的CPU积分 (Optional) */
	CreditsEarnedPerHour int `json:"creditsEarnedPerHour"`

	/* 基准性能CPU积分 (Optional) */
	BasePerformance int `json:"basePerformance"`
}

type VmInstanceTypeGpu

type VmInstanceTypeGpu struct {

	/* GPU卡型号 (Optional) */
	Model string `json:"model"`

	/* GPU卡数量 (Optional) */
	Number int `json:"number"`
}

type VmInstanceTypeLocalDisk

type VmInstanceTypeLocalDisk struct {

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

	/* 磁盘大小,单位GB (Optional) */
	DiskSizeGB int `json:"diskSizeGB"`

	/* 本地设备ID (Optional) */
	DeviceId string `json:"deviceId"`
}

type VmInstanceTypeRdma

type VmInstanceTypeRdma struct {

	/* RDMA网卡个数 (Optional) */
	Count int `json:"count"`

	/* RDMA网卡带宽,单位Gbps (Optional) */
	BandwidthGbps int `json:"bandwidthGbps"`
}

type VmInstanceTypeState

type VmInstanceTypeState struct {

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 是否可售卖 (Optional) */
	InStock bool `json:"inStock"`

	/* 可用库存数量 (Optional) */
	AvailableCount int `json:"availableCount"`
}

type Vpc

type Vpc struct {

	/* vpc Id (Optional) */
	Id string `json:"id"`

	/* vpc 名字 (Optional) */
	Name string `json:"name"`
}

type WarmTaskProcess

type WarmTaskProcess struct {

	/* 预热任务ID (Optional) */
	WarmTaskId string `json:"warmTaskId"`

	/* 预热任务状态,可选值:
	- preparing:准备中
	- running:预热中
	- paused:预热暂停
	- completed:预热完成
	- failed:预热失败
	- deleting:删除中
	- deleted:已删除
	- deleteFailed:删除失败
	 (Optional) */
	Status string `json:"status"`

	/* 预热进度,取值范围[0, 100] (Optional) */
	Progress int `json:"progress"`

	/* 完成时间,Unix秒;未完成时返回0或不返回 (Optional) */
	CompleteTime int64 `json:"completeTime"`
}

type WorkloadItem

type WorkloadItem struct {

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

	/* 命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* 实例名称 (Optional) */
	Name string `json:"name"`

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

	/* 节点池ID (Optional) */
	NodeGroup string `json:"nodeGroup"`

	/* 节点池名称 (Optional) */
	NodeGroupName string `json:"nodeGroupName"`

	/* 节点名称 (Optional) */
	NodeName string `json:"nodeName"`

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

	/* 节点ID (Optional) */
	NodeId string `json:"nodeId"`

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

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

	/* 实例状态 (Optional) */
	Status string `json:"status"`

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

	/* 任务名称 (Optional) */
	TaskName string `json:"taskName"`

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

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

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

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

	/* 队列名称 (Optional) */
	QueueName string `json:"queueName"`

	/* 实例所属显卡集合 (Optional) */
	GpuMap string `json:"gpuMap"`

	/* CPU (Optional) */
	CpuLimitMillicore int `json:"cpuLimitMillicore"`

	/* 内存 (Optional) */
	MemoryLimitBytes int `json:"memoryLimitBytes"`

	/* 算力 (Optional) */
	RatioLimit int `json:"ratioLimit"`

	/* 显存 (Optional) */
	GpuMemoryLimit int `json:"gpuMemoryLimit"`

	/* 创建时间 (Optional) */
	CreationTimestamp string `json:"creationTimestamp"`

	/* 删除时间 (Optional) */
	DeletionTimestamp string `json:"deletionTimestamp"`

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

type WorkloadPodItem

type WorkloadPodItem struct {

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

	/* 负载名称 (Optional) */
	Name string `json:"name"`
}

type WorkloadSpec

type WorkloadSpec struct {

	/* 资源队列ID,决定Notebook运行在哪个资源池。

	## 公共资源池
	- 队列ID固定为:`joybuilder-public-queue`
	- 使用平台共享资源,按量计费
	- 需要指定规格ID(flavorId)
	- 需要指定逻辑可用区编码(logicAzCode)

	## 专享资源池
	- 队列ID固定为:`joybuilder-exclusive-queue`
	- 使用平台专享资源,按量计费
	- 需要指定规格ID(flavorId)
	- 需要指定逻辑可用区编码(logicAzCode)
	- 必须设置调度优先级(taskPriority,取值1~9)

	## 私有资源池
	- 队列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数量,即本实例申请的GPU卡数总量,仅私有资源池生效。

	## 英伟达GPU配置
	- 取值范围:0.1、0.125、0.25、0.5、1、2、3、4、5、6、7、8

	## 昇腾GPU配置
	- 取值范围:1、2、3、4、5、6、7、8、16

	## 摩尔线程GPU配置
	- 取值范围:0.1、0.2、0.4、0.6、0.8、1、2、3、4、5、6、7、8

	## 使用说明
	- 传0或不传表示CPU实例,此时deviceModel可为空
	- 取值非0时必须同时传deviceModel
	- 公共/专享资源池传值无效,由实例规格决定
	- 显存与算力不可指定,由平台按卡数同比例换算
	 (Optional) */
	VcudaCore *string `json:"vcudaCore"`

	/* 逻辑可用区编码,指定Notebook实例运行的逻辑可用区。

	## 使用说明
	- 公共/专享资源池必填,私有资源池无需指定
	- 可通过查询可用区列表接口获取可用区编码
	- 支持包含"random"关键字实现随机可用区调度

	## 示例
	- cn-north-1a: 指定可用区
	- cn-north-1-random: 随机可用区
	 (Optional) */
	LogicAzCode *string `json:"logicAzCode"`

	/* 物理集群名称,指定规格对应的异构可用区物理集群名称。

	## 使用说明
	- 仅公共/专享资源池有效,私有资源池无需指定
	 (Optional) */
	HpcClusterName *string `json:"hpcClusterName"`

	/* 排队超时时间(分钟),Notebook在排队状态的最大等待时间。

	## 使用说明
	- 仅公共/专享资源池有效,私有资源池不支持此参数
	- 不传或传0时默认使用系统配置 5分钟
	- 取值范围:5~1440
	- 超过排队超时时间后,Notebook将自动停止排队

	## 示例
	- 30: 排队30分钟后超时
	- 60: 排队60分钟后超时
	 (Optional) */
	QueuingTimeoutMinutes *int `json:"queuingTimeoutMinutes"`
}

type WorkloadTaskItem

type WorkloadTaskItem struct {

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

	/* 任务名称 (Optional) */
	TaskName string `json:"taskName"`

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

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

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

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, 可选值:
	- 空间已绑定的专属队列,示例:queue-2xxx**********2d*********8b8
	- joybuilder-public-queue 公共队列
	- joybuilder-exclusive-queue 专享队
	 (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"`

	/* 当前查询用户对应空间角色:admin管理员,developer开发者,visitor访客。(废弃可用,统一使用memberRole字段) (Optional) */
	Role string `json:"role"`

	/* 当前查询用户对应的空间角色:admin管理员,developer开发者,visitor访客。 (Optional) */
	MemberRole string `json:"memberRole"`
}

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"`

	/* 成员角色,可选值:
	- admin 管理员
	- developer 开发者
	- visitor 访客
	 (Optional) */
	MemberRole *string `json:"memberRole"`

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

type WorkspaceMemberQueue

type WorkspaceMemberQueue struct {

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

	/* 成员角色,可选值:
	- admin 管理员
	- developer 开发者
	- visitor 访客
	 (Optional) */
	MemberRole string `json:"memberRole"`

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

	/* 队列ID,当成员角色memberRole=admin时,无需传值, 管理员默认支持空间已绑定的所有队列权限 (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:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用 (Optional) */
	AllMemberSupported bool `json:"allMemberSupported"`

	/* 队列可用成员,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`
}

type WorkspaceQueueModulePriorityConfig

type WorkspaceQueueModulePriorityConfig struct {

	/* notebook-优先级规则 (Optional) */
	Notebook []WorkspaceQueueModulePriorityRule `json:"notebook"`

	/* 训练任务-优先级规则 (Optional) */
	Training []WorkspaceQueueModulePriorityRule `json:"training"`

	/* 在线服务-优先级规则 (Optional) */
	Inference []WorkspaceQueueModulePriorityRule `json:"inference"`

	/* 精调实验-优先级规则 (Optional) */
	Finetune []WorkspaceQueueModulePriorityRule `json:"finetune"`

	/* 仿真任务-优先级规则 (Optional) */
	Simulation []WorkspaceQueueModulePriorityRule `json:"simulation"`

	/* 仿真任务-优先级规则 (Optional) */
	OfflineTask []WorkspaceQueueModulePriorityRule `json:"offlineTask"`
}

type WorkspaceQueueModulePriorityRule

type WorkspaceQueueModulePriorityRule struct {

	/* 生效范围类型, 可选值:
	- role:空间角色
	- user:空间用户user
	 (Optional) */
	ScopeType string `json:"scopeType"`

	/* 生效对象值,具体角色(admin/developer)或用户pin (Optional) */
	ScopeValue string `json:"scopeValue"`

	/* 优先级 (Optional) */
	Priority int `json:"priority"`
}

type WorkspaceRelatedQueue

type WorkspaceRelatedQueue struct {

	/* 队列id。示例:queue-2xxx**********2d*********8b8 (Optional) */
	QueueId *string `json:"queueId"`

	/* true支持所有任务模块,默认true。 注意:安全队列仅支持训练任务,不能设置为true (Optional) */
	AllModuleSupported *bool `json:"allModuleSupported"`

	/* 支持使用任务模块,allModuleSupported=false生效。 注意:安全队列仅支持训练任务
	可选值:
	- notebook:Notebook
	- training:训练任务
	- inference:在线服务,
	- finetune:精调实验
	- simulation:仿真任务
	- offlineTask:离线任务
	 (Optional) */
	QueueModules []string `json:"queueModules"`

	/* true所有成员可用,默认true (Optional) */
	AllMemberSupported *bool `json:"allMemberSupported"`

	/* 队列可用成员,子账号pin,allUserSupported=false生效 (Optional) */
	QueueMemberPins []string `json:"queueMemberPins"`
}

type WorkspaceRuntimePolicy

type WorkspaceRuntimePolicy struct {

	/* 运行时长配置(小时) (Optional) */
	RuntimeHour int `json:"runtimeHour"`

	/* 运行时长配置-生效的资源队列id, 可选值:
	- 空间已绑定的专属队列,示例:queue-2xxx**********2d*********8b8
	- joybuilder-public-queue 公共队列
	- joybuilder-exclusive-queue 专享队列
	 (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 {

	/* 工作空间名称。
	命名规则:1~32字符,仅支持中文、大小写字母、数字、英文中划线“-”和英文下划线“_”
	*/
	WorkspaceName string `json:"workspaceName"`

	/* 工作空间描述,256个字符内。 (Optional) */
	WorkspaceDesc *string `json:"workspaceDesc"`

	/* 资源队列。【废弃】该字段即将下线,建议使用新的资源队列配置字段[queueConfigs]。 (Optional) */
	ResourceQueue []string `json:"resourceQueue"`

	/* 资源队列配置。注意:队列默认优先级会设置为5 (Optional) */
	QueueConfigs []WorkspaceRelatedQueue `json:"queueConfigs"`

	/* 工作空间成员配置。 (Optional) */
	WorkspaceMember []WorkspaceMember `json:"workspaceMember"`

	/* 空间关联的日志配置,最多支持配置20个日志投递目标,[日志投递相关文档](https://docs.jdcloud.com/cn/jdaip/create-logconfig-for-joybuilder) (Optional) */
	LogConfigs []UpdateLogConfigs `json:"logConfigs"`
}

type ZoneFlavor

type ZoneFlavor struct {

	/* 可用区编码。中心随机为 `center_random`,边缘场景为逻辑可用区编码。 (Optional) */
	ZoneId string `json:"zoneId"`

	/* 可用区类型。 (Optional) */
	ZoneType string `json:"zoneType"`

	/* HPC物理集群名称。 (Optional) */
	HpcClusterName string `json:"hpcClusterName"`

	/* 规格列表。 (Optional) */
	Flavors []VisibleFlavor `json:"flavors"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL