|
|
|
@@ -1060,7 +1060,7 @@ type UserImageConfig struct { |
|
|
|
CreateVersion bool `json:"create_version"` |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
DataMount Volumes `json:"volumes"` |
|
|
|
Volumes Volumes `json:"volumes"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateTrainJobParams struct { |
|
|
|
@@ -1084,14 +1084,16 @@ type Config struct { |
|
|
|
CreateVersion bool `json:"create_version"` |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
DataMount Volumes `json:"volumes"` |
|
|
|
Volumes Volumes `json:"volumes"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateInferenceJobParams struct { |
|
|
|
JobName string `json:"job_name"` |
|
|
|
Description string `json:"job_desc"` |
|
|
|
InfConfig InfConfig `json:"config"` |
|
|
|
WorkspaceID string `json:"workspace_id"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateInfUserImageParams struct { |
|
|
|
JobName string `json:"job_name"` |
|
|
|
Description string `json:"job_desc"` |
|
|
|
@@ -1209,14 +1211,14 @@ type DataSource struct { |
|
|
|
} |
|
|
|
|
|
|
|
type Volumes struct { |
|
|
|
Nfs Nfs `json:"nfs"` |
|
|
|
Nfs []Nfs `json:"nfs"` |
|
|
|
HostPath HostPath `json:"host_path"` |
|
|
|
} |
|
|
|
|
|
|
|
type Nfs struct { |
|
|
|
ID string `json:"id"` |
|
|
|
SourcePath string `json:"nfs_server_path"` |
|
|
|
DestPath string `json:"local_path"` |
|
|
|
SourcePath string `json:"src_path"` |
|
|
|
DestPath string `json:"dest_path"` |
|
|
|
ReadOnly bool `json:"read_only"` |
|
|
|
} |
|
|
|
|
|
|
|
|